@kortix/ui 0.15.6 → 0.15.7
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/customize/providers/provider-accordion.js +3 -2
- package/dist/customize/providers/provider-connect.d.ts +7 -0
- package/dist/customize/providers/provider-connect.js +21 -2
- package/dist/customize/providers/provider-sheet.js +3 -2
- package/dist/customize/sections/gateway-view.d.ts +1 -1
- package/dist/customize/sections/gateway-view.js +29 -14
- package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.d.ts +3 -1
- package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.js +2 -2
- package/dist/customize/sections/view/account-secret-resources-panel.js +4 -3
- package/dist/customize/sections/view/review-center-connected.js +15 -3
- package/dist/customize/sections/view/subscription-usage.d.ts +288 -7
- package/dist/customize/sections/view/subscription-usage.js +257 -30
- package/dist/i18n/en.d.ts +37 -47
- package/dist/i18n/en.js +40 -50
- package/dist/i18n/ui-catalog/app-registry-translation-keys.generated.js +5 -0
- package/dist/internal/auth/auth-primitives.d.ts +27 -0
- package/dist/internal/auth/auth-primitives.js +21 -0
- package/dist/internal/billing/index.d.ts +1 -0
- package/dist/internal/billing/index.js +2 -0
- package/dist/internal/billing/use-free-grant-unspent.d.ts +10 -0
- package/dist/internal/billing/use-free-grant-unspent.js +20 -0
- package/dist/internal/lib/billing/billing-gate-state.d.ts +20 -0
- package/dist/internal/lib/billing/billing-gate-state.js +22 -0
- package/dist/internal/lib/error-handler.js +0 -2
- package/dist/internal/notifications/notification-inbox.js +1 -1
- package/dist/internal/stores/upgrade-dialog-store.d.ts +0 -2
- package/dist/internal/stores/upgrade-dialog-store.js +0 -2
- package/dist/markdown/setup-links/approval-decision.d.ts +1 -1
- package/dist/markdown/setup-links/approval-decision.js +1 -1
- package/dist/session/prompts/ask-deck.d.ts +14 -2
- package/dist/session/prompts/ask-deck.js +6 -2
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +37 -47
- package/dist/workspace/admin/settings-search.js +4 -12
- package/dist/workspace/inbox/workspace-inbox.js +11 -2
- package/dist/workspace/layout/new-session-create.d.ts +4 -2
- package/dist/workspace/layout/new-session-create.js +11 -0
- package/dist/workspace/review/approval-modal.d.ts +6 -6
- package/dist/workspace/review/approval-modal.js +10 -14
- package/dist/workspace/review/review-center.d.ts +9 -2
- package/dist/workspace/review/review-center.js +257 -125
- package/dist/workspace/review/review-detail.d.ts +20 -10
- package/dist/workspace/review/review-detail.js +39 -44
- package/dist/workspace/review/review-meta.d.ts +27 -6
- package/dist/workspace/review/review-meta.js +46 -34
- package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +10 -0
- package/dist/workspace/sidebar/footer/project-download-app-nav.js +53 -0
- package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +2 -1
- package/dist/workspace/sidebar/footer/promo-nav-row.js +1 -1
- package/dist/workspace/sidebar/project-sidebar.d.ts +6 -1
- package/dist/workspace/sidebar/project-sidebar.js +3 -2
- package/dist/workspace/sidebar/workspace-menu-model.d.ts +19 -13
- package/dist/workspace/sidebar/workspace-menu-model.js +7 -8
- package/package.json +3 -3
- package/dist/customize/sections/view/subscription-usage-tab.d.ts +0 -25
- package/dist/customize/sections/view/subscription-usage-tab.js +0 -121
|
@@ -107,16 +107,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
107
107
|
access: string;
|
|
108
108
|
actions: string;
|
|
109
109
|
coolingDown: string;
|
|
110
|
-
usageFiveHour: string;
|
|
111
|
-
usageWeekly: string;
|
|
112
|
-
usageWeeklyModel: string;
|
|
113
|
-
usagePercent: string;
|
|
114
|
-
usagePercentResets: string;
|
|
115
|
-
usageLimitReached: string;
|
|
116
|
-
usageLimitResets: string;
|
|
117
|
-
usageNotSeen: string;
|
|
118
|
-
usageObserved: string;
|
|
119
|
-
usageAriaLabel: string;
|
|
120
110
|
member: string;
|
|
121
111
|
members: string;
|
|
122
112
|
actionsFor: string;
|
|
@@ -1788,6 +1778,8 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
1788
1778
|
title: string;
|
|
1789
1779
|
description: string;
|
|
1790
1780
|
confirmDescription: string;
|
|
1781
|
+
unknownDescription: string;
|
|
1782
|
+
closedDescription: string;
|
|
1791
1783
|
notReceived: string;
|
|
1792
1784
|
confirmNotReceived: string;
|
|
1793
1785
|
resendIn: string;
|
|
@@ -6206,6 +6198,11 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6206
6198
|
textadca5dfd1e42: string;
|
|
6207
6199
|
text16ba47efb9f2: string;
|
|
6208
6200
|
textfd8b8dae4421: string;
|
|
6201
|
+
text674900a77b79: string;
|
|
6202
|
+
text765a8cb04cf5: string;
|
|
6203
|
+
texta68ee4167406: string;
|
|
6204
|
+
texta69c4dece144: string;
|
|
6205
|
+
textab3aff8f7642: string;
|
|
6209
6206
|
};
|
|
6210
6207
|
publicShareConfirm: {
|
|
6211
6208
|
title: string;
|
|
@@ -6386,6 +6383,10 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6386
6383
|
deniedDescription: string;
|
|
6387
6384
|
failed: string;
|
|
6388
6385
|
};
|
|
6386
|
+
reviewPane: {
|
|
6387
|
+
emptyTitle: string;
|
|
6388
|
+
emptyDescription: string;
|
|
6389
|
+
};
|
|
6389
6390
|
};
|
|
6390
6391
|
commandPalette: {
|
|
6391
6392
|
title: string;
|
|
@@ -9795,45 +9796,34 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
9795
9796
|
fiveHour: string;
|
|
9796
9797
|
weekly: string;
|
|
9797
9798
|
weeklyModel: string;
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
text1: string;
|
|
9803
|
-
text2: string;
|
|
9804
|
-
text3: string;
|
|
9805
|
-
text4: string;
|
|
9806
|
-
text5: string;
|
|
9807
|
-
text6: string;
|
|
9808
|
-
text7: string;
|
|
9809
|
-
text8: string;
|
|
9810
|
-
text9: string;
|
|
9811
|
-
text10: string;
|
|
9812
|
-
text11: string;
|
|
9813
|
-
text12: string;
|
|
9814
|
-
text13: string;
|
|
9815
|
-
text14: string;
|
|
9816
|
-
text15: string;
|
|
9817
|
-
text16: string;
|
|
9818
|
-
text17: string;
|
|
9819
|
-
text18: string;
|
|
9820
|
-
text19: string;
|
|
9821
|
-
text20: string;
|
|
9822
|
-
text21: string;
|
|
9823
|
-
text22: string;
|
|
9824
|
-
text23: string;
|
|
9825
|
-
text24: string;
|
|
9826
|
-
text25: string;
|
|
9827
|
-
text26: string;
|
|
9828
|
-
resets: string;
|
|
9799
|
+
inactive: string;
|
|
9800
|
+
limitReached: string;
|
|
9801
|
+
checking: string;
|
|
9802
|
+
title: string;
|
|
9829
9803
|
observed: string;
|
|
9830
9804
|
meterLabel: string;
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9805
|
+
extraUsage: string;
|
|
9806
|
+
apps: string;
|
|
9807
|
+
codeReview: string;
|
|
9808
|
+
percent: string;
|
|
9809
|
+
percentResets: string;
|
|
9810
|
+
percentBack: string;
|
|
9811
|
+
resetPassed: string;
|
|
9812
|
+
notStarted: string;
|
|
9813
|
+
reconnectToSee: string;
|
|
9814
|
+
availableNow: string;
|
|
9815
|
+
availableCount: string;
|
|
9816
|
+
nextBack: string;
|
|
9817
|
+
rowPeak: string;
|
|
9818
|
+
rowSomeLimited: string;
|
|
9819
|
+
rowAllLimited: string;
|
|
9820
|
+
rowAllLimitedBack: string;
|
|
9821
|
+
noUsageYet: string;
|
|
9822
|
+
refreshFailed: string;
|
|
9823
|
+
loadFailed: string;
|
|
9824
|
+
rowSomeLimitedBack: string;
|
|
9825
|
+
weeklyAll: string;
|
|
9826
|
+
notReported: string;
|
|
9837
9827
|
};
|
|
9838
9828
|
gatewayRouting: {
|
|
9839
9829
|
exceptions: string;
|
|
@@ -139,28 +139,20 @@ export const SETTINGS_SEARCH_ENTRIES = [
|
|
|
139
139
|
query: { tab: 'logs' },
|
|
140
140
|
find: null,
|
|
141
141
|
},
|
|
142
|
-
{
|
|
143
|
-
id: 'models-usage',
|
|
144
|
-
section: 'models',
|
|
145
|
-
label: 'Usage',
|
|
146
|
-
keywords: 'tokens usage subscription limits',
|
|
147
|
-
query: { tab: 'usage' },
|
|
148
|
-
find: null,
|
|
149
|
-
},
|
|
150
142
|
{
|
|
151
143
|
id: 'models-chatgpt-usage',
|
|
152
144
|
section: 'models',
|
|
153
145
|
label: 'ChatGPT subscription usage',
|
|
154
|
-
keywords: 'chatgpt openai codex subscription weekly allowance quota',
|
|
155
|
-
query: { tab: '
|
|
146
|
+
keywords: 'chatgpt openai codex subscription usage limits weekly allowance quota code review',
|
|
147
|
+
query: { tab: 'providers', provider: 'openai' },
|
|
156
148
|
find: null,
|
|
157
149
|
},
|
|
158
150
|
{
|
|
159
151
|
id: 'models-claude-usage',
|
|
160
152
|
section: 'models',
|
|
161
153
|
label: 'Claude subscription usage',
|
|
162
|
-
keywords: 'claude anthropic subscription weekly allowance quota',
|
|
163
|
-
query: { tab: '
|
|
154
|
+
keywords: 'claude anthropic subscription usage limits weekly allowance quota opus sonnet extra',
|
|
155
|
+
query: { tab: 'providers', provider: 'anthropic' },
|
|
164
156
|
find: null,
|
|
165
157
|
},
|
|
166
158
|
// Connectors: `?scope=` and `?rules=1` (`connector-routes.ts`).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useNotificationInbox } from '@kortix/sdk/react';
|
|
4
4
|
import { ReviewView } from '../../customize/sections/view/review-view.js';
|
|
5
5
|
import { useTranslations } from '../../i18n/index.js';
|
|
@@ -9,6 +9,8 @@ import { NotificationInbox } from '../../internal/notifications/notification-inb
|
|
|
9
9
|
import { CountBadge } from '../../primitives/count-badge.js';
|
|
10
10
|
import { Tabs, TabsList, TabsTrigger } from '../../primitives/tabs.js';
|
|
11
11
|
import { useUiPathname, useUiRouter, useUiSearchParams, useUiViewerId } from '../../providers/ui-provider.js';
|
|
12
|
+
/** One underline tab: hugs its label and count, full title-bar height. */
|
|
13
|
+
const INBOX_TAB_CLASS = 'h-full w-fit flex-none gap-1.5 px-1';
|
|
12
14
|
/**
|
|
13
15
|
* The tab a visit opens: the one `?view=` names; else Review when it holds an
|
|
14
16
|
* item (`?id=`) or something waits there; else Notifications.
|
|
@@ -48,5 +50,12 @@ export function WorkspaceInbox({ projectId }) {
|
|
|
48
50
|
};
|
|
49
51
|
return (
|
|
50
52
|
// `h-svh`: nothing above this box has a definite height (as the Apps page).
|
|
51
|
-
_jsxs("div", { className: "flex h-svh min-h-0 flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('inbox.title'), titleAccessory:
|
|
53
|
+
_jsxs("div", { className: "flex h-svh min-h-0 flex-col overflow-hidden", children: [_jsx(ProjectPageHeader, { title: t('inbox.title'), titleAccessory:
|
|
54
|
+
// "Inbox", a rule, then the underline tabs: the same title-bar
|
|
55
|
+
// grammar as the capability tab bar (customize-tab-bar.tsx). Never
|
|
56
|
+
// the segmented control here.
|
|
57
|
+
_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": true, className: "bg-border mx-1.5 h-4 w-px shrink-0" }), _jsx(Tabs, { value: view, onValueChange: select, className: "h-full gap-0", children: _jsxs(TabsList, { type: "underline", underlineSize: "md", className: "h-10 justify-start gap-4 border-b-0", "aria-label": t('inbox.viewLabel'), children: [_jsxs(TabsTrigger, { value: "review", className: INBOX_TAB_CLASS, "data-testid": "inbox-view-review", children: [t('inbox.viewReview'), reviewNeedsYou > 0 ? _jsx(CountBadge, { count: reviewNeedsYou, tone: "waiting" }) : null] }), _jsxs(TabsTrigger, { value: "notifications", className: INBOX_TAB_CLASS, "data-testid": "inbox-view-notifications", children: [t('inbox.viewNotifications'), unread > 0 ? _jsx(CountBadge, { count: unread }) : null] })] }) })] }) }), view === 'review' ? (
|
|
58
|
+
// Full width: the list and the open item sit side by side, so no
|
|
59
|
+
// reading-width cap here.
|
|
60
|
+
_jsx("div", { className: "flex min-h-0 w-full flex-1 flex-col", children: _jsx(ReviewView, { projectId: projectId }) })) : (_jsx(NotificationInbox, { bare: true }))] }));
|
|
52
61
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ComposerOptions } from '../../session/composer/composer-chat-input.js';
|
|
2
|
-
import type
|
|
2
|
+
import { type SessionConnectorBindingsInput } from '@kortix/sdk';
|
|
3
3
|
export interface NewSessionCreateInput {
|
|
4
4
|
sandbox_slug?: string;
|
|
5
5
|
agent_name?: string;
|
|
6
|
+
/** The composer's launch model, gateway wire form — the create-time pin. */
|
|
7
|
+
model?: string;
|
|
6
8
|
connector_bindings?: SessionConnectorBindingsInput;
|
|
7
9
|
inherit_unbound?: boolean;
|
|
8
10
|
provider_secret_pools?: Record<string, string[]>;
|
|
@@ -21,6 +23,6 @@ export interface NewSessionCreateInput {
|
|
|
21
23
|
* Returns `undefined` when there is nothing to bind (sandbox stays default and
|
|
22
24
|
* no agent was picked), so callers can omit the create overrides entirely.
|
|
23
25
|
*/
|
|
24
|
-
export declare function buildNewSessionCreateInput(options?: Pick<ComposerOptions, 'agent' | 'scope' | 'providerSecretPools'> & {
|
|
26
|
+
export declare function buildNewSessionCreateInput(options?: Pick<ComposerOptions, 'agent' | 'model' | 'scope' | 'providerSecretPools'> & {
|
|
25
27
|
sandbox_slug?: string;
|
|
26
28
|
}): NewSessionCreateInput | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { modelKeyToWire } from '@kortix/sdk';
|
|
1
2
|
import { isMyKortixAgentName, MY_KORTIX_SANDBOX_SLUG } from '../../_vendor/kortix-shared.js';
|
|
2
3
|
/**
|
|
3
4
|
* Build the session-create payload from the composer's send options.
|
|
@@ -23,6 +24,16 @@ export function buildNewSessionCreateInput(options = {}) {
|
|
|
23
24
|
}
|
|
24
25
|
if (options.agent)
|
|
25
26
|
input.agent_name = options.agent;
|
|
27
|
+
// The launch model as the create-time pin. Only riding `pending_prompt.model`
|
|
28
|
+
// it never reaches the row: the server stamps the default chain, and the
|
|
29
|
+
// session's selector then shows the project default while the session starts
|
|
30
|
+
// even though the first turn runs on this pick. The same top-level `model`
|
|
31
|
+
// the CLI and mobile send — the API validates servability and pins
|
|
32
|
+
// `metadata.model` with `model_source: 'explicit'`, so the row carries the
|
|
33
|
+
// launch model from the first read, before the runtime is up.
|
|
34
|
+
if (options.model && options.model.modelID !== 'auto' && options.model.modelID !== 'kortix/auto') {
|
|
35
|
+
input.model = modelKeyToWire(options.model);
|
|
36
|
+
}
|
|
26
37
|
if (options.providerSecretPools && Object.keys(options.providerSecretPools).length > 0) {
|
|
27
38
|
input.provider_secret_pools = options.providerSecretPools;
|
|
28
39
|
}
|
|
@@ -23,19 +23,19 @@ export declare function reviewApprovalAsker(item: ReviewItem, sessionLabels?: Re
|
|
|
23
23
|
sessionTitle: string | null;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
|
-
* The standalone approve page (`/approve/[token]`), in
|
|
27
|
-
* One approval UI everywhere: the same panel
|
|
28
|
-
* No `onDecision` = the viewer may read
|
|
26
|
+
* The standalone approve page (`/approve/[token]`), inline in the inbox's
|
|
27
|
+
* detail pane. One approval UI everywhere: the same panel in the same bordered
|
|
28
|
+
* card, the same rows, the same decision. No `onDecision` = the viewer may read
|
|
29
|
+
* the call but not decide it.
|
|
29
30
|
*/
|
|
30
|
-
export declare function
|
|
31
|
-
details: ApprovalLinkDetails
|
|
31
|
+
export declare function ApprovalDecisionPane({ details, previewAuthorized, busyDecision, onDecision, onOpenSession, resolvers, agentName, sessionTitle, }: {
|
|
32
|
+
details: ApprovalLinkDetails;
|
|
32
33
|
previewAuthorized?: boolean;
|
|
33
34
|
/** Who decides the call, for a viewer who may not (KRTX-1724). */
|
|
34
35
|
resolvers?: ApprovalResolvers | null;
|
|
35
36
|
busyDecision: ApprovalDecisionValue | null;
|
|
36
37
|
onDecision?: (decision: ApprovalDecisionValue, note?: string) => void;
|
|
37
38
|
onOpenSession?: () => void;
|
|
38
|
-
onClose: () => void;
|
|
39
39
|
/** The agent that asked. Null: "An agent". */
|
|
40
40
|
agentName?: string | null;
|
|
41
41
|
/** The session that asked, by its title. Null: not named. */
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { approvalReviewable, useApprovalWaitingText, } from '../../session/prompts/approval-request.js';
|
|
4
4
|
import { ApprovalDecisionPanel } from '../../markdown/setup-links/approval-decision.js';
|
|
5
|
-
import { Modal, ModalContent, ModalDescription, ModalTitle } from '../../primitives/modal.js';
|
|
6
5
|
import { useTranslations } from '../../i18n/index.js';
|
|
6
|
+
import { useId } from 'react';
|
|
7
7
|
import { connectorCallId } from './review-actions.js';
|
|
8
8
|
/**
|
|
9
9
|
* A Connector approval as the standalone approve page reads it, built from the
|
|
@@ -71,21 +71,17 @@ export function reviewApprovalAsker(item, sessionLabels = {}) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* The standalone approve page (`/approve/[token]`), in
|
|
75
|
-
* One approval UI everywhere: the same panel
|
|
76
|
-
* No `onDecision` = the viewer may read
|
|
74
|
+
* The standalone approve page (`/approve/[token]`), inline in the inbox's
|
|
75
|
+
* detail pane. One approval UI everywhere: the same panel in the same bordered
|
|
76
|
+
* card, the same rows, the same decision. No `onDecision` = the viewer may read
|
|
77
|
+
* the call but not decide it.
|
|
77
78
|
*/
|
|
78
|
-
export function
|
|
79
|
+
export function ApprovalDecisionPane({ details, previewAuthorized, busyDecision, onDecision, onOpenSession, resolvers = null, agentName = null, sessionTitle = null, }) {
|
|
79
80
|
const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
|
|
80
81
|
const waitingText = useApprovalWaitingText(resolvers);
|
|
81
82
|
// The panel's own rule: a pending call with no decision on offer waits on
|
|
82
|
-
// someone else, so the
|
|
83
|
-
const waiting = details
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// description's info trigger, and focus would open its hover card.
|
|
87
|
-
onOpenAutoFocus: (event) => {
|
|
88
|
-
event.preventDefault();
|
|
89
|
-
event.currentTarget?.focus();
|
|
90
|
-
}, className: "space-y-0 lg:h-auto lg:max-h-[85svh] lg:max-w-md", children: [_jsx(ModalTitle, { className: "sr-only", children: waiting ? tI18nComplete.raw('textdb0e960b68b5') : tI18nComplete.raw('text1862f81ed9d6') }), _jsx(ModalDescription, { className: "sr-only", children: waiting ? waitingText : tI18nComplete.raw('text32c6817c8380') }), details ? (_jsx(ApprovalDecisionPanel, { details: details, outcome: null, busyDecision: busyDecision, error: null, onDecision: onDecision, onOpenSession: onOpenSession, previewAuthorized: previewAuthorized, resolvers: resolvers, agentName: agentName, sessionTitle: sessionTitle })) : null] }) }));
|
|
83
|
+
// someone else, so the region is not announced as a request to this viewer.
|
|
84
|
+
const waiting = details.pending === true && !onDecision;
|
|
85
|
+
const titleId = useId();
|
|
86
|
+
return (_jsxs("section", { "aria-labelledby": titleId, className: "mx-auto w-full max-w-xl", children: [_jsx("h2", { id: titleId, className: "sr-only", children: waiting ? tI18nComplete.raw('textdb0e960b68b5') : tI18nComplete.raw('text1862f81ed9d6') }), _jsx("p", { className: "sr-only", children: waiting ? waitingText : tI18nComplete.raw('text32c6817c8380') }), _jsx("div", { className: "border-border overflow-hidden rounded-xl border", children: _jsx(ApprovalDecisionPanel, { details: details, outcome: null, busyDecision: busyDecision, error: null, onDecision: onDecision, onOpenSession: onOpenSession, previewAuthorized: previewAuthorized, resolvers: resolvers, agentName: agentName, sessionTitle: sessionTitle }) })] }));
|
|
91
87
|
}
|
|
@@ -3,8 +3,15 @@ import { type ReactNode } from 'react';
|
|
|
3
3
|
import { type BulkResult } from './review-actions.js';
|
|
4
4
|
import { type ReviewItem, type ReviewSegment } from './types.js';
|
|
5
5
|
export declare function ReviewCenter({ initialItems, segment: segmentProp, onSegmentChange, loadMore, onAct, onBulkAct, onOpenSession, onRecoverChange, recoveringCrId, onRefresh, isLoading, isFetching, isFetched, isError, sessionLabels, verdictAllowed, needsYouDeck, }?: {
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The asks deck (questions and approvals agents wait on): in the empty
|
|
8
|
+
* detail pane, or above the list on a narrow inbox. It stays mounted while
|
|
9
|
+
* an item is open, `paused`, so a staged answer keeps its Undo window and
|
|
10
|
+
* the deck's keys answer nothing out of sight.
|
|
11
|
+
*/
|
|
12
|
+
needsYouDeck?: (opts: {
|
|
13
|
+
paused: boolean;
|
|
14
|
+
}) => ReactNode;
|
|
8
15
|
/** When provided, the inbox renders real data instead of the mock fixtures. */
|
|
9
16
|
initialItems?: ReviewItem[];
|
|
10
17
|
/** Connected mode: the segment is the server's filter, so the parent owns it. */
|