@kortix/ui 0.15.2 → 0.15.4
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 +243 -30
- package/dist/_vendor/shared/channel-descriptors.d.ts +1 -1
- package/dist/_vendor/shared/index.d.ts +1 -0
- package/dist/_vendor/shared/markdown-math.d.ts +6 -0
- package/dist/_vendor/shared/workspace-actions.d.ts +155 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +62 -0
- package/dist/access/access/access-dialog-share.js +6 -6
- package/dist/access/access/access-dialog.d.ts +44 -1
- package/dist/access/access/access-dialog.js +8 -8
- package/dist/access/access/agent-principals.d.ts +3 -3
- package/dist/access/access/agent-principals.js +5 -4
- package/dist/access/access/invite-people-dialog.d.ts +37 -0
- package/dist/access/access/invite-people-dialog.js +140 -0
- package/dist/access/access/principal-picker.js +3 -2
- package/dist/access/access/project-select.js +2 -2
- package/dist/access/access/role-select.d.ts +9 -8
- package/dist/access/access/role-select.js +22 -25
- package/dist/access/access/workspace-role-dialog.d.ts +27 -0
- package/dist/access/access/workspace-role-dialog.js +48 -0
- package/dist/access/iam/add-github-account-dialog.d.ts +1 -1
- package/dist/access/iam/add-github-account-dialog.js +1 -1
- package/dist/access/iam/api-key-expiry.d.ts +18 -0
- package/dist/access/iam/api-key-expiry.js +47 -0
- package/dist/access/iam/api-key-rows.d.ts +6 -0
- package/dist/access/iam/api-key-rows.js +3 -0
- package/dist/access/iam/workspace-key-acts-as.d.ts +41 -0
- package/dist/access/iam/workspace-key-acts-as.js +48 -0
- package/dist/access/sharing-intent.js +1 -1
- package/dist/access/sharing-picker.js +1 -1
- package/dist/animated-copy-icon.d.ts +2 -2
- package/dist/animated-copy-icon.js +7 -4
- package/dist/apps/app-shared.js +2 -2
- package/dist/artifacts/artifact-session.js +1 -1
- package/dist/customize/agents/agent-drives-section.d.ts +1 -3
- package/dist/customize/agents/agent-drives-section.js +5 -6
- package/dist/customize/agents/agent-page-chrome.js +1 -1
- package/dist/customize/agents/agent-page.js +6 -7
- package/dist/customize/agents/agent-tabs.d.ts +1 -1
- package/dist/customize/agents/agent-tabs.js +1 -2
- package/dist/customize/agents/agents-page.js +2 -3
- package/dist/customize/connectors/connector-identity.d.ts +1 -1
- package/dist/customize/connectors/connector-identity.js +1 -1
- package/dist/customize/connectors/connector-moves-banner.js +2 -2
- package/dist/customize/connectors/connectors-page.d.ts +10 -2
- package/dist/customize/connectors/connectors-page.js +38 -5
- package/dist/customize/connectors/detail/app-page.js +1 -1
- package/dist/customize/connectors/detail/connector-page.d.ts +1 -1
- package/dist/customize/connectors/detail/connector-page.js +1 -1
- package/dist/customize/connectors/detail/connector-policy-sets.js +2 -2
- package/dist/customize/connectors/detail/connector-tools.js +7 -7
- package/dist/customize/connectors/detail/connector-triggers.js +2 -3
- package/dist/customize/connectors/detail/email-inboxes.js +2 -2
- package/dist/customize/models/models-page.d.ts +1 -1
- package/dist/customize/models/models-page.js +1 -1
- package/dist/customize/project-settings/project-admin-sections.d.ts +53 -17
- package/dist/customize/project-settings/project-admin-sections.js +80 -31
- package/dist/customize/project-settings/project-settings-page.d.ts +2 -2
- package/dist/customize/project-settings/project-settings-page.js +6 -4
- package/dist/customize/project-settings/project-settings-sections.d.ts +2 -3
- package/dist/customize/project-settings/project-settings-sections.js +9 -4
- package/dist/customize/providers/provider-accordion.d.ts +3 -1
- package/dist/customize/providers/provider-accordion.js +2 -2
- package/dist/customize/secrets/secrets-page.d.ts +1 -1
- package/dist/customize/secrets/secrets-page.js +1 -1
- package/dist/customize/sections/component/email-connect-form.js +2 -2
- package/dist/customize/sections/component/slack-byo-wizard.js +3 -3
- package/dist/customize/sections/connectors-view.js +17 -17
- package/dist/customize/sections/gateway-view.d.ts +7 -5
- package/dist/customize/sections/gateway-view.js +28 -17
- package/dist/customize/sections/llm-provider/chatgpt-subscription-connect.js +2 -2
- package/dist/customize/sections/llm-provider/custom-provider-form.js +2 -2
- package/dist/customize/sections/llm-provider/llm-provider-modal.d.ts +1 -1
- package/dist/customize/sections/llm-provider/llm-provider-modal.js +4 -4
- package/dist/customize/sections/llm-provider/models-tab-row.js +5 -3
- package/dist/customize/sections/llm-provider/types.d.ts +2 -0
- package/dist/customize/sections/view/agent-editor-access-fields.js +1 -3
- package/dist/customize/sections/view/agent-editor-catalog.d.ts +5 -6
- package/dist/customize/sections/view/agent-editor-catalog.js +33 -14
- package/dist/customize/sections/view/agent-editor.js +1 -1
- package/dist/customize/sections/view/channels-view.js +13 -13
- package/dist/customize/sections/view/gateway/gateway-budgets.js +12 -10
- package/dist/customize/sections/view/gateway/gateway-logs.d.ts +1 -1
- package/dist/customize/sections/view/gateway/gateway-logs.js +3 -3
- package/dist/customize/sections/view/gateway/gateway-overview.js +1 -1
- package/dist/customize/sections/view/gateway/gateway-routing.js +1 -1
- package/dist/customize/sections/view/git-view.js +3 -3
- package/dist/customize/sections/view/grant-mode-field.js +2 -2
- package/dist/customize/sections/view/review-center-connected.js +1 -1
- package/dist/customize/sections/view/review-view.d.ts +0 -15
- package/dist/customize/sections/view/review-view.js +1 -23
- package/dist/customize/sections/view/secret-delivery.js +2 -2
- package/dist/customize/sections/view/secrets-view.js +16 -16
- package/dist/customize/sections/view/subscription-usage-tab.d.ts +12 -1
- package/dist/customize/sections/view/subscription-usage-tab.js +71 -72
- package/dist/customize/settings/rail-copy-context.js +1 -1
- package/dist/customize/settings/rail.d.ts +1 -1
- package/dist/customize/settings/rail.js +11 -18
- package/dist/customize/settings/settings-tab-header.d.ts +1 -1
- package/dist/customize/settings/settings-tab-header.js +1 -1
- package/dist/customize/settings/settings-tabs.d.ts +5 -12
- package/dist/customize/settings/settings-tabs.js +31 -44
- package/dist/customize/settings/tabs/experimental-tab.js +4 -4
- package/dist/customize/settings/tabs/general-tab.d.ts +29 -11
- package/dist/customize/settings/tabs/general-tab.js +55 -25
- package/dist/customize/settings/tabs/project-edit-patch.d.ts +0 -13
- package/dist/customize/settings/tabs/project-edit-patch.js +0 -28
- package/dist/customize/settings/tabs/sandbox-tab.js +2 -2
- package/dist/customize/settings/tabs/tokens-tab.d.ts +32 -2
- package/dist/customize/settings/tabs/tokens-tab.js +157 -32
- package/dist/customize/settings/tabs/workspace-keys.d.ts +6 -0
- package/dist/customize/settings/tabs/workspace-keys.js +240 -0
- package/dist/customize/shared/capability-library.js +3 -1
- package/dist/customize/shared/catalog/catalog-space-tabs.js +2 -2
- package/dist/customize/shared/customize-tab-bar.d.ts +6 -2
- package/dist/customize/shared/customize-tab-bar.js +36 -35
- package/dist/customize/shared/standalone-settings-nav.js +2 -2
- package/dist/customize/triggers/schedule/schedule-copy.d.ts +1 -1
- package/dist/customize/triggers/schedule/trigger-composer.js +5 -6
- package/dist/customize/triggers/schedule/trigger-list.js +2 -2
- package/dist/customize/triggers/schedule/trigger-session-access-copy.d.ts +6 -6
- package/dist/customize/triggers/schedule/trigger-session-access-copy.js +3 -3
- package/dist/customize/triggers/schedule/when-event.js +4 -4
- package/dist/customize/triggers/schedule/when-webhook-address.js +2 -2
- package/dist/customize/triggers/schedule/when-webhook.js +2 -2
- package/dist/customize/triggers/schedule-view.js +4 -5
- package/dist/customize/triggers/triggers-page.d.ts +1 -1
- package/dist/customize/triggers/triggers-page.js +1 -1
- package/dist/files/drives/drive-storage.d.ts +2 -2
- package/dist/files/drives/drive-storage.js +13 -6
- package/dist/files/project/components/change-request-detail-dialog.js +6 -6
- package/dist/files/project/components/change-requests-panel.js +2 -2
- package/dist/files/project/components/diff-preview-banner.d.ts +1 -1
- package/dist/files/project/components/diff-preview-banner.js +1 -1
- package/dist/files/project/components/drive-explorer.js +64 -43
- package/dist/files/project/components/drive-grid-view.js +1 -1
- package/dist/files/project/components/drive-list-view.js +1 -1
- package/dist/files/project/components/drive-upload-tray.d.ts +2 -1
- package/dist/files/project/components/drive-upload-tray.js +9 -4
- package/dist/files/project/context.d.ts +1 -1
- package/dist/files/project/context.js +1 -1
- package/dist/files/project/drop-tree.d.ts +16 -0
- package/dist/files/project/drop-tree.js +39 -0
- package/dist/files/project/upload-batch.d.ts +15 -0
- package/dist/files/project/upload-batch.js +12 -0
- package/dist/files/renderers/image-renderer.js +1 -1
- package/dist/files/runtime/hooks/use-binary-blob.js +12 -2
- package/dist/files/runtime/hooks/use-file-content.js +18 -2
- package/dist/files/viewer/file-content-renderer.js +2 -2
- package/dist/files/viewer/preview-fit.d.ts +1 -1
- package/dist/files/viewer/preview-fit.js +1 -1
- package/dist/i18n/en.d.ts +317 -31
- package/dist/i18n/en.js +882 -596
- package/dist/i18n/ui-catalog/account-hub-translation-keys.generated.js +9 -9
- package/dist/i18n/ui-catalog/app-registry-translation-keys.generated.js +12 -6
- package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.js +5 -5
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +67 -60
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +1 -0
- package/dist/icons/solid-right-arrow.d.ts +8 -0
- package/dist/icons/solid-right-arrow.js +11 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/account-hub/account-hub-entry.js +9 -8
- package/dist/internal/account-hub/account-hub-location.d.ts +20 -3
- package/dist/internal/account-hub/account-hub-location.js +16 -7
- package/dist/internal/account-hub/hub-sheet.d.ts +1 -1
- package/dist/internal/account-hub/hub-sheet.js +1 -1
- package/dist/internal/account-hub/sections.d.ts +2 -2
- package/dist/internal/account-hub/sections.js +10 -10
- package/dist/internal/account-hub/use-account-hub-access.d.ts +2 -0
- package/dist/internal/account-hub/use-account-hub-access.js +13 -5
- package/dist/internal/account-hub/workspace-settings-route.d.ts +27 -0
- package/dist/internal/account-hub/workspace-settings-route.js +51 -0
- package/dist/internal/billing/use-cost-explorer.d.ts +19 -1
- package/dist/internal/billing/use-cost-explorer.js +27 -1
- package/dist/internal/components/nav-rail.d.ts +3 -1
- package/dist/internal/components/nav-rail.js +2 -0
- package/dist/internal/components/repository-disconnected.js +2 -2
- package/dist/internal/desktop/desktop-back-button.d.ts +1 -1
- package/dist/internal/files/file-read-retry.d.ts +13 -0
- package/dist/internal/files/file-read-retry.js +53 -1
- package/dist/internal/goals/goal-meta.d.ts +2 -1
- package/dist/internal/goals/goal-meta.js +4 -2
- package/dist/internal/hooks/account/use-accounts-list.d.ts +2 -12
- package/dist/internal/hooks/account/use-accounts-list.js +1 -14
- package/dist/internal/hooks/account/use-my-invites.d.ts +1 -1
- package/dist/internal/hooks/account/use-my-invites.js +1 -1
- package/dist/internal/hooks/use-review-session-summary.d.ts +7 -0
- package/dist/internal/hooks/use-review-session-summary.js +12 -1
- package/dist/internal/layout/project-capability-nav.d.ts +6 -17
- package/dist/internal/layout/project-capability-nav.js +7 -79
- package/dist/internal/layout/project-settings-nav.d.ts +2 -2
- package/dist/internal/layout/project-settings-nav.js +3 -3
- package/dist/internal/lib/billing/billing-gate-state.d.ts +10 -0
- package/dist/internal/lib/billing/billing-gate-state.js +20 -3
- package/dist/internal/lib/browser-error-noise.d.ts +1 -1
- package/dist/internal/lib/browser-error-noise.js +1 -1
- package/dist/internal/lib/browser-noise/rules/expected-states.js +2 -3
- package/dist/internal/lib/browser-noise/rules/extensions.js +18 -0
- package/dist/internal/lib/browser-noise/rules/injected-scripts.d.ts +5 -1
- package/dist/internal/lib/browser-noise/rules/injected-scripts.js +141 -5
- package/dist/internal/lib/capability-tab-routes.d.ts +16 -40
- package/dist/internal/lib/capability-tab-routes.js +25 -54
- package/dist/internal/lib/desktop.d.ts +1 -1
- package/dist/internal/lib/desktop.js +1 -1
- package/dist/internal/lib/github-installations.d.ts +1 -1
- package/dist/internal/lib/github-installations.js +1 -1
- package/dist/internal/lib/mermaid-utils.js +2 -24
- package/dist/internal/lib/model-pricing.js +1 -1
- package/dist/internal/lib/navigation/session-href.d.ts +1 -1
- package/dist/internal/lib/navigation/session-href.js +1 -1
- package/dist/internal/lib/onboarding/landing-destination.d.ts +12 -4
- package/dist/internal/lib/onboarding/landing-destination.js +17 -5
- package/dist/internal/lib/onboarding/last-project-cookie.d.ts +1 -1
- package/dist/internal/lib/onboarding/last-project-cookie.js +1 -1
- package/dist/internal/lib/project-actions.d.ts +1 -4
- package/dist/internal/lib/project-actions.js +2 -5
- package/dist/internal/lib/provider-branding.js +11 -3
- package/dist/internal/lib/use-project-can.d.ts +1 -3
- package/dist/internal/lib/use-project-can.js +0 -5
- package/dist/internal/lib/web-notifications.js +5 -5
- package/dist/internal/notifications/notification-inbox.d.ts +8 -2
- package/dist/internal/notifications/notification-inbox.js +8 -5
- package/dist/internal/notifications/use-inbox-summary.d.ts +8 -4
- package/dist/internal/notifications/use-inbox-summary.js +12 -6
- package/dist/internal/reminders/use-refetch-after-fire.d.ts +0 -2
- package/dist/internal/reminders/use-refetch-after-fire.js +1 -10
- package/dist/internal/stores/account-panel-store.d.ts +17 -1
- package/dist/internal/stores/account-panel-store.js +19 -2
- package/dist/internal/stores/project-switch-store.d.ts +2 -2
- package/dist/internal/stores/project-switch-store.js +4 -4
- package/dist/internal/stores/settings-panel-store.d.ts +6 -0
- package/dist/internal/stores/settings-panel-store.js +4 -1
- package/dist/internal/stores/workspace-settings-rail-store.d.ts +67 -0
- package/dist/internal/stores/workspace-settings-rail-store.js +11 -0
- package/dist/lib/routes.js +19 -18
- package/dist/lib/z-stack.d.ts +7 -0
- package/dist/lib/z-stack.js +13 -0
- package/dist/markdown/copy-button.d.ts +2 -2
- package/dist/markdown/copy-button.js +22 -20
- package/dist/markdown/setup-links/setup-link-button.js +1 -1
- package/dist/primitives/emoji-tint.d.ts +1 -1
- package/dist/primitives/emoji-tint.js +1 -1
- package/dist/primitives/error-state.js +8 -1
- package/dist/primitives/inline-meta.d.ts +12 -1
- package/dist/primitives/inline-meta.js +38 -5
- package/dist/primitives/mermaid-render.js +3 -20
- package/dist/primitives/page-search-bar.js +6 -6
- package/dist/primitives/section.d.ts +3 -3
- package/dist/primitives/section.js +9 -9
- package/dist/primitives/status.d.ts +5 -5
- package/dist/primitives/status.js +33 -33
- package/dist/primitives/tabs.d.ts +14 -26
- package/dist/primitives/tabs.js +103 -105
- package/dist/primitives/tag.d.ts +1 -1
- package/dist/primitives/toast.d.ts +6 -6
- package/dist/primitives/toast.js +55 -48
- package/dist/providers/session-ids.d.ts +1 -1
- package/dist/providers/ui-provider.d.ts +2 -0
- package/dist/session/agents/agent-strip.js +6 -6
- package/dist/session/agents/subagent-dialog-content.js +3 -4
- package/dist/session/agents/workflow-run-controls.d.ts +0 -2
- package/dist/session/agents/workflow-run-controls.js +1 -12
- package/dist/session/composer/ComposerCard.d.ts +1 -1
- package/dist/session/composer/ComposerCard.js +2 -2
- package/dist/session/composer/animated-placeholder.js +1 -1
- package/dist/session/composer/chat-input/chat-input-control.js +1 -8
- package/dist/session/composer/composer-chat-input.d.ts +14 -1
- package/dist/session/composer/composer-chat-input.js +4 -2
- package/dist/session/composer/composer-toolbar.d.ts +22 -17
- package/dist/session/composer/composer-toolbar.js +12 -3
- package/dist/session/composer/composer.d.ts +8 -0
- package/dist/session/composer/composer.js +5 -13
- package/dist/session/composer/reasoning-effort-selector.d.ts +21 -0
- package/dist/session/composer/reasoning-effort-selector.js +46 -1
- package/dist/session/composer/send-stop-control.d.ts +15 -1
- package/dist/session/composer/send-stop-control.js +30 -5
- package/dist/session/header/session-embed-menu-item.d.ts +12 -0
- package/dist/session/header/session-embed-menu-item.js +30 -0
- package/dist/{workspace/sidebar/modal/session-embed-section.d.ts → session/header/session-embed-snippet.d.ts} +2 -11
- package/dist/session/header/session-embed-snippet.js +21 -0
- package/dist/session/header/session-goal-indicator.js +2 -3
- package/dist/session/header/session-reminders-indicator.js +3 -3
- package/dist/session/header/session-site-header.js +10 -3
- package/dist/session/index.d.ts +1 -1
- package/dist/session/models/ask-owner-for-credits-button.d.ts +7 -1
- package/dist/session/models/ask-owner-for-credits-button.js +3 -2
- package/dist/session/models/model-availability.d.ts +11 -0
- package/dist/session/models/model-availability.js +12 -0
- package/dist/session/models/model-connection-gate.d.ts +11 -26
- package/dist/session/models/model-connection-gate.js +22 -35
- package/dist/session/models/model-grouping.d.ts +30 -0
- package/dist/session/models/model-grouping.js +46 -0
- package/dist/session/models/model-picker-panel.d.ts +62 -0
- package/dist/session/models/model-picker-panel.js +181 -0
- package/dist/session/models/model-selector.d.ts +28 -4
- package/dist/session/models/model-selector.js +59 -15
- package/dist/session/models/model-tags.d.ts +4 -8
- package/dist/session/models/model-tags.js +20 -13
- package/dist/session/models/subscription-offer.d.ts +35 -0
- package/dist/session/models/subscription-offer.js +91 -0
- package/dist/session/models/use-model-connection-gate.d.ts +3 -3
- package/dist/session/models/use-model-connection-gate.js +8 -6
- package/dist/session/overrides/session-overrides-toolbar.js +8 -5
- package/dist/session/panel/open-session-quick-view.js +1 -1
- package/dist/session/panel/session-detail-panel.js +5 -1
- package/dist/session/panel/session-panel-provider.js +2 -2
- package/dist/session/panel/session-reminders-panel.js +2 -2
- package/dist/session/panel/shared/use-panel-derivations.d.ts +1 -0
- package/dist/session/panel/shared/use-panel-derivations.js +1 -1
- package/dist/session/panel/shared/use-panel-handoffs.d.ts +2 -2
- package/dist/session/panel/shared/use-panel-handoffs.js +22 -3
- package/dist/session/panel/use-session-panel-state.js +1 -1
- package/dist/session/prompts/ask-deck.d.ts +5 -3
- package/dist/session/prompts/ask-deck.js +30 -10
- package/dist/session/prompts/session-access-prompt.d.ts +61 -0
- package/dist/session/prompts/session-access-prompt.js +88 -0
- package/dist/session/prompts/session-permission-prompt.js +1 -1
- package/dist/session/scope/session-scope-control.js +2 -2
- package/dist/session/status/session-notice-banner.js +3 -3
- package/dist/session/status/session-route-prefetch.d.ts +2 -2
- package/dist/session/thread/optimistic-turn.js +1 -1
- package/dist/session/thread/session-chat.js +51 -19
- package/dist/session/thread/session-context-message-explorer.js +2 -2
- package/dist/session/thread/session-history.js +3 -3
- package/dist/session/tool/render-static.d.ts +11 -0
- package/dist/session/tool/render-static.js +16 -0
- package/dist/session/tool/shared/session-helpers.js +2 -2
- package/dist/session/tool/tool-part-renderer.d.ts +6 -1
- package/dist/session/tool/tool-part-renderer.js +9 -5
- package/dist/session/tool/tools/kortix-action-tool.js +4 -25
- package/dist/session/tool/tools/task-tool.js +9 -2
- package/dist/session/tool/tools/workflow-run-card.js +5 -1
- package/dist/session/tool/tools/workflow-tool.js +3 -14
- package/dist/session/turn/user-message.js +1 -1
- package/dist/session/voice/composer-call.d.ts +31 -0
- package/dist/session/voice/composer-call.js +46 -0
- package/dist/session/voice/voice-call-card.js +2 -0
- package/dist/session/voice/voice-call-store.d.ts +8 -0
- package/dist/session/voice/voice-call-store.js +5 -0
- package/dist/session/voice/voice-call.d.ts +2 -2
- package/dist/session/voice/voice-call.js +6 -6
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +10103 -0
- package/dist/test-utils/intl.js +27 -0
- package/dist/test-utils/strip-tags.d.ts +24 -0
- package/dist/test-utils/strip-tags.js +32 -0
- package/dist/workspace/admin/project-admin-dashboard.d.ts +51 -33
- package/dist/workspace/admin/project-admin-dashboard.js +269 -81
- package/dist/workspace/admin/settings-search-landing.d.ts +11 -0
- package/dist/workspace/admin/settings-search-landing.js +103 -0
- package/dist/workspace/admin/settings-search.d.ts +69 -0
- package/dist/workspace/admin/settings-search.js +393 -0
- package/dist/workspace/home/existing-repo-setup-prompt.d.ts +22 -0
- package/dist/workspace/home/existing-repo-setup-prompt.js +57 -0
- package/dist/workspace/home/no-agent-home.d.ts +25 -0
- package/dist/workspace/home/no-agent-home.js +44 -0
- package/dist/workspace/home/welcome-body.js +2 -1
- package/dist/workspace/inbox/workspace-inbox.d.ts +21 -0
- package/dist/workspace/inbox/workspace-inbox.js +52 -0
- package/dist/workspace/instant-session-shell.js +11 -1
- package/dist/workspace/layout/project-files-view.js +1 -1
- package/dist/workspace/layout/project-home.js +84 -11
- package/dist/workspace/layout/use-project-home-call.d.ts +24 -0
- package/dist/workspace/layout/use-project-home-call.js +56 -0
- package/dist/workspace/memory/memory-body.js +2 -2
- package/dist/workspace/new/account-param.d.ts +1 -1
- package/dist/workspace/new/account-param.js +4 -4
- package/dist/workspace/new/advanced-fields.js +3 -3
- package/dist/workspace/new/clone-param.d.ts +1 -1
- package/dist/workspace/new/clone-param.js +1 -1
- package/dist/workspace/new/create-workspace-key.js +1 -1
- package/dist/workspace/new/github-source.d.ts +6 -6
- package/dist/workspace/new/github-source.js +6 -6
- package/dist/workspace/new/new-workspace-form.d.ts +11 -141
- package/dist/workspace/new/new-workspace-form.js +9 -195
- package/dist/workspace/new/provision-new-workspace.d.ts +14 -0
- package/dist/workspace/new/provision-new-workspace.js +14 -0
- package/dist/workspace/new/repository-options.d.ts +2 -2
- package/dist/workspace/new/repository-options.js +2 -2
- package/dist/workspace/new/source-param.d.ts +2 -2
- package/dist/workspace/new/source-param.js +2 -2
- package/dist/workspace/new/use-create-workspace.d.ts +43 -102
- package/dist/workspace/new/use-create-workspace.js +77 -136
- package/dist/workspace/new/use-project-quota.d.ts +1 -1
- package/dist/workspace/new/use-project-quota.js +1 -1
- package/dist/workspace/new/workspace-handoff.d.ts +2 -2
- package/dist/workspace/new/workspace-handoff.js +2 -2
- package/dist/workspace/new/workspace-name.d.ts +14 -1
- package/dist/workspace/new/workspace-name.js +21 -1
- package/dist/workspace/project-selector/project-selector-model.d.ts +115 -57
- package/dist/workspace/project-selector/project-selector-model.js +157 -111
- package/dist/workspace/projects/modal/project-icon-field.d.ts +5 -5
- package/dist/workspace/projects/modal/project-icon-field.js +4 -4
- package/dist/workspace/projects/policies-panel.js +3 -3
- package/dist/workspace/sessions/board-grouping.js +1 -1
- package/dist/workspace/sessions/project-sessions-view.js +2 -2
- package/dist/workspace/sessions/session-detail.js +2 -2
- package/dist/workspace/sessions/sessions-board.d.ts +1 -1
- package/dist/workspace/sessions/sessions-board.js +1 -1
- package/dist/workspace/settings/split-notice-banner.d.ts +13 -0
- package/dist/workspace/settings/split-notice-banner.js +59 -0
- package/dist/workspace/settings/use-leave-workspace.d.ts +16 -0
- package/dist/workspace/settings/use-leave-workspace.js +60 -0
- package/dist/workspace/sidebar/footer/project-balance-warning.js +9 -6
- package/dist/workspace/sidebar/footer/project-files-nav.js +2 -2
- package/dist/workspace/sidebar/footer/sandbox-health.js +1 -1
- package/dist/workspace/sidebar/footer/sidebar-alert.d.ts +1 -1
- package/dist/workspace/sidebar/invitations-menu-group.d.ts +2 -2
- package/dist/workspace/sidebar/invitations-menu-group.js +4 -4
- package/dist/workspace/sidebar/modal/share-session-access.js +1 -1
- package/dist/workspace/sidebar/modal/share-session-modal.js +4 -5
- package/dist/workspace/sidebar/project-nav-items.js +14 -25
- package/dist/workspace/sidebar/project-sidebar.js +17 -2
- package/dist/workspace/sidebar/project-spaces-nav.js +6 -15
- package/dist/workspace/sidebar/sidebar-drill.d.ts +37 -0
- package/dist/workspace/sidebar/sidebar-drill.js +110 -0
- package/dist/workspace/sidebar/use-workspace-directory.d.ts +24 -0
- package/dist/workspace/sidebar/use-workspace-directory.js +24 -0
- package/dist/workspace/sidebar/use-workspace-list.d.ts +37 -0
- package/dist/workspace/sidebar/use-workspace-list.js +71 -0
- package/dist/workspace/sidebar/workspace-grouping.d.ts +6 -67
- package/dist/workspace/sidebar/workspace-grouping.js +4 -107
- package/dist/workspace/sidebar/workspace-menu-model.d.ts +30 -12
- package/dist/workspace/sidebar/workspace-menu-model.js +13 -107
- package/dist/workspace/sidebar/workspace-menu-section.d.ts +7 -1
- package/dist/workspace/sidebar/workspace-menu-section.js +65 -100
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +34 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +282 -0
- package/dist/workspace/space/space-filter-tabs.js +2 -2
- package/dist/workspace/space/space-page.d.ts +1 -1
- package/dist/workspace/space/space-page.js +1 -1
- package/package.json +55 -51
- package/skills/kortix-ui/SKILL.md +66 -66
- package/skills/kortix-ui/references/custom-dashboard.md +15 -15
- package/skills/kortix-ui/references/modules.md +15 -15
- package/dist/customize/agents/agent-pin-button.d.ts +0 -10
- package/dist/customize/agents/agent-pin-button.js +0 -20
- package/dist/customize/settings/tabs/transfer-workspace-dialog.d.ts +0 -4
- package/dist/customize/settings/tabs/transfer-workspace-dialog.js +0 -82
- package/dist/internal/account-hub/account-settings-shell.d.ts +0 -7
- package/dist/internal/account-hub/account-settings-shell.js +0 -87
- package/dist/internal/account-hub/account-settings-sidebar.d.ts +0 -2
- package/dist/internal/account-hub/account-settings-sidebar.js +0 -169
- package/dist/internal/lib/use-project-feature-flags.d.ts +0 -28
- package/dist/internal/lib/use-project-feature-flags.js +0 -76
- package/dist/internal/stores/pinned-agents-store.d.ts +0 -26
- package/dist/internal/stores/pinned-agents-store.js +0 -20
- package/dist/primitives/info-banner.d.ts +0 -14
- package/dist/primitives/info-banner.js +0 -72
- package/dist/workspace/new/account-picker.d.ts +0 -71
- package/dist/workspace/new/account-picker.js +0 -92
- package/dist/workspace/new/use-creatable-accounts.d.ts +0 -8
- package/dist/workspace/new/use-creatable-accounts.js +0 -33
- package/dist/workspace/sidebar/modal/session-embed-section.js +0 -71
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kortix-ui
|
|
3
|
-
description: "Build React UI with @kortix/ui, the Kortix component library and the whole Kortix session experience as modules (session workspace, thread, composer, side panel, files, file viewer, terminal,
|
|
3
|
+
description: "Build React UI with @kortix/ui, the Kortix component library and the whole Kortix session experience as modules (session workspace, thread, composer, side panel, files, file viewer, terminal, workspace sidebar and home, customize pages): Kortix Apps, white-label hosts, custom dashboards on @kortix/sdk and apps/web. Load before you write a component, a page, a chat or session view, a custom dashboard or App, or a className in a React host that renders Kortix UI, or when you theme Kortix components for another brand. Covers setup, the module map, which component to compose, banned primitives, tokens, the dashboard guide, white-label theming and the verify steps."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# @kortix/ui
|
|
@@ -14,64 +14,60 @@ Module entries and `@kortix/ui/theme` need 0.14.4+. Inside `kortix-ai/CompanyOS`
|
|
|
14
14
|
|
|
15
15
|
## 1. Set up once
|
|
16
16
|
|
|
17
|
-
1. Styles. A Tailwind v4 host: `@import 'tailwindcss'; @import '@kortix/ui/tailwind.css';` in its main CSS,
|
|
18
|
-
plus the optional peers `tw-animate-css`, `tailwind-scrollbar`, `tailwind-scrollbar-hide`.
|
|
19
|
-
A host without Tailwind imports `@kortix/ui/styles.css` once: every class the package uses, none of yours.
|
|
17
|
+
1. Styles. A Tailwind v4 host: `@import 'tailwindcss'; @import '@kortix/ui/tailwind.css';` in its main CSS, plus the optional peers `tw-animate-css`, `tailwind-scrollbar`, `tailwind-scrollbar-hide`. A host without Tailwind imports `@kortix/ui/styles.css` once: every class the package uses, none of yours.
|
|
20
18
|
2. Fonts. `@kortix/ui/fonts.css` (Roobert) is for Kortix-owned surfaces only. A white-label host never imports it.
|
|
21
|
-
3. Mount once at the root: `QueryClientProvider`, `UiProvider` (`link`, `navigation`: your router, `observesHistory: true` under Next.js; `components`:
|
|
22
|
-
|
|
23
|
-
marks; `i18n`, `strings`, `image`, `useViewerId`: without it no sender name or "Stopped by" shows), `IconProvider` (`@kortix/ui/icon-provider`), one `<Toaster />`
|
|
24
|
-
(`@kortix/ui/toast`). `setUiTelemetry` (`@kortix/ui`) once at module load. Dark mode is `dark` on `<html>`. SDK `billingEnabled` stays off (Kortix's app only).
|
|
25
|
-
4. Ids, never route params. `SessionThread`, `SessionWorkspace` and `ProjectHome` mount `SessionIdsProvider` and the
|
|
26
|
-
SDK project scope themselves. A block outside them: `KortixProjectProvider` (`@kortix/sdk/react`) and
|
|
27
|
-
`SessionIdsProvider` (`projectId`, `sessionId`) around it. Links follow `setUiRoutes` (`@kortix/ui`): map each page you do not serve to `null`.
|
|
19
|
+
3. Mount once at the root: `QueryClientProvider`, `UiProvider` (`link`, `navigation`: your router, `observesHistory: true` under Next.js; `components`: host slots, a missing slot hides its control; `config`: `managedModelsEnabled`, `connectorsEnabled`, `terminalEnabled`, `cliConnectEnabled`, `publicSharesEnabled`, `commandPaletteShortcut`, `settingsShortcut`, `accountApiEnabled`; `resolvePreviewUrl`; `useBrand`: your marks; `i18n`, `strings`, `image`, `useViewerId`: without it no sender name or "Stopped by" shows), `IconProvider` (`@kortix/ui/icon-provider`), one `<Toaster />` (`@kortix/ui/toast`). `setUiTelemetry` (`@kortix/ui`) once at module load. Dark mode is `dark` on `<html>`. SDK `billingEnabled` stays off (Kortix's app only).
|
|
20
|
+
4. Ids, never route params. `SessionThread`, `SessionWorkspace` and `ProjectHome` mount `SessionIdsProvider` and the SDK workspace scope themselves. A block outside them: `KortixProjectProvider` (`@kortix/sdk/react`) and `SessionIdsProvider` (`projectId`, `sessionId`) around it. Links follow `setUiRoutes` (`@kortix/ui`): map each page you do not serve to `null`.
|
|
28
21
|
5. Import by subpath: `import { Modal } from '@kortix/ui/modal'`. The root `@kortix/ui` (section 7) needs no `@kortix/sdk`.
|
|
29
22
|
|
|
30
23
|
## 2. Compose before you create
|
|
31
24
|
|
|
32
|
-
| Job
|
|
33
|
-
|
|
|
34
|
-
| Dialog or sheet
|
|
35
|
-
| Destructive action
|
|
36
|
-
| Tooltip on an icon button
|
|
37
|
-
| Toast after a mutation
|
|
38
|
-
| Status chip; count beside a label | `Badge size="sm"`; `CountBadge` (`waiting`, `reminder`, `conflict`, `neutral`)
|
|
39
|
-
| Inline alert
|
|
40
|
-
| Pending spinner
|
|
41
|
-
| Expand and collapse
|
|
42
|
-
| Form field; search field
|
|
43
|
-
| Panel; buttons side by side
|
|
44
|
-
| Tabs and filters
|
|
45
|
-
| Menu, picker, palette
|
|
46
|
-
| Table and empty list
|
|
25
|
+
| Job | Compose | Subpath |
|
|
26
|
+
| --------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
|
|
27
|
+
| Dialog or sheet | `Modal`, `ModalContent`, `ModalHeader`, `ModalTitle`, `ModalBody`, `ModalFooter` | `modal` |
|
|
28
|
+
| Destructive action | `ConfirmDialog` before the mutation, never a single click | `confirm-dialog` |
|
|
29
|
+
| Tooltip on an icon button | `Hint label="…"` | `hint` |
|
|
30
|
+
| Toast after a mutation | `successToast`, `errorToast`, `infoToast`, `warningToast`, `loadingToast` | `toast` |
|
|
31
|
+
| Status chip; count beside a label | `Badge size="sm"`; `CountBadge` (`waiting`, `reminder`, `conflict`, `neutral`) | `badge`, `count-badge` |
|
|
32
|
+
| Inline alert | `Alert` + `AlertTitle` + `AlertDescription` | `alert` |
|
|
33
|
+
| Pending spinner | `Loading` (default export) | `loading` |
|
|
34
|
+
| Expand and collapse | `Disclosure`, `DisclosureTrigger`, `DisclosureContent` | `disclosure` |
|
|
35
|
+
| Form field; search field | `Field`, `FieldLabel`, `FieldGroup`, `FieldDescription` with `Input`, `Textarea`, `Select`; `InputGroupSearch` | `field`, `input-group` |
|
|
36
|
+
| Panel; buttons side by side | `Card` and its slots, or `bg-popover rounded-md border px-4 py-5`; `ButtonGroup` | `card`, `button-group` |
|
|
37
|
+
| Tabs and filters | `Tabs`, `TabsList size="xs"`, `TabsTrigger` | `tabs` |
|
|
38
|
+
| Menu, picker, palette | `DropdownMenu`, `Popover`, `Command` | `dropdown-menu`, `popover`, `command` |
|
|
39
|
+
| Table and empty list | `Table`; `Empty` with one muted line | `table`, `empty` |
|
|
47
40
|
|
|
48
41
|
A new primitive is the last step: tokens only, a small API, and a section on `/design-system`.
|
|
42
|
+
|
|
49
43
|
## 3. Banned
|
|
50
44
|
|
|
51
|
-
| Never
|
|
52
|
-
|
|
|
53
|
-
| `Dialog` / `DialogContent` in feature code
|
|
54
|
-
| `Tooltip` primitives in feature code
|
|
55
|
-
| `toast()` from `sonner`, `toast.success()`
|
|
56
|
-
| An icon with `animate-spin`, `CircleNotchIcon`, `SpinnerIcon` | `Loading`
|
|
57
|
-
| A hand-rolled chip `<span>` or a colored banner
|
|
58
|
-
| `SectionCard`, `List` / `ListRow`
|
|
59
|
-
| `lucide-react` or another icon set
|
|
60
|
-
| A fork or a restyled copy of a component
|
|
45
|
+
| Never | Use |
|
|
46
|
+
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
47
|
+
| `Dialog` / `DialogContent` in feature code | `Modal` |
|
|
48
|
+
| `Tooltip` primitives in feature code | `Hint` |
|
|
49
|
+
| `toast()` from `sonner`, `toast.success()` | the toast helpers and `<Toaster />`, all from `@kortix/ui/toast`; a host needs no `sonner` import |
|
|
50
|
+
| An icon with `animate-spin`, `CircleNotchIcon`, `SpinnerIcon` | `Loading` |
|
|
51
|
+
| A hand-rolled chip `<span>` or a colored banner | `Badge`, `Alert` |
|
|
52
|
+
| `SectionCard`, `List` / `ListRow` | `Card`, `<ul className="space-y-2">` rows |
|
|
53
|
+
| `lucide-react` or another icon set | `@phosphor-icons/react`, `*Icon` names, no `weight` prop (only `weight="fill"` for solid status glyphs) |
|
|
54
|
+
| A fork or a restyled copy of a component | the component as it ships; theme with tokens (section 6) |
|
|
61
55
|
|
|
62
56
|
## 4. Tokens only
|
|
63
57
|
|
|
64
|
-
- Colors are semantic utilities (`bg-background`, `bg-card`, `bg-muted`, `text-muted-foreground`, `border-border`,
|
|
65
|
-
`bg-primary`, `text-destructive`). Never a hex, `rgb()`, `oklch()` or a palette class (`text-emerald-600`).
|
|
58
|
+
- Colors are semantic utilities (`bg-background`, `bg-card`, `bg-muted`, `text-muted-foreground`, `border-border`, `bg-primary`, `text-destructive`). Never a hex, `rgb()`, `oklch()` or a palette class (`text-emerald-600`).
|
|
66
59
|
- `--spacing` is `0.23rem`, 8% tighter than stock Tailwind: a 16px mockup gap is `gap-4`, never `gap-[16px]`.
|
|
67
60
|
- `rounded-md` for panels and fields; elevation only on overlays. Hover is `transition-colors duration-fast`; no motion over 300 ms.
|
|
68
61
|
|
|
69
62
|
## 5. Status tones
|
|
70
63
|
|
|
71
64
|
One meaning per hue. `StatusTone` (`@kortix/ui/status`): `success`, `warning`, `destructive`, `info`, `neutral`, for
|
|
72
|
-
`
|
|
65
|
+
`StatusBadge` and `STATUS_DOT`; `Badge` variants map the same, `muted` for neutral.
|
|
66
|
+
`Alert` accepts only `default`, `success`, `warning`, and `destructive`. Map info and neutral notices to `variant="default"`. Tinted icon tile:
|
|
73
67
|
`bg-kortix-green/15` (or `-orange`, `-blue`) with the icon in the full hue.
|
|
74
68
|
|
|
69
|
+
Example: `<Alert variant="default"><AlertTitle>…</AlertTitle><AlertDescription>…</AlertDescription></Alert>` from `@kortix/ui/alert`. Never pass `title` to `Alert`: it is a native tooltip attribute, not visible content.
|
|
70
|
+
|
|
75
71
|
## 6. White-label
|
|
76
72
|
|
|
77
73
|
Theme with `@kortix/ui/theme`, never by forking a component: `themeToCss(theme)` in a `<style>` for the app,
|
|
@@ -82,21 +78,20 @@ Theme with `@kortix/ui/theme`, never by forking a component: `themeToCss(theme)`
|
|
|
82
78
|
|
|
83
79
|
## 7. Components
|
|
84
80
|
|
|
85
|
-
| Import from
|
|
86
|
-
|
|
|
87
|
-
| `@kortix/ui` (adapters)
|
|
88
|
-
| `@kortix/ui` (actions, display)
|
|
89
|
-
| `@kortix/ui` (forms)
|
|
90
|
-
| `@kortix/ui` (overlays)
|
|
91
|
-
| `@kortix/ui` (primitives, not for feature code: section 3) | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`, `Tooltip`, `TooltipContent`, `TooltipProvider`, `TooltipTrigger`
|
|
92
|
-
| `@kortix/ui` (navigation)
|
|
93
|
-
| `@kortix/ui` (conversation)
|
|
94
|
-
| `@kortix/ui` (hooks, helpers)
|
|
95
|
-
| `@kortix/ui/theme`
|
|
96
|
-
| `@kortix/ui/session` (whole thread)
|
|
97
|
-
| `@kortix/ui/session` (blocks)
|
|
98
|
-
| `@kortix/ui/session` (tool rows, pickers)
|
|
99
|
-
|
|
81
|
+
| Import from | Names |
|
|
82
|
+
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
83
|
+
| `@kortix/ui` (adapters) | `cn`, `UiProvider`, `defaultUiStrings`, `useUiStrings`, `useUiLink`, `useUiImage`, `useUiBrand`, `UiStrings`, `UiStringsInput`, `UiLinkProps`, `UiLinkComponent`, `UiImageProps`, `UiImageComponent`, `UiBrand`, `UseUiBrand`, `useIsDark`, `useUiRouter`, `useUiShallowNavigate`, `UiShallowNavigate`, `useUiPathname`, `useUiSearchParams`, `useUiParams`, `defaultUiNavigation`, `UiNavigation`, `UiRouter`, `UiRouteParams`, `UiSearchParams`, `useUiViewerId`, `useUiHostConfig`, `defaultUiHostConfig`, `UiHostConfig`, `UiSlashAction`, `SessionIdsProvider`, `useSessionIds`, `UiSessionIds` |
|
|
84
|
+
| `@kortix/ui` (actions, display) | `Button`, `buttonVariants`, `ButtonProps`, `Badge`, `badgeVariants`, `Card`, `CardAction`, `CardButton`, `CardContent`, `CardDescription`, `CardEyebrow`, `CardFeature`, `CardFooter`, `CardGroup`, `CardHeader`, `CardImage`, `CardMedia`, `CardTitle`, `CardButtonProps`, `CardButtonSize`, `CardButtonVariant`, `CardGroupProps`, `CardLogo`, `CardProps`, `Separator`, `Skeleton` |
|
|
85
|
+
| `@kortix/ui` (forms) | `Input`, `inputFocusClasses`, `inputInvalidClasses`, `inputSurfaceClasses`, `inputTransitionClasses`, `InputProps`, `useAutosizeTextArea`, `Textarea`, `AutosizeTextAreaRef`, `AutosizeTextAreaProps`, `Label`, `Checkbox`, `CheckboxProps`, `CheckboxVariant`, `Switch`, `SwitchProps`, `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectScrollDownButton`, `SelectScrollUpButton`, `SelectSeparator`, `SelectTrigger`, `SelectValue`, `SelectTriggerProps` |
|
|
86
|
+
| `@kortix/ui` (overlays) | `Modal`, `ModalBody`, `ModalClose`, `ModalContent`, `ModalContentInner`, `ModalDescription`, `ModalFooter`, `ModalHeader`, `ModalOverlay`, `ModalPortal`, `ModalTitle`, `ModalTrigger`, `Hint`, `HintProps`, `Popover`, `PopoverAnchor`, `PopoverContent`, `PopoverTrigger`, `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger` |
|
|
87
|
+
| `@kortix/ui` (primitives, not for feature code: section 3) | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`, `Tooltip`, `TooltipContent`, `TooltipProvider`, `TooltipTrigger` |
|
|
88
|
+
| `@kortix/ui` (navigation) | `FilterBar`, `FilterBarItem`, `Tabs`, `TabsContent`, `TabsList`, `TabsTrigger`, `tabsTriggerHeightVariants`, `tabsTriggerPaddingVariants`, `tabsTriggerTextVariants`, `TabsListType`, `TabsSize`, `TabsTriggerSize`, `TabsTriggerVariant`, `TabsUnderlineSize` |
|
|
89
|
+
| `@kortix/ui` (conversation) | `Bubble`, `BubbleContent`, `BubbleGroup`, `BubbleReactions`, `bubbleVariants`, `Message`, `MessageAvatar`, `MessageContent`, `MessageFooter`, `MessageGroup`, `MessageHeader`, `Marker`, `MarkerContent`, `MarkerIcon`, `markerVariants` |
|
|
90
|
+
| `@kortix/ui` (hooks, helpers) | `UiLink`, `UiImage`, `useUiViewer`, `UiViewer`, `UiHostComponents`, `UiPreviewUrlResolver`, `UiPreviewRequest`, `useDebounce`, `useIsMobile`, `useMediaQuery`, `useSlashFocus`, `lazyClient`, `spring`, `floatingZ`, `dialogContentZ`, `dialogOverlayZ`, `useDialogDepth`, `hasOpenFloatingLayer`, `hasOpenNestedDialog`, `DEFAULT_ICON_WEIGHT`, `ICON_WEIGHTS`, `SHIPPED_ICON_WEIGHTS`, `faviconUrlForHostname`, `setUiTelemetry`, `setUiHostEnv`, `setUiRoutes`, `uiRoutes`, `newSessionHref`, `isNewSessionRequested`, `defaultUiRoutes`, `decodeSpaceSegment`, `UiRoutes` |
|
|
91
|
+
| `@kortix/ui/theme` | `KortixTheme`, `themeToCss`, `themeToCssVars`, `ThemeScope`, `ThemeScopeProps`, `THEME_COLOR_VARS`, `ThemeColor`, `ThemeColors`, `ThemeCssVars`, `ThemeTextStep`, `ThemeShadowStep`, `ThemeDurationStep`, `ThemeEasing`, `WALLPAPERS`, `DEFAULT_WALLPAPER_ID`, `getWallpaperById`, `Wallpaper` |
|
|
92
|
+
| `@kortix/ui/session` (whole thread) | `SessionThread`, `SessionThreadProps` |
|
|
93
|
+
| `@kortix/ui/session` (blocks) | `UserMessage`, `ThrottledMarkdown`, `UnifiedMarkdown`, `UnifiedMarkdownProps`, `ToolPartRenderer`, `SessionChatInput`, `SessionChatInputProps`, `AgentSelector`, `ModelSelector`, `ModelSelectorProps`, `SessionPermissionPrompt`, `QuestionPrompt`, `QuestionPromptHandle`, `TurnErrorDisplay`, `SessionBusyIndicator`, `SessionStartingLoader` |
|
|
94
|
+
| `@kortix/ui/session` (tool rows, pickers) | `ToolRegistry`, `ToolProps`, `ToolComponent`, `BasicTool`, `BasicToolProps`, `GenericTool`; for a form outside a session: `ModelSelector`, `AgentSelector` |
|
|
100
95
|
|
|
101
96
|
Every other primitive is one subpath per file: `@kortix/ui/<file name>` (`@kortix/ui/dot-matrix/<name>` for the dot matrices).
|
|
102
97
|
Also: `lib/telemetry` (`UiTelemetryRegister`: declaration-merge `event`), `error-boundary` (`ErrorBoundary`, `ErrorBoundaryFallback`).
|
|
@@ -107,17 +102,17 @@ One entry per module. Its curated names are the public API (semver). Every name,
|
|
|
107
102
|
|
|
108
103
|
| Entry | What it is | Minimal mount |
|
|
109
104
|
| --- | --- | --- |
|
|
110
|
-
| `@kortix/ui/workspace` |
|
|
105
|
+
| `@kortix/ui/workspace` | Workspace screens: `SessionWorkspace` (thread + side panel), `ProjectHome`, `ProjectSessionList`, `ProjectFilesView` | `<SessionWorkspace session={useSession(p, s)} />`; the list inside `SidebarProvider` |
|
|
111
106
|
| `@kortix/ui/session` | The conversation: `SessionThread`, turns, `ToolRegistry`, prompts, pickers | `<SessionThread session={useSession(p, s)} />` |
|
|
112
|
-
| `@kortix/ui/composer` | The composer, its chrome, the send pipeline | `<ComposerChatInput projectId onSend />` in the
|
|
107
|
+
| `@kortix/ui/composer` | The composer, its chrome, the send pipeline | `<ComposerChatInput projectId onSend />` in the workspace scope |
|
|
113
108
|
| `@kortix/ui/session-panel` | The side panel: `ActionPanel`, `SessionFiles`, `SessionChanges`, `SessionAudit` | `SessionPanelProvider` (runtime `sessionId`, `projectId`, `projectSessionId`) |
|
|
114
|
-
| `@kortix/ui/files` |
|
|
109
|
+
| `@kortix/ui/files` | Workspace files (git repo), sandbox files, `FilePreviewHost` | `ProjectFilesView` (workspace); `<FilePreviewHost />` once on a page without a side panel |
|
|
115
110
|
| `@kortix/ui/file-viewer` | Any file kind: pdf, docx, xlsx, csv, pptx, zip, images, code | `<FileViewer content fileName />`; `FileContentRenderer` in `FileSourceProvider` |
|
|
116
111
|
| `@kortix/ui/terminal`, `@kortix/ui/browser` | The session shell; the sandbox browser | the runtime ids of a mounted `useSession` |
|
|
117
112
|
| `@kortix/ui/markdown`, `@kortix/ui/genui` | Markdown with code, math, links; GenUI blocks | `<UnifiedMarkdown content trust="agent" />`; `genui` renders GenUI fences |
|
|
118
113
|
| `@kortix/ui/diff`, `@kortix/ui/changes` | One diff; a change list | `<DiffView before after />` |
|
|
119
114
|
| `@kortix/ui/apps`, `@kortix/ui/artifacts` | App frames, the frame pool, the App view model; artifact frames and session cards | none |
|
|
120
|
-
| `@kortix/ui/access`, `@kortix/ui/customize` | Sharing and roles;
|
|
115
|
+
| `@kortix/ui/access`, `@kortix/ui/customize` | Sharing and roles; workspace configuration pages | `<ConnectorsPage projectId />` |
|
|
121
116
|
| `@kortix/ui/theme`, `@kortix/ui/i18n`, `@kortix/ui/icons` | Theme; `useTranslations`, `useLocale` (next-intl signatures); glyphs | none |
|
|
122
117
|
|
|
123
118
|
Deep paths (`@kortix/ui/internal/*`, `@kortix/ui/<module>/<path>`) have no semver: only Kortix's own apps import them (`scripts/deep-exports.json`).
|
|
@@ -125,26 +120,31 @@ Deep paths (`@kortix/ui/internal/*`, `@kortix/ui/<module>/<path>`) have no semve
|
|
|
125
120
|
## 9. Recipes
|
|
126
121
|
|
|
127
122
|
```tsx
|
|
128
|
-
import { useSession } from
|
|
129
|
-
import { SessionWorkspace } from
|
|
123
|
+
import { useSession } from "@kortix/sdk/react";
|
|
124
|
+
import { SessionWorkspace } from "@kortix/ui/workspace";
|
|
130
125
|
export function Session({ projectId, sessionId }: { projectId: string; sessionId: string }) {
|
|
131
126
|
return <SessionWorkspace session={useSession(projectId, sessionId)} />;
|
|
132
127
|
}
|
|
133
128
|
```
|
|
134
129
|
|
|
135
|
-
- The parent sets the height (also of `ProjectFilesView`). Install `@tanstack/react-query`, `@openuidev/lang-core@0.3.1` and `zod` with it.
|
|
136
|
-
`SessionThread` (`@kortix/ui/session`) is the thread alone; with no side panel, file and preview opens show in a dialog.
|
|
130
|
+
- The parent sets the height (also of `ProjectFilesView`). Install `@tanstack/react-query`, `@openuidev/lang-core@0.3.1` and `zod` with it. `SessionThread` (`@kortix/ui/session`) is the thread alone; with no side panel, file and preview opens show in a dialog.
|
|
137
131
|
- A custom tool row: `ToolRegistry.register('<tool name>', Row)`; `Row` gets `ToolProps`, draws `BasicTool`.
|
|
138
|
-
- A whole dashboard or App (client, router adapters, sidebar,
|
|
139
|
-
sign-in): `references/custom-dashboard.md`. Never a raw `fetch`: the SDK has the call, or gets it.
|
|
132
|
+
- A whole dashboard or App (client, router adapters, sidebar, workspace home, session, files, theme, tool row, App sign-in): `references/custom-dashboard.md`. Never a raw `fetch`: the SDK has the call, or gets it.
|
|
140
133
|
|
|
141
134
|
## 10. Verify
|
|
142
135
|
|
|
143
136
|
1. `tsc --noEmit` adds no error. Run the page in light and dark, at 720 × 480 and a phone width; click every control.
|
|
144
|
-
2. Your diff has no hex, `rgb(`, `-[` spacing bracket, `lucide-react`, `toast(` or `animate-spin`. Kortix-internal:
|
|
145
|
-
`.agents/skills/kortix-brand/scripts/audit.sh <paths>` is clean. White-label: a new `--kortix-blue` reaches a checked `Switch`.
|
|
137
|
+
2. Your diff has no hex, `rgb(`, `-[` spacing bracket, `lucide-react`, `toast(` or `animate-spin`. Kortix-internal: `.agents/skills/kortix-brand/scripts/audit.sh <paths>` is clean. White-label: a new `--kortix-blue` reaches a checked `Switch`.
|
|
146
138
|
|
|
147
139
|
## 11. Kortix-internal work
|
|
148
140
|
|
|
149
141
|
In `kortix-ai/CompanyOS`, `kortix-brand` (values, voice) and `kortix-design-system` (which component) in `.agents/skills/` win
|
|
150
142
|
over this file. `apps/web` imports `@kortix/ui` like any host and keeps no re-export shims: edit the component in `packages/ui/src/`.
|
|
143
|
+
|
|
144
|
+
## Copy and completion icons
|
|
145
|
+
|
|
146
|
+
- Every copy action uses `CopyButton` from `@kortix/ui/markdown/copy-button`: text, links, code, tokens, and IDs.
|
|
147
|
+
- It uses `Copy` from `@kortix/ui/icons` (`packages/ui/src/icons/copy.tsx`) and swaps in `SolidCheckIcon` from `@kortix/ui/internal/icons/solid-check-icon` after clipboard success. Keep one fixed icon box. Reduced motion swaps immediately.
|
|
148
|
+
- Within `packages/ui`, custom copy controls reuse `AnimatedCopyIcon` with those same two icons. Hosts compose `CopyButton`. Preserve clipboard error handling and an accessible label. Never use Phosphor CopyIcon or a local copy timer.
|
|
149
|
+
- Completion and success use `SolidCheckIcon`. Never use a square filled CheckIcon as a completion symbol. A checkbox is for an editable selection only.
|
|
150
|
+
- Avoid crowded cards. Use one heading, short facts, and one primary action. Put secondary explanation in an info hover card. Keep space between header, body, and actions. Do not stack a description under every fact.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Build a custom dashboard or App on @kortix/sdk + @kortix/ui
|
|
2
2
|
|
|
3
|
-
A React host with your own chrome around Kortix's whole session experience: a
|
|
4
|
-
sidebar with Kortix's session list, the
|
|
5
|
-
side panel with files, viewer, terminal, browser), a
|
|
3
|
+
A React host with your own chrome around Kortix's whole session experience: a workspace list, a
|
|
4
|
+
sidebar with Kortix's session list, the workspace home composer, the session workspace (thread plus
|
|
5
|
+
side panel with files, viewer, terminal, browser), a workspace Files page, a company theme and a custom
|
|
6
6
|
tool row. Every sample below is a file of one Vite 8 + React 19 + react-router 7 app that installed
|
|
7
7
|
`@kortix/sdk` and `@kortix/ui` from their packed tarballs. It passed `tsc --noEmit` and `vite build`,
|
|
8
|
-
and ran against a live Kortix API:
|
|
8
|
+
and ran against a live Kortix API: workspace list, a prompt from the home composer, the session opening,
|
|
9
9
|
the tool rows (the custom one included), the reply, the file in the side panel, the Files page and its
|
|
10
10
|
viewer, 0 console errors.
|
|
11
11
|
|
|
@@ -200,9 +200,9 @@ pass stable objects (module scope):
|
|
|
200
200
|
A Next.js host passes `next/link` and `{ useRouter, usePathname, useSearchParams, useParams }` from
|
|
201
201
|
`next/navigation` unchanged.
|
|
202
202
|
|
|
203
|
-
## 5. The
|
|
203
|
+
## 5. The workspace shell
|
|
204
204
|
|
|
205
|
-
Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/
|
|
205
|
+
Your sidebar chrome around Kortix's session list. Every URL the components link to comes from one route table, `setUiRoutes` (`@kortix/ui`), called once at module load. The defaults are Kortix's own paths: `project` `/workspaces/<id>`, `session` `/workspaces/<id>/sessions/<sessionId>`, `sessions` `/workspaces/<id>/sessions` (`?view=archived|deleted`), `files` `/workspaces/<id>/files`, `drive` `/workspaces/<id>/drive`, `apps` `/workspaces/<id>/apps`, `members` `/workspaces/<id>/members`, `sandboxSettings` `/workspaces/<id>/admin/sandbox`, `customize` `/workspaces/<id>/customize/<page>` (agents, skills, connectors, triggers, reminders, models, secrets, review, settings), `admin` `/workspaces/<id>/admin/<section>` (it follows `customize` when you map only `customize`), `goals` `/workspaces/<id>/goals` (flag `goals`), `artifacts` `/workspaces/<id>/artifacts`, `review` `/workspaces/<id>/review`, and, while the workspace's `chat` flag is on, `space` `/workspaces/<id>/spaces/<slug>`, `memory` `/workspaces/<id>/memory`, `channel` `/workspaces/<id>/c/<slug>` and `dm` `/workspaces/<id>/dm/<agent>`. Return your own path for a page you serve elsewhere. Return `null` for a page you do not serve: every link to it is hidden. `project`, `session`, `channel` and `dm` cannot be null. This app serves the workspace
|
|
206
206
|
home, its files and a session (section 7), so it maps the other pages to `null`.
|
|
207
207
|
|
|
208
208
|
```tsx
|
|
@@ -224,14 +224,14 @@ import { ProjectSessionList } from '@kortix/ui/workspace';
|
|
|
224
224
|
import { FolderSimpleIcon, NavigationArrowIcon, SquaresFourIcon } from '@phosphor-icons/react';
|
|
225
225
|
import { Link, Outlet, useLocation, useParams } from 'react-router-dom';
|
|
226
226
|
|
|
227
|
-
// Every
|
|
227
|
+
// Every workspace page: your sidebar chrome around Kortix's session list.
|
|
228
228
|
export function ProjectShell() {
|
|
229
229
|
const { projectId = '', sessionId } = useParams();
|
|
230
230
|
const { pathname } = useLocation();
|
|
231
231
|
const nav = [
|
|
232
|
-
{ to: `/
|
|
233
|
-
{ to: `/
|
|
234
|
-
{ to: '/', label: 'All
|
|
232
|
+
{ to: `/workspaces/${projectId}`, label: 'New session', icon: NavigationArrowIcon },
|
|
233
|
+
{ to: `/workspaces/${projectId}/files`, label: 'Files', icon: FolderSimpleIcon },
|
|
234
|
+
{ to: '/', label: 'All workspaces', icon: SquaresFourIcon },
|
|
235
235
|
];
|
|
236
236
|
return (
|
|
237
237
|
<SessionIdsProvider projectId={projectId} sessionId={sessionId}>
|
|
@@ -295,7 +295,7 @@ export function ProjectsPage() {
|
|
|
295
295
|
<CardContent className="flex flex-col gap-1">
|
|
296
296
|
{projects.isLoading && <Loading />}
|
|
297
297
|
{projects.data?.map((project) => (
|
|
298
|
-
<Link key={project.project_id} to={`/
|
|
298
|
+
<Link key={project.project_id} to={`/workspaces/${project.project_id}`} className="hover:bg-accent rounded-md px-2 py-1.5">
|
|
299
299
|
{project.name}
|
|
300
300
|
</Link>
|
|
301
301
|
))}
|
|
@@ -329,7 +329,7 @@ export function FilesPage() {
|
|
|
329
329
|
`beforeSend` gates the send (throw to refuse); `onSend` replaces it.
|
|
330
330
|
- `SessionWorkspace` is the thread plus the resizable side panel. Tool rows, clickable paths and the
|
|
331
331
|
header's Files, Terminal and Browser buttons open in the panel. `key={sessionId}` remounts it per session.
|
|
332
|
-
- `ProjectFilesView` is the
|
|
332
|
+
- `ProjectFilesView` is the workspace's git-backed files: folders, files, history, and a viewer for
|
|
333
333
|
any file kind. A live session's own workspace is the panel's Files view.
|
|
334
334
|
- The parent sets the height of each screen (`SidebarInset className="h-dvh min-h-0"`).
|
|
335
335
|
|
|
@@ -396,7 +396,7 @@ const router = createBrowserRouter([
|
|
|
396
396
|
children: [
|
|
397
397
|
{ path: '/', element: <ProjectsPage /> },
|
|
398
398
|
{
|
|
399
|
-
path: '/
|
|
399
|
+
path: '/workspaces/:projectId',
|
|
400
400
|
element: <ProjectShell />,
|
|
401
401
|
children: [
|
|
402
402
|
{ index: true, element: <HomePage /> },
|
|
@@ -459,7 +459,7 @@ The modules compose at any depth (`modules.md` has every entry with its props an
|
|
|
459
459
|
`SessionTerminal` (`@kortix/ui/terminal`) with the session's `runtimeSessionId`.
|
|
460
460
|
- Blocks (`ComposerChatInput`, `ModelSelector`, `UserMessage`, `ToolPartRenderer`, …) outside the
|
|
461
461
|
composed screens need the two scopes those screens mount: `KortixProjectProvider` (`@kortix/sdk/react`)
|
|
462
|
-
and `SessionIdsProvider` (`@kortix/ui`) with the
|
|
462
|
+
and `SessionIdsProvider` (`@kortix/ui`) with the workspace and session ids.
|
|
463
463
|
- To draw every part yourself: `useChatTurns` and `renderParts` from `@kortix/sdk/react`
|
|
464
464
|
(https://kortix.com/docs/developers#react).
|
|
465
465
|
- Other data for a dashboard: `useProjectApps`, `useProjectTriggers`, `useChangeRequests`,
|
|
@@ -468,7 +468,7 @@ The modules compose at any depth (`modules.md` has every entry with its props an
|
|
|
468
468
|
## 10. Verify
|
|
469
469
|
|
|
470
470
|
1. `tsc --noEmit` and the production build pass.
|
|
471
|
-
2. In a browser: the
|
|
471
|
+
2. In a browser: the workspace list renders; a prompt from the home opens the session; the tool rows and
|
|
472
472
|
your row draw; the reply streams; a file opens in the side panel; the Files page opens a file;
|
|
473
473
|
0 console errors.
|
|
474
474
|
3. The theme computes: `getComputedStyle(document.documentElement).getPropertyValue('--radius')`
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
One curated barrel per module. Every name below is public API (semver). Each piece needs
|
|
4
4
|
`<UiProvider>` and a `QueryClientProvider` at the root; a missing `UiHostComponents` slot hides its control.
|
|
5
|
-
`SessionThread`, `SessionWorkspace` and `ProjectHome` mount `SessionIdsProvider` and the SDK
|
|
6
|
-
themselves. Any other block that reads a
|
|
5
|
+
`SessionThread`, `SessionWorkspace` and `ProjectHome` mount `SessionIdsProvider` and the SDK workspace scope
|
|
6
|
+
themselves. Any other block that reads a workspace needs both around it: `KortixProjectProvider`
|
|
7
7
|
(`@kortix/sdk/react`) and `SessionIdsProvider` (`@kortix/ui`); the composer example shows it.
|
|
8
8
|
|
|
9
9
|
Deep paths (`@kortix/ui/internal/*`, `@kortix/ui/<module>/<path>`) exist only for the files in
|
|
@@ -32,7 +32,7 @@ export function CloseButton({ onClose }: { onClose: () => void }) {
|
|
|
32
32
|
}
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Names: `Close`, `Copy`, `SidebarGlyph`
|
|
35
|
+
Names: `Close`, `Copy`, `SidebarGlyph`, `SolidRightArrow`
|
|
36
36
|
|
|
37
37
|
## `@kortix/ui/theme`
|
|
38
38
|
|
|
@@ -153,9 +153,9 @@ Names: `ChangeList`, `ChangeSummary`, `DiffLayoutToggle`, `ExpandAllButton`, `us
|
|
|
153
153
|
|
|
154
154
|
## `@kortix/ui/files`
|
|
155
155
|
|
|
156
|
-
Source: `src/files/index.ts`. Browse and edit files.
|
|
156
|
+
Source: `src/files/index.ts`. Browse and edit files. Workspace files are the git-backed repo; sandbox files are a live session workspace.
|
|
157
157
|
|
|
158
|
-
Mount:
|
|
158
|
+
Mount: Workspace files: inside `ProjectFilesProvider` (`value`: `projectId`, the git `ref`, optional `defaultBranch`). Sandbox files: inside a mounted `useSession`. `FilePreviewHost`: once, on a page with no session side panel; a file open (`openPreview`) shows there. `SessionThread` mounts it already. `DriveUploadTray`: once per workspace shell; it lists the Drive uploads in flight and stays mounted across pages.
|
|
159
159
|
|
|
160
160
|
Props: `ProjectFilesView` (`@kortix/ui/workspace`): `projectId`. It fills its parent (`h-full`): the parent sets the height, or only the header shows. `FileExplorerPage`: `embedded`. `SandboxFileExplorer`: `embedded`, `shareContext`, `leading`. `FilePreviewHost`: none.
|
|
161
161
|
|
|
@@ -179,7 +179,7 @@ export function PreviewHost() {
|
|
|
179
179
|
}
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
Names: `saveDriveFile`, `useDismissDriveConflict`, `useDriveAvailability`, `useDriveConflicts`, `useDriveFolder`, `useFolderAccess`, `useFolderPrincipals`, `useInvalidateDrives`, `useProjectDrive`, `useShareFolder`, `useUnshareFolder`, `FilesStoreProvider`, `getFileIcon`, `FilePreviewHost`, `ChangeRequestDetailDialog`, `DiffRenderer`, `DriveExplorer`, `DriveUploadTray`, `FileExplorerPage`, `FileThumbnail`, `ProjectFilesProvider`, `useProjectContext`, `FileExplorerSourceProvider`, `ExplorerQueryResult`, `FileExplorerSource`, `gitRefExplorerSource`, `useChangeRequestRecovery`, `changeRequestKeys`, `openChangeRequestListQuery`, `useChangeRequestDiff`, `useChangeRequestMergePreview`, `useCloseChangeRequest`, `useMergeChangeRequest`, `useRequestChangesOnChangeRequest`, `useSelectedVersion`, `workspaceFileSource`, `useWorkspaceSearch`, `SandboxFileExplorer`, `CodeEditor` (the CodeMirror editor, loaded as its own chunk on first render). Files storage: `DriveStorageSummary` (a
|
|
182
|
+
Names: `saveDriveFile`, `useDismissDriveConflict`, `useDriveAvailability`, `useDriveConflicts`, `useDriveFolder`, `useFolderAccess`, `useFolderPrincipals`, `useInvalidateDrives`, `useProjectDrive`, `useShareFolder`, `useUnshareFolder`, `FilesStoreProvider`, `getFileIcon`, `FilePreviewHost`, `ChangeRequestDetailDialog`, `DiffRenderer`, `DriveExplorer`, `DriveUploadTray`, `FileExplorerPage`, `FileThumbnail`, `ProjectFilesProvider`, `useProjectContext`, `FileExplorerSourceProvider`, `ExplorerQueryResult`, `FileExplorerSource`, `gitRefExplorerSource`, `useChangeRequestRecovery`, `changeRequestKeys`, `openChangeRequestListQuery`, `useChangeRequestDiff`, `useChangeRequestMergePreview`, `useCloseChangeRequest`, `useMergeChangeRequest`, `useRequestChangesOnChangeRequest`, `useSelectedVersion`, `workspaceFileSource`, `useWorkspaceSearch`, `SandboxFileExplorer`, `CodeEditor` (the CodeMirror editor, loaded as its own chunk on first render). Files storage: `DriveStorageSummary` (a workspace's storage against its limit, with folder-mount warnings), `StorageMeter`, `StorageNotice`, `StorageTone`, `storageTone`, `formatStorageBytes`, `useDriveUsage`, `useDriveLimitMessage` (the readable message of a storage refusal), `useFolderMountNotice`. Drive URLs: `drivePathToParam`, `drivePathFromParam` (the folder in view as Drive's `?path=` value; the caller's own folder is `~`), `driveUrlWithPath`
|
|
183
183
|
|
|
184
184
|
## `@kortix/ui/file-viewer`
|
|
185
185
|
|
|
@@ -282,7 +282,7 @@ Names: `ARTIFACT_FRAME_ALLOW`, `ARTIFACT_FRAME_PREFIX`, `ARTIFACT_IFRAME_SANDBOX
|
|
|
282
282
|
|
|
283
283
|
Source: `src/session/composer/index.ts`. The message composer: drop-in inputs, chrome, tiptap editor parts and the send pipeline.
|
|
284
284
|
|
|
285
|
-
Mount: Inside a mounted session (`ComposerChatInput` also works on a
|
|
285
|
+
Mount: Inside a mounted session (`ComposerChatInput` also works on a workspace home, before a session exists).
|
|
286
286
|
|
|
287
287
|
Props: `ComposerChatInput`: `projectId`, `onSend(text, files, options, attachments)`, optional `sessionId`, `isBusy`, `disabled`, `placeholder`, `prefill`, slots (`aboveSlot`, `inputSlot`, `toolbarSlot`).
|
|
288
288
|
|
|
@@ -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`, `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`, `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
|
|
|
@@ -359,14 +359,14 @@ Names: `ActionPanel`, `AdvancedPanel`, `DiffDialog`, `EasyPanel`, `openSessionQu
|
|
|
359
359
|
|
|
360
360
|
## `@kortix/ui/workspace`
|
|
361
361
|
|
|
362
|
-
Source: `src/workspace/index.ts`. Composed
|
|
362
|
+
Source: `src/workspace/index.ts`. Composed workspace screens: session workspace, workspace sidebar, sessions list, workspace home, permission and route helpers.
|
|
363
363
|
|
|
364
|
-
Mount: `SessionWorkspace` takes `session` (the `useSession` result): the thread plus the resizable side panel. `children` replaces the thread. `SessionLayout` is the same layout with explicit ids (`sessionId` = runtime id, `projectId`, `projectSessionId`, `bootStage`, `transient`) and the thread as `children`.
|
|
364
|
+
Mount: `SessionWorkspace` takes `session` (the `useSession` result): the thread plus the resizable side panel. `children` replaces the thread. `SessionLayout` is the same layout with explicit ids (`sessionId` = runtime id, `projectId`, `projectSessionId`, `bootStage`, `transient`) and the thread as `children`. Workspace screens take `projectId`; `ProjectSessionList` mounts inside a `SidebarProvider`. `ProjectHome` sends by itself (`useProjectHomeSend`: create the session with the prompt, open it); `beforeSend` gates it, `onSend` replaces it.
|
|
365
365
|
|
|
366
366
|
Props:
|
|
367
367
|
- `SessionWorkspace`: `session` (the `useSession` result, required), `children` (replaces the thread), `hideHeader`, `readOnly`, `className`.
|
|
368
368
|
- `SessionLayout`: `sessionId` (runtime id), `projectId`, `projectSessionId`, `children` (the thread), `bootStage`, `transient`.
|
|
369
|
-
- `ProjectHome`: `projectId`; `beforeSend` (runs first, throw to refuse); `onSend` + `busy` (replace the send); `onboarding` (opt in: a
|
|
369
|
+
- `ProjectHome`: `projectId`; `beforeSend` (runs first, throw to refuse); `onSend` + `busy` (replace the send); `onboarding` (opt in: a workspace not yet onboarded opens on the onboarding chat and sends "Onboard me" once a model is usable).
|
|
370
370
|
- `useProjectHomeSend(projectId, { beforeSend })` returns `{ send, sending }`.
|
|
371
371
|
- `ProjectSessionList`, `ProjectSessionsView`, `ProjectFilesView`: `projectId`. `ProjectSidebar`: `projectId`, `menu`, `onOpenSearch` (the header shows Search only with it); its Files, Apps and Customize rows read `projectId`, not the route.
|
|
372
372
|
|
|
@@ -385,7 +385,7 @@ export function Home({ projectId }: { projectId: string }) {
|
|
|
385
385
|
return <ProjectHome projectId={projectId} beforeSend={async () => {}} />;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
// Kortix's session list; it links to /
|
|
388
|
+
// Kortix's session list; it links to /workspaces/<id>/sessions/<sessionId>.
|
|
389
389
|
export function Sessions({ projectId }: { projectId: string }) {
|
|
390
390
|
return (
|
|
391
391
|
<SidebarProvider>
|
|
@@ -397,9 +397,9 @@ export function Sessions({ projectId }: { projectId: string }) {
|
|
|
397
397
|
|
|
398
398
|
Goals (behind the `goals` flag): `GoalStatusBadge` (a goal's status), `GoalHealthDot` (green running, orange needs attention, grey closed), `useGoalIssueText` (one sentence per health issue), `goalProgress` (met and total criteria), `goalOpenAsks` (asks waiting on a person), `goalNeedsYou` (an open ask or a health issue), `formatGoalTime` (the reminders time format), `goalHref` (the goal's page, or null), `useGoalClock` (the current time, re-read every 30 s), `goalNeedsAttention` (a health issue no person was asked about), `goalLastWake` (when the goal last woke), `goalAssignedTo` (the goal is for this person), `useGoalPerson` (who a goal is for, by name), `useStartGoal` (starts a goal: a session that writes GOAL.md), `goalPaused` (the goal is paused), `useGoalStateText` (a goal state's label), `goalIconState` and `goalStatusIconState` (the `GoalIconState` of a goal or a status), `GoalStatusIcon` (that state's icon), `GoalCriteriaProgress` (met criteria, optionally as a ring), `GoalPersonChip` (the person a goal is for), `goalNextWake` (when the goal wakes next, or null while paused or waiting), `useGoalBlockedNextStep` (the next step a person takes for a blocked goal), `goalCriteriaStatus` (criteria reported met, verified by the verifier, and the total).
|
|
399
399
|
|
|
400
|
-
Channels and memory (behind the `chat` flag): `SpaceView` (`projectId`, `target`: a `SpaceTarget`, `{ kind: 'channel', slug }` or `{ kind: 'dm', agentName }`; `beforeSend`; `renderFolder` draws a `SpaceFolder`, one space's Files tab, whose entries are `SpaceFile`s; `isHtmlPath` says a tab's file opens as a page; `renderApps`) is a channel or DM page with its threads, files, memory, apps, links and triggers. `ChannelGlyph` (`visibility`) is `#` or a lock. `agentLabel` (`name`) is an agent's display name. `MemoryView` (`projectId`, `layerKey`: `company` or a space id, `place`) is one memory layer's pages; `CompanyMemoryPage` (`projectId`) is the
|
|
400
|
+
Channels and memory (behind the `chat` flag): `SpaceView` (`projectId`, `target`: a `SpaceTarget`, `{ kind: 'channel', slug }` or `{ kind: 'dm', agentName }`; `beforeSend`; `renderFolder` draws a `SpaceFolder`, one space's Files tab, whose entries are `SpaceFile`s; `isHtmlPath` says a tab's file opens as a page; `renderApps`) is a channel or DM page with its threads, files, memory, apps, links and triggers. `ChannelGlyph` (`visibility`) is `#` or a lock. `agentLabel` (`name`) is an agent's display name. `MemoryView` (`projectId`, `layerKey`: `company` or a space id, `place`) is one memory layer's pages; `CompanyMemoryPage` (`projectId`) is the workspace's Company memory. `useMemoryPageHref` (`projectId`) returns `(layer: MemoryLayerRef, pageId) => href | null`: the page's link, null when the host serves no such page.
|
|
401
401
|
|
|
402
|
-
Spaces (Work in progress, behind the `chat` flag; a space is a channel declared in kortix.yaml `spaces:`): `SPACES_FLAG` is that flag key. `useSpacesEnabled` (`projectId`) is true only while it is on. `spaceScope` (`items`, `config`, `enabled`, `bindingOf`) returns `{ spaces, groups, spaceOf }` for a list page; off, it offers no spaces and every item is
|
|
402
|
+
Spaces (Work in progress, behind the `chat` flag; a space is a channel declared in kortix.yaml `spaces:`): `SPACES_FLAG` is that flag key. `useSpacesEnabled` (`projectId`) is true only while it is on. `spaceScope` (`items`, `config`, `enabled`, `bindingOf`) returns `{ spaces, groups, spaceOf }` for a list page; off, it offers no spaces and every item is workspace-wide. `useActiveSpace` (`projectId`) is the viewer's active space and its setter; off, it reads `null`. `useSpaceFilter` (`projectId`) is a list page's space filter value and setter; off, it is always `ALL_SPACES`. `SpaceFilterTabs` (`spaces`, `groups`, `value`, `onValueChange`) is the filter, and renders nothing without spaces. `spaceFilterLabel` (`value`, `spaces`, `projectWide`) names a filter value for an empty state.
|
|
403
403
|
|
|
404
404
|
Names: `SpaceView`, `SpaceViewProps`, `SpaceTarget`, `SpaceFolder`, `ChannelGlyph`, `agentLabel`, `MemoryView`, `MemoryViewProps`, `CompanyMemoryPage`, `MemoryLayerRef`, `useMemoryPageHref`, `ProjectPageHeader`, `useCapabilityAccess`, `useProjectNavRows`, `SidebarToggle`, `activeCapabilityTab`, `agentHref`, `capabilityTabHref`, `channelsHref`, `remindersHref`, `reviewHref`, `CUSTOMIZE_SECTION_ACCESS`, `CUSTOMIZE_SECTION_GATE_ACTIONS`, `PROJECT_ACTIONS`, `isCustomizeSectionVisible`, `CustomizeSection`, `ProjectAction`, `usePermission`, `usePermissions`, `usePermissionsFor`, `PROJECT_PAGE_ACTIONS`, `useProjectCan`, `useProjectCans`, `useProjectPageCans`, `CanResult`, `formatFireTime`, `nearestFire`, `reminderTitle`, `scheduleLabel`, `ProjectHomeWallpaper`, `ProjectHomeWelcomeBody`, `InstantSessionShell`, `ProjectFilesView`, `ProjectHome`, `ProjectHomeSendOptions`, `useProjectHomeSend`, `UseProjectHomeSendOptions`, `SavedSessionSkeleton`, `SessionLayout`, `SessionWorkspace`, `SessionLayoutProps`, `SessionWorkspaceProps`, `ProjectSessionsView`, `ProjectSessionList`, `ProjectSidebar`, `ShareSessionModal`
|
|
405
405
|
|
|
@@ -423,7 +423,7 @@ Names: `AccessDialog`, `AccessRow`, `PrincipalPicker`, `RoleSelect`
|
|
|
423
423
|
|
|
424
424
|
## `@kortix/ui/customize`
|
|
425
425
|
|
|
426
|
-
Source: `src/customize/index.ts`.
|
|
426
|
+
Source: `src/customize/index.ts`. Workspace configuration pages: connectors, agents, triggers, secrets, models, skills, settings.
|
|
427
427
|
|
|
428
428
|
Mount: Each page takes `projectId`.
|
|
429
429
|
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pins an agent to the sidebar's Customize, or unpins it: on the agent's
|
|
3
|
-
* page header, and on its card in All agents. `onCard` shows it on the card's
|
|
4
|
-
* hover only, and always once pinned so the state is visible.
|
|
5
|
-
*/
|
|
6
|
-
export declare function AgentPinButton({ projectId, agent, onCard, }: {
|
|
7
|
-
projectId: string;
|
|
8
|
-
agent: string;
|
|
9
|
-
onCard?: boolean;
|
|
10
|
-
}): import("react").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { PushPinIcon, PushPinSlashIcon } from '@phosphor-icons/react';
|
|
4
|
-
import { useTranslations } from '../../i18n/index.js';
|
|
5
|
-
import { usePinnedAgents, usePinnedAgentsStore } from '../../internal/stores/pinned-agents-store.js';
|
|
6
|
-
import { cn } from '../../internal/lib/utils.js';
|
|
7
|
-
import { Button } from '../../primitives/button.js';
|
|
8
|
-
import Hint from '../../primitives/hint.js';
|
|
9
|
-
/**
|
|
10
|
-
* Pins an agent to the sidebar's Customize, or unpins it: on the agent's
|
|
11
|
-
* page header, and on its card in All agents. `onCard` shows it on the card's
|
|
12
|
-
* hover only, and always once pinned so the state is visible.
|
|
13
|
-
*/
|
|
14
|
-
export function AgentPinButton({ projectId, agent, onCard = false, }) {
|
|
15
|
-
const t = useTranslations('agentEditor.tabs');
|
|
16
|
-
const pinned = usePinnedAgents(projectId).includes(agent);
|
|
17
|
-
const togglePinned = usePinnedAgentsStore((state) => state.togglePinned);
|
|
18
|
-
const label = pinned ? t('unpinFromSidebar') : t('pinToSidebar');
|
|
19
|
-
return (_jsx(Hint, { side: "top", label: label, children: _jsx(Button, { type: "button", variant: "secondary", size: onCard ? 'icon-xs' : 'icon-base', "aria-label": label, "aria-pressed": pinned, className: cn('transition-opacity focus-visible:opacity-100', onCard && !pinned && 'md:opacity-0 md:group-hover/card:opacity-100'), onClick: () => togglePinned(projectId, agent), children: pinned ? _jsx(PushPinSlashIcon, { className: "size-4" }) : _jsx(PushPinIcon, { className: "size-4" }) }) }));
|
|
20
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
/**
|
|
4
|
-
* Transfer-workspace entry point — the settings row and its dialog.
|
|
5
|
-
*
|
|
6
|
-
* The API (POST /v1/projects/:id/transfer) refuses a caller who holds the
|
|
7
|
-
* destructive tier on the project but no rights on the TARGET organization,
|
|
8
|
-
* and answers with the target's project cap when the move would exceed its
|
|
9
|
-
* plan — so this dialog only has to pick a target and say plainly what
|
|
10
|
-
* moves: sessions, files, settings and member grants follow the project;
|
|
11
|
-
* the usage ledger stays with the organization that consumed it.
|
|
12
|
-
*
|
|
13
|
-
* The project may land in an organization the mover cannot see afterwards
|
|
14
|
-
* (they are not a member there) — the same outcome the Delete flow produces,
|
|
15
|
-
* so success leaves the project the same way: forget the remembered landing
|
|
16
|
-
* target, close the settings overlay, replace into the landing door.
|
|
17
|
-
*/
|
|
18
|
-
import { useMemo, useState } from 'react';
|
|
19
|
-
import { Button } from '../../../primitives/button.js';
|
|
20
|
-
import { ConfirmDialog } from '../../../primitives/confirm-dialog.js';
|
|
21
|
-
import { SettingsRow } from '../../../primitives/settings-row.js';
|
|
22
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../../primitives/select.js';
|
|
23
|
-
import { errorToast, successToast } from '../../../primitives/toast.js';
|
|
24
|
-
import { useSettingsPanelStore } from '../../../internal/stores/settings-panel-store.js';
|
|
25
|
-
import { useUiRouter, useUiViewerId } from '../../../providers/ui-provider.js';
|
|
26
|
-
import { useAccountsList } from '../../../internal/hooks/account/use-accounts-list.js';
|
|
27
|
-
import { PROJECT_LANDING_PATH } from '../../../internal/lib/onboarding/landing-destination.js';
|
|
28
|
-
import { forgetLastProjectId } from '../../../internal/lib/onboarding/last-project-cookie.js';
|
|
29
|
-
import { transferProject } from '@kortix/sdk';
|
|
30
|
-
import { qk } from '@kortix/sdk/react';
|
|
31
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
32
|
-
import { useTranslations } from '../../../i18n/index.js';
|
|
33
|
-
export function TransferWorkspaceEntry({ projectId, currentAccountId, }) {
|
|
34
|
-
const t = useTranslations('settings.workspace');
|
|
35
|
-
const [open, setOpen] = useState(false);
|
|
36
|
-
return (_jsxs(_Fragment, { children: [_jsx(SettingsRow, { label: t('transferWorkspace'), description: t('transferDescription'), children: _jsx(Button, { variant: "ghost", size: "sm", className: "text-destructive hover:bg-destructive/10 hover:text-destructive", onClick: () => setOpen(true), children: t('transferWorkspace') }) }), _jsx(TransferWorkspaceDialog, { projectId: projectId, currentAccountId: currentAccountId, open: open, onOpenChange: setOpen })] }));
|
|
37
|
-
}
|
|
38
|
-
function TransferWorkspaceDialog({ projectId, currentAccountId, open, onOpenChange, }) {
|
|
39
|
-
const t = useTranslations('settings.workspace');
|
|
40
|
-
const queryClient = useQueryClient();
|
|
41
|
-
const router = useUiRouter();
|
|
42
|
-
const viewerId = useUiViewerId();
|
|
43
|
-
const [targetId, setTargetId] = useState('');
|
|
44
|
-
// Same freshness contract as every other account-list reader: fetch only
|
|
45
|
-
// while the dialog is open.
|
|
46
|
-
const accountsQuery = useAccountsList({ enabled: open });
|
|
47
|
-
// The target cannot be the account the project already lives in — the API
|
|
48
|
-
// refuses that anyway — and a stale `currentAccountId` (project query still
|
|
49
|
-
// in flight) is harmless: the API re-checks.
|
|
50
|
-
const targetOptions = useMemo(() => (accountsQuery.data ?? []).filter((account) => account.account_id !== currentAccountId), [accountsQuery.data, currentAccountId]);
|
|
51
|
-
const transferMutation = useMutation({
|
|
52
|
-
mutationFn: () => transferProject(projectId, targetId),
|
|
53
|
-
onSuccess: () => {
|
|
54
|
-
successToast(t('transferSuccess'));
|
|
55
|
-
// Same leave-the-project flow as Delete: the moved project must stop
|
|
56
|
-
// being the remembered landing target, the global overlay must close
|
|
57
|
-
// before the navigation lands, and Back must not return to a project
|
|
58
|
-
// the viewer may no longer see.
|
|
59
|
-
forgetLastProjectId(viewerId, projectId);
|
|
60
|
-
useSettingsPanelStore.getState().close();
|
|
61
|
-
// qk.projects.scope(): lists across every account plus the accountless
|
|
62
|
-
// slot — the project just changed accounts, so every list form is
|
|
63
|
-
// stale at once. The moved project's own caches are unreachable after
|
|
64
|
-
// the replace below (the old id's entries gcTime out).
|
|
65
|
-
queryClient.invalidateQueries({ queryKey: qk.projects.scope() });
|
|
66
|
-
onOpenChange(false);
|
|
67
|
-
router.replace(PROJECT_LANDING_PATH);
|
|
68
|
-
},
|
|
69
|
-
onError: (error) => errorToast(error.message || t('transferFailed')),
|
|
70
|
-
});
|
|
71
|
-
const targetName = targetOptions.find((account) => account.account_id === targetId)?.name;
|
|
72
|
-
const changeOpen = (next) => {
|
|
73
|
-
if (transferMutation.isPending)
|
|
74
|
-
return;
|
|
75
|
-
if (!next) {
|
|
76
|
-
setTargetId('');
|
|
77
|
-
transferMutation.reset();
|
|
78
|
-
}
|
|
79
|
-
onOpenChange(next);
|
|
80
|
-
};
|
|
81
|
-
return (_jsx(ConfirmDialog, { open: open, onOpenChange: changeOpen, title: t('transferTitle'), description: _jsxs("div", { className: "space-y-4", children: [_jsx("p", { children: t('transferDialog') }), accountsQuery.isLoading ? (_jsx("p", { children: t('transferLoadingTargets') })) : accountsQuery.isError ? (_jsx(Button, { variant: "outline", onClick: () => accountsQuery.refetch(), children: t('retry') })) : targetOptions.length === 0 ? (_jsx("p", { children: t('transferNoTargets') })) : (_jsxs(Select, { value: targetId, onValueChange: setTargetId, children: [_jsx(SelectTrigger, { className: "w-full", "aria-label": t('transferTargetLabel'), children: _jsx(SelectValue, { placeholder: t('transferTargetPlaceholder') }) }), _jsx(SelectContent, { children: targetOptions.map((account) => (_jsx(SelectItem, { value: account.account_id, children: account.name }, account.account_id))) })] }))] }), cancelLabel: t('keepWorkspace'), confirmLabel: targetName ? t('transferMoveTo', { name: targetName }) : t('transferMove'), confirmVariant: "destructive", confirmDisabled: !targetName || accountsQuery.isError, isPending: transferMutation.isPending, onConfirm: () => transferMutation.mutate() }));
|
|
82
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** @internal Kortix apps only. No semver: it may change in any release. */
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
/** `--container-sidebar` in the design: 300px, not the project sidebar's 320. */
|
|
4
|
-
export declare const SETTINGS_SIDEBAR_WIDTH_PX = 300;
|
|
5
|
-
export declare function AccountSettingsShell({ children }: {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}): import("react").JSX.Element;
|