@kortix/ui 0.15.8 → 0.15.10
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/_vendor/kortix-shared.js +75 -1
- package/dist/_vendor/shared/index.d.ts +1 -0
- package/dist/_vendor/shared/session/attachment-tile.d.ts +32 -0
- package/dist/_vendor/shared/session/stop-refusal.d.ts +15 -0
- package/dist/_vendor/shared/session/tool-row-text.d.ts +58 -0
- package/dist/_vendor/shared/session-delivery.d.ts +2 -0
- package/dist/access/access/access-dialog-share.js +12 -6
- package/dist/access/access/share-selection.d.ts +9 -0
- package/dist/access/access/share-selection.js +64 -0
- package/dist/customize/connectors/connector-identity.js +3 -3
- package/dist/customize/connectors/connectors-page.js +1 -1
- package/dist/customize/connectors/detail/app-page.js +2 -2
- package/dist/customize/connectors/detail/connector-accounts.d.ts +3 -1
- package/dist/customize/connectors/detail/connector-accounts.js +2 -2
- package/dist/customize/connectors/detail/connector-notice-view.d.ts +4 -0
- package/dist/customize/connectors/detail/connector-notice-view.js +4 -0
- package/dist/customize/connectors/detail/connector-notice.d.ts +31 -4
- package/dist/customize/connectors/detail/connector-notice.js +23 -4
- package/dist/customize/connectors/detail/connector-page.js +35 -10
- package/dist/customize/connectors/detail/connector-status.d.ts +12 -1
- package/dist/customize/connectors/detail/connector-status.js +11 -0
- package/dist/customize/connectors/detail/status-badge.d.ts +3 -3
- package/dist/customize/connectors/detail/status-badge.js +2 -1
- package/dist/customize/connectors/detail/use-connector-detail.js +10 -2
- package/dist/customize/connectors/detail/use-mcp-oauth-sign-in.d.ts +13 -0
- package/dist/customize/connectors/detail/use-mcp-oauth-sign-in.js +29 -0
- package/dist/customize/connectors/install/use-install.js +1 -1
- package/dist/customize/providers/provider-accordion.js +9 -8
- package/dist/customize/providers/provider-connect.d.ts +3 -3
- package/dist/customize/providers/provider-connect.js +10 -16
- package/dist/customize/providers/provider-sheet.js +13 -8
- package/dist/customize/sections/component/email-connect-form.js +4 -2
- package/dist/customize/sections/connector-connection-form.d.ts +0 -1
- package/dist/customize/sections/connector-connection-form.js +0 -9
- package/dist/customize/sections/connectors-view.d.ts +4 -1
- package/dist/customize/sections/connectors-view.js +42 -7
- package/dist/customize/sections/view/account-secret-resources-panel.d.ts +15 -0
- package/dist/customize/sections/view/account-secret-resources-panel.js +44 -5
- package/dist/customize/sections/view/review-center-connected.js +7 -3
- package/dist/customize/sections/view/secret-delivery.d.ts +9 -2
- package/dist/customize/sections/view/secret-delivery.js +14 -4
- package/dist/customize/sections/view/secrets-view.js +21 -5
- package/dist/customize/settings/tabs/workspace-keys.js +53 -11
- package/dist/customize/shared/feature-gate-screen.js +1 -1
- package/dist/customize/triggers/schedule/event-account-picker.js +1 -1
- package/dist/customize/triggers/schedule/schedule-builder.js +1 -1
- package/dist/customize/triggers/schedule/schedule-copy.js +4 -0
- package/dist/customize/triggers/schedule/schedule-detail-sheet.js +14 -3
- package/dist/customize/triggers/schedule/then-fields.d.ts +3 -1
- package/dist/customize/triggers/schedule/then-fields.js +8 -4
- package/dist/customize/triggers/schedule/trigger-composer.js +1 -1
- package/dist/customize/triggers/schedule/trigger-list.d.ts +3 -1
- package/dist/customize/triggers/schedule/trigger-list.js +18 -2
- package/dist/customize/triggers/schedule/trigger-runs-logic.js +4 -2
- package/dist/customize/triggers/schedule/trigger-runs-panel.js +4 -1
- package/dist/customize/triggers/schedule/use-event-app-connect.js +2 -1
- package/dist/files/renderers/pptx-renderer.js +5 -20
- package/dist/files/renderers/presentation/FullScreenPresentationViewer.d.ts +3 -2
- package/dist/files/renderers/presentation/FullScreenPresentationViewer.js +23 -304
- package/dist/files/renderers/presentation/presentation-export-menu.d.ts +14 -0
- package/dist/files/renderers/presentation/presentation-export-menu.js +44 -0
- package/dist/files/renderers/presentation/presentation-utils.d.ts +1 -0
- package/dist/files/renderers/presentation/presentation-utils.js +4 -0
- package/dist/files/renderers/presentation/slide-iframe.d.ts +23 -0
- package/dist/files/renderers/presentation/slide-iframe.js +61 -0
- package/dist/files/renderers/presentation/use-presentation-metadata.d.ts +39 -0
- package/dist/files/renderers/presentation/use-presentation-metadata.js +137 -0
- package/dist/files/renderers/presentation/use-slide-navigation.d.ts +17 -0
- package/dist/files/renderers/presentation/use-slide-navigation.js +82 -0
- package/dist/files/renderers/shared/use-stage-fit-scale.d.ts +19 -0
- package/dist/files/renderers/shared/use-stage-fit-scale.js +41 -0
- package/dist/files/renderers/show-content-renderer.js +16 -11
- package/dist/files/renderers/xlsx/xlsx-renderer.d.ts +4 -13
- package/dist/files/renderers/xlsx/xlsx-renderer.js +6 -63
- package/dist/files/renderers/xlsx/xlsx-viewer.d.ts +4 -2
- package/dist/files/renderers/xlsx/xlsx-viewer.js +28 -34
- package/dist/files/viewer/file-content-renderer.js +1 -4
- package/dist/files/viewer/use-file-content-state.js +10 -9
- package/dist/i18n/en.d.ts +55 -7
- package/dist/i18n/en.js +59 -11
- package/dist/internal/billing/compute-pricing.d.ts +7 -1
- package/dist/internal/billing/compute-pricing.js +7 -1
- package/dist/internal/chrome/use-chrome-offered.d.ts +2 -1
- package/dist/internal/chrome/use-chrome-offered.js +4 -2
- package/dist/internal/hooks/connectors/invalidate-connections.d.ts +10 -0
- package/dist/internal/hooks/connectors/invalidate-connections.js +18 -0
- package/dist/internal/hooks/connectors/use-finish-sign-in.d.ts +13 -0
- package/dist/internal/hooks/connectors/use-finish-sign-in.js +33 -0
- package/dist/internal/hooks/connectors/use-pipedream-connect-member.js +6 -1
- package/dist/internal/hooks/connectors/use-pipedream-connect-project.js +6 -1
- package/dist/internal/hooks/projects/use-new-project-session.d.ts +2 -0
- package/dist/internal/hooks/projects/use-new-project-session.js +4 -1
- package/dist/internal/hooks/use-review-session-summary.d.ts +1 -1
- package/dist/internal/hooks/use-review-session-summary.js +1 -1
- package/dist/internal/lib/browser-noise/rules/injected-scripts.js +2 -2
- package/dist/internal/lib/error-handler.js +33 -0
- package/dist/internal/lib/trigger-clock.d.ts +7 -2
- package/dist/internal/lib/trigger-clock.js +17 -3
- package/dist/internal/notifications/notification-inbox.d.ts +4 -10
- package/dist/internal/notifications/notification-inbox.js +8 -9
- package/dist/internal/stores/connector-gate-store.d.ts +3 -1
- package/dist/internal/stores/connector-gate-store.js +13 -3
- package/dist/internal/stores/upgrade-dialog-store.d.ts +4 -0
- package/dist/internal/stores/upgrade-dialog-store.js +2 -0
- package/dist/lib/routes.d.ts +4 -11
- package/dist/lib/routes.js +3 -5
- package/dist/lib/z-stack.d.ts +5 -1
- package/dist/lib/z-stack.js +12 -2
- package/dist/markdown/unified-markdown-utils.d.ts +7 -0
- package/dist/markdown/unified-markdown-utils.js +19 -0
- package/dist/markdown/unified-markdown.js +16 -3
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/dialog.js +3 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/modal.js +1 -1
- package/dist/primitives/preview-image.js +1 -1
- package/dist/primitives/sheet.js +1 -1
- package/dist/session/composer/ComposerCard.js +4 -2
- package/dist/session/composer/attachment-tile.d.ts +2 -26
- package/dist/session/composer/attachment-tile.js +3 -47
- package/dist/session/composer/composer-chat-input.d.ts +2 -1
- package/dist/session/composer/composer-chat-input.js +2 -2
- package/dist/session/composer/composer.d.ts +2 -0
- package/dist/session/composer/composer.js +5 -8
- package/dist/session/composer/draft/home-composer-focus-handoff.d.ts +7 -0
- package/dist/session/composer/draft/home-composer-focus-handoff.js +94 -0
- package/dist/session/composer/draft/use-composer-draft.d.ts +3 -1
- package/dist/session/composer/draft/use-composer-draft.js +22 -2
- package/dist/session/composer/editor/composer-editor.d.ts +4 -2
- package/dist/session/composer/editor/composer-editor.js +7 -3
- package/dist/session/composer/hooks/use-composer-focus.js +4 -2
- package/dist/session/index.d.ts +1 -0
- package/dist/session/index.js +1 -0
- package/dist/session/models/chatgpt-connection-button.js +5 -9
- package/dist/session/models/model-connection-gate.d.ts +2 -1
- package/dist/session/models/model-connection-gate.js +21 -5
- package/dist/session/models/model-connection-layout.d.ts +2 -0
- package/dist/session/models/model-connection-layout.js +4 -0
- package/dist/session/models/model-picker-panel.js +6 -2
- package/dist/session/models/model-selector.d.ts +1 -1
- package/dist/session/models/model-selector.js +9 -6
- package/dist/session/models/provider-key-action.d.ts +10 -0
- package/dist/session/models/provider-key-action.js +35 -0
- package/dist/session/models/provider-key-slot.d.ts +9 -0
- package/dist/session/models/provider-key-slot.js +19 -0
- package/dist/session/models/subscription-offer.d.ts +4 -0
- package/dist/session/models/subscription-offer.js +11 -3
- package/dist/session/overrides/session-overrides-toolbar.js +2 -4
- package/dist/session/prompts/ask-deck.d.ts +5 -1
- package/dist/session/prompts/ask-deck.js +15 -3
- package/dist/session/prompts/question-labels.d.ts +16 -0
- package/dist/session/prompts/question-labels.js +34 -0
- package/dist/session/prompts/question-prompt.js +6 -6
- package/dist/session/prompts/session-connect-prompt.d.ts +40 -0
- package/dist/session/prompts/session-connect-prompt.js +126 -0
- package/dist/session/status/provisioning-failure.d.ts +23 -2
- package/dist/session/status/provisioning-failure.js +53 -3
- package/dist/session/status/session-error-banner.d.ts +1 -1
- package/dist/session/status/session-error-banner.js +12 -4
- package/dist/session/status/stop-refusal.d.ts +6 -12
- package/dist/session/status/stop-refusal.js +6 -19
- package/dist/session/thread/agent-run-props.d.ts +19 -0
- package/dist/session/thread/agent-run-props.js +54 -0
- package/dist/session/thread/session-chat.js +34 -6
- package/dist/session/thread/transcript.d.ts +17 -1
- package/dist/session/thread/transcript.js +104 -16
- package/dist/session/tool/tools/bash-tool.d.ts +3 -52
- package/dist/session/tool/tools/bash-tool.js +3 -86
- package/dist/session/turn/answer-streaming.d.ts +21 -0
- package/dist/session/turn/answer-streaming.js +34 -0
- package/dist/session/turn/queued-prompt-bubbles.d.ts +5 -0
- package/dist/session/turn/queued-prompt-bubbles.js +12 -0
- package/dist/session/turn/turn-work-accordion.d.ts +3 -1
- package/dist/session/turn/turn-work-accordion.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +55 -7
- package/dist/workspace/home/first-chat.d.ts +7 -1
- package/dist/workspace/home/first-chat.js +12 -5
- package/dist/workspace/inbox/workspace-inbox.d.ts +6 -16
- package/dist/workspace/inbox/workspace-inbox.js +9 -51
- package/dist/workspace/layout/project-home.js +5 -11
- package/dist/workspace/layout/use-project-home-send.d.ts +2 -0
- package/dist/workspace/layout/use-project-home-send.js +29 -15
- package/dist/workspace/new/advanced-fields.d.ts +4 -1
- package/dist/workspace/new/advanced-fields.js +2 -2
- package/dist/workspace/new/workspace-name.d.ts +9 -0
- package/dist/workspace/new/workspace-name.js +20 -0
- package/dist/workspace/projects/session-starter.d.ts +6 -4
- package/dist/workspace/projects/session-starter.js +8 -14
- package/dist/workspace/review/review-center.d.ts +6 -2
- package/dist/workspace/review/review-center.js +45 -25
- package/dist/workspace/sidebar/workspace-menu-model.d.ts +3 -5
- package/dist/workspace/sidebar/workspace-menu-model.js +1 -1
- package/package.json +3 -7
- package/skills/kortix-ui/references/modules.md +1 -1
- package/dist/customize/connectors/invalidate-connections.d.ts +0 -2
- package/dist/customize/connectors/invalidate-connections.js +0 -4
- package/dist/internal/notifications/use-inbox-summary.d.ts +0 -17
- package/dist/internal/notifications/use-inbox-summary.js +0 -28
|
@@ -228,7 +228,7 @@ function useContainerWide(ref, min) {
|
|
|
228
228
|
}, [ref, min]);
|
|
229
229
|
return wide;
|
|
230
230
|
}
|
|
231
|
-
export function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChange, loadMore, onAct, onBulkAct, onOpenSession, onRecoverChange, recoveringCrId, onRefresh, isLoading, isFetching, isFetched, isError, sessionLabels, verdictAllowed = EVERY_VERDICT, needsYouDeck, } = {}) {
|
|
231
|
+
export function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChange, loadMore, onAct, onBulkAct, onOpenSession, onRecoverChange, recoveringCrId, onRefresh, isLoading, isFetching, isFetched, isError, sessionLabels, verdictAllowed = EVERY_VERDICT, needsYouDeck, sessionAsks = [], onSelectAsk, selectedAskId, } = {}) {
|
|
232
232
|
const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
|
|
233
233
|
const tBulk = useTranslations('hardcodedUi.reviewBulk');
|
|
234
234
|
const tSidebar = useTranslations('sidebar');
|
|
@@ -324,17 +324,28 @@ export function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChan
|
|
|
324
324
|
// the visible list when scoped to one session.
|
|
325
325
|
const seg = items.filter((i) => segmentForStatus(i.status) === segment &&
|
|
326
326
|
(sessionFilter === 'all' || (i.sessionId ?? '') === sessionFilter));
|
|
327
|
-
const
|
|
327
|
+
const askCount = segment === 'needs_you'
|
|
328
|
+
? sessionAsks.filter((ask) => sessionFilter === 'all' || ask.surface_session_id === sessionFilter).length
|
|
329
|
+
: 0;
|
|
330
|
+
const c = { all: seg.length + askCount };
|
|
328
331
|
for (const i of seg)
|
|
329
332
|
c[i.kind] = (c[i.kind] ?? 0) + 1;
|
|
330
333
|
return c;
|
|
331
|
-
}, [items, segment, sessionFilter]);
|
|
334
|
+
}, [items, segment, sessionFilter, sessionAsks]);
|
|
332
335
|
// Sessions available to filter by = those present in the CURRENT segment (so
|
|
333
336
|
// the dropdown only offers sessions you can actually see here).
|
|
334
337
|
const sessionOpts = useMemo(() => {
|
|
335
338
|
const seg = items.filter((i) => segmentForStatus(i.status) === segment);
|
|
336
|
-
|
|
337
|
-
|
|
339
|
+
const options = sessionOptions(seg, labelFor);
|
|
340
|
+
if (segment === 'needs_you') {
|
|
341
|
+
for (const ask of sessionAsks) {
|
|
342
|
+
if (!options.some((option) => option.sessionId === ask.surface_session_id)) {
|
|
343
|
+
options.push({ sessionId: ask.surface_session_id, label: ask.session_title ?? labelFor(ask.surface_session_id) ?? `Session ${ask.surface_session_id.slice(0, 8)}` });
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return options;
|
|
348
|
+
}, [items, segment, labelFor, sessionAsks]);
|
|
338
349
|
// The grouped view: buckets of the currently-visible items, keyed by session.
|
|
339
350
|
const groups = useMemo(() => groupBySession(visible, labelFor), [visible, labelFor]);
|
|
340
351
|
// Keyboard nav + focus highlight stay keyed to the flat `visible` order even in
|
|
@@ -881,28 +892,34 @@ export function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChan
|
|
|
881
892
|
setGrouped(false);
|
|
882
893
|
};
|
|
883
894
|
const back = () => setSelectedId(null);
|
|
895
|
+
const matchingAsksFor = (session) => segment === 'needs_you' && kindFilter === 'all'
|
|
896
|
+
? sessionAsks.filter((ask) => (session === 'all' || ask.surface_session_id === session) &&
|
|
897
|
+
`${ask.title} ${ask.session_title ?? ''}`.toLowerCase().includes(query.toLowerCase()))
|
|
898
|
+
: [];
|
|
899
|
+
const visibleAsks = matchingAsksFor(sessionFilter);
|
|
884
900
|
const listBody = isError && items.length === 0 ? (_jsx(ErrorState, { size: "sm", title: tI18nComplete.raw('text23686ff6ba91'), description: tI18nComplete.raw('text481859b689b0'), action: _jsxs(Button, { variant: "outline", size: "sm", onClick: onRefresh, disabled: isFetching, children: [isFetching ? _jsx(Loading, { className: "size-3.5 shrink-0" }) : null, tI18nComplete.raw('text942087cc2d41')] }) })) : isLoading && items.length === 0 ? (_jsx(ListSkeleton, {})) : visible.length === 0 && loadMore ? (
|
|
885
901
|
// Nothing on the pages read so far matches, and more pages exist:
|
|
886
902
|
// offer them, never the empty state (KRTX-1727).
|
|
887
|
-
_jsx("div", { className: "pt-6", children: loadMoreButton })) : visible.length === 0 &&
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
//
|
|
896
|
-
|
|
903
|
+
_jsx("div", { className: "pt-6", children: loadMoreButton })) : visible.length === 0 && wide && visibleAsks.length > 0 ? null
|
|
904
|
+
: visible.length === 0 && segment === 'needs_you' && needsYouDeck && !query && !wide ? (
|
|
905
|
+
// Narrow inbox: the deck above owns the Needs you empty state; an empty
|
|
906
|
+
// list under open asks must not say "all caught up". Once the deck
|
|
907
|
+
// draws nothing (`peer-empty`), it does.
|
|
908
|
+
_jsx("div", { className: "hidden peer-empty:block", children: _jsx(EmptyState, { icon: CheckCircleSolid, size: "sm", title: tI18nComplete.raw('text2f485b9971df'), description: tI18nComplete.raw('text67735374cc20') }) })) : visible.length === 0 ? (_jsx(EmptyState, { icon: CheckCircleSolid, size: "sm", title: query
|
|
909
|
+
? tI18nComplete.raw('text2df01a03ff43')
|
|
910
|
+
: segment === 'needs_you' && needsYouDeck
|
|
911
|
+
? // The asks deck beside the list still waits on you: not "all
|
|
912
|
+
// caught up", only no review items.
|
|
913
|
+
tI18nComplete.raw('textf4c7f41c12d6')
|
|
914
|
+
: segment === 'needs_you'
|
|
915
|
+
? tI18nComplete.raw('text2f485b9971df')
|
|
916
|
+
: tI18nComplete.raw('textf4c7f41c12d6'), description: query
|
|
917
|
+
? tI18nComplete.raw('text2e6d79de50dc')
|
|
897
918
|
: segment === 'needs_you'
|
|
898
|
-
? tI18nComplete.raw('
|
|
899
|
-
:
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
? tI18nComplete.raw('text67735374cc20')
|
|
903
|
-
: segment === 'waiting'
|
|
904
|
-
? tI18nComplete.raw('text2c192433a710')
|
|
905
|
-
: tI18nComplete.raw('text6a00736dae3c') })) : grouped ? (_jsx("div", { ...listProps, className: "space-y-4", children: groups.map((g) => (_jsxs("section", { className: "space-y-1", children: [_jsxs("div", { className: "flex h-7 items-center gap-2 px-2.5", children: [_jsx("h2", { className: "text-muted-foreground truncate text-xs font-medium", children: g.label }), _jsx(CountBadge, { count: g.items.length }), g.sessionId && onOpenSession && (_jsx("button", { type: "button", className: "text-muted-foreground hover:text-foreground duration-fast ml-auto shrink-0 text-xs transition-colors", onClick: () => onOpenSession(g.sessionId), children: tI18nComplete.raw('textb205bb47f81a') }))] }), _jsx("ul", { ...listboxProps, className: LIST_CLASS, children: g.items.map((item) => renderRow(item, visibleIndexById.get(item.id) ?? 0, true)) })] }, g.sessionId ?? '__none__'))) })) : (_jsx("ul", { ...listProps, ...listboxProps, className: LIST_CLASS, children: visible.map((item, idx) => renderRow(item, idx, false)) }));
|
|
919
|
+
? tI18nComplete.raw('text67735374cc20')
|
|
920
|
+
: segment === 'waiting'
|
|
921
|
+
? tI18nComplete.raw('text2c192433a710')
|
|
922
|
+
: tI18nComplete.raw('text6a00736dae3c') })) : grouped ? (_jsx("div", { ...listProps, className: "space-y-4", children: groups.map((g) => (_jsxs("section", { className: "space-y-1", children: [_jsxs("div", { className: "flex h-7 items-center gap-2 px-2.5", children: [_jsx("h2", { className: "text-muted-foreground truncate text-xs font-medium", children: g.label }), _jsx(CountBadge, { count: g.items.length }), g.sessionId && onOpenSession && (_jsx("button", { type: "button", className: "text-muted-foreground hover:text-foreground duration-fast ml-auto shrink-0 text-xs transition-colors", onClick: () => onOpenSession(g.sessionId), children: tI18nComplete.raw('textb205bb47f81a') }))] }), _jsx("ul", { ...listboxProps, className: LIST_CLASS, children: g.items.map((item) => renderRow(item, visibleIndexById.get(item.id) ?? 0, true)) })] }, g.sessionId ?? '__none__'))) })) : (_jsx("ul", { ...listProps, ...listboxProps, className: LIST_CLASS, children: visible.map((item, idx) => renderRow(item, idx, false)) }));
|
|
906
923
|
/** Nothing open: a quiet prompt to pick a row. */
|
|
907
924
|
const paneEmpty = (_jsx("div", { className: "flex min-h-full flex-1 items-center justify-center px-6 py-8", children: _jsx(EmptyState, { media: _jsx(EmptyArt, { icon: Tray }), size: "sm", title: tPane('emptyTitle'), description: tPane('emptyDescription') }) }));
|
|
908
925
|
// The detail pane: the open item, else (Needs you, wide) what the agents
|
|
@@ -941,7 +958,7 @@ export function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChan
|
|
|
941
958
|
}, children: _jsx(Search, { className: "size-4" }) }) }), _jsxs(DropdownMenu, { children: [_jsx(Hint, { label: tI18nComplete.raw('text638e249f4a15'), children: _jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: filtered ? 'secondary' : 'ghost', size: "icon-sm", "aria-label": tI18nComplete.raw('text638e249f4a15'), className: cn(!filtered && 'text-muted-foreground'), children: _jsx(FunnelSimple, { className: "size-4" }) }) }) }), _jsxs(DropdownMenuContent, { align: "end", className: "w-56", children: [_jsxs(DropdownMenuSub, { children: [_jsxs(DropdownMenuSubTrigger, { children: [_jsx(Shapes, {}), tI18nComplete.raw('textbaaddf70fb5d')] }), _jsx(DropdownMenuSubContent, { className: "w-52", children: _jsx(DropdownMenuRadioGroup, { value: kindFilter, onValueChange: (v) => setKindFilter(v), children: kindFilters.map((f) => {
|
|
942
959
|
const Glyph = f.value === 'all' ? Shapes : ROW_TILE[f.value].icon;
|
|
943
960
|
return (_jsxs(DropdownMenuRadioItem, { value: f.value, side: "left", children: [_jsx(Glyph, { className: "text-muted-foreground size-4 shrink-0" }), f.label, (kindCounts[f.value] ?? 0) > 0 && (_jsx(CountBadge, { count: kindCounts[f.value] ?? 0, className: "ml-auto" }))] }, f.value));
|
|
944
|
-
}) }) })] }), sessionOpts.length > 0 && (_jsxs(DropdownMenuSub, { children: [_jsxs(DropdownMenuSubTrigger, { children: [_jsx(Chats, {}), tI18nComplete.raw('text6959b4159575')] }), _jsx(DropdownMenuSubContent, { className: "max-h-72 w-64 overflow-y-auto", children: _jsxs(DropdownMenuRadioGroup, { value: sessionFilter, onValueChange: setSessionFilter, children: [_jsxs(DropdownMenuRadioItem, { value: "all", side: "left", children: [tI18nComplete.raw('text78648d4d6649'), _jsx(CountBadge, { count: filterItems(items, segment, kindFilter, query, 'all').length, className: "ml-auto" })] }), sessionOpts.map((s) => (_jsxs(DropdownMenuRadioItem, { value: s.sessionId, side: "left", children: [_jsx("span", { className: "truncate", children: s.label }), _jsx(CountBadge, { count: filterItems(items, segment, kindFilter, query, s.sessionId).length, className: "ml-auto" })] }, s.sessionId)))] }) })] })), sessionOpts.length > 0 && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuCheckboxItem, { checked: grouped, onCheckedChange: setGrouped, className: "pl-8", children: tI18nComplete.raw('text137f98df3b9b') })] })), filtered ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { onSelect: clearFilters, children: tI18nComplete.raw('text7179ea0035fc') })] })) : null] })] })] })] }), showSearch || filtered ? (_jsxs("div", { className: "border-border flex shrink-0 flex-col gap-2 border-b px-2.5 py-2", children: [showSearch ? (_jsxs(InputGroupSearch, { className: "w-full", children: [_jsx(InputGroupSearchIcon, { children: _jsx(Search, {}) }), _jsx(InputGroupSearchInput, { id: "review-search", value: query, onChange: (e) => {
|
|
961
|
+
}) }) })] }), sessionOpts.length > 0 && (_jsxs(DropdownMenuSub, { children: [_jsxs(DropdownMenuSubTrigger, { children: [_jsx(Chats, {}), tI18nComplete.raw('text6959b4159575')] }), _jsx(DropdownMenuSubContent, { className: "max-h-72 w-64 overflow-y-auto", children: _jsxs(DropdownMenuRadioGroup, { value: sessionFilter, onValueChange: setSessionFilter, children: [_jsxs(DropdownMenuRadioItem, { value: "all", side: "left", children: [tI18nComplete.raw('text78648d4d6649'), _jsx(CountBadge, { count: filterItems(items, segment, kindFilter, query, 'all').length + matchingAsksFor('all').length, className: "ml-auto" })] }), sessionOpts.map((s) => (_jsxs(DropdownMenuRadioItem, { value: s.sessionId, side: "left", children: [_jsx("span", { className: "truncate", children: s.label }), _jsx(CountBadge, { count: filterItems(items, segment, kindFilter, query, s.sessionId).length + matchingAsksFor(s.sessionId).length, className: "ml-auto" })] }, s.sessionId)))] }) })] })), sessionOpts.length > 0 && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuCheckboxItem, { checked: grouped, onCheckedChange: setGrouped, className: "pl-8", children: tI18nComplete.raw('text137f98df3b9b') })] })), filtered ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { onSelect: clearFilters, children: tI18nComplete.raw('text7179ea0035fc') })] })) : null] })] })] })] }), showSearch || filtered ? (_jsxs("div", { className: "border-border flex shrink-0 flex-col gap-2 border-b px-2.5 py-2", children: [showSearch ? (_jsxs(InputGroupSearch, { className: "w-full", children: [_jsx(InputGroupSearchIcon, { children: _jsx(Search, {}) }), _jsx(InputGroupSearchInput, { id: "review-search", value: query, onChange: (e) => {
|
|
945
962
|
setQuery(e.target.value);
|
|
946
963
|
setFocusedIdx(0);
|
|
947
964
|
}, onBlur: () => {
|
|
@@ -950,7 +967,10 @@ export function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChan
|
|
|
950
967
|
}, placeholder: tI18nComplete.raw('text49c266baaaa7'), variant: "popover", size: "sm" })] })) : null, filtered ? (_jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [activeKind ? (_jsx(FilterChip, { label: activeKind.label, onRemove: () => setKindFilter('all') })) : null, activeSession ? (_jsx(FilterChip, { label: activeSession.label, onRemove: () => setSessionFilter('all') })) : null, grouped ? (_jsx(FilterChip, { label: tI18nComplete.raw('text137f98df3b9b'), onRemove: () => setGrouped(false) })) : null] })) : null] })) : null, _jsxs("div", { className: cn('min-h-0 flex-1 overflow-y-auto p-1.5', selectMode && segment === 'needs_you' && 'pb-20'), children: [segment === 'needs_you' && needsYouDeck && !wide ? (
|
|
951
968
|
// `peer`: when the deck draws nothing (its Undo window after the
|
|
952
969
|
// last card), the list's empty state below shows instead.
|
|
953
|
-
_jsx("div", { className: "peer px-1 pt-1 pb-3 empty:hidden", children: needsYouDeck({ paused: !!selected }) })) : null,
|
|
970
|
+
_jsx("div", { className: "peer px-1 pt-1 pb-3 empty:hidden", children: needsYouDeck({ paused: !!selected }) })) : null, wide ? visibleAsks.map((ask) => (_jsxs(Button, { "data-testid": "review-ask-row", variant: "ghost", "aria-pressed": !selected && selectedAskId === ask.id, className: cn('h-auto w-full justify-start gap-2 px-2.5 py-3 text-left whitespace-normal', !selected && selectedAskId === ask.id && 'bg-active'), onClick: () => {
|
|
971
|
+
setSelectedId(null);
|
|
972
|
+
onSelectAsk?.(ask.id);
|
|
973
|
+
}, children: [_jsx("span", { className: "flex size-8 shrink-0 items-center justify-center", children: _jsx(Chats, { className: "text-muted-foreground size-4" }) }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "line-clamp-2 text-sm font-medium", children: ask.title }), ask.session_title ? _jsx("span", { className: "text-muted-foreground block truncate text-xs", children: ask.session_title }) : null] })] }, ask.id))) : null, listBody, visible.length > 0 && loadMore ? _jsx("div", { className: "pt-2", children: loadMoreButton }) : null] }), selectMode && segment === 'needs_you' ? (
|
|
954
974
|
// Pinned to the bottom of the inbox, not to the end of the list
|
|
955
975
|
// (`sticky` stops where a short list ends, schedule-view.tsx), and
|
|
956
976
|
// across the whole inbox: the list column is too narrow for its verbs.
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* count; Create workspace sits at the bottom of that list) · Workspace
|
|
7
7
|
* settings · Invite people · Leave (only for a person who cannot open
|
|
8
8
|
* Workspace settings);
|
|
9
|
-
* 2. the person: Inbox (notifications
|
|
10
|
-
* Preferences (Mod+,) · Apps and extensions
|
|
11
|
-
* your computer, MCP);
|
|
9
|
+
* 2. the person: Inbox (the person's notifications home, every workspace —
|
|
10
|
+
* KRTX-1742, KRTX-4799) · Preferences (Mod+,) · Apps and extensions
|
|
11
|
+
* (Chrome, the desktop app, your computer, MCP);
|
|
12
12
|
* 3. Help (docs, support, legal) · Log out.
|
|
13
13
|
*
|
|
14
14
|
* Flat: one hover deep at most (Switch workspace, Help), never two. No
|
|
@@ -29,8 +29,6 @@ export interface WorkspaceMenuGates {
|
|
|
29
29
|
canOpenSettings: boolean;
|
|
30
30
|
/** Not the last owner (`useLeaveWorkspace`). */
|
|
31
31
|
canLeave: boolean;
|
|
32
|
-
/** The host serves an Inbox page (`useInboxSummary(...).href` is set). */
|
|
33
|
-
hasInbox: boolean;
|
|
34
32
|
}
|
|
35
33
|
/** The menu's groups, top to bottom; a separator sits between two groups. */
|
|
36
34
|
export declare function workspaceMenuGroups(gates: WorkspaceMenuGates): WorkspaceMenuRow[][];
|
|
@@ -7,7 +7,7 @@ export function workspaceMenuGroups(gates) {
|
|
|
7
7
|
...(gates.canInvite ? ['invite'] : []),
|
|
8
8
|
...(gates.canLeave && !gates.canOpenSettings ? ['leave'] : []),
|
|
9
9
|
],
|
|
10
|
-
[
|
|
10
|
+
['inbox', 'preferences', 'apps'],
|
|
11
11
|
['help', 'logout'],
|
|
12
12
|
];
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kortix/ui",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.10",
|
|
4
4
|
"description": "Kortix UI: the shared React component library for apps/web, Kortix Apps and SDK hosts. Tailwind v4 classes, themed by CSS variables.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Elastic-2.0",
|
|
@@ -1267,10 +1267,6 @@
|
|
|
1267
1267
|
"types": "./dist/internal/notifications/session-toast-cards.d.ts",
|
|
1268
1268
|
"import": "./dist/internal/notifications/session-toast-cards.js"
|
|
1269
1269
|
},
|
|
1270
|
-
"./internal/notifications/use-inbox-summary": {
|
|
1271
|
-
"types": "./dist/internal/notifications/use-inbox-summary.d.ts",
|
|
1272
|
-
"import": "./dist/internal/notifications/use-inbox-summary.js"
|
|
1273
|
-
},
|
|
1274
1270
|
"./internal/notifications/web-push": {
|
|
1275
1271
|
"types": "./dist/internal/notifications/web-push.d.ts",
|
|
1276
1272
|
"import": "./dist/internal/notifications/web-push.js"
|
|
@@ -2202,7 +2198,7 @@
|
|
|
2202
2198
|
"@extend-ai/react-docx": "^0.7.5",
|
|
2203
2199
|
"@extend-ai/react-xlsx": "0.13.4",
|
|
2204
2200
|
"@glideapps/glide-data-grid": "6.0.4-alpha24",
|
|
2205
|
-
"@kortix/llm-catalog": "0.15.
|
|
2201
|
+
"@kortix/llm-catalog": "0.15.10",
|
|
2206
2202
|
"@lezer/highlight": "1.2.3",
|
|
2207
2203
|
"@paper-design/shaders-react": "^0.0.76",
|
|
2208
2204
|
"@phosphor-icons/react": "2.1.10",
|
|
@@ -2277,7 +2273,7 @@
|
|
|
2277
2273
|
"zustand": "^5.0.3"
|
|
2278
2274
|
},
|
|
2279
2275
|
"peerDependencies": {
|
|
2280
|
-
"@kortix/sdk": "^0.15.
|
|
2276
|
+
"@kortix/sdk": "^0.15.10",
|
|
2281
2277
|
"@tanstack/react-query": "^5.75.2",
|
|
2282
2278
|
"@types/react": ">=18",
|
|
2283
2279
|
"react": ">=19",
|
|
@@ -328,7 +328,7 @@ export function Chat({ projectId, sessionId }: { projectId: string; sessionId: s
|
|
|
328
328
|
}
|
|
329
329
|
```
|
|
330
330
|
|
|
331
|
-
Names: `SessionThread`, `SessionThreadProps`, `UserMessage`, `ThrottledMarkdown`, `UnifiedMarkdown`, `UnifiedMarkdownProps`, `ToolPartRenderer`, `ToolRegistry`, `BasicToolProps`, `ToolComponent`, `ToolProps`, `BasicTool`, `GenericTool`, `SessionChatInput`, `SessionChatInputProps`, `AgentSelector`, `ModelSelector`, `ModelSelectorProps`, `ModelReasoningControls`, `SessionPermissionPrompt`, `QuestionPrompt`, `QuestionPromptHandle`, `TurnErrorDisplay`, `SessionBusyIndicator`, `SessionStartingLoader`, `SessionStatus`, `UNTITLED_SESSION_LABEL`, `getSessionDisplayTitle`, `groupChangeRequestsBySession`, `hasSessionAwaitingTitle`, `isAwaitingTitle`, `projectSessionsRefetchInterval`, `resolveSessionListViewState`, `sessionLastActivityAt`, `sessionTitleHasLanded`, `shortRelative`, `sortSessionsByLastActivity`, `starterSectionOf`, `SessionDeleteModal`, `isLegacyMigratedSession`, `matchesSourceFilters`, `matchesStatusFilters`, `sessionDisplayLabel`, `sessionSource`, `SessionSourceFilter`, `useRenameSession`, `useSessionListActions`, `CompactModal`, `ProviderFailureRecovery`, `useModelConnectionGate`, `ApprovalAgentContext`, `ApprovalDecisionActions`, `ApprovalParameters`, `approvalReviewable`, `useApprovalWaitingText`, `SessionApprovalNotice`, `createScopedSession`, `SandboxLoadingBoundary`, `SessionNoticeBanner`, `SessionConnectingBanner`, `ChatMinimap`, `SessionChat`, `SessionTurn`, `TranscriptTurnRow`, `TurnAssistantBlock`, `ToolSurfaceContext`, `partOutcome`, `ToolOutcomeContext`, `ToolOutputFallback`, `ServicePreviewActions`, `ServicePreviewState`, `ServicePreviewViewport`, `ToolActivateContext`, `TurnLiveContext`, `ActivityBurst`, `PlanCard`, `TurnViewport`, `ATTACHMENT_TILE_CAP`, `BUBBLE_SURFACE`, `ChannelOrigin`, `UserMessageBubble`, `mergeSentAttachments`, `normalizeAttachments`, `planAttachmentGrid`, `ChannelMessage`, `NormalizedAttachment`
|
|
331
|
+
Names: `SessionThread`, `SessionThreadProps`, `UserMessage`, `ThrottledMarkdown`, `UnifiedMarkdown`, `UnifiedMarkdownProps`, `ToolPartRenderer`, `ToolRegistry`, `BasicToolProps`, `ToolComponent`, `ToolProps`, `BasicTool`, `GenericTool`, `SessionChatInput`, `SessionChatInputProps`, `AgentSelector`, `ModelSelector`, `ModelSelectorProps`, `ModelReasoningControls`, `SessionPermissionPrompt`, `QuestionPrompt`, `QuestionPromptHandle`, `TurnErrorDisplay`, `SessionBusyIndicator`, `SessionStartingLoader`, `SessionStatus`, `UNTITLED_SESSION_LABEL`, `getSessionDisplayTitle`, `groupChangeRequestsBySession`, `hasSessionAwaitingTitle`, `isAwaitingTitle`, `projectSessionsRefetchInterval`, `resolveSessionListViewState`, `sessionLastActivityAt`, `sessionTitleHasLanded`, `shortRelative`, `sortSessionsByLastActivity`, `starterSectionOf`, `SessionDeleteModal`, `isLegacyMigratedSession`, `matchesSourceFilters`, `matchesStatusFilters`, `sessionDisplayLabel`, `sessionSource`, `SessionSourceFilter`, `useRenameSession`, `useSessionListActions`, `CompactModal`, `ProviderFailureRecovery`, `useModelConnectionGate`, `ApprovalAgentContext`, `ApprovalDecisionActions`, `ApprovalParameters`, `approvalReviewable`, `useApprovalWaitingText`, `SessionApprovalNotice`, `createScopedSession`, `SandboxLoadingBoundary`, `SessionNoticeBanner`, `SessionConnectingBanner`, `ChatMinimap`, `SessionChat`, `useAgentRunLayout`, `AgentRunLayout`, `AgentRunRowProps`, `SessionTurn`, `TranscriptTurnRow`, `TurnAssistantBlock`, `ToolSurfaceContext`, `partOutcome`, `ToolOutcomeContext`, `ToolOutputFallback`, `ServicePreviewActions`, `ServicePreviewState`, `ServicePreviewViewport`, `ToolActivateContext`, `TurnLiveContext`, `ActivityBurst`, `PlanCard`, `TurnViewport`, `ATTACHMENT_TILE_CAP`, `BUBBLE_SURFACE`, `ChannelOrigin`, `UserMessageBubble`, `mergeSentAttachments`, `normalizeAttachments`, `planAttachmentGrid`, `ChannelMessage`, `NormalizedAttachment`
|
|
332
332
|
|
|
333
333
|
## `@kortix/ui/session-panel`
|
|
334
334
|
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { connectorConnectionQueryKeys } from '../sections/connector-connection-form.js';
|
|
2
|
-
export function invalidateConnections(client, projectId) {
|
|
3
|
-
return Promise.all(connectorConnectionQueryKeys(projectId).map((queryKey) => client.invalidateQueries({ queryKey }).catch(() => undefined)));
|
|
4
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
/**
|
|
3
|
-
* The Inbox entry point (KRTX-1742) in the workspace menu: the Inbox page's
|
|
4
|
-
* href, its count, and whether something waits on the person ("needs you").
|
|
5
|
-
* The Inbox holds Review too (2026-11-08), so the count is the unread
|
|
6
|
-
* notifications (99+ at most) plus what waits in this workspace's Review,
|
|
7
|
-
* and "needs you" is an unread question, permission request or failure, or
|
|
8
|
-
* any Review item that waits. The notifications are the inbox
|
|
9
|
-
* `NotificationHost` polls; the Review number reads the review summary and
|
|
10
|
-
* asks the session list already polls. `href` is null when the host serves
|
|
11
|
-
* no Inbox page.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useInboxSummary(projectId: string): {
|
|
14
|
-
href: string | null;
|
|
15
|
-
count: number;
|
|
16
|
-
needsYou: boolean;
|
|
17
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { uiRoutes } from '../../lib/routes.js';
|
|
3
|
-
import { useUiViewerId } from '../../providers/ui-provider.js';
|
|
4
|
-
import { useNotificationInbox } from '@kortix/sdk/react';
|
|
5
|
-
import { useReviewNeedsYouCount } from '../hooks/use-review-session-summary.js';
|
|
6
|
-
import { tabUnreadCount } from './notification-rows.js';
|
|
7
|
-
/**
|
|
8
|
-
* The Inbox entry point (KRTX-1742) in the workspace menu: the Inbox page's
|
|
9
|
-
* href, its count, and whether something waits on the person ("needs you").
|
|
10
|
-
* The Inbox holds Review too (2026-11-08), so the count is the unread
|
|
11
|
-
* notifications (99+ at most) plus what waits in this workspace's Review,
|
|
12
|
-
* and "needs you" is an unread question, permission request or failure, or
|
|
13
|
-
* any Review item that waits. The notifications are the inbox
|
|
14
|
-
* `NotificationHost` polls; the Review number reads the review summary and
|
|
15
|
-
* asks the session list already polls. `href` is null when the host serves
|
|
16
|
-
* no Inbox page.
|
|
17
|
-
*/
|
|
18
|
-
export function useInboxSummary(projectId) {
|
|
19
|
-
const viewerId = useUiViewerId();
|
|
20
|
-
const inbox = useNotificationInbox({ userId: viewerId });
|
|
21
|
-
const review = useReviewNeedsYouCount(projectId);
|
|
22
|
-
const href = uiRoutes().inbox?.(projectId) ?? null;
|
|
23
|
-
return {
|
|
24
|
-
href,
|
|
25
|
-
count: href ? inbox.unreadCount + review : 0,
|
|
26
|
-
needsYou: !!href && (review > 0 || tabUnreadCount(inbox.data?.notifications ?? [], 'needs') > 0),
|
|
27
|
-
};
|
|
28
|
-
}
|