@flamingo-stack/openframe-frontend-core 0.0.725 → 0.0.726

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/{chunk-JVHP7Y4S.js → chunk-3UZET2G7.js} +2 -2
  2. package/dist/{chunk-F56GNKX2.js → chunk-3XDVGHL4.js} +2 -2
  3. package/dist/{chunk-2VOZ37BL.cjs → chunk-4ND65E2B.cjs} +35 -35
  4. package/dist/{chunk-AX4F35C2.js → chunk-4VRHDFF2.js} +1 -1
  5. package/dist/{chunk-LYQYLPPV.cjs → chunk-5SWQ2ZU5.cjs} +26 -26
  6. package/dist/{chunk-5FVWDDX6.js → chunk-AZKVHJA5.js} +2 -2
  7. package/dist/{chunk-W2DXHR2R.js → chunk-C5KMQLJP.js} +1 -1
  8. package/dist/{chunk-OBMWSUBK.js → chunk-COFT3YPA.js} +5 -5
  9. package/dist/{chunk-ZSXZE4FJ.cjs → chunk-DXDLCYCM.cjs} +3 -3
  10. package/dist/{chunk-SE4O4HCD.cjs → chunk-EHYAOIE4.cjs} +8 -8
  11. package/dist/{chunk-2SO3OJFY.cjs → chunk-FMFCPX3R.cjs} +33 -33
  12. package/dist/{chunk-IOTAUWWF.js → chunk-JYJBL7GD.js} +1 -1
  13. package/dist/{chunk-MGTZ2BKY.js → chunk-MM66P4X4.js} +2 -2
  14. package/dist/{chunk-F77J34W2.js → chunk-MQ3ZM7FJ.js} +1 -1
  15. package/dist/{chunk-SEVKFMKR.cjs → chunk-MZ3TMXIX.cjs} +3 -3
  16. package/dist/{chunk-YPEILGVZ.cjs → chunk-MZY6LBM5.cjs} +3 -3
  17. package/dist/{chunk-ASIXPRHV.js → chunk-NLWIBA55.js} +3 -3
  18. package/dist/{chunk-PUADVXJD.js → chunk-NZYMMYWN.js} +1 -1
  19. package/dist/{chunk-AI3CLDZO.cjs → chunk-Q2G7NVFH.cjs} +280 -280
  20. package/dist/{chunk-7V5KFBY2.cjs → chunk-R3BOJNZI.cjs} +16 -16
  21. package/dist/{chunk-B7234BE2.cjs → chunk-RSE3MU4G.cjs} +11 -11
  22. package/dist/{chunk-RU6BTELI.cjs → chunk-RVSNXG6J.cjs} +50 -70
  23. package/dist/{chunk-MLFS5G3V.js → chunk-SBPPM65Y.js} +50 -70
  24. package/dist/{chunk-ZZRUKEN2.js → chunk-SCTS3EMJ.js} +3 -3
  25. package/dist/{chunk-JAKG6BY7.js → chunk-VKR56R3U.js} +3 -3
  26. package/dist/{chunk-QV4GO3GW.cjs → chunk-VPABPC2M.cjs} +12 -12
  27. package/dist/{chunk-4ZZ4TNCY.cjs → chunk-X2PG6XWF.cjs} +9 -9
  28. package/dist/{chunk-772242QR.cjs → chunk-XEIDJ6SL.cjs} +65 -65
  29. package/dist/{chunk-ASHRHL4W.js → chunk-YVWJ3TRY.js} +5 -5
  30. package/dist/{chunk-LR6DJY4Z.cjs → chunk-Z3VAFLYK.cjs} +9 -9
  31. package/dist/{cloud-tenants-SMULXU54.cjs → cloud-tenants-5JTQ2ENQ.cjs} +3 -3
  32. package/dist/{cloud-tenants-US63E2HV.js → cloud-tenants-NH7VE7KE.js} +2 -2
  33. package/dist/components/case-studies/index.cjs +14 -14
  34. package/dist/components/case-studies/index.js +3 -3
  35. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  36. package/dist/components/chat/index.cjs +2 -2
  37. package/dist/components/chat/index.js +1 -1
  38. package/dist/components/contact/index.cjs +4 -4
  39. package/dist/components/contact/index.js +3 -3
  40. package/dist/components/docs/index.cjs +7 -7
  41. package/dist/components/docs/index.js +6 -6
  42. package/dist/components/embeds/index.cjs +4 -4
  43. package/dist/components/embeds/index.js +3 -3
  44. package/dist/components/faq/index.cjs +4 -4
  45. package/dist/components/faq/index.js +3 -3
  46. package/dist/components/features/index.cjs +3 -3
  47. package/dist/components/features/index.js +2 -2
  48. package/dist/components/help-center-pages/index.cjs +71 -71
  49. package/dist/components/help-center-pages/index.js +13 -13
  50. package/dist/components/index.cjs +35 -35
  51. package/dist/components/index.js +12 -12
  52. package/dist/components/meeting-scheduler/index.cjs +19 -19
  53. package/dist/components/meeting-scheduler/index.js +2 -2
  54. package/dist/components/navigation/index.cjs +6 -6
  55. package/dist/components/navigation/index.js +5 -5
  56. package/dist/components/onboarding-guides/index.cjs +5 -5
  57. package/dist/components/onboarding-guides/index.js +4 -4
  58. package/dist/components/product-demo/index.cjs +6 -6
  59. package/dist/components/product-demo/index.js +6 -6
  60. package/dist/components/tickets/index.cjs +7 -7
  61. package/dist/components/tickets/index.js +6 -6
  62. package/dist/components/ui/index.cjs +3 -3
  63. package/dist/components/ui/index.js +2 -2
  64. package/dist/{devices-JWHGWKLK.js → devices-OC7JEI6U.js} +2 -2
  65. package/dist/{devices-6ZURNFRB.cjs → devices-PV76NGQO.cjs} +4 -4
  66. package/dist/index.cjs +7 -7
  67. package/dist/index.js +6 -6
  68. package/dist/{knowledge-CY66JZ54.cjs → knowledge-5AYFIVKD.cjs} +4 -4
  69. package/dist/{knowledge-TEDPLCFX.js → knowledge-L7WQ7IEP.js} +2 -2
  70. package/dist/{logs-MO357RE7.cjs → logs-4F77RJXJ.cjs} +11 -11
  71. package/dist/{logs-S46THPPD.js → logs-MGFHGVIE.js} +2 -2
  72. package/dist/{policies-GSH4K5YP.cjs → policies-VCGM3C5Z.cjs} +7 -7
  73. package/dist/{policies-BUXT7DKF.js → policies-WRDZFNIB.js} +2 -2
  74. package/dist/{software-update-YKS6KLX2.js → software-update-WVG2GDZO.js} +2 -2
  75. package/dist/{software-update-2ETT35NM.cjs → software-update-YD2MNL3K.cjs} +6 -6
  76. package/dist/utils/index.cjs +17 -18
  77. package/dist/utils/index.js +17 -18
  78. package/dist/utils/source-grouping.d.ts +15 -5
  79. package/dist/utils/source-grouping.d.ts.map +1 -1
  80. package/package.json +1 -1
  81. package/src/components/chat/entity-cards/dispatch.tsx +47 -58
  82. package/src/utils/source-grouping.ts +24 -14
  83. package/src/utils/source-icons.ts +16 -16
@@ -61,29 +61,14 @@ import { MingoIcon } from '../../icons';
61
61
  import { ArrowRightUpIcon } from '../../icons-v2-generated/arrows/arrow-right-up-icon';
62
62
  import { ClickupLogoIcon } from '../../icons-v2-generated/brand-logos/clickup-logo-icon';
63
63
  import { SlackLogoGreyIcon } from '../../icons-v2-generated/brand-logos/slack-logo-grey-icon';
64
- import { ChartBar01VerIcon } from '../../icons-v2-generated/charts/chart-bar-01-ver-icon';
65
- import { ChartPieIcon } from '../../icons-v2-generated/charts/chart-pie-icon';
66
64
  import { PresentationBarIcon } from '../../icons-v2-generated/charts/presentation-bar-icon';
67
65
  import { PresentationLineIcon } from '../../icons-v2-generated/charts/presentation-line-icon';
68
- import { BracketCurlyCheckIcon } from '../../icons-v2-generated/coding/bracket-curly-check-icon';
69
66
  import { CodeIcon } from '../../icons-v2-generated/coding/code-icon';
70
- import { CodeSquareIcon } from '../../icons-v2-generated/coding/code-square-icon';
71
- import { CodingBranchIcon } from '../../icons-v2-generated/coding/coding-branch-icon';
72
67
  import { CodingCommitIcon } from '../../icons-v2-generated/coding/coding-commit-icon';
73
- import { CodingMergeIcon } from '../../icons-v2-generated/coding/coding-merge-icon';
74
68
  import { CodingPullRequestIcon } from '../../icons-v2-generated/coding/coding-pull-request-icon';
75
- import { PackageIcon } from '../../icons-v2-generated/coding/package-icon';
76
- import { CallIcon } from '../../icons-v2-generated/communication/call-icon';
77
- import { ChatQuoteIcon } from '../../icons-v2-generated/communication/chat-quote-icon';
78
69
  import { CalendarIcon } from '../../icons-v2-generated/date-and-time/calendar-icon';
79
- import { ClipboardListIcon } from '../../icons-v2-generated/documents/clipboard-list-icon';
80
- import { Copy01Icon } from '../../icons-v2-generated/documents/copy-01-icon';
81
- import { FileCodeIcon } from '../../icons-v2-generated/documents/file-code-icon';
82
70
  import { FileContentIcon } from '../../icons-v2-generated/documents/file-content-icon';
83
71
  import { NewspaperIcon } from '../../icons-v2-generated/documents/newspaper-icon';
84
- import { BankIcon } from '../../icons-v2-generated/finance/bank-icon';
85
- import { CoinsExchangeCurrencyIcon } from '../../icons-v2-generated/finance/coins-exchange-currency-icon';
86
- import { MoneyBillDollarIcon } from '../../icons-v2-generated/finance/money-bill-dollar-icon';
87
72
  import { MicrophoneIcon } from '../../icons-v2-generated/household/microphone-icon';
88
73
  import { AlertTriangleIcon } from '../../icons-v2-generated/interface/alert-triangle-icon';
89
74
  import { EyeIcon } from '../../icons-v2-generated/interface/eye-icon';
@@ -113,10 +98,9 @@ import { resolveCardDestination } from '../utils/card-destination';
113
98
  import { resolveHrefForRuntime } from '../utils/chat-nav-resolution';
114
99
  import { executeNavigation } from '../utils/execute-navigation';
115
100
  import { clickupTaskUrl } from '../utils/external-app-urls';
116
- import { resolveIcon } from '../utils/icon-library';
117
101
  import { computeIsNewTab, buildAnchorProps } from '../utils/nav-anchor-props';
118
102
  import { readFetchedCardTitle } from '../utils/resolve-fetched-card-href';
119
- import { getSourceLabel, SOURCE_ICON_NAMES } from '../utils/source-icons';
103
+ import { defaultTableIdForDocumentType, getSourceLabel, SOURCE_ICON_NAMES } from '../utils/source-icons';
120
104
  import { resolveSourceIcon, sourceRowCtxFromRuntime } from '../utils/source-row-cta';
121
105
  import { BlockCard } from './block-card';
122
106
  import { BlogCardSkeleton } from './blog-card';
@@ -1393,18 +1377,16 @@ function refHydratedEntry(
1393
1377
  };
1394
1378
  }
1395
1379
 
1380
+ /** The leading glyph carries the type signal (the badge pill is dropped); it is the SOURCE's icon (`sourceGlyph`). */
1396
1381
  interface FinancialCardConfig {
1397
1382
  label: string;
1398
- /** Per-type leading glyph — carries the type signal now that the
1399
- * badge pill is dropped. */
1400
- icon: () => React.ReactNode;
1401
1383
  }
1402
1384
  const FINANCIAL_CARD_CONFIGS: Record<string, FinancialCardConfig> = {
1403
- financial_kpi: { label: 'Financial KPI', icon: () => <ChartBar01VerIcon size={24} /> },
1404
- cap_table: { label: 'Cap table entry', icon: () => <ChartPieIcon size={24} /> },
1405
- profit_loss: { label: 'P&L period', icon: () => <MoneyBillDollarIcon size={24} /> },
1406
- balance_sheet: { label: 'Balance sheet', icon: () => <BankIcon size={24} /> },
1407
- cash_flow: { label: 'Cash flow', icon: () => <CoinsExchangeCurrencyIcon size={24} /> },
1385
+ financial_kpi: { label: 'Financial KPI' },
1386
+ cap_table: { label: 'Cap table entry' },
1387
+ profit_loss: { label: 'P&L period' },
1388
+ balance_sheet: { label: 'Balance sheet' },
1389
+ cash_flow: { label: 'Cash flow' },
1408
1390
  };
1409
1391
  /** Expand a per-family config map into registry entries — ONE loop shell
1410
1392
  * for every card family (financial, github, program, roadmap); adding a
@@ -1423,7 +1405,7 @@ function financialRegistryEntries(): Record<string, ChatCardRegistryEntry> {
1423
1405
  refHydratedEntry(docType, cfg.label, (displayRef, opts) => (
1424
1406
  <GenericFinancialChatCard
1425
1407
  chatRef={displayRef}
1426
- icon={cfg.icon()}
1408
+ icon={sourceGlyph(docType)}
1427
1409
  isNewTab={opts.isNewTab}
1428
1410
  discuss={opts.discuss}
1429
1411
  />
@@ -1463,11 +1445,13 @@ const GITHUB_CARD_CONFIGS: Record<string, GitHubCardConfig> = {
1463
1445
  interface GlyphCardConfig {
1464
1446
  label: string;
1465
1447
  /**
1466
- * The card's leading glyph. It is handed the hydrated ref, so a type whose
1467
- * records carry their own mark (a vendor's logo, a page's menu icon) draws
1468
- * that and keeps a generic glyph for a record without one.
1448
+ * ONLY for a type whose records carry their own mark (a vendor's logo, a
1449
+ * page's menu icon): it is handed the hydrated ref and draws that mark.
1450
+ * Every other type leaves it out and gets its SOURCE's icon
1451
+ * (`sourceGlyph`): the one `SOURCE_ICON_NAMES` entry its chip draws too, so
1452
+ * a card and its chip can never show different icons.
1469
1453
  */
1470
- icon: (ref?: ChatRef) => React.ReactNode;
1454
+ icon?: (ref?: ChatRef) => React.ReactNode;
1471
1455
  /**
1472
1456
  * Video-bearing ref types: render the media card (cover from the ref's
1473
1457
  * `metadata.videoPoster`, else the host's OG placeholder; the type label as the
@@ -1481,41 +1465,51 @@ interface GlyphCardConfig {
1481
1465
  * (`/api/design-docs`, `/api/openframe-tenants`, `/api/prospect-calls` — ChatRef-shaped items,
1482
1466
  * same preset as github / slack). Adding one = one line here + the
1483
1467
  * `list-url.ts` builder + the `source-icons.ts` label / icon / type entries. */
1484
- /** The OpenFrame logo every OpenFrame surface uses (the `openframe` icon name). */
1485
- const OpenFrameGlyph = resolveIcon('openframe');
1486
1468
  const REF_GLYPH_CARD_CONFIGS: Record<string, GlyphCardConfig> = {
1487
- openframe_tenant: { label: 'OpenFrame tenant', icon: () => <OpenFrameGlyph size={24} /> },
1488
- prospect_call: { label: 'Prospect call', icon: () => <CallIcon size={24} />, media: true },
1469
+ openframe_tenant: { label: 'OpenFrame tenant' },
1470
+ prospect_call: { label: 'Prospect call', media: true },
1489
1471
  // Code intelligence (product-hub internal): the review rules a repository is
1490
1472
  // held to, the repositories themselves, and one row per deployment
1491
1473
  // environment. Glyph cards like their siblings — none of the three has a
1492
1474
  // cover image, and a rule is read in the admin screen it links to.
1493
- code_rule: { label: 'Code rule', icon: () => <BracketCurlyCheckIcon size={24} /> },
1494
- code_repo: { label: 'Repository', icon: () => <CodingBranchIcon size={24} /> },
1495
- code_deployment: { label: 'Deployment', icon: () => <PackageIcon size={24} /> },
1475
+ code_rule: { label: 'Code rule' },
1476
+ code_repo: { label: 'Repository' },
1477
+ code_deployment: { label: 'Deployment' },
1496
1478
  // The graph's own objects: one source file's public surface, one public
1497
1479
  // symbol, a near-duplicate cluster, and a pull request's blast radius.
1498
1480
  // Glyph cards for the same reason as their three siblings — none carries a
1499
1481
  // cover image, and each links to the admin screen that renders it in full.
1500
- code_file: { label: 'Code file', icon: () => <FileCodeIcon size={24} /> },
1501
- code_symbol: { label: 'Code symbol', icon: () => <CodeSquareIcon size={24} /> },
1502
- code_duplicate: { label: 'Duplicate code', icon: () => <Copy01Icon size={24} /> },
1503
- code_impact: { label: 'Change impact', icon: () => <CodingPullRequestIcon size={24} /> },
1482
+ code_file: { label: 'Code file' },
1483
+ code_symbol: { label: 'Code symbol' },
1484
+ code_duplicate: { label: 'Duplicate code' },
1485
+ code_impact: { label: 'Change impact' },
1504
1486
  // A change set: pull requests across repositories declared as one change, with the ClickUp tasks and design
1505
1487
  // docs its pull requests are attached to. ONE card for it wherever a set is shown (chat, a design doc's page).
1506
- change_set: { label: 'Change set', icon: () => <CodingMergeIcon size={24} /> },
1488
+ change_set: { label: 'Change set' },
1507
1489
  // A page of the public website (pricing, product, legal, and every page the navigation lists), read live
1508
1490
  // from the data the page shows. A glyph card: a page has no cover of its own, and the card opens the page.
1509
1491
  site_page: { label: 'Website page', icon: ref => <SitePageGlyph iconName={refText(ref, 'icon_name')} /> },
1510
1492
  // What OpenFrame charges, read live from its billing: the plan in force, or one AI model's token exchange
1511
1493
  // rate. A glyph card; it opens the pricing page.
1512
- openframe_price: { label: 'OpenFrame price', icon: () => <OpenFrameGlyph size={24} /> },
1494
+ openframe_price: { label: 'OpenFrame price' },
1513
1495
  // A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
1514
1496
  vendor: { label: 'Vendor', icon: ref => <VendorGlyph title={ref?.title ?? ''} logoUrl={refText(ref, 'logo_url')} /> },
1515
1497
  };
1498
+ /**
1499
+ * A card type's icon: its SOURCE's, resolved exactly as the source's chip
1500
+ * resolves it (`resolveSourceIcon` over `SOURCE_ICON_NAMES`). One name per
1501
+ * source, one resolver, so a card and its chip always match.
1502
+ */
1503
+ function sourceGlyph(docType: string): React.ReactNode {
1504
+ const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
1505
+ return <Icon className="size-6" />;
1506
+ }
1507
+
1516
1508
  function refGlyphRegistryEntries(): Record<string, ChatCardRegistryEntry> {
1517
- return registryEntries(REF_GLYPH_CARD_CONFIGS, (cfg, docType) =>
1518
- refHydratedEntry(docType, cfg.label, (displayRef, opts) =>
1509
+ return registryEntries(REF_GLYPH_CARD_CONFIGS, (config, docType) => {
1510
+ const glyph = config.icon ?? (() => sourceGlyph(docType));
1511
+ const cfg = config;
1512
+ return refHydratedEntry(docType, cfg.label, (displayRef, opts) =>
1519
1513
  cfg.media ? (
1520
1514
  <EntityMingoCard
1521
1515
  title={displayRef.title}
@@ -1524,7 +1518,7 @@ function refGlyphRegistryEntries(): Record<string, ChatCardRegistryEntry> {
1524
1518
  displayRef.metadata?.videoPoster,
1525
1519
  opts.extras?.buildOgPlaceholderUrl?.(displayRef.title ?? '') ?? null,
1526
1520
  )}
1527
- fallbackIcon={cfg.icon(displayRef)}
1521
+ fallbackIcon={glyph(displayRef)}
1528
1522
  status={{ label: cfg.label, variant: 'grey' }}
1529
1523
  chatRef={displayRef}
1530
1524
  isNewTab={opts.isNewTab}
@@ -1532,15 +1526,10 @@ function refGlyphRegistryEntries(): Record<string, ChatCardRegistryEntry> {
1532
1526
  menuAriaLabel={`${cfg.label} actions`}
1533
1527
  />
1534
1528
  ) : (
1535
- <GlyphChatCard
1536
- chatRef={displayRef}
1537
- icon={cfg.icon(displayRef)}
1538
- isNewTab={opts.isNewTab}
1539
- discuss={opts.discuss}
1540
- />
1529
+ <GlyphChatCard chatRef={displayRef} icon={glyph(displayRef)} isNewTab={opts.isNewTab} discuss={opts.discuss} />
1541
1530
  ),
1542
- ),
1543
- );
1531
+ );
1532
+ });
1544
1533
  }
1545
1534
 
1546
1535
  /** People-hub employee feeds hydrate from their EXISTING list APIs
@@ -1558,9 +1547,9 @@ function fetchedEmployeeEntryDisplayRef(item: unknown, chatRef: ChatRef): ChatRe
1558
1547
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
1559
1548
  }
1560
1549
  const EMPLOYEE_ENTRY_CARD_CONFIGS: Record<string, GlyphCardConfig> = {
1561
- what_i_shipped: { label: 'What I Shipped', icon: () => <Rocket02Icon size={24} /> },
1562
- how_i_work: { label: 'How I Work', icon: () => <ClipboardListIcon size={24} /> },
1563
- ai_prompt: { label: 'Squawkbox', icon: () => <ChatQuoteIcon size={24} /> },
1550
+ what_i_shipped: { label: 'What I Shipped' },
1551
+ how_i_work: { label: 'How I Work' },
1552
+ ai_prompt: { label: 'Squawkbox' },
1564
1553
  };
1565
1554
  function employeeEntryRegistryEntries(): Record<string, ChatCardRegistryEntry> {
1566
1555
  return registryEntries(EMPLOYEE_ENTRY_CARD_CONFIGS, (cfg, docType) => ({
@@ -1571,7 +1560,7 @@ function employeeEntryRegistryEntries(): Record<string, ChatCardRegistryEntry> {
1571
1560
  render: (item, chatRef, opts) => (
1572
1561
  <GlyphChatCard
1573
1562
  chatRef={fetchedEmployeeEntryDisplayRef(item, chatRef)}
1574
- icon={cfg.icon()}
1563
+ icon={sourceGlyph(docType)}
1575
1564
  isNewTab={opts.isNewTab}
1576
1565
  discuss={opts.discuss}
1577
1566
  />
@@ -28,14 +28,23 @@ import { defaultDocumentTypeForTableId, getSourceLabel } from './source-icons';
28
28
  /**
29
29
  * Doc-table documentTypes: whole documents with their own viewer (markdown =
30
30
  * product docs, data_room_doc = data room). They carry an in-app `path`, an
31
- * embedder keys `docPlatformTargets` by them, and they NEVER group: one chip
32
- * per document. The hub's per-source contract test pins this list to its
31
+ * embedder keys `docPlatformTargets` by them, and a server never folds them
32
+ * into one citation (`groupsByTable`); the strip still draws them as one chip
33
+ * per table. The hub's per-source contract test pins this list to its
33
34
  * doc-table configs.
34
35
  */
35
36
  export const DOC_TABLE_TYPES = ['markdown', 'data_room_doc'] as const;
36
37
 
37
- /** THE rule: rows of a knowledge table share one chip unless they are whole
38
- * documents. Decided by `documentType`, the one fact every producer has. */
38
+ /**
39
+ * Which tables a SERVER folds into one citation: rows of a knowledge table
40
+ * share one number (and reach the model as one table) unless they are whole
41
+ * documents, which each keep their own number and are read in full. Decided by
42
+ * `documentType`, the one fact every producer has.
43
+ *
44
+ * This is not the strip's rule. The strip (`groupSourcesByTable`) draws ONE chip
45
+ * per table for every source, documents included: a document keeps its own
46
+ * citation number inside its table's chip.
47
+ */
39
48
  export function groupsByTable(documentType: string | null | undefined): boolean {
40
49
  return !(DOC_TABLE_TYPES as readonly string[]).includes(documentType ?? '');
41
50
  }
@@ -98,16 +107,16 @@ function typeOf(source: TableSource): string {
98
107
  return source.documentType || defaultDocumentTypeForTableId(source.sourceRepo) || '';
99
108
  }
100
109
 
101
- /** A source that belongs to its table's chip: it names its table and is not a
102
- * whole document. Both shapes qualify, a flat row AND a chip the server
103
- * already grouped, so one table is never drawn twice. Naming the table is the
104
- * ONLY requirement: a row with no `id`, or no `documentType`, still joins (as
105
- * the hub's server-side chips do). Leaving it out would split one table
106
- * across a group AND a stray chip. What it lacks only limits its dropdown
107
- * row: no `id` or no type means Open-only, no Ask. */
110
+ /** A source that belongs to its table's chip: it names its table. Whole
111
+ * documents join their table's chip like every other record (each keeps its
112
+ * own citation number as a dropdown row). Both shapes qualify, a flat row AND
113
+ * a chip the server already grouped, so one table is never drawn twice.
114
+ * Naming the table is the ONLY requirement: a row with no `id`, or no
115
+ * `documentType`, still joins (as the hub's server-side chips do). Leaving it
116
+ * out would split one table across a group AND a stray chip. What it lacks
117
+ * only limits its dropdown row: no `id` or no type means Open-only, no Ask. */
108
118
  function joinsTableChip(source: ChatSource): source is TableSource {
109
- if (!source.sourceRepo) return false;
110
- return groupsByTable(typeOf({ ...source, sourceRepo: source.sourceRepo }));
119
+ return !!source.sourceRepo;
111
120
  }
112
121
 
113
122
  /** A source's dropdown rows: a grouped chip's own items, or the flat row itself. */
@@ -154,7 +163,8 @@ function uniqueRows(rows: GroupedSourceRow[]): GroupedSourceRow[] {
154
163
  * table's only source. When flat rows of the same table arrive beside it (a
155
164
  * hub-injected chip plus MCP-cited rows in one answer), they merge into it:
156
165
  * its rows first, its chip-level link kept, the count restated. Whole
157
- * documents and rows naming no table pass through as their own chips.
166
+ * documents group under their table too, each row keeping its own citation
167
+ * number; only a row naming no table passes through as its own chip.
158
168
  */
159
169
  export function groupSourcesByTable(sources: ChatSource[]): ChatSource[] {
160
170
  const membersByTable = new Map<string, TableSource[]>();
@@ -64,11 +64,11 @@ export const SOURCE_ICON_NAMES: Record<string, string> = {
64
64
 
65
65
  // Financials
66
66
  'investor-updates': 'mail',
67
- 'financial-kpis': 'activity',
68
- 'financial-cap-table': 'table',
69
- 'financial-pnl': 'trending-up',
70
- 'financial-balance-sheet': 'dollar-sign',
71
- 'financial-cash-flow': 'banknote',
67
+ 'financial-kpis': 'chart-bar-01-ver',
68
+ 'financial-cap-table': 'chart-pie',
69
+ 'financial-pnl': 'money-bill-dollar',
70
+ 'financial-balance-sheet': 'bank',
71
+ 'financial-cash-flow': 'coins-exchange-currency',
72
72
 
73
73
  // ClickUp
74
74
  'clickup-roadmap': 'clickup',
@@ -92,24 +92,24 @@ export const SOURCE_ICON_NAMES: Record<string, string> = {
92
92
  'slack-messages': 'slack',
93
93
 
94
94
  // People-hub employee content
95
- 'what-i-shipped': 'package',
96
- 'how-i-work': 'book-open',
97
- 'ai-prompts': 'message-square',
95
+ 'what-i-shipped': 'rocket-02',
96
+ 'how-i-work': 'clipboard-list',
97
+ 'ai-prompts': 'chat-quote',
98
98
 
99
99
  // Product-hub internal
100
100
  'design-docs': 'file-text',
101
101
  'openframe-tenants': 'openframe',
102
- 'prospect-calls': 'phone',
102
+ 'prospect-calls': 'call',
103
103
 
104
104
  // Code intelligence
105
- 'code-rules': 'check-square',
106
- 'code-graph-repos': 'github',
105
+ 'code-rules': 'bracket-curly-check',
106
+ 'code-graph-repos': 'coding-branch',
107
107
  'code-graph-deployments': 'package',
108
- 'code-graph-files': 'file-text',
109
- 'code-symbols': 'box',
110
- 'code-duplicates': 'search',
111
- 'code-impact': 'activity',
112
- 'change-sets': 'coding-branch',
108
+ 'code-graph-files': 'file-code',
109
+ 'code-symbols': 'code-square',
110
+ 'code-duplicates': 'copy-01',
111
+ 'code-impact': 'coding-pull-request',
112
+ 'change-sets': 'coding-merge',
113
113
  };
114
114
 
115
115
  /** Lookup an icon name by RagTableConfig.id. Returns undefined when