@flamingo-stack/openframe-frontend-core 0.0.619 → 0.0.620-snapshot.20260913213846
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.
- package/dist/{chunk-EIFU6N5L.cjs → chunk-2BJONQDE.cjs} +29 -29
- package/dist/{chunk-EIFU6N5L.cjs.map → chunk-2BJONQDE.cjs.map} +1 -1
- package/dist/{chunk-S44BHDOI.js → chunk-43JQ3SJS.js} +3 -2
- package/dist/{chunk-S44BHDOI.js.map → chunk-43JQ3SJS.js.map} +1 -1
- package/dist/{chunk-RTC3H5RW.js → chunk-5QUBQ4WP.js} +4 -4
- package/dist/{chunk-U7MQS4CR.cjs → chunk-5Y2V24GT.cjs} +80 -80
- package/dist/{chunk-U7MQS4CR.cjs.map → chunk-5Y2V24GT.cjs.map} +1 -1
- package/dist/{chunk-I7RWVDN4.js → chunk-5YVZQVSR.js} +5 -5
- package/dist/{chunk-JBXNDB5U.js → chunk-62TUSJHG.js} +7 -7
- package/dist/{chunk-DXR23SLZ.cjs → chunk-7EV2UHWQ.cjs} +204 -199
- package/dist/chunk-7EV2UHWQ.cjs.map +1 -0
- package/dist/{chunk-SKRI6QJ5.js → chunk-A7TZZQGS.js} +2 -2
- package/dist/{chunk-QVOS4BPC.cjs → chunk-ADT6RYCG.cjs} +57 -57
- package/dist/{chunk-QVOS4BPC.cjs.map → chunk-ADT6RYCG.cjs.map} +1 -1
- package/dist/{chunk-LPGBA4UZ.js → chunk-ALHMMNAZ.js} +3 -3
- package/dist/{chunk-D4ARG53E.js → chunk-CFZUWKQF.js} +6 -6
- package/dist/{chunk-5DUTXG6P.js → chunk-CKL3UD5N.js} +3 -3
- package/dist/{chunk-AU2Q75HU.cjs → chunk-CLPPOP5T.cjs} +6 -6
- package/dist/{chunk-AU2Q75HU.cjs.map → chunk-CLPPOP5T.cjs.map} +1 -1
- package/dist/{chunk-EYKTKDRK.cjs → chunk-CS7MVDUF.cjs} +3 -2
- package/dist/chunk-CS7MVDUF.cjs.map +1 -0
- package/dist/{chunk-ZPJ6KYAW.js → chunk-EYFFIJEY.js} +3 -3
- package/dist/{chunk-JA2SIJ7T.js → chunk-F4GW2DPW.js} +4 -4
- package/dist/{chunk-GNWKLE7O.cjs → chunk-HC6FZJMM.cjs} +32 -32
- package/dist/{chunk-GNWKLE7O.cjs.map → chunk-HC6FZJMM.cjs.map} +1 -1
- package/dist/{chunk-GAPXVAS6.cjs → chunk-IP4OYYDY.cjs} +400 -368
- package/dist/chunk-IP4OYYDY.cjs.map +1 -0
- package/dist/{chunk-3Z5ZIKDX.js → chunk-IQNG52SU.js} +9 -4
- package/dist/chunk-IQNG52SU.js.map +1 -0
- package/dist/{chunk-UP2OB7RI.cjs → chunk-IZ5GI3FP.cjs} +11 -11
- package/dist/{chunk-UP2OB7RI.cjs.map → chunk-IZ5GI3FP.cjs.map} +1 -1
- package/dist/{chunk-YNA7ZCDS.cjs → chunk-KDZLAUHJ.cjs} +28 -28
- package/dist/{chunk-YNA7ZCDS.cjs.map → chunk-KDZLAUHJ.cjs.map} +1 -1
- package/dist/{chunk-4ZGUSO7M.cjs → chunk-KTYYH3JV.cjs} +5 -5
- package/dist/{chunk-4ZGUSO7M.cjs.map → chunk-KTYYH3JV.cjs.map} +1 -1
- package/dist/{chunk-3BNNYHP2.js → chunk-L4FR7YIS.js} +3 -3
- package/dist/{chunk-M4V2O2MT.cjs → chunk-ME4C6DYA.cjs} +10 -10
- package/dist/{chunk-M4V2O2MT.cjs.map → chunk-ME4C6DYA.cjs.map} +1 -1
- package/dist/{chunk-NOW7NGUH.cjs → chunk-MSEHEEF7.cjs} +15 -15
- package/dist/{chunk-NOW7NGUH.cjs.map → chunk-MSEHEEF7.cjs.map} +1 -1
- package/dist/{chunk-HPIRQWNK.js → chunk-NFITQGUP.js} +3 -3
- package/dist/{chunk-P3I5KY4A.cjs → chunk-O3P2INXM.cjs} +20 -20
- package/dist/{chunk-P3I5KY4A.cjs.map → chunk-O3P2INXM.cjs.map} +1 -1
- package/dist/{chunk-OD4JKGQG.js → chunk-OEXGPFM2.js} +6 -6
- package/dist/{chunk-J27HVNT2.js → chunk-OHJZD7QU.js} +3 -3
- package/dist/{chunk-UWPZT3FY.cjs → chunk-PDGVOZCD.cjs} +6 -6
- package/dist/{chunk-UWPZT3FY.cjs.map → chunk-PDGVOZCD.cjs.map} +1 -1
- package/dist/{chunk-XRWY5ETC.cjs → chunk-Q2NPL4FU.cjs} +22 -22
- package/dist/{chunk-XRWY5ETC.cjs.map → chunk-Q2NPL4FU.cjs.map} +1 -1
- package/dist/{chunk-KQDGZS3U.cjs → chunk-QCZMCOAD.cjs} +33 -33
- package/dist/{chunk-KQDGZS3U.cjs.map → chunk-QCZMCOAD.cjs.map} +1 -1
- package/dist/{chunk-HF4EZICZ.cjs → chunk-RGVXFAWM.cjs} +3 -3
- package/dist/{chunk-HF4EZICZ.cjs.map → chunk-RGVXFAWM.cjs.map} +1 -1
- package/dist/{chunk-7HWVD42H.js → chunk-TMGTVVE2.js} +2 -2
- package/dist/{chunk-65SWJSQX.js → chunk-VRUJPZ2C.js} +39 -7
- package/dist/chunk-VRUJPZ2C.js.map +1 -0
- package/dist/{chunk-MJRXGAXS.js → chunk-YEIX26DQ.js} +5 -5
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/entity-cards/dispatch.d.ts +6 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.d.ts +1 -1
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -3
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +4 -2
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/docs/index.js +7 -7
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +24 -24
- package/dist/components/help-center-pages/index.js +15 -15
- package/dist/components/index.cjs +55 -53
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +17 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/index.js +6 -6
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +6 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +5 -3
- package/dist/index.cjs +10 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/types/video-processing.d.ts +1 -1
- package/dist/types/video-processing.d.ts.map +1 -1
- package/dist/utils/index.cjs +8 -3
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +9 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/chat-card-label.test.tsx +24 -0
- package/src/components/chat/entity-cards/dispatch.tsx +40 -4
- package/src/components/chat/entity-cards/index.ts +1 -0
- package/src/components/chat/utils/icon-registry.ts +3 -0
- package/src/components/ui/accordion.tsx +4 -1
- package/src/types/video-processing.ts +2 -1
- package/src/utils/__tests__/list-url.test.ts +1 -0
- package/src/utils/list-url.ts +1 -0
- package/src/utils/source-icons.ts +3 -0
- package/dist/chunk-3Z5ZIKDX.js.map +0 -1
- package/dist/chunk-65SWJSQX.js.map +0 -1
- package/dist/chunk-DXR23SLZ.cjs.map +0 -1
- package/dist/chunk-EYKTKDRK.cjs.map +0 -1
- package/dist/chunk-GAPXVAS6.cjs.map +0 -1
- /package/dist/{chunk-RTC3H5RW.js.map → chunk-5QUBQ4WP.js.map} +0 -0
- /package/dist/{chunk-I7RWVDN4.js.map → chunk-5YVZQVSR.js.map} +0 -0
- /package/dist/{chunk-JBXNDB5U.js.map → chunk-62TUSJHG.js.map} +0 -0
- /package/dist/{chunk-SKRI6QJ5.js.map → chunk-A7TZZQGS.js.map} +0 -0
- /package/dist/{chunk-LPGBA4UZ.js.map → chunk-ALHMMNAZ.js.map} +0 -0
- /package/dist/{chunk-D4ARG53E.js.map → chunk-CFZUWKQF.js.map} +0 -0
- /package/dist/{chunk-5DUTXG6P.js.map → chunk-CKL3UD5N.js.map} +0 -0
- /package/dist/{chunk-ZPJ6KYAW.js.map → chunk-EYFFIJEY.js.map} +0 -0
- /package/dist/{chunk-JA2SIJ7T.js.map → chunk-F4GW2DPW.js.map} +0 -0
- /package/dist/{chunk-3BNNYHP2.js.map → chunk-L4FR7YIS.js.map} +0 -0
- /package/dist/{chunk-HPIRQWNK.js.map → chunk-NFITQGUP.js.map} +0 -0
- /package/dist/{chunk-OD4JKGQG.js.map → chunk-OEXGPFM2.js.map} +0 -0
- /package/dist/{chunk-J27HVNT2.js.map → chunk-OHJZD7QU.js.map} +0 -0
- /package/dist/{chunk-7HWVD42H.js.map → chunk-TMGTVVE2.js.map} +0 -0
- /package/dist/{chunk-MJRXGAXS.js.map → chunk-YEIX26DQ.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-url.d.ts","sourceRoot":"","sources":["../../src/utils/list-url.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAWH;;;;iEAIiE;AACjE,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAKtE;
|
|
1
|
+
{"version":3,"file":"list-url.d.ts","sourceRoot":"","sources":["../../src/utils/list-url.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAWH;;;;iEAIiE;AACjE,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAKtE;AAqED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,SAAK,GAAG,MAAM,GAAG,IAAI,CAa5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-icons.d.ts","sourceRoot":"","sources":["../../src/utils/source-icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"source-icons.d.ts","sourceRoot":"","sources":["../../src/utils/source-icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsDpD,CAAC;AAEF;;6DAE6D;AAC7D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGxF;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4DzD,CAAC;AAEF;;kEAEkE;AAClE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsDpE,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEjF"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { chatCardLabel } from '../components/chat/entity-cards/dispatch';
|
|
3
|
+
import { buildListUrl } from '../utils/list-url';
|
|
4
|
+
import { getSourceLabel, SOURCE_ICON_NAMES, DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID } from '../utils/source-icons';
|
|
5
|
+
|
|
6
|
+
describe('chatCardLabel', () => {
|
|
7
|
+
it('returns the registered label for a document type', () => {
|
|
8
|
+
expect(chatCardLabel('design_doc')).toBe('Design doc');
|
|
9
|
+
expect(chatCardLabel('prospect_call')).toBe('Prospect call');
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('returns undefined for an unregistered type', () => {
|
|
13
|
+
expect(chatCardLabel('not_a_real_type')).toBeUndefined();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
describe('prospect_call source wiring', () => {
|
|
18
|
+
it('maps the document type to its table id, label, icon and card route', () => {
|
|
19
|
+
expect(DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID.prospect_call).toBe('prospect-calls');
|
|
20
|
+
expect(getSourceLabel('prospect-calls')).toBe('Prospect calls');
|
|
21
|
+
expect(SOURCE_ICON_NAMES['prospect-calls']).toBe('phone');
|
|
22
|
+
expect(buildListUrl('prospect_call', ['1', '2'])).toBe('/api/prospect-calls?ids=1,2');
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -53,6 +53,7 @@ import { PresentationLineIcon } from '../../icons-v2-generated/charts/presentati
|
|
|
53
53
|
import { CodeIcon } from '../../icons-v2-generated/coding/code-icon';
|
|
54
54
|
import { CodingCommitIcon } from '../../icons-v2-generated/coding/coding-commit-icon';
|
|
55
55
|
import { CodingPullRequestIcon } from '../../icons-v2-generated/coding/coding-pull-request-icon';
|
|
56
|
+
import { CallIcon } from '../../icons-v2-generated/communication/call-icon';
|
|
56
57
|
import { ChatQuoteIcon } from '../../icons-v2-generated/communication/chat-quote-icon';
|
|
57
58
|
import { CalendarIcon } from '../../icons-v2-generated/date-and-time/calendar-icon';
|
|
58
59
|
import { ClipboardListIcon } from '../../icons-v2-generated/documents/clipboard-list-icon';
|
|
@@ -1346,20 +1347,46 @@ const GITHUB_CARD_CONFIGS: Record<string, GitHubCardConfig> = {
|
|
|
1346
1347
|
interface GlyphCardConfig {
|
|
1347
1348
|
label: string;
|
|
1348
1349
|
icon: () => React.ReactNode;
|
|
1350
|
+
/**
|
|
1351
|
+
* Video-bearing ref types: render the media card (cover from the ref's
|
|
1352
|
+
* `metadata.videoPoster`, else the host's OG placeholder; the type label as the
|
|
1353
|
+
* status pill; the glyph only when neither cover exists) instead of the plain
|
|
1354
|
+
* glyph card. The player itself is promoted below the card by
|
|
1355
|
+
* `ChatCardLoader` from the same metadata, exactly as for customer interviews.
|
|
1356
|
+
*/
|
|
1357
|
+
media?: boolean;
|
|
1349
1358
|
}
|
|
1350
1359
|
/** Product-hub internal objects hydrated by their per-object card routes
|
|
1351
|
-
* (`/api/design-docs`, `/api/openframe-tenants` — ChatRef-shaped items,
|
|
1360
|
+
* (`/api/design-docs`, `/api/openframe-tenants`, `/api/prospect-calls` — ChatRef-shaped items,
|
|
1352
1361
|
* same preset as github / slack). Adding one = one line here + the
|
|
1353
1362
|
* `list-url.ts` builder + the `source-icons.ts` label / icon / type entries. */
|
|
1354
1363
|
const REF_GLYPH_CARD_CONFIGS: Record<string, GlyphCardConfig> = {
|
|
1355
1364
|
design_doc: { label: 'Design doc', icon: () => <FileContentIcon size={24} /> },
|
|
1356
1365
|
openframe_tenant: { label: 'OpenFrame tenant', icon: () => <BuildingsIcon size={24} /> },
|
|
1366
|
+
prospect_call: { label: 'Prospect call', icon: () => <CallIcon size={24} />, media: true },
|
|
1357
1367
|
};
|
|
1358
1368
|
function refGlyphRegistryEntries(): Record<string, ChatCardRegistryEntry> {
|
|
1359
1369
|
return registryEntries(REF_GLYPH_CARD_CONFIGS, (cfg, docType) =>
|
|
1360
|
-
refHydratedEntry(docType, cfg.label, (displayRef, opts) =>
|
|
1361
|
-
|
|
1362
|
-
|
|
1370
|
+
refHydratedEntry(docType, cfg.label, (displayRef, opts) =>
|
|
1371
|
+
cfg.media ? (
|
|
1372
|
+
<EntityMingoCard
|
|
1373
|
+
title={displayRef.title}
|
|
1374
|
+
description={displayRef.preview ?? undefined}
|
|
1375
|
+
cover={entityCover(
|
|
1376
|
+
displayRef.metadata?.videoPoster,
|
|
1377
|
+
opts.extras?.buildOgPlaceholderUrl?.(displayRef.title ?? '') ?? null,
|
|
1378
|
+
)}
|
|
1379
|
+
fallbackIcon={cfg.icon()}
|
|
1380
|
+
status={{ label: cfg.label, variant: 'grey' }}
|
|
1381
|
+
chatRef={displayRef}
|
|
1382
|
+
isNewTab={opts.isNewTab}
|
|
1383
|
+
discuss={opts.discuss}
|
|
1384
|
+
menuAriaLabel={`${cfg.label} actions`}
|
|
1385
|
+
/>
|
|
1386
|
+
) : (
|
|
1387
|
+
<GlyphChatCard chatRef={displayRef} icon={cfg.icon()} isNewTab={opts.isNewTab} discuss={opts.discuss} />
|
|
1388
|
+
),
|
|
1389
|
+
),
|
|
1363
1390
|
);
|
|
1364
1391
|
}
|
|
1365
1392
|
|
|
@@ -1678,6 +1705,15 @@ const CHAT_CARD_REGISTRY: Record<string, ChatCardRegistryEntry> = {
|
|
|
1678
1705
|
...roadmapRegistryEntries(),
|
|
1679
1706
|
};
|
|
1680
1707
|
|
|
1708
|
+
/**
|
|
1709
|
+
* The human label a chat card shows for a document type, or `undefined` for an
|
|
1710
|
+
* unregistered type. `CHAT_CARD_REGISTRY` stays module-private; this accessor is
|
|
1711
|
+
* how a host pins its own label constants to the lib's by value in a test.
|
|
1712
|
+
*/
|
|
1713
|
+
export function chatCardLabel(docType: string): string | undefined {
|
|
1714
|
+
return CHAT_CARD_REGISTRY[docType]?.label;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1681
1717
|
// =============================================================================
|
|
1682
1718
|
// ChatCardNavWrap — click-capture interceptor that routes inner-anchor
|
|
1683
1719
|
// clicks through the chat runtime's nav handler.
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
Newspaper,
|
|
50
50
|
Package,
|
|
51
51
|
PenSquare,
|
|
52
|
+
Phone,
|
|
52
53
|
Rocket,
|
|
53
54
|
Search,
|
|
54
55
|
Send,
|
|
@@ -138,6 +139,7 @@ export const ICON_REGISTRY: Record<string, IconComponent> = {
|
|
|
138
139
|
newspaper: Newspaper,
|
|
139
140
|
package: Package,
|
|
140
141
|
'pen-square': PenSquare,
|
|
142
|
+
phone: Phone,
|
|
141
143
|
rocket: Rocket,
|
|
142
144
|
search: Search,
|
|
143
145
|
send: Send,
|
|
@@ -193,6 +195,7 @@ const PASCAL_TO_KEBAB_ALIASES: Record<string, string> = {
|
|
|
193
195
|
Newspaper: 'newspaper',
|
|
194
196
|
Package: 'package',
|
|
195
197
|
PenSquare: 'pen-square',
|
|
198
|
+
Phone: 'phone',
|
|
196
199
|
Rocket: 'rocket',
|
|
197
200
|
Search: 'search',
|
|
198
201
|
Send: 'send',
|
|
@@ -12,7 +12,10 @@ const AccordionItem = forwardRef<
|
|
|
12
12
|
ElementRef<typeof AccordionPrimitive.Item>,
|
|
13
13
|
ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
|
|
14
14
|
>(({ className, ...props }, ref) => (
|
|
15
|
-
|
|
15
|
+
// The divider carries the ODS border token. A bare `border-b` takes Tailwind's
|
|
16
|
+
// default border colour (gray-200), which reads as a bright white rule on the
|
|
17
|
+
// dark theme; that is why most hosts had to pass `border-none` to hide it.
|
|
18
|
+
<AccordionPrimitive.Item ref={ref} className={cn('border-b border-ods-border', className)} {...props} />
|
|
16
19
|
));
|
|
17
20
|
AccordionItem.displayName = 'AccordionItem';
|
|
18
21
|
|
|
@@ -55,6 +55,7 @@ const BASELINE: Record<string, string> = {
|
|
|
55
55
|
ai_prompt: '/api/prompts?ids=a,b&limit=2',
|
|
56
56
|
design_doc: '/api/design-docs?ids=a,b',
|
|
57
57
|
openframe_tenant: '/api/openframe-tenants?ids=a,b',
|
|
58
|
+
prospect_call: '/api/prospect-calls?ids=a,b',
|
|
58
59
|
};
|
|
59
60
|
|
|
60
61
|
describe('buildListUrl — byte parity with the hub mappers', () => {
|
package/src/utils/list-url.ts
CHANGED
|
@@ -113,6 +113,7 @@ const BUILDERS: Record<string, (ids: string[], base: string) => string> = {
|
|
|
113
113
|
// (ChatRef-shaped items, `handleEntityCardList`), like github / slack.
|
|
114
114
|
design_doc: (ids, b) => `${b}/api/design-docs?ids=${ids.join(',')}`,
|
|
115
115
|
openframe_tenant: (ids, b) => `${b}/api/openframe-tenants?ids=${ids.join(',')}`,
|
|
116
|
+
prospect_call: (ids, b) => `${b}/api/prospect-calls?ids=${ids.join(',')}`,
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
/**
|
|
@@ -78,6 +78,7 @@ export const SOURCE_ICON_NAMES: Record<string, string> = {
|
|
|
78
78
|
// Product-hub internal
|
|
79
79
|
'design-docs': 'file-text',
|
|
80
80
|
'openframe-tenants': 'globe',
|
|
81
|
+
'prospect-calls': 'phone',
|
|
81
82
|
};
|
|
82
83
|
|
|
83
84
|
/** Lookup an icon name by RagTableConfig.id. Returns undefined when
|
|
@@ -159,6 +160,7 @@ export const SOURCE_LABELS_BY_TABLE: Record<string, string> = {
|
|
|
159
160
|
// Product-hub internal
|
|
160
161
|
'design-docs': 'Design Docs',
|
|
161
162
|
'openframe-tenants': 'OpenFrame Tenants',
|
|
163
|
+
'prospect-calls': 'Prospect calls',
|
|
162
164
|
};
|
|
163
165
|
|
|
164
166
|
/** Lookup a human-readable label by RagTableConfig.id. Falls back
|
|
@@ -242,6 +244,7 @@ export const DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID: Record<string, string> = {
|
|
|
242
244
|
// Product-hub internal
|
|
243
245
|
design_doc: 'design-docs',
|
|
244
246
|
openframe_tenant: 'openframe-tenants',
|
|
247
|
+
prospect_call: 'prospect-calls',
|
|
245
248
|
};
|
|
246
249
|
|
|
247
250
|
/**
|