@allbluecn/web-app 0.18.0 → 0.18.2
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/package.json +2 -3
- package/src/__tests__/visual/theme-surface.vrt.test.tsx +1 -1
- package/src/components/agents/agent-bindings-tab.tsx +3 -3
- package/src/components/agents/agent-card.tsx +4 -4
- package/src/components/agents/agent-form-dialog.tsx +9 -9
- package/src/components/agents/agent-selector.tsx +1 -1
- package/src/components/agents/agents-page.tsx +1 -1
- package/src/components/agents/skill-card.tsx +1 -1
- package/src/components/agents/skill-form-dialog.tsx +5 -5
- package/src/components/agents/use-agent-handlers.ts +1 -1
- package/src/components/ai/__tests__/prompt-input-actions.test.tsx +1 -1
- package/src/components/ai/ai-chat-prompt.tsx +3 -3
- package/src/components/ai/ai-prompt-input/components/action-buttons.tsx +3 -3
- package/src/components/ai/ai-prompt-input/components/agent-mode-select.tsx +1 -1
- package/src/components/ai/ai-prompt-input/components/model-select.tsx +1 -1
- package/src/components/ai/ai-prompt-input/index.tsx +3 -3
- package/src/components/ai/ai-suggested-prompts.tsx +5 -5
- package/src/components/ai/global-harness-sidebar/index.tsx +5 -5
- package/src/components/ai/tool-parts/tool-call-part.tsx +1 -1
- package/src/components/ai/tool-parts/tool-result-part.tsx +1 -1
- package/src/components/anyhub/anyhub-app-card.tsx +5 -5
- package/src/components/anyhub/anyhub-install-dialog.tsx +4 -4
- package/src/components/anyhub/anyhub-management-view.tsx +1 -1
- package/src/components/anyhub/anyhub-marketplace-view.tsx +4 -4
- package/src/components/anyhub/anyhub-permission-panel.tsx +4 -4
- package/src/components/anyhub/anyhub-top-nav.tsx +2 -2
- package/src/components/auth/icon-input.tsx +2 -2
- package/src/components/auth/oauth-section.tsx +2 -2
- package/src/components/auth/password-input.tsx +2 -2
- package/src/components/auth/sso-section.tsx +1 -1
- package/src/components/billing/__tests__/seats-manager.test.tsx +1 -1
- package/src/components/billing/checkout-redirect.ts +1 -1
- package/src/components/billing/login-prompt-dialog.tsx +3 -3
- package/src/components/billing/seats-manager.tsx +2 -2
- package/src/components/bug/__tests__/bug-display-dropdown.test.tsx +1 -1
- package/src/components/bug/__tests__/bug-toolbar.test.tsx +1 -1
- package/src/components/bug/__tests__/create-bug-dialog.test.tsx +2 -2
- package/src/components/bug/__tests__/use-paged-bug-groups.test.tsx +1 -1
- package/src/components/bug/bug-list-table.tsx +1 -1
- package/src/components/bug/bug-list-view.tsx +1 -1
- package/src/components/bug/bug-panel-header.tsx +5 -5
- package/src/components/bug/bug-toolbar.tsx +3 -3
- package/src/components/bug/collect/__tests__/collect-form.test.tsx +1 -1
- package/src/components/bug/collect/collect-form.tsx +5 -5
- package/src/components/bug/columns.tsx +1 -1
- package/src/components/bug/create-bug-dialog.tsx +4 -4
- package/src/components/bug/detail/__tests__/error-context.test.tsx +1 -1
- package/src/components/bug/detail/activity-tabs.tsx +1 -1
- package/src/components/bug/detail/bug-detail-body.tsx +6 -6
- package/src/components/bug/detail/comment-input.tsx +3 -3
- package/src/components/bug/detail/comment-item.tsx +5 -5
- package/src/components/bug/detail/events-timeline.tsx +1 -1
- package/src/components/bug/detail/fix-timeline.tsx +3 -3
- package/src/components/bug/detail/props-section.tsx +2 -2
- package/src/components/bug/detail/regression-section.tsx +3 -3
- package/src/components/bug/detail/repro-report-card.tsx +5 -5
- package/src/components/bug/display/display-dropdown.tsx +2 -2
- package/src/components/bug/filters/add-filter-dropdown.tsx +1 -1
- package/src/components/bug/filters/applied-filters.tsx +1 -1
- package/src/components/bug/filters/filter-row.tsx +1 -1
- package/src/components/bug/filters/filter-toggle.tsx +2 -2
- package/src/components/bug/filters/filter-value-input.tsx +1 -1
- package/src/components/bug/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/bug/inline-editors/date-editor.tsx +1 -1
- package/src/components/bug/inline-editors/inline-trigger.tsx +2 -2
- package/src/components/bug/peek-panel.tsx +1 -1
- package/src/components/bug/reproduce-steps-editor.tsx +3 -3
- package/src/components/bug/settings/bug-settings-panel.tsx +4 -4
- package/src/components/bug/settings/collect-page-manager.tsx +9 -9
- package/src/components/bug/settings/install-commands.tsx +3 -3
- package/src/components/bug/settings/token-list.tsx +7 -7
- package/src/components/bug/settings/webhook-manager.tsx +9 -9
- package/src/components/bug/views/bug-list/batch-toolbar.tsx +4 -4
- package/src/components/bug/views/bug-list/group.tsx +2 -2
- package/src/components/bug/views/bug-list/index.tsx +1 -1
- package/src/components/bug/views/bug-list/inline-bug-creator.tsx +1 -1
- package/src/components/bug/views/bug-list/row.tsx +2 -2
- package/src/components/bug/views/view-switcher.tsx +1 -1
- package/src/components/changelog/changelog-page.tsx +1 -1
- package/src/components/confirm-dialog.tsx +94 -0
- package/src/components/design/canvas/panels/appearance-text-panel.tsx +3 -3
- package/src/components/design/canvas/panels/controls/add-button.tsx +1 -1
- package/src/components/design/canvas/panels/controls/constraint-select.tsx +1 -1
- package/src/components/design/canvas/panels/controls/gradient-editor.tsx +1 -1
- package/src/components/design/canvas/panels/controls/pattern-params.tsx +2 -2
- package/src/components/design/canvas/panels/controls/rows.tsx +3 -3
- package/src/components/design/canvas/panels/controls/shader-picker.tsx +3 -3
- package/src/components/design/canvas/panels/controls/text-style-button.tsx +1 -1
- package/src/components/design/canvas/panels/controls/toolbar-button.tsx +2 -2
- package/src/components/design/canvas/panels/frame-property-panel.tsx +3 -3
- package/src/components/design/canvas/panels/layer-panel.tsx +2 -2
- package/src/components/design/canvas/panels/paint-lists-panel.tsx +1 -1
- package/src/components/design/canvas/panels/property-panel.tsx +3 -3
- package/src/components/design/canvas/panels/shape-corners-panel.tsx +2 -2
- package/src/components/design/canvas/panels/toolbar.tsx +4 -4
- package/src/components/design/canvas/panels/transform-layout-panel.tsx +3 -3
- package/src/components/design/canvas/react/__tests__/hooks.test.tsx +2 -2
- package/src/components/design/canvas/react/hooks.ts +1 -1
- package/src/components/design/canvas/react/workbench.tsx +2 -2
- package/src/components/design/editor/annotation/annotation-node/annotation-node-view.tsx +1 -1
- package/src/components/design/editor/collaboration/__tests__/design-agent-panel-regenerate.test.tsx +1 -1
- package/src/components/design/editor/collaboration/__tests__/design-agent-panel-stream.test.tsx +2 -2
- package/src/components/design/editor/collaboration/agent-input.tsx +2 -2
- package/src/components/design/editor/collaboration/design-agent-panel.tsx +2 -2
- package/src/components/design/editor/collaboration/design-comment-review-panel.tsx +4 -4
- package/src/components/design/editor/dashboard/create-design-dialog.tsx +3 -3
- package/src/components/design/editor/dashboard/design-dashboard.tsx +4 -4
- package/src/components/design/editor/layout/__tests__/context-menu.test.tsx +1 -1
- package/src/components/design/editor/layout/__tests__/no-page-save-toast.test.tsx +2 -2
- package/src/components/design/editor/layout/__tests__/persistence-restore.test.tsx +1 -1
- package/src/components/design/editor/layout/__tests__/ssr-localstorage-smoke.test.tsx +1 -1
- package/src/components/design/editor/layout/context-menu.tsx +1 -1
- package/src/components/design/editor/layout/design-doc-panel.tsx +2 -2
- package/src/components/design/editor/layout/design-editor-layout.tsx +1 -1
- package/src/components/design/editor/layout/design-navigation.tsx +4 -4
- package/src/components/design/editor/layout/design-right-sidebar.tsx +2 -2
- package/src/components/design/editor/layout/hooks/use-design-auto-save.ts +1 -1
- package/src/components/design/editor/pages/design-detail-page.tsx +1 -1
- package/src/components/design/editor/pages/share-design-page.tsx +1 -1
- package/src/components/design/editor/pages-tree/design-tree-page-tab.tsx +3 -3
- package/src/components/design/editor/share/design-share-panel/components/single-version-share-card.tsx +6 -6
- package/src/components/design/editor/share/design-share-panel/index.tsx +9 -9
- package/src/components/design/editor/share/share-comment-panel.tsx +4 -4
- package/src/components/design/editor/share/share-nav-bar.tsx +3 -3
- package/src/components/design/editor/share/share-password-gate.tsx +3 -3
- package/src/components/design/editor/share/share-review-panel.tsx +4 -4
- package/src/components/design/editor/versions/components/create-version-dialog.tsx +2 -2
- package/src/components/design/editor/versions/components/delete-version-dialog.tsx +2 -2
- package/src/components/design/editor/versions/components/edit-version-dialog.tsx +2 -2
- package/src/components/design/editor/versions/components/page-tree-selector.tsx +4 -4
- package/src/components/design/editor/versions/components/page-version-timeline.tsx +2 -2
- package/src/components/design/editor/versions/page-version-panel.tsx +5 -5
- package/src/components/design/editor/versions/page-version-tree.tsx +3 -3
- package/src/components/design/editor/versions/restore-version-dialog.tsx +2 -2
- package/src/components/error/global-error-boundary.tsx +1 -1
- package/src/components/forms/app-array-field.tsx +1 -1
- package/src/components/forms/app-checkbox.tsx +1 -1
- package/src/components/forms/app-combobox.tsx +1 -1
- package/src/components/forms/app-date-picker.tsx +1 -1
- package/src/components/forms/app-field.tsx +1 -1
- package/src/components/forms/app-form-dialog.tsx +2 -2
- package/src/components/forms/app-input.tsx +1 -1
- package/src/components/forms/app-section.tsx +1 -1
- package/src/components/forms/app-select.tsx +1 -1
- package/src/components/forms/app-switch.tsx +1 -1
- package/src/components/forms/app-textarea.tsx +1 -1
- package/src/components/forms/hooks/use-form-submit.ts +1 -1
- package/src/components/harness/__tests__/media-route.test.tsx +1 -1
- package/src/components/harness/agent-preset-picker.tsx +3 -3
- package/src/components/harness/ai-chat-history/components/conversation-header.tsx +2 -2
- package/src/components/harness/ai-chat-history/components/conversation-item.tsx +3 -3
- package/src/components/harness/ai-chat-history/components/conversation-search.tsx +1 -1
- package/src/components/harness/ai-chat-history/components/empty-state.tsx +1 -1
- package/src/components/harness/ai-chat-history/index.tsx +2 -2
- package/src/components/harness/ai-citations/components/citation-item.tsx +1 -1
- package/src/components/harness/ai-citations/components/source-components.tsx +1 -1
- package/src/components/harness/ai-citations/index.tsx +1 -1
- package/src/components/harness/ai-thinking.tsx +1 -1
- package/src/components/harness/code/file-tree.tsx +1 -1
- package/src/components/harness/code/preview-panel.tsx +2 -2
- package/src/components/harness/code/workspace-picker.tsx +3 -3
- package/src/components/harness/composer/harness-composer.tsx +3 -3
- package/src/components/harness/composer/model-select.tsx +1 -1
- package/src/components/harness/connection-indicator.tsx +1 -1
- package/src/components/harness/gallery/gallery-card.tsx +5 -5
- package/src/components/harness/gallery/gallery-grid.tsx +5 -5
- package/src/components/harness/gallery/lightbox-viewer.tsx +2 -2
- package/src/components/harness/gallery/retranscribe-dialog.tsx +5 -5
- package/src/components/harness/harness-workbench-page.tsx +2 -2
- package/src/components/harness/image-lightbox.tsx +1 -1
- package/src/components/harness/interrupt-approval.tsx +2 -2
- package/src/components/harness/message-actions.tsx +2 -2
- package/src/components/harness/plan-approval-card.tsx +2 -2
- package/src/components/harness/plugin-define-approval.tsx +2 -2
- package/src/components/harness/plugin-panel.tsx +3 -3
- package/src/components/harness/queue-bar.tsx +1 -1
- package/src/components/harness/queue-item.tsx +1 -1
- package/src/components/harness/retry-countdown-bar.tsx +1 -1
- package/src/components/hextaui/ai-citations.tsx +1 -1
- package/src/components/hextaui/ai-file-upload.tsx +2 -2
- package/src/components/hextaui/ai-message.tsx +2 -2
- package/src/components/hextaui/ai-thinking.tsx +1 -1
- package/src/components/hotkeys/shortcuts-panel.tsx +2 -2
- package/src/components/infinite-scroll-sentinel.tsx +37 -0
- package/src/components/iteration/auto-schedule-dialog.tsx +5 -5
- package/src/components/iteration/create-iteration-dialog.tsx +5 -5
- package/src/components/iteration/iteration-editor.tsx +3 -3
- package/src/components/knowledge/dialog/knowledge-form-dialog.tsx +3 -3
- package/src/components/knowledge/doc-properties.tsx +2 -2
- package/src/components/knowledge/kb-filter-popover.tsx +2 -2
- package/src/components/knowledge/knowledge-tag-input.tsx +2 -2
- package/src/components/knowledge/knowledge-toolbar.tsx +9 -9
- package/src/components/knowledge/knowledge-tree-item.tsx +5 -5
- package/src/components/knowledge/knowledge-tree.tsx +3 -3
- package/src/components/knowledge-public/bookmark-card.tsx +3 -3
- package/src/components/knowledge-public/bookmark-form-dialog.tsx +6 -6
- package/src/components/knowledge-public/knowledge-card.tsx +1 -1
- package/src/components/knowledge-public/knowledge-form-dialog.tsx +6 -6
- package/src/components/knowledge-public/knowledge-search-bar.tsx +2 -2
- package/src/components/knowledge-public/legal-compliance-editor.tsx +1 -1
- package/src/components/knowledge-public/markdown-editor.tsx +2 -2
- package/src/components/knowledge-public/sharers-avatar-group.tsx +1 -1
- package/src/components/layout/sidebar-03/__tests__/nav-workspace.test.tsx +2 -2
- package/src/components/layout/sidebar-03/__tests__/user-menu-anonymous.test.tsx +3 -3
- package/src/components/layout/sidebar-03/app-sidebar.tsx +1 -1
- package/src/components/layout/sidebar-03/index.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-anyhub.tsx +2 -2
- package/src/components/layout/sidebar-03/nav-knowledge.tsx +4 -4
- package/src/components/layout/sidebar-03/nav-main.tsx +4 -4
- package/src/components/layout/sidebar-03/nav-notifications.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-search-trigger.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-secondary.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-workspace.tsx +2 -2
- package/src/components/layout/sidebar-03/team-switcher.tsx +2 -2
- package/src/components/layout/sidebar-03/user-menu.tsx +3 -3
- package/src/components/notifications/settings-notifications.tsx +6 -6
- package/src/components/notifications/team-notifications.tsx +6 -6
- package/src/components/project/create-project-dialog.tsx +4 -4
- package/src/components/project/invite-member-dialog.tsx +6 -6
- package/src/components/project/project-member-manager.tsx +5 -5
- package/src/components/project/project-module-card.tsx +1 -1
- package/src/components/settings/ai/api-key-field.tsx +3 -3
- package/src/components/settings/ai/byok-section.tsx +2 -2
- package/src/components/settings/ai/create-custom-model-dialog.tsx +5 -5
- package/src/components/settings/ai/create-custom-provider-dialog.tsx +5 -5
- package/src/components/settings/ai/local-agent-panel.tsx +3 -3
- package/src/components/settings/ai/model-card.tsx +2 -2
- package/src/components/settings/ai/model-manager.tsx +4 -4
- package/src/components/settings/ai/provider-card.tsx +1 -1
- package/src/components/settings/ai/provider-detail-form.tsx +6 -6
- package/src/components/settings/ai/provider-grid.tsx +3 -3
- package/src/components/settings/ai/source/model-source-picker.tsx +2 -2
- package/src/components/settings/language-selector.tsx +2 -2
- package/src/components/settings/personal-team/account/account-client.tsx +2 -2
- package/src/components/settings/personal-team/account/avatar/notion-avatar-editor.tsx +3 -3
- package/src/components/settings/personal-team/account/settings-profile.tsx +8 -8
- package/src/components/settings/personal-team/team/invitation-cards/invitation-badges.tsx +1 -1
- package/src/components/settings/personal-team/team/invitation-cards/invitation-history-list.tsx +5 -5
- package/src/components/settings/personal-team/team/invitation-cards/invite-email-card.tsx +5 -5
- package/src/components/settings/personal-team/team/invitation-cards/invite-link-card.tsx +3 -3
- package/src/components/settings/personal-team/team/team-client.tsx +6 -6
- package/src/components/settings/personal-team/team/team-invitations.tsx +1 -1
- package/src/components/settings/personal-team/team/team-member-list.tsx +7 -7
- package/src/components/shared-kit/avatars/notion-avatar.tsx +109 -3
- package/src/components/shared-kit/avatars/user-avatar.tsx +65 -3
- package/src/components/shared-kit/data-viz/contribution-graph-tooltip.tsx +1 -1
- package/src/components/shared-kit/dialogs/name-confirm-dialog.tsx +5 -5
- package/src/components/shared-kit/i18n/language-switcher.tsx +2 -2
- package/src/components/shared-kit/icons/lucide-icon-picker/index.tsx +1 -1
- package/src/components/shared-kit/icons/lucide-icon-picker/panel.tsx +1 -1
- package/src/components/shared-kit/theme/theme-surface.tsx +4 -4
- package/src/components/shared-kit/theme/theme-toggle.tsx +1 -1
- package/src/components/shared-kit/timezone/timezone-select.tsx +1 -1
- package/src/components/story/__tests__/story-list-view-restore.test.tsx +2 -2
- package/src/components/story/__tests__/story-list-view-ssr.test.tsx +2 -2
- package/src/components/story/ai/handlers/more-popover.tsx +2 -2
- package/src/components/story/ai/handlers/stream-text.ts +1 -1
- package/src/components/story/ai/prototype-dialog.tsx +4 -4
- package/src/components/story/ai/split-dialog.tsx +6 -6
- package/src/components/story/ai/story-ai-panel.tsx +4 -4
- package/src/components/story/ai/story-ai-preview-list.tsx +4 -4
- package/src/components/story/ai/story-ai-toolbar.tsx +3 -3
- package/src/components/story/columns.tsx +1 -1
- package/src/components/story/create-story-dialog.tsx +4 -4
- package/src/components/story/detail/__tests__/associated-attachments-panel.test.tsx +1 -1
- package/src/components/story/detail/__tests__/categories.test.tsx +1 -1
- package/src/components/story/detail/__tests__/dependencies-button.test.tsx +1 -1
- package/src/components/story/detail/comment-input.tsx +3 -3
- package/src/components/story/detail/comment-item.tsx +3 -3
- package/src/components/story/detail/reaction-bar.tsx +1 -1
- package/src/components/story/detail/story-detail-body.tsx +5 -5
- package/src/components/story/detail/story-detail-toolbar/__tests__/related-test-cases.test.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar/associated-attachments-panel.tsx +4 -4
- package/src/components/story/detail/story-detail-toolbar/categories.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar/children.tsx +5 -5
- package/src/components/story/detail/story-detail-toolbar/dependencies.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar/dependency-panel.tsx +3 -3
- package/src/components/story/detail/story-detail-toolbar/related-test-cases.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar.tsx +2 -2
- package/src/components/story/detail/story-properties.tsx +1 -1
- package/src/components/story/display/__tests__/display-dropdown.test.tsx +1 -1
- package/src/components/story/display/display-dropdown.tsx +3 -3
- package/src/components/story/filters/add-filter-dropdown.tsx +1 -1
- package/src/components/story/filters/applied-filters.tsx +1 -1
- package/src/components/story/filters/filter-row.tsx +1 -1
- package/src/components/story/filters/filter-toggle.tsx +2 -2
- package/src/components/story/inline-editors/__tests__/dependency-type-select.test.tsx +2 -2
- package/src/components/story/inline-editors/__tests__/labels-editor.test.tsx +2 -2
- package/src/components/story/inline-editors/__tests__/priority-editor.test.tsx +1 -1
- package/src/components/story/inline-editors/__tests__/state-editor.test.tsx +1 -1
- package/src/components/story/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/story/inline-editors/date-editor.tsx +1 -1
- package/src/components/story/inline-editors/dependency-type-select.tsx +2 -2
- package/src/components/story/inline-editors/inline-trigger.tsx +2 -2
- package/src/components/story/inline-editors/labels-editor.tsx +2 -2
- package/src/components/story/inline-editors/parent-story-editor.tsx +1 -1
- package/src/components/story/inline-editors/story-select-dialog.tsx +6 -6
- package/src/components/story/peek-panel.tsx +2 -2
- package/src/components/story/relations/__tests__/attachment-manage-dialog.test.tsx +4 -4
- package/src/components/story/relations/__tests__/knowledge-select-dialog.test.tsx +2 -2
- package/src/components/story/relations/__tests__/link-manage-dialog.test.tsx +1 -1
- package/src/components/story/relations/attachment-manage-dialog.tsx +4 -4
- package/src/components/story/relations/knowledge-select-dialog.tsx +5 -5
- package/src/components/story/relations/link-manage-dialog.tsx +5 -5
- package/src/components/story/relations/story-ref-row.tsx +5 -5
- package/src/components/story/search-popover.tsx +1 -1
- package/src/components/story/story-list-table.tsx +1 -1
- package/src/components/story/story-list-view.tsx +2 -2
- package/src/components/story/story-panel-header.tsx +5 -5
- package/src/components/story/story-toolbar.tsx +4 -4
- package/src/components/story/transfer-story-popover.tsx +4 -4
- package/src/components/story/views/calendar-view.tsx +3 -3
- package/src/components/story/views/create-view-dialog.tsx +2 -2
- package/src/components/story/views/kanban-board.tsx +2 -2
- package/src/components/story/views/story-list/__tests__/batch-toolbar.test.tsx +1 -1
- package/src/components/story/views/story-list/__tests__/group-header.test.tsx +1 -1
- package/src/components/story/views/story-list/batch-preview-dialog.tsx +7 -7
- package/src/components/story/views/story-list/batch-toolbar.tsx +3 -3
- package/src/components/story/views/story-list/group.tsx +2 -2
- package/src/components/story/views/story-list/index.tsx +1 -1
- package/src/components/story/views/story-list/row.tsx +1 -1
- package/src/components/story/views/timeline-view.tsx +3 -3
- package/src/components/story/views/view-list-section.tsx +1 -1
- package/src/components/story/views/view-selector-button.tsx +2 -2
- package/src/components/story/views/view-switcher.tsx +1 -1
- package/src/components/tags/nav-tag.tsx +6 -6
- package/src/components/tags/tag-badge.tsx +1 -1
- package/src/components/tags/tag-manager.tsx +5 -5
- package/src/components/tags/tag-selector.tsx +1 -1
- package/src/components/testcase/__tests__/artifact-panel.test.tsx +1 -1
- package/src/components/testcase/__tests__/case-row.test.tsx +2 -2
- package/src/components/testcase/__tests__/convert-bug.test.tsx +2 -2
- package/src/components/testcase/__tests__/folder-tree.test.tsx +2 -2
- package/src/components/testcase/__tests__/generate-dialog.test.tsx +1 -1
- package/src/components/testcase/__tests__/review-layout.test.tsx +1 -1
- package/src/components/testcase/__tests__/step-editor.test.tsx +2 -2
- package/src/components/testcase/ai/generate-dialog.tsx +4 -4
- package/src/components/testcase/automation/artifact-diff.tsx +1 -1
- package/src/components/testcase/automation/artifact-panel.tsx +6 -6
- package/src/components/testcase/automation/verify-report.tsx +1 -1
- package/src/components/testcase/create-testcase-dialog.tsx +5 -5
- package/src/components/testcase/detail/case-detail-body.tsx +1 -1
- package/src/components/testcase/detail/properties.tsx +1 -1
- package/src/components/testcase/detail/story-link-editor.tsx +1 -1
- package/src/components/testcase/filters/index.tsx +2 -2
- package/src/components/testcase/folder-tree.tsx +2 -2
- package/src/components/testcase/generation/batch-actions.tsx +1 -1
- package/src/components/testcase/generation/draft-card.tsx +5 -5
- package/src/components/testcase/generation/review-layout.tsx +2 -2
- package/src/components/testcase/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/testcase/list/case-row.tsx +1 -1
- package/src/components/testcase/list/grouped-list.tsx +1 -1
- package/src/components/testcase/list-view.tsx +1 -1
- package/src/components/testcase/peek-panel.tsx +4 -4
- package/src/components/testcase/plans/add-to-plan-bar.tsx +2 -2
- package/src/components/testcase/plans/add-to-plan-dialog.tsx +4 -4
- package/src/components/testcase/plans/create-plan-dialog.tsx +5 -5
- package/src/components/testcase/plans/plan-detail.tsx +7 -7
- package/src/components/testcase/plans/plan-list.tsx +3 -3
- package/src/components/testcase/plans/plan-state-badge.tsx +1 -1
- package/src/components/testcase/runs/case-checklist.tsx +3 -3
- package/src/components/testcase/runs/convert-bug-button.tsx +1 -1
- package/src/components/testcase/runs/failure-list.tsx +2 -2
- package/src/components/testcase/runs/pending-bugs.tsx +3 -3
- package/src/components/testcase/runs/run-header.tsx +1 -1
- package/src/components/testcase/runs/step-row.tsx +2 -2
- package/src/components/testcase/step-editor.tsx +2 -2
- package/src/components/testcase/table/table-view.tsx +1 -1
- package/src/components/testcase/testcase-toolbar.tsx +3 -3
- package/src/components/testcase/views/create-view-dialog.tsx +2 -2
- package/src/components/testcase/views/view-selector-button.tsx +2 -2
- package/src/components/testcase/views/view-switcher.tsx +1 -1
- package/src/components/tiptap/mindmap/mind-map-context-menu.tsx +1 -1
- package/src/components/tiptap/mindmap/mind-map-controls.tsx +2 -2
- package/src/components/tiptap/mindmap/mindmap-fullscreen-dialog.tsx +1 -1
- package/src/components/tiptap/notion-like/notion-like-editor-header.tsx +2 -2
- package/src/components/tiptap/ui/ai-menu/ai-menu.tsx +1 -1
- package/src/components/tiptap/ui/mention-dropdown-menu/mention-dropdown-menu.tsx +1 -1
- package/src/components/ui/__tests__/select.test.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +185 -0
- package/src/components/ui/alert.tsx +75 -0
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +51 -0
- package/src/components/ui/button-group.tsx +1 -1
- package/src/components/ui/button.tsx +57 -0
- package/src/components/ui/calendar.tsx +1 -1
- package/src/components/ui/card.tsx +102 -0
- package/src/components/ui/checkbox.tsx +27 -0
- package/src/components/ui/collapsible.tsx +19 -0
- package/src/components/ui/command.tsx +2 -2
- package/src/components/ui/dialog.tsx +155 -0
- package/src/components/ui/dropdown-menu.tsx +265 -0
- package/src/components/ui/field.tsx +236 -0
- package/src/components/ui/input-group.tsx +157 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/item.tsx +1 -1
- package/src/components/ui/label.tsx +17 -0
- package/src/components/ui/message-scroller.tsx +1 -1
- package/src/components/ui/pagination.tsx +130 -0
- package/src/components/ui/questionnaire.tsx +1 -1
- package/src/components/ui/select.tsx +232 -0
- package/src/components/ui/separator.tsx +23 -0
- package/src/components/ui/sheet.tsx +134 -0
- package/src/components/ui/sidebar.tsx +721 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/switch.tsx +30 -0
- package/src/components/ui/table.tsx +113 -0
- package/src/components/ui/textarea.tsx +17 -0
- package/src/components/ui/toast.tsx +308 -0
- package/src/components/ui/tooltip.tsx +64 -0
- package/src/components/workspace/__tests__/dialogs/create-workspace-dialog.test.tsx +3 -3
- package/src/components/workspace/__tests__/dialogs/delete-workspace-options.test.tsx +3 -3
- package/src/components/workspace/__tests__/dialogs/edit-workspace-dialog.test.tsx +3 -3
- package/src/components/workspace/__tests__/header/workspace-header.test.tsx +3 -3
- package/src/components/workspace/__tests__/kb/workspace-kb-card.test.tsx +2 -2
- package/src/components/workspace/__tests__/members/workspace-members-manager.test.tsx +5 -5
- package/src/components/workspace/__tests__/projects/workspace-project-list.test.tsx +2 -2
- package/src/components/workspace/dialogs/create-workspace-dialog.tsx +3 -3
- package/src/components/workspace/dialogs/delete-workspace-options.tsx +3 -3
- package/src/components/workspace/dialogs/edit-workspace-dialog.tsx +3 -3
- package/src/components/workspace/header/workspace-header.tsx +3 -3
- package/src/components/workspace/kb/workspace-kb-card.tsx +6 -6
- package/src/components/workspace/kb/workspace-kb-manage-dialog.tsx +5 -5
- package/src/components/workspace/kb/workspace-quick-doc-dialog.tsx +6 -6
- package/src/components/workspace/members/workspace-members-manager.tsx +6 -6
- package/src/components/workspace/projects/workspace-project-list.tsx +2 -2
- package/src/hooks/use-load-more.ts +57 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/use-notifications.ts +1 -1
- package/src/lib/changelog/sdk-versions.ts +1 -1
- package/src/lib/datetime.ts +209 -4
- package/src/lib/sanitize.ts +17 -19
- package/src/lib/toast-error.ts +1 -1
- package/src/providers/index.tsx +2 -2
- package/src/routes/__desktop/onboarding/route.lazy.tsx +6 -6
- package/src/routes/__root.tsx +2 -2
- package/src/routes/_login/forgot-password/route.lazy.tsx +1 -1
- package/src/routes/_login/login/route.lazy.tsx +4 -4
- package/src/routes/_login/register/route.lazy.tsx +2 -2
- package/src/routes/_login/reset-password/route.lazy.tsx +1 -1
- package/src/routes/_login/verify-email/route.lazy.tsx +1 -1
- package/src/routes/_nav/-components/nav-not-found.tsx +1 -1
- package/src/routes/_nav/bugs/$bugId/route.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/activity-feed.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/quick-actions.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/stats-grid.tsx +1 -1
- package/src/routes/_nav/dashboard/route.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/-components/knowledge-workspace-pending.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/doc/$docId/route.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/route.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/bookmarks/$id.lazy.tsx +6 -6
- package/src/routes/_nav/knowledge/bookmarks/index.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/compliance/$id.lazy.tsx +5 -5
- package/src/routes/_nav/knowledge/dictionaries/$id.lazy.tsx +3 -3
- package/src/routes/_nav/knowledge/index.lazy.tsx +6 -6
- package/src/routes/_nav/knowledge/laws/$id.lazy.tsx +5 -5
- package/src/routes/_nav/projects/$projectId/$storyId/route.lazy.tsx +2 -2
- package/src/routes/_nav/projects/$projectId/index.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/iterations/$iterationId/route.lazy.tsx +5 -5
- package/src/routes/_nav/projects/$projectId/iterations/index.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/settings/route.lazy.tsx +8 -8
- package/src/routes/_nav/settings/ai/hosted/route.lazy.tsx +2 -2
- package/src/routes/_nav/settings/ai/index/route.lazy.tsx +1 -1
- package/src/routes/_nav/settings/billing/route.lazy.tsx +1 -1
- package/src/routes/_nav/settings/connection/route.lazy.tsx +3 -3
- package/src/routes/_nav/settings/general/route.lazy.tsx +3 -3
- package/src/routes/_nav/settings/privacy/route.lazy.tsx +5 -5
- package/src/routes/_nav/settings/route.tsx +1 -1
- package/src/routes/_nav/stories/-components/story-detail-skeleton.tsx +1 -1
- package/src/routes/_nav/test-cases/$caseId/route.tsx +1 -1
- package/src/routes/_nav/test-cases/generation/$generationId/route.tsx +1 -1
- package/src/routes/_nav/test-cases/plans/$planId/route.tsx +1 -1
- package/src/routes/_nav/test-cases/runs/$runId/route.tsx +1 -1
- package/src/routes/_nav/workspaces/$workspaceId/activities/route.lazy.tsx +1 -1
- package/src/routes/_nav/workspaces/$workspaceId/settings/route.lazy.tsx +6 -6
- package/src/routes/_nav/workspaces/index.lazy.tsx +5 -5
- package/src/routes/invite/$token/route.lazy.tsx +2 -2
- package/src/routes/share/compliance/$id/route.lazy.tsx +3 -3
- package/src/routes/share/law/$id/route.lazy.tsx +3 -3
- package/src/server/__tests__/agent-client-graph.test.ts +1 -1
- package/src/styles/globals.css +0 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
import { useState, useRef, useEffect, useCallback } from "react"
|
|
20
|
-
import { toast } from "
|
|
20
|
+
import { toast } from "@/components/ui/toast"
|
|
21
21
|
import type { Editor } from "@tiptap/core"
|
|
22
22
|
import { decideSubmit, type BusyAction } from "./submit-machine"
|
|
23
23
|
import { useAttachments } from "./attachments/use-attachments"
|
|
@@ -26,7 +26,7 @@ import { ModelSelect } from "./model-select"
|
|
|
26
26
|
import { ContextMeter } from "./context-meter"
|
|
27
27
|
import { InterruptApproval } from "@/components/harness/interrupt-approval"
|
|
28
28
|
import { ComposerEditor } from "./composer-editor"
|
|
29
|
-
import { Button } from "
|
|
29
|
+
import { Button } from "@/components/ui/button"
|
|
30
30
|
import { useFeature } from "@/components/billing/use-feature"
|
|
31
31
|
import { generatePrototypeFn } from "@/server/serverFns/harness/media"
|
|
32
32
|
import {
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
SelectItem,
|
|
36
36
|
SelectTrigger,
|
|
37
37
|
SelectValue,
|
|
38
|
-
} from "
|
|
38
|
+
} from "@/components/ui/select"
|
|
39
39
|
import { ShieldCheck, Sparkles, ArrowRight } from "lucide-react"
|
|
40
40
|
import { SANDBOX_POLICY_LEVELS, type SandboxPolicyLevel } from "@/server/ai-gateway/sandbox/policy-levels"
|
|
41
41
|
import { Link } from "@tanstack/react-router"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import { useState } from "react"
|
|
20
20
|
import { ChevronDown, Check } from "lucide-react"
|
|
21
21
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button"
|
|
23
23
|
import { useSelectedModel } from "@/lib/ai/use-selected-model"
|
|
24
24
|
import { m } from "@/paraglide/messages.js"
|
|
25
25
|
|
|
@@ -5,17 +5,17 @@ import { KIND_ICONS, getKindLabel, getArtifactUrl, getPrompt } from "./gallery-t
|
|
|
5
5
|
export type { GalleryItem } from "./gallery-types"
|
|
6
6
|
import type { GalleryItem } from "./gallery-types"
|
|
7
7
|
import { m } from "@/paraglide/messages.js"
|
|
8
|
-
import { Button } from "
|
|
9
|
-
import { Badge } from "
|
|
10
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
11
|
-
import { toast } from "
|
|
8
|
+
import { Button } from "@/components/ui/button"
|
|
9
|
+
import { Badge } from "@/components/ui/badge"
|
|
10
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
|
|
11
|
+
import { toast } from "@/components/ui/toast"
|
|
12
12
|
import {
|
|
13
13
|
Select,
|
|
14
14
|
SelectContent,
|
|
15
15
|
SelectItem,
|
|
16
16
|
SelectTrigger,
|
|
17
17
|
SelectValue,
|
|
18
|
-
} from "
|
|
18
|
+
} from "@/components/ui/select"
|
|
19
19
|
|
|
20
20
|
const MAX_REF_FRAME_SIZE = 10 * 1024 * 1024
|
|
21
21
|
|
|
@@ -11,16 +11,16 @@ import { listStoriesFn } from "@/server/serverFns/story/story-crud"
|
|
|
11
11
|
import { listKnowledgeFn } from "@/server/serverFns/knowledge"
|
|
12
12
|
import { listDesignsFn } from "@/server/serverFns/design/designs"
|
|
13
13
|
import { FeatureGate } from "@/components/billing/feature-gate"
|
|
14
|
-
import { Skeleton } from "
|
|
15
|
-
import { Button } from "
|
|
16
|
-
import { Alert, AlertDescription } from "
|
|
14
|
+
import { Skeleton } from "@/components/ui/skeleton"
|
|
15
|
+
import { Button } from "@/components/ui/button"
|
|
16
|
+
import { Alert, AlertDescription } from "@/components/ui/alert"
|
|
17
17
|
import {
|
|
18
18
|
Dialog,
|
|
19
19
|
DialogContent,
|
|
20
20
|
DialogHeader,
|
|
21
21
|
DialogTitle,
|
|
22
|
-
} from "
|
|
23
|
-
import { toast } from "
|
|
22
|
+
} from "@/components/ui/dialog"
|
|
23
|
+
import { toast } from "@/components/ui/toast"
|
|
24
24
|
import { m } from "@/paraglide/messages.js"
|
|
25
25
|
import { cn } from "@/lib/utils"
|
|
26
26
|
import { formatTimestamp } from "@/lib/datetime"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dialog, DialogContent, DialogTitle, DialogDescription } from "
|
|
2
|
-
import { Button } from "
|
|
1
|
+
import { Dialog, DialogContent, DialogTitle, DialogDescription } from "@/components/ui/dialog"
|
|
2
|
+
import { Button } from "@/components/ui/button"
|
|
3
3
|
import { X, SkipBack, SkipForward } from "lucide-react"
|
|
4
4
|
import type { PersistedArtifactRef } from "./types"
|
|
5
5
|
import { m } from "@/paraglide/messages.js"
|
|
@@ -24,17 +24,17 @@ import {
|
|
|
24
24
|
DialogFooter,
|
|
25
25
|
DialogHeader,
|
|
26
26
|
DialogTitle,
|
|
27
|
-
} from "
|
|
27
|
+
} from "@/components/ui/dialog"
|
|
28
28
|
import {
|
|
29
29
|
Select,
|
|
30
30
|
SelectContent,
|
|
31
31
|
SelectItem,
|
|
32
32
|
SelectTrigger,
|
|
33
33
|
SelectValue,
|
|
34
|
-
} from "
|
|
35
|
-
import { Input } from "
|
|
36
|
-
import { Button } from "
|
|
37
|
-
import { Label } from "
|
|
34
|
+
} from "@/components/ui/select"
|
|
35
|
+
import { Input } from "@/components/ui/input"
|
|
36
|
+
import { Button } from "@/components/ui/button"
|
|
37
|
+
import { Label } from "@/components/ui/label"
|
|
38
38
|
import { listAiProvidersFn } from "@/server/serverFns/design/ai/providers"
|
|
39
39
|
import { m } from "@/paraglide/messages.js"
|
|
40
40
|
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
setLatestCitations,
|
|
32
32
|
} from '@/components/harness/harness-chat-slots'
|
|
33
33
|
import { AgentPresetPicker } from '@/components/harness/agent-preset-picker'
|
|
34
|
-
import { Button } from '
|
|
35
|
-
import { ConfirmDialog } from '
|
|
34
|
+
import { Button } from '@/components/ui/button'
|
|
35
|
+
import { ConfirmDialog } from '@/components/confirm-dialog';
|
|
36
36
|
import { useSession } from '@/lib/auth/auth-client'
|
|
37
37
|
import { listConversationsFn, createConversationFn, updateConversationFn, deleteConversationFn, forkConversationFn } from '@/server/serverFns/chat/conversations'
|
|
38
38
|
import { listAgentsFn } from '@/server/serverFns/agents/agent-crud'
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
import { Dialog, DialogContent, DialogTitle } from "
|
|
19
|
+
import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog"
|
|
20
20
|
import { X } from "lucide-react"
|
|
21
21
|
|
|
22
22
|
export interface ImageLightboxProps {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { useState } from "react"
|
|
19
19
|
import type { UseChatReturn } from "@tanstack/ai-react"
|
|
20
20
|
import { AlertTriangle, Check, X } from "lucide-react"
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Textarea } from "
|
|
21
|
+
import { Button } from "@/components/ui/button"
|
|
22
|
+
import { Textarea } from "@/components/ui/textarea"
|
|
23
23
|
import { m } from "@/paraglide/messages.js"
|
|
24
24
|
|
|
25
25
|
type ToolApprovalInterrupt = {
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "lucide-react";
|
|
25
25
|
import { useCallback, useRef, useState } from "react";
|
|
26
26
|
import { useHotkey } from "@tanstack/react-hotkeys";
|
|
27
|
-
import { Button } from "
|
|
27
|
+
import { Button } from "@/components/ui/button";
|
|
28
28
|
import {
|
|
29
29
|
DropdownMenu,
|
|
30
30
|
DropdownMenuContent,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
DropdownMenuSeparator,
|
|
33
33
|
DropdownMenuShortcut,
|
|
34
34
|
DropdownMenuTrigger,
|
|
35
|
-
} from "
|
|
35
|
+
} from "@/components/ui/dropdown-menu";
|
|
36
36
|
import { m } from "@/paraglide/messages.js";
|
|
37
37
|
|
|
38
38
|
export interface MessageActionsProps {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
import { useState } from "react";
|
|
20
20
|
import { Check, ClipboardList, X } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Textarea } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
23
23
|
import { m } from "@/paraglide/messages.js";
|
|
24
24
|
|
|
25
25
|
interface PlanApprovalPayload {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
import { useState } from "react";
|
|
20
20
|
import { Check, Puzzle, X } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
22
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
23
|
-
import { Textarea } from "
|
|
23
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
24
24
|
import { m } from "@/paraglide/messages.js";
|
|
25
25
|
|
|
26
26
|
interface PluginDefineInterrupt {
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
import { useState } from "react";
|
|
20
20
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
21
21
|
import { AlertCircle, ChevronDown, Play, Puzzle, Square, Trash2 } from "lucide-react";
|
|
22
|
-
import { Badge } from "
|
|
23
|
-
import { Button } from "
|
|
24
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
22
|
+
import { Badge } from "@/components/ui/badge";
|
|
23
|
+
import { Button } from "@/components/ui/button";
|
|
24
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
25
25
|
import { listPluginsFn, setPluginStatusFn, deletePluginFn } from "@/server/serverFns/plugins/harness-plugins";
|
|
26
26
|
import { stopPlugin } from "@/lib/plugin-runtime/plugin-client";
|
|
27
27
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
import { ArrowRightToLine, X } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
21
|
import { m } from "@/paraglide/messages.js";
|
|
22
22
|
import { useHarnessChatContext } from "./chat-ui";
|
|
23
23
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import type { QueueProps } from "@tanstack/ai-react/ui";
|
|
20
20
|
import { X } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
22
|
import { m } from "@/paraglide/messages.js";
|
|
23
23
|
|
|
24
24
|
function flattenContent(content: unknown): string {
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
} from "lucide-react";
|
|
11
11
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
12
|
import { cn } from "@/lib/utils";
|
|
13
|
-
import { Button } from "
|
|
13
|
+
import { Button } from "@/components/ui/button";
|
|
14
14
|
import {
|
|
15
15
|
Card,
|
|
16
16
|
CardContent,
|
|
17
17
|
CardDescription,
|
|
18
18
|
CardHeader,
|
|
19
19
|
CardTitle,
|
|
20
|
-
} from "
|
|
20
|
+
} from "@/components/ui/card";
|
|
21
21
|
import { Progress } from "@/components/ui/progress";
|
|
22
22
|
|
|
23
23
|
export interface UploadedFile {
|
|
@@ -14,7 +14,7 @@ import ReactMarkdown from "react-markdown";
|
|
|
14
14
|
import remarkGfm from "remark-gfm";
|
|
15
15
|
import { type BundledLanguage, codeToHtml } from "shiki";
|
|
16
16
|
import { cn } from "@/lib/utils";
|
|
17
|
-
import { Button } from "
|
|
17
|
+
import { Button } from "@/components/ui/button";
|
|
18
18
|
import {
|
|
19
19
|
DropdownMenu,
|
|
20
20
|
DropdownMenuContent,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
DropdownMenuSeparator,
|
|
23
23
|
DropdownMenuShortcut,
|
|
24
24
|
DropdownMenuTrigger,
|
|
25
|
-
} from "
|
|
25
|
+
} from "@/components/ui/dropdown-menu";
|
|
26
26
|
|
|
27
27
|
const STREAMING_CONFIG = {
|
|
28
28
|
CHAR_DELAY: 20,
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
DialogContent,
|
|
23
23
|
DialogHeader,
|
|
24
24
|
DialogTitle,
|
|
25
|
-
} from "
|
|
26
|
-
import { Button } from "
|
|
25
|
+
} from "@/components/ui/dialog"
|
|
26
|
+
import { Button } from "@/components/ui/button"
|
|
27
27
|
import { KeyboardMusic, X } from "lucide-react"
|
|
28
28
|
import { ShortcutBadge } from "./shortcut-badge"
|
|
29
29
|
import { HOTKEY_REGISTRY, CATEGORY_ORDER } from "@/lib/hotkeys/registry"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
|
|
5
|
+
import { useLoadMore } from "../hooks/use-load-more"
|
|
6
|
+
|
|
7
|
+
interface InfiniteScrollSentinelProps {
|
|
8
|
+
onLoadMore: () => void | Promise<void>
|
|
9
|
+
hasMore: boolean
|
|
10
|
+
rootRef?: React.RefObject<HTMLElement | null>
|
|
11
|
+
/** 全部加载完后的提示文案(调用方传入,组件内不做 i18n) */
|
|
12
|
+
loadedAllLabel: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 无限滚动哨兵:滚动到底部附近触发 onLoadMore,展示三点脉冲 loading 与
|
|
17
|
+
* 「已全部加载」提示。加载状态机见 useLoadMore。
|
|
18
|
+
*/
|
|
19
|
+
export function InfiniteScrollSentinel({ onLoadMore, hasMore, rootRef, loadedAllLabel }: InfiniteScrollSentinelProps) {
|
|
20
|
+
const { sentinelRef, loading } = useLoadMore(onLoadMore, hasMore, rootRef)
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<div className="flex h-7 items-center justify-center">
|
|
24
|
+
<div ref={sentinelRef} className="h-1" />
|
|
25
|
+
{loading && (
|
|
26
|
+
<div className="flex items-center gap-1">
|
|
27
|
+
<div className="h-1.5 w-1.5 animate-pulse rounded-full bg-primary/60" />
|
|
28
|
+
<div className="h-1.5 w-1.5 animate-pulse rounded-full bg-primary/60 delay-75" />
|
|
29
|
+
<div className="h-1.5 w-1.5 animate-pulse rounded-full bg-primary/60 delay-150" />
|
|
30
|
+
</div>
|
|
31
|
+
)}
|
|
32
|
+
{!loading && !hasMore && (
|
|
33
|
+
<span className="text-xs text-muted-foreground">{loadedAllLabel}</span>
|
|
34
|
+
)}
|
|
35
|
+
</div>
|
|
36
|
+
)
|
|
37
|
+
}
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useState, useEffect } from "react";
|
|
19
|
-
import { Button } from "
|
|
20
|
-
import { Input } from "
|
|
21
|
-
import { Switch } from "
|
|
19
|
+
import { Button } from "@/components/ui/button";
|
|
20
|
+
import { Input } from "@/components/ui/input";
|
|
21
|
+
import { Switch } from "@/components/ui/switch";
|
|
22
22
|
import {
|
|
23
23
|
Dialog,
|
|
24
24
|
DialogContent,
|
|
25
25
|
DialogFooter,
|
|
26
26
|
DialogHeader,
|
|
27
27
|
DialogTitle,
|
|
28
|
-
} from "
|
|
28
|
+
} from "@/components/ui/dialog";
|
|
29
29
|
import { getAutoScheduleFn, updateAutoScheduleFn } from "@/server/serverFns/iteration";
|
|
30
|
-
import { toast } from "
|
|
30
|
+
import { toast } from "@/components/ui/toast";
|
|
31
31
|
import { useQuery } from "@tanstack/react-query";
|
|
32
32
|
import { m } from "@/paraglide/messages.js";
|
|
33
33
|
import { toastError } from "@/lib/toast-error";
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useState } from "react";
|
|
19
|
-
import { Button } from "
|
|
20
|
-
import { Input } from "
|
|
21
|
-
import { Textarea } from "
|
|
19
|
+
import { Button } from "@/components/ui/button";
|
|
20
|
+
import { Input } from "@/components/ui/input";
|
|
21
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
22
22
|
import {
|
|
23
23
|
Dialog,
|
|
24
24
|
DialogContent,
|
|
25
25
|
DialogFooter,
|
|
26
26
|
DialogHeader,
|
|
27
27
|
DialogTitle,
|
|
28
|
-
} from "
|
|
28
|
+
} from "@/components/ui/dialog";
|
|
29
29
|
import { createIterationsFn, updateIterationsFn } from "@/server/serverFns/iteration";
|
|
30
|
-
import { toast } from "
|
|
30
|
+
import { toast } from "@/components/ui/toast";
|
|
31
31
|
import type { IterationSummary } from "@/server/serverFns/iteration/schemas";
|
|
32
32
|
import { m } from "@/paraglide/messages.js";
|
|
33
33
|
import { toastError } from "@/lib/toast-error";
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { ChevronDown, X } from "lucide-react";
|
|
20
20
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
21
|
-
import { Button } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
22
|
import { Command, CommandEmpty, CommandGroup, CommandItem, CommandList } from "@/components/ui/command";
|
|
23
|
-
import { ConfirmDialog } from "
|
|
23
|
+
import { ConfirmDialog } from "@/components/confirm-dialog";
|
|
24
24
|
import { setStoryIterationFn } from "@/server/serverFns/iteration";
|
|
25
|
-
import { toast } from "
|
|
25
|
+
import { toast } from "@/components/ui/toast";
|
|
26
26
|
import type { IterationSummary } from "@/server/serverFns/iteration/schemas";
|
|
27
27
|
import { m } from "@/paraglide/messages.js";
|
|
28
28
|
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { useForm } from "@tanstack/react-form";
|
|
20
20
|
import { useRouter } from "@tanstack/react-router";
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Input } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
|
+
import { Input } from "@/components/ui/input";
|
|
23
23
|
import {
|
|
24
24
|
Dialog,
|
|
25
25
|
DialogContent,
|
|
26
26
|
DialogFooter,
|
|
27
27
|
DialogHeader,
|
|
28
28
|
DialogTitle,
|
|
29
|
-
} from "
|
|
29
|
+
} from "@/components/ui/dialog";
|
|
30
30
|
import { LucideIconPicker } from "@/components/shared-kit/icons/lucide-icon-picker";
|
|
31
31
|
import { createKnowledgeFn, updateKnowledgeFn } from "@/server/serverFns/knowledge";
|
|
32
32
|
import { knowledgeFormSchema } from "../schemas/knowledge-form";
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useState } from 'react'
|
|
19
|
-
import { Input } from '
|
|
20
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '
|
|
19
|
+
import { Input } from '@/components/ui/input'
|
|
20
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
|
|
21
21
|
import { ChevronDown, ChevronRight, X } from 'lucide-react'
|
|
22
22
|
import {
|
|
23
23
|
Tag,
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { BookOpenText, Bookmark, BookMarked, Check, ChevronsUpDown, Scale, ShieldCheck, Sprout } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Input } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
|
+
import { Input } from "@/components/ui/input";
|
|
22
22
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
23
23
|
import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name";
|
|
24
24
|
import { generalGroupLabel } from "./general-groups";
|
|
@@ -18,8 +18,8 @@ import { m } from '@/paraglide/messages.js'
|
|
|
18
18
|
|
|
19
19
|
import { useState } from 'react'
|
|
20
20
|
import { X, Plus } from 'lucide-react'
|
|
21
|
-
import { Input } from '
|
|
22
|
-
import { Badge } from '
|
|
21
|
+
import { Input } from '@/components/ui/input'
|
|
22
|
+
import { Badge } from '@/components/ui/badge'
|
|
23
23
|
import { cn } from '@/lib/utils'
|
|
24
24
|
|
|
25
25
|
interface KnowledgeTagInputProps {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { useState, useEffect, useRef } from 'react'
|
|
19
19
|
import { useNavigate } from '@tanstack/react-router'
|
|
20
20
|
import { Settings, Globe, Lock, Trash2, RefreshCw, Columns2, Minimize2, ArrowLeftRight, Maximize2, FileText, Grid3X3, Network, Table, Plus, Check, ListIndentIncrease, ListIndentDecrease, Pencil } from 'lucide-react'
|
|
21
|
-
import { Input } from '
|
|
22
|
-
import { Badge } from '
|
|
21
|
+
import { Input } from '@/components/ui/input'
|
|
22
|
+
import { Badge } from '@/components/ui/badge'
|
|
23
23
|
import {
|
|
24
24
|
Popover,
|
|
25
25
|
PopoverContent,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
} from '@/components/ui/popover'
|
|
28
28
|
import {
|
|
29
29
|
Separator,
|
|
30
|
-
} from '
|
|
31
|
-
import { Button } from '
|
|
30
|
+
} from '@/components/ui/separator'
|
|
31
|
+
import { Button } from '@/components/ui/button'
|
|
32
32
|
import {
|
|
33
33
|
Breadcrumb,
|
|
34
34
|
BreadcrumbEllipsis,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
DropdownMenuSubContent,
|
|
50
50
|
DropdownMenuSubTrigger,
|
|
51
51
|
DropdownMenuTrigger,
|
|
52
|
-
} from '
|
|
52
|
+
} from '@/components/ui/dropdown-menu'
|
|
53
53
|
import {
|
|
54
54
|
Dialog,
|
|
55
55
|
DialogContent,
|
|
@@ -57,20 +57,20 @@ import {
|
|
|
57
57
|
DialogFooter,
|
|
58
58
|
DialogHeader,
|
|
59
59
|
DialogTitle,
|
|
60
|
-
} from '
|
|
60
|
+
} from '@/components/ui/dialog'
|
|
61
61
|
import {
|
|
62
62
|
Tooltip,
|
|
63
63
|
TooltipContent,
|
|
64
64
|
TooltipTrigger,
|
|
65
|
-
} from '
|
|
65
|
+
} from '@/components/ui/tooltip'
|
|
66
66
|
import { useEditorWidth } from './editor/editor-width-context'
|
|
67
67
|
import type { EditorWidth } from './editor/editor-width-context'
|
|
68
68
|
import { deleteKnowledgeFn, updateKnowledgeFn } from '@/server/serverFns/knowledge'
|
|
69
69
|
import { reindexKnowledgeBaseFn } from '@/server/serverFns/knowledge-index'
|
|
70
|
-
import { toast } from '
|
|
70
|
+
import { toast } from '@/components/ui/toast'
|
|
71
71
|
import { KnowledgeFormDialog } from '@/components/knowledge/dialog/knowledge-form-dialog'
|
|
72
72
|
import { cn } from '@/lib/utils'
|
|
73
|
-
import { Checkbox } from '
|
|
73
|
+
import { Checkbox } from '@/components/ui/checkbox'
|
|
74
74
|
import { Link as LinkIcon } from 'lucide-react'
|
|
75
75
|
import { listKbProjectsFn, setKbProjectsFn } from '@/server/serverFns/knowledge'
|
|
76
76
|
import { listProjectsBriefFn } from '@/server/serverFns/project'
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
import { useState, useRef } from 'react'
|
|
19
19
|
import { ChevronDown, ChevronRight, FileText, Grid3X3, Home, MoreHorizontal, Network, Plus, Table, Trash2, FilePenLine, Check, X } from 'lucide-react'
|
|
20
20
|
import { cn } from '@/lib/utils'
|
|
21
|
-
import { Input } from '
|
|
22
|
-
import { Button } from '
|
|
21
|
+
import { Input } from '@/components/ui/input'
|
|
22
|
+
import { Button } from '@/components/ui/button'
|
|
23
23
|
import {
|
|
24
24
|
DropdownMenu,
|
|
25
25
|
DropdownMenuContent,
|
|
26
26
|
DropdownMenuItem,
|
|
27
27
|
DropdownMenuTrigger,
|
|
28
28
|
DropdownMenuSeparator,
|
|
29
|
-
} from '
|
|
29
|
+
} from '@/components/ui/dropdown-menu'
|
|
30
30
|
import {
|
|
31
31
|
Tooltip,
|
|
32
32
|
TooltipContent,
|
|
33
33
|
TooltipTrigger,
|
|
34
|
-
} from '
|
|
34
|
+
} from '@/components/ui/tooltip'
|
|
35
35
|
import {
|
|
36
36
|
Dialog,
|
|
37
37
|
DialogContent,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
DialogFooter,
|
|
40
40
|
DialogHeader,
|
|
41
41
|
DialogTitle,
|
|
42
|
-
} from '
|
|
42
|
+
} from '@/components/ui/dialog'
|
|
43
43
|
import { createDocumentFn, deleteDocumentFn, updateDocumentFn } from '@/server/serverFns/knowledge'
|
|
44
44
|
import { m } from "@/paraglide/messages.js";
|
|
45
45
|
|
|
@@ -19,14 +19,14 @@ import { useEffect, useState, useCallback, useRef } from 'react'
|
|
|
19
19
|
import {
|
|
20
20
|
Plus, FileText, Table, Grid3X3, Network,
|
|
21
21
|
} from 'lucide-react'
|
|
22
|
-
import { Button } from '
|
|
23
|
-
import { Input } from '
|
|
22
|
+
import { Button } from '@/components/ui/button'
|
|
23
|
+
import { Input } from '@/components/ui/input'
|
|
24
24
|
import {
|
|
25
25
|
DropdownMenu,
|
|
26
26
|
DropdownMenuContent,
|
|
27
27
|
DropdownMenuItem,
|
|
28
28
|
DropdownMenuTrigger,
|
|
29
|
-
} from '
|
|
29
|
+
} from '@/components/ui/dropdown-menu'
|
|
30
30
|
import { KnowledgeTreeItem, TreeNode } from './knowledge-tree-item'
|
|
31
31
|
import { createDocumentFn, listDocumentsFn } from '@/server/serverFns/knowledge'
|
|
32
32
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
import { useLayoutEffect, useRef, useState, type ReactNode } from 'react'
|
|
19
19
|
import { SharersAvatarGroup } from './sharers-avatar-group'
|
|
20
|
-
import { Badge } from '
|
|
21
|
-
import { Switch } from '
|
|
22
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from '
|
|
20
|
+
import { Badge } from '@/components/ui/badge'
|
|
21
|
+
import { Switch } from '@/components/ui/switch'
|
|
22
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
|
|
23
23
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
|
|
24
24
|
import { Star, GitBranch, RefreshCw, ExternalLink, Pencil } from 'lucide-react'
|
|
25
25
|
import { CategoryIcon } from './category-icon'
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
|
|
18
18
|
import { useState, useEffect } from 'react'
|
|
19
19
|
import { useQuery } from '@tanstack/react-query'
|
|
20
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '
|
|
21
|
-
import { Button } from '
|
|
22
|
-
import { Input } from '
|
|
23
|
-
import { Textarea } from '
|
|
24
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '
|
|
20
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog'
|
|
21
|
+
import { Button } from '@/components/ui/button'
|
|
22
|
+
import { Input } from '@/components/ui/input'
|
|
23
|
+
import { Textarea } from '@/components/ui/textarea'
|
|
24
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
|
|
25
25
|
import { createBookmarkFn } from '@/server/serverFns/knowledge-public/bookmarks/create'
|
|
26
26
|
import { updateBookmarkFn } from '@/server/serverFns/knowledge-public/bookmarks/update'
|
|
27
27
|
import { listBookmarkCategoriesFn, createBookmarkCategoryFn } from '@/server/serverFns/knowledge-public/bookmarks/categories'
|
|
28
28
|
import { deleteBookmarkFn } from '@/server/serverFns/knowledge-public/bookmarks/delete'
|
|
29
29
|
import { Trash2, Check, X } from 'lucide-react'
|
|
30
|
-
import { toast } from '
|
|
30
|
+
import { toast } from '@/components/ui/toast'
|
|
31
31
|
import { m } from "@/paraglide/messages.js";
|
|
32
32
|
import { toastError } from "@/lib/toast-error";
|
|
33
33
|
|