@allbluecn/web-app 0.18.1 → 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 +3 -5
- package/src/__tests__/{knowledge/public → knowledge-public}/canonical-id.test.ts +1 -1
- package/src/__tests__/{knowledge/public → knowledge-public}/favicon.test.ts +1 -1
- package/src/__tests__/{knowledge/public → knowledge-public}/github-sync.test.ts +1 -1
- package/src/__tests__/{knowledge/public → knowledge-public}/share-merge.test.ts +1 -1
- 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/__tests__/repro-report-card.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 +6 -6
- 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/{allblue-ui/src → src}/components/confirm-dialog.tsx +2 -2
- 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/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 → knowledge-public}/bookmark-card.tsx +3 -3
- package/src/components/{knowledge/public → knowledge-public}/bookmark-form-dialog.tsx +10 -10
- package/src/components/{knowledge/public → knowledge-public}/knowledge-card.tsx +2 -2
- package/src/components/{knowledge/public → knowledge-public}/knowledge-form-dialog.tsx +15 -15
- package/src/components/{knowledge/public → knowledge-public}/knowledge-search-bar.tsx +2 -2
- package/src/components/{knowledge/public → knowledge-public}/legal-compliance-editor.tsx +7 -7
- package/src/components/{knowledge/public → knowledge-public}/markdown-editor.tsx +2 -2
- package/src/components/{knowledge/public → 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/button-group.tsx +1 -1
- package/src/components/ui/calendar.tsx +1 -1
- package/src/components/ui/command.tsx +2 -2
- package/src/components/ui/item.tsx +1 -1
- package/src/components/ui/message-scroller.tsx +1 -1
- package/src/components/ui/questionnaire.tsx +1 -1
- package/{allblue-ui/src → src/components}/ui/sidebar.tsx +1 -1
- 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-notifications.ts +1 -1
- package/src/lib/changelog/sdk-versions.ts +1 -1
- package/src/lib/collections/reference/bookmark-categories-collection.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 +12 -12
- package/src/routes/_nav/knowledge/bookmarks/index.lazy.tsx +11 -11
- package/src/routes/_nav/knowledge/compliance/$id.lazy.tsx +12 -12
- package/src/routes/_nav/knowledge/compliance/edit/$id.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/compliance/index.lazy.tsx +8 -8
- package/src/routes/_nav/knowledge/dictionaries/$id.lazy.tsx +7 -7
- package/src/routes/_nav/knowledge/dictionaries/index.lazy.tsx +6 -6
- package/src/routes/_nav/knowledge/index.lazy.tsx +6 -6
- package/src/routes/_nav/knowledge/laws/$id.lazy.tsx +12 -12
- package/src/routes/_nav/knowledge/laws/edit/$id.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/laws/index.lazy.tsx +9 -9
- package/src/routes/_nav/knowledge/summary/index.lazy.tsx +1 -1
- 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/api/knowledge/sync-github.ts +1 -1
- package/src/routes/invite/$token/route.lazy.tsx +2 -2
- package/src/routes/share/compliance/$id/route.lazy.tsx +5 -5
- package/src/routes/share/compliance/$id/route.tsx +1 -1
- package/src/routes/share/law/$id/route.lazy.tsx +5 -5
- package/src/routes/share/law/$id/route.tsx +1 -1
- package/src/server/__tests__/agent-client-graph.test.ts +1 -1
- package/src/server/serverFns/__tests__/read-write-merge.test.ts +2 -2
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/create.ts +3 -3
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/refresh-favicon.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/sync-github.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/update.ts +3 -3
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/create.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/update.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/create.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/update.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/create.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/update.ts +1 -1
- package/src/start.ts +1 -1
- package/src/styles/globals.css +0 -1
- package/allblue-ui/package.json +0 -6
- package/allblue-ui/src/components/notion-avatar.tsx +0 -126
- package/allblue-ui/src/components/user-avatar.tsx +0 -82
- package/allblue-ui/src/data-table/data-table-pagination.tsx +0 -121
- package/allblue-ui/src/data-table/data-table.tsx +0 -218
- package/allblue-ui/src/data-table/table-detail-layout.tsx +0 -97
- package/allblue-ui/src/index.ts +0 -31
- package/allblue-ui/src/lib/avatar.ts +0 -41
- package/allblue-ui/src/lib/datetime.ts +0 -226
- package/allblue-ui/src/lib/sanitize.ts +0 -18
- package/allblue-ui/src/lib/utils.ts +0 -1
- /package/{allblue-ui/src → src}/components/infinite-scroll-sentinel.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/category-icon.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/chip-utils.ts +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/knowledge-card-grid.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/knowledge-filters.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/markdown-view.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/tag-filter.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/alert-dialog.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/alert.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/avatar.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/badge.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/button.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/card.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/checkbox.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/collapsible.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/dialog.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/dropdown-menu.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/field.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/input-group.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/input.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/label.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/pagination.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/select.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/separator.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/sheet.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/skeleton.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/switch.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/table.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/textarea.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/toast.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/tooltip.tsx +0 -0
- /package/{allblue-ui/src → src}/hooks/use-load-more.ts +0 -0
- /package/{allblue-ui/src → src}/hooks/use-mobile.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/canonical-id.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/favicon.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/github-sync.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/share-merge.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/categories.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/favorite.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/unshare.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/public.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/unshare.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/unshare.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/entity-tags.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/favorite.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/public.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/unshare.ts +0 -0
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
import { useEffect, useState } from "react";
|
|
28
28
|
import { ArrowRight, CircleUser, Link2, Sparkles, X } from "lucide-react";
|
|
29
29
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
30
|
-
import { Button } from "
|
|
31
|
-
import { Checkbox } from "
|
|
30
|
+
import { Button } from "@/components/ui/button";
|
|
31
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
32
32
|
import { Spinner } from "@/components/ui/spinner";
|
|
33
33
|
import {
|
|
34
34
|
Dialog,
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
DialogFooter,
|
|
37
37
|
DialogHeader,
|
|
38
38
|
DialogTitle,
|
|
39
|
-
} from "
|
|
40
|
-
import { toast } from "
|
|
39
|
+
} from "@/components/ui/dialog";
|
|
40
|
+
import { toast } from "@/components/ui/toast";
|
|
41
41
|
import { useFeature } from "@/components/billing/use-feature";
|
|
42
42
|
import { isChina } from "@/lib/deploy-region";
|
|
43
43
|
import { startGenerationFn } from "@/server/serverFns/testcase/generation";
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
// (简报 Q4:不写 git),blob URL 随 code 变更重建、卸载回收。
|
|
22
22
|
import { useEffect, useMemo, useState } from "react";
|
|
23
23
|
import { Check, Copy, Download } from "lucide-react";
|
|
24
|
-
import { Button } from "
|
|
24
|
+
import { Button } from "@/components/ui/button";
|
|
25
25
|
import { m } from "@/paraglide/messages.js";
|
|
26
26
|
|
|
27
27
|
interface ArtifactDiffProps {
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
// 采纳仅 verified:ConfirmDialog 确认后 adoptArtifactFn;拒绝留痕 rejectArtifactFn。
|
|
29
29
|
import { useCallback, useEffect, useState } from "react";
|
|
30
30
|
import { FlaskConical, RefreshCw } from "lucide-react";
|
|
31
|
-
import { ConfirmDialog } from "
|
|
32
|
-
import { Badge } from "
|
|
33
|
-
import { Button } from "
|
|
34
|
-
import { Input } from "
|
|
35
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "
|
|
31
|
+
import { ConfirmDialog } from "@/components/confirm-dialog";
|
|
32
|
+
import { Badge } from "@/components/ui/badge";
|
|
33
|
+
import { Button } from "@/components/ui/button";
|
|
34
|
+
import { Input } from "@/components/ui/input";
|
|
35
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
|
36
36
|
import { Spinner } from "@/components/ui/spinner";
|
|
37
|
-
import { toast } from "
|
|
37
|
+
import { toast } from "@/components/ui/toast";
|
|
38
38
|
import {
|
|
39
39
|
adoptArtifactFn,
|
|
40
40
|
generateArtifactFn,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// lastError/notes)+ 日志查看与下载(logBlobId → /api/blob/$id 链接,step-stream
|
|
20
20
|
// 同款原样链接先例;download 属性触发浏览器下载,无需 JS click)。
|
|
21
21
|
// verifyRun 落库为 Prisma JsonValue,跨 JSON 边界后按 unknown 收窄解析(parseVerifyRun)。
|
|
22
|
-
import { Badge } from "
|
|
22
|
+
import { Badge } from "@/components/ui/badge";
|
|
23
23
|
import { m } from "@/paraglide/messages.js";
|
|
24
24
|
|
|
25
25
|
/** verifyRun JSON 的客户端收窄形状(与 serverFns/testcase/automation.ts 落库形状对接) */
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
// 快捷键:Enter 提交(标题输入框)、Esc 关闭(Dialog 默认)。
|
|
25
25
|
import { useEffect, useState } from "react";
|
|
26
26
|
import { CircleUser, Link2, X } from "lucide-react";
|
|
27
|
-
import { Button } from "
|
|
28
|
-
import { Input } from "
|
|
29
|
-
import { Textarea } from "
|
|
27
|
+
import { Button } from "@/components/ui/button";
|
|
28
|
+
import { Input } from "@/components/ui/input";
|
|
29
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
30
30
|
import {
|
|
31
31
|
Dialog,
|
|
32
32
|
DialogContent,
|
|
33
33
|
DialogFooter,
|
|
34
34
|
DialogHeader,
|
|
35
35
|
DialogTitle,
|
|
36
|
-
} from "
|
|
37
|
-
import { toast } from "
|
|
36
|
+
} from "@/components/ui/dialog";
|
|
37
|
+
import { toast } from "@/components/ui/toast";
|
|
38
38
|
import { createTestCaseFn } from "@/server/serverFns/testcase/testcase-crud";
|
|
39
39
|
import type { TestCasePriority, TestCaseType } from "@/server/serverFns/testcase/constants";
|
|
40
40
|
import type { TestCaseSummary } from "@/server/serverFns/testcase/types";
|
|
@@ -24,7 +24,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
|
|
24
24
|
import { Link } from "@tanstack/react-router";
|
|
25
25
|
import { useServerFn } from "@tanstack/react-start";
|
|
26
26
|
import { ArrowLeft } from "lucide-react";
|
|
27
|
-
import { Input } from "
|
|
27
|
+
import { Input } from "@/components/ui/input";
|
|
28
28
|
import { updateTestCaseFn } from "@/server/serverFns/testcase/testcase-crud";
|
|
29
29
|
import type {
|
|
30
30
|
TestCaseActivityItem,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
// 术语单一事实源),detail 专属文案走 testcase_detail_* / testcase_storyPicker_*。
|
|
22
22
|
import { Link } from "@tanstack/react-router";
|
|
23
23
|
import { ExternalLink } from "lucide-react";
|
|
24
|
-
import { Badge } from "
|
|
24
|
+
import { Badge } from "@/components/ui/badge";
|
|
25
25
|
import type { TestCaseDetail, TestCaseStoryRef } from "@/server/serverFns/testcase/types";
|
|
26
26
|
import type { TestCaseAutomation } from "@/server/serverFns/testcase/constants";
|
|
27
27
|
import type { UserBrief } from "@/components/story/types";
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import { useEffect, useState } from "react";
|
|
22
22
|
import { useServerFn } from "@tanstack/react-start";
|
|
23
23
|
import { Check, Link2, Search, Unlink } from "lucide-react";
|
|
24
|
-
import { Input } from "
|
|
24
|
+
import { Input } from "@/components/ui/input";
|
|
25
25
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
26
26
|
import { SEARCH_DEBOUNCE_MS, useDebouncedValue } from "@/lib/pacer";
|
|
27
27
|
import { listStoriesFn } from "@/server/serverFns/story";
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
// 用例列表筛选条(P1 骨架:state/type/priority 三维服务端筛选)。
|
|
19
19
|
// 复杂条件组合(FilterCondition 体系)与保存视图在任务 9 落地,届时可叠加。
|
|
20
20
|
import { X } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
22
|
import {
|
|
23
23
|
Select,
|
|
24
24
|
SelectContent,
|
|
25
25
|
SelectItem,
|
|
26
26
|
SelectTrigger,
|
|
27
27
|
SelectValue,
|
|
28
|
-
} from "
|
|
28
|
+
} from "@/components/ui/select";
|
|
29
29
|
import {
|
|
30
30
|
TEST_CASE_PRIORITY_VALUES,
|
|
31
31
|
TEST_CASE_STATE_VALUES,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
Plus,
|
|
30
30
|
Trash2,
|
|
31
31
|
} from "lucide-react";
|
|
32
|
-
import { Button } from "
|
|
33
|
-
import { Input } from "
|
|
32
|
+
import { Button } from "@/components/ui/button";
|
|
33
|
+
import { Input } from "@/components/ui/input";
|
|
34
34
|
import { cn } from "@/lib/utils";
|
|
35
35
|
import {
|
|
36
36
|
createFolderFn,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// 未处理提示(adoptDraftsFn 一批次仅允许一次评审,未决草稿提交后永困 draft 态,
|
|
20
20
|
// 故「全部决策完成」是提交硬前提)、全部采纳、提交评审结果。
|
|
21
21
|
import { CheckCheck, Send } from "lucide-react";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
23
|
import { m } from "@/paraglide/messages.js";
|
|
24
24
|
|
|
25
25
|
interface BatchActionsProps {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
// adoptDraftsFn 的 DraftEditsSchema 对齐:{ title, precondition, steps{steps[order]} }。
|
|
22
22
|
import { useState } from "react";
|
|
23
23
|
import { Check, PencilLine, X } from "lucide-react";
|
|
24
|
-
import { Button } from "
|
|
25
|
-
import { Badge } from "
|
|
24
|
+
import { Button } from "@/components/ui/button";
|
|
25
|
+
import { Badge } from "@/components/ui/badge";
|
|
26
26
|
import {
|
|
27
27
|
Dialog,
|
|
28
28
|
DialogContent,
|
|
@@ -30,9 +30,9 @@ import {
|
|
|
30
30
|
DialogFooter,
|
|
31
31
|
DialogHeader,
|
|
32
32
|
DialogTitle,
|
|
33
|
-
} from "
|
|
34
|
-
import { Input } from "
|
|
35
|
-
import { Textarea } from "
|
|
33
|
+
} from "@/components/ui/dialog";
|
|
34
|
+
import { Input } from "@/components/ui/input";
|
|
35
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
36
36
|
import { StepEditor, isStepDraftsValid, type StepDraft } from "@/components/testcase/step-editor";
|
|
37
37
|
import { stateLabel, typeLabel, priorityLabel } from "@/components/testcase/filters";
|
|
38
38
|
import type {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
import { useMemo, useState } from "react";
|
|
24
24
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
25
25
|
import { ArrowLeft, Bot, ListChecks, Sparkles } from "lucide-react";
|
|
26
|
-
import { Badge } from "
|
|
26
|
+
import { Badge } from "@/components/ui/badge";
|
|
27
27
|
import { adoptDraftsFn } from "@/server/serverFns/testcase/generation";
|
|
28
|
-
import { toast } from "
|
|
28
|
+
import { toast } from "@/components/ui/toast";
|
|
29
29
|
import { BatchActions } from "./batch-actions";
|
|
30
30
|
import {
|
|
31
31
|
DraftCard,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// 搜索过滤 + 未指定(null 断连语义)+ 成员列表)。P1 简化:单选、无 multi/scope 切换。
|
|
20
20
|
import { useMemo, useState } from "react";
|
|
21
21
|
import { Check, CircleUser, Search } from "lucide-react";
|
|
22
|
-
import { Input } from "
|
|
22
|
+
import { Input } from "@/components/ui/input";
|
|
23
23
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
24
24
|
import { UserAvatar } from "@/components/shared-kit";
|
|
25
25
|
import type { UserBrief } from "@/components/story/types";
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// (列表本身不重排:扁平游标分页序稳定,分组仅是视觉桶装)。
|
|
28
28
|
import { memo, useCallback, useEffect, useRef } from "react";
|
|
29
29
|
import { useServerFn } from "@tanstack/react-start";
|
|
30
|
-
import { Checkbox } from "
|
|
30
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
31
31
|
import { updateTestCaseFn } from "@/server/serverFns/testcase/testcase-crud";
|
|
32
32
|
import type { TestCaseAutomation, TestCasePriority, TestCaseState, TestCaseType } from "@/server/serverFns/testcase/constants";
|
|
33
33
|
import type { TestCaseSteps, TestCaseSummary } from "@/server/serverFns/testcase/types";
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import { useCallback, useMemo, useRef, useState, type CSSProperties } from "react";
|
|
25
25
|
import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual";
|
|
26
26
|
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
27
|
-
import { InfiniteScrollSentinel } from "
|
|
27
|
+
import { InfiniteScrollSentinel } from "@/components/infinite-scroll-sentinel";
|
|
28
28
|
import type { TestCaseState, TestCasePriority } from "@/server/serverFns/testcase/constants";
|
|
29
29
|
import type { TestCaseSummary } from "@/server/serverFns/testcase/types";
|
|
30
30
|
import type { UserBrief } from "@/components/story/types";
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// 手动改动筛选/搜索/模块树/分组即回落默认视图;保存时 filters 键集收敛在前端)。
|
|
26
26
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
27
27
|
import { PanelLeftClose, PanelLeftOpen, RotateCcw } from "lucide-react";
|
|
28
|
-
import { Button } from "
|
|
28
|
+
import { Button } from "@/components/ui/button";
|
|
29
29
|
import { FolderTree, type FolderNodeDto, type FolderSelection } from "./folder-tree";
|
|
30
30
|
import { TestCaseToolbar } from "./testcase-toolbar";
|
|
31
31
|
import {
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
ExternalLink,
|
|
32
32
|
X,
|
|
33
33
|
} from "lucide-react";
|
|
34
|
-
import { Button } from "
|
|
35
|
-
import { Dialog, DialogContent } from "
|
|
34
|
+
import { Button } from "@/components/ui/button";
|
|
35
|
+
import { Dialog, DialogContent } from "@/components/ui/dialog";
|
|
36
36
|
import {
|
|
37
37
|
DropdownMenu,
|
|
38
38
|
DropdownMenuContent,
|
|
39
39
|
DropdownMenuRadioGroup,
|
|
40
40
|
DropdownMenuRadioItem,
|
|
41
41
|
DropdownMenuTrigger,
|
|
42
|
-
} from "
|
|
43
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
42
|
+
} from "@/components/ui/dropdown-menu";
|
|
43
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
44
44
|
import { PEEK_MODE_OPTIONS, type PeekMode } from "@/components/story/story-panel-header";
|
|
45
45
|
import type { TestCaseSummary } from "@/server/serverFns/testcase/types";
|
|
46
46
|
import type { FolderNodeDto } from "./folder-tree";
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
// 用例列表多选批处理条(任务 13 圈选入口,照 bug-list batch-toolbar 最小裁剪):
|
|
19
19
|
// 已选计数 + 「加入计划」+ 清除选择。选中数 >0 时浮现于工具栏下方。
|
|
20
20
|
import { BrushCleaning, ClipboardList } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
23
23
|
import { m } from "@/paraglide/messages.js";
|
|
24
24
|
|
|
25
25
|
interface AddToPlanBarProps {
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
// 提交走 addCasesToPlanFn(幂等:重复/非 approved/不存在由服务端跳过并返回明细),
|
|
20
20
|
// 结果按 added/skipped 分档 toast(部分跳过给明细文案)。
|
|
21
21
|
import { useEffect, useState } from "react";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
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 {
|
|
31
31
|
Select,
|
|
32
32
|
SelectContent,
|
|
33
33
|
SelectItem,
|
|
34
34
|
SelectTrigger,
|
|
35
35
|
SelectValue,
|
|
36
|
-
} from "
|
|
36
|
+
} from "@/components/ui/select";
|
|
37
37
|
import { addCasesToPlanFn, listPlansFn } from "@/server/serverFns/testcase/plans";
|
|
38
38
|
import type { TestPlanSummary } from "@/server/serverFns/testcase/types";
|
|
39
|
-
import { toast } from "
|
|
39
|
+
import { toast } from "@/components/ui/toast";
|
|
40
40
|
import { m } from "@/paraglide/messages.js";
|
|
41
41
|
import { toastError } from "@/lib/toast-error";
|
|
42
42
|
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
// (listIterationsFn 需 projectId,计划列表/详情路由 loader 已取)。
|
|
20
20
|
// 快捷键:Enter 提交、Esc 取消(shadcn Dialog 默认)。
|
|
21
21
|
import { useEffect, useState } from "react";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
23
|
import {
|
|
24
24
|
Dialog,
|
|
25
25
|
DialogContent,
|
|
26
26
|
DialogFooter,
|
|
27
27
|
DialogHeader,
|
|
28
28
|
DialogTitle,
|
|
29
|
-
} from "
|
|
30
|
-
import { Input } from "
|
|
31
|
-
import { Textarea } from "
|
|
29
|
+
} from "@/components/ui/dialog";
|
|
30
|
+
import { Input } from "@/components/ui/input";
|
|
31
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
32
32
|
import {
|
|
33
33
|
Select,
|
|
34
34
|
SelectContent,
|
|
35
35
|
SelectItem,
|
|
36
36
|
SelectTrigger,
|
|
37
37
|
SelectValue,
|
|
38
|
-
} from "
|
|
38
|
+
} from "@/components/ui/select";
|
|
39
39
|
import { createPlanFn } from "@/server/serverFns/testcase/plans";
|
|
40
40
|
import type { TestPlanSummary } from "@/server/serverFns/testcase/types";
|
|
41
41
|
import type { IterationSummary } from "@/server/serverFns/iteration/schemas";
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
import { useCallback, useState } from "react";
|
|
23
23
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
24
24
|
import { ArrowLeft, CalendarRange, ListChecks, Play, Plus, Trash2 } from "lucide-react";
|
|
25
|
-
import { Button } from "
|
|
26
|
-
import { Badge } from "
|
|
27
|
-
import { ConfirmDialog } from "
|
|
25
|
+
import { Button } from "@/components/ui/button";
|
|
26
|
+
import { Badge } from "@/components/ui/badge";
|
|
27
|
+
import { ConfirmDialog } from "@/components/confirm-dialog";
|
|
28
28
|
import {
|
|
29
29
|
Dialog,
|
|
30
30
|
DialogContent,
|
|
@@ -32,16 +32,16 @@ import {
|
|
|
32
32
|
DialogFooter,
|
|
33
33
|
DialogHeader,
|
|
34
34
|
DialogTitle,
|
|
35
|
-
} from "
|
|
35
|
+
} from "@/components/ui/dialog";
|
|
36
36
|
import {
|
|
37
37
|
Select,
|
|
38
38
|
SelectContent,
|
|
39
39
|
SelectItem,
|
|
40
40
|
SelectTrigger,
|
|
41
41
|
SelectValue,
|
|
42
|
-
} from "
|
|
43
|
-
import { Input } from "
|
|
44
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
42
|
+
} from "@/components/ui/select";
|
|
43
|
+
import { Input } from "@/components/ui/input";
|
|
44
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
45
45
|
import { TEST_CASE_PRIORITY_COLOR } from "@/components/testcase/inline-editors/priority-editor";
|
|
46
46
|
import {
|
|
47
47
|
priorityLabel,
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
import { useCallback, useEffect, useState } from "react";
|
|
22
22
|
import { useNavigate } from "@tanstack/react-router";
|
|
23
23
|
import { CalendarRange, ClipboardList, ListChecks, Plus, RotateCcw, Trash2 } from "lucide-react";
|
|
24
|
-
import { Button } from "
|
|
25
|
-
import { ConfirmDialog } from "
|
|
24
|
+
import { Button } from "@/components/ui/button";
|
|
25
|
+
import { ConfirmDialog } from "@/components/confirm-dialog";
|
|
26
26
|
import {
|
|
27
27
|
DropdownMenu,
|
|
28
28
|
DropdownMenuContent,
|
|
29
29
|
DropdownMenuItem,
|
|
30
30
|
DropdownMenuTrigger,
|
|
31
|
-
} from "
|
|
31
|
+
} from "@/components/ui/dropdown-menu";
|
|
32
32
|
import { deletePlanFn, listPlansFn } from "@/server/serverFns/testcase/plans";
|
|
33
33
|
import type { TestPlanState } from "@/server/serverFns/testcase/constants";
|
|
34
34
|
import type { TestPlanSummary } from "@/server/serverFns/testcase/types";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
// 计划状态徽章(active/closed 两态;i18n label 单一来源)。
|
|
19
|
-
import { Badge } from "
|
|
19
|
+
import { Badge } from "@/components/ui/badge";
|
|
20
20
|
import type { TestPlanState } from "@/server/serverFns/testcase/constants";
|
|
21
21
|
import { cn } from "@/lib/utils";
|
|
22
22
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -38,9 +38,9 @@ import type {
|
|
|
38
38
|
} from "@/server/serverFns/testcase/types";
|
|
39
39
|
import { reportResultFn, reportStepFn, addEvidenceFn } from "@/server/serverFns/testcase/run-cases";
|
|
40
40
|
import { uploadEvidenceFn } from "@/server/serverFns/testcase/evidence-upload";
|
|
41
|
-
import { toast } from "
|
|
42
|
-
import { Badge } from "
|
|
43
|
-
import { Button } from "
|
|
41
|
+
import { toast } from "@/components/ui/toast";
|
|
42
|
+
import { Badge } from "@/components/ui/badge";
|
|
43
|
+
import { Button } from "@/components/ui/button";
|
|
44
44
|
import { m } from "@/paraglide/messages.js";
|
|
45
45
|
import { StepRow } from "./step-row";
|
|
46
46
|
import { StepStream } from "./step-stream";
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// 成员/项目/标签花名册在点击时懒加载(BUG 列表路由同款三 serverFn,run 详情页零预取成本)。
|
|
25
25
|
import { useCallback, useState } from "react";
|
|
26
26
|
import { Bug as BugIcon } from "lucide-react";
|
|
27
|
-
import { Button } from "
|
|
27
|
+
import { Button } from "@/components/ui/button";
|
|
28
28
|
import { CreateBugDialog, type CreateBugDialogDefaults } from "@/components/bug/create-bug-dialog";
|
|
29
29
|
import type { ReproduceSteps } from "@/components/bug/types";
|
|
30
30
|
import { listUsersBriefFn, listLabelsFn } from "@/server/serverFns/story";
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
// 加载中静默、失败显错误文案、空清单显空态。
|
|
22
22
|
import { useEffect, useState } from "react";
|
|
23
23
|
import { AlertCircle, Info } from "lucide-react";
|
|
24
|
-
import { Badge } from "
|
|
25
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
24
|
+
import { Badge } from "@/components/ui/badge";
|
|
25
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
26
26
|
import { listRunFailuresFn } from "@/server/serverFns/testcase/stats";
|
|
27
27
|
import type { RunFailureCategory, RunFailureItem } from "@/server/serverFns/testcase/types";
|
|
28
28
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
// 无落点表);误报可走 BUG 详情手动归档。
|
|
23
23
|
import { useCallback, useEffect, useState } from "react";
|
|
24
24
|
import { Bug as BugIcon, CircleCheck } from "lucide-react";
|
|
25
|
-
import { Button } from "
|
|
26
|
-
import { toast } from "
|
|
27
|
-
import { Badge } from "
|
|
25
|
+
import { Button } from "@/components/ui/button";
|
|
26
|
+
import { toast } from "@/components/ui/toast";
|
|
27
|
+
import { Badge } from "@/components/ui/badge";
|
|
28
28
|
import {
|
|
29
29
|
confirmTestRunBugFn,
|
|
30
30
|
listPendingTestRunBugsFn,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// 状态徽章(running/completed/aborted)+ 执行方式/目标环境/所属计划 + 进度条。
|
|
20
20
|
import { Link } from "@tanstack/react-router";
|
|
21
21
|
import { ArrowLeft } from "lucide-react";
|
|
22
|
-
import { Badge } from "
|
|
22
|
+
import { Badge } from "@/components/ui/badge";
|
|
23
23
|
import type { RunCaseStatus, RunExecutorType, TestRunStatus } from "@/server/serverFns/testcase/constants";
|
|
24
24
|
import type { RunCaseSummary, TestRunSummary } from "@/server/serverFns/testcase/types";
|
|
25
25
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
// 证据上传(image/*,上传后渲染 /api/blob/$id 链接)。数据全部来自快照/执行负载,
|
|
21
21
|
// 本组件不发起 live 用例读取(审查重点 1)。
|
|
22
22
|
import { ImagePlus } from "lucide-react";
|
|
23
|
-
import { Button } from "
|
|
24
|
-
import { Textarea } from "
|
|
23
|
+
import { Button } from "@/components/ui/button";
|
|
24
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
25
25
|
import { RUN_STEP_RESULT_STATUS_VALUES, type RunStepResultStatus } from "@/server/serverFns/testcase/constants";
|
|
26
26
|
import type { RunCaseStepResult, TestCaseStep } from "@/server/serverFns/testcase/types";
|
|
27
27
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
// 最少保留 1 行(schema min(1)),仅剩一行时删除禁用。
|
|
23
23
|
import { useState } from "react";
|
|
24
24
|
import { ChevronDown, ChevronUp, Plus, Trash2 } from "lucide-react";
|
|
25
|
-
import { Button } from "
|
|
26
|
-
import { Input } from "
|
|
25
|
+
import { Button } from "@/components/ui/button";
|
|
26
|
+
import { Input } from "@/components/ui/input";
|
|
27
27
|
import { cn } from "@/lib/utils";
|
|
28
28
|
import { m } from "@/paraglide/messages.js";
|
|
29
29
|
|
|
@@ -24,7 +24,7 @@ import { useMemo, useRef, useState } from "react";
|
|
|
24
24
|
import { flexRender, useTable, type SortingState } from "@tanstack/react-table";
|
|
25
25
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
26
26
|
import { ArrowDown, ArrowUp, ChevronDown } from "lucide-react";
|
|
27
|
-
import { InfiniteScrollSentinel } from "
|
|
27
|
+
import { InfiniteScrollSentinel } from "@/components/infinite-scroll-sentinel";
|
|
28
28
|
import type { TestCaseSummary } from "@/server/serverFns/testcase/types";
|
|
29
29
|
import { createTestCaseColumns, testCaseTableFeatures } from "./columns";
|
|
30
30
|
import { cn } from "@/lib/utils";
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
// 项目作用域由按钮自持(花名册懒加载),工具栏不再需要透传 projects。
|
|
23
23
|
import { Plus, Search, Funnel, ClipboardList, ChartColumn } from "lucide-react";
|
|
24
24
|
import { Link } from "@tanstack/react-router";
|
|
25
|
-
import { Button } from "
|
|
26
|
-
import { Input } from "
|
|
25
|
+
import { Button } from "@/components/ui/button";
|
|
26
|
+
import { Input } from "@/components/ui/input";
|
|
27
27
|
import {
|
|
28
28
|
Select,
|
|
29
29
|
SelectContent,
|
|
30
30
|
SelectItem,
|
|
31
31
|
SelectTrigger,
|
|
32
32
|
SelectValue,
|
|
33
|
-
} from "
|
|
33
|
+
} from "@/components/ui/select";
|
|
34
34
|
import { cn } from "@/lib/utils";
|
|
35
35
|
import { GenerateTestCasesButton } from "./ai/generate-dialog";
|
|
36
36
|
import {
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
DialogFooter,
|
|
27
27
|
DialogHeader,
|
|
28
28
|
DialogTitle,
|
|
29
|
-
} from "
|
|
30
|
-
import { Button } from "
|
|
29
|
+
} from "@/components/ui/dialog";
|
|
30
|
+
import { Button } from "@/components/ui/button";
|
|
31
31
|
import { LucideIconPicker } from "@/components/shared-kit/icons/lucide-icon-picker";
|
|
32
32
|
import { m } from "@/paraglide/messages.js";
|
|
33
33
|
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
// 平铺列出(内置默认视图在首位由调用方传入)+ 底部「创建视图」入口。
|
|
21
21
|
import { useState } from "react";
|
|
22
22
|
import { Check, ChevronsUpDown, Plus } from "lucide-react";
|
|
23
|
-
import { Button } from "
|
|
23
|
+
import { Button } from "@/components/ui/button";
|
|
24
24
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
25
|
-
import { Separator } from "
|
|
25
|
+
import { Separator } from "@/components/ui/separator";
|
|
26
26
|
import { cn } from "@/lib/utils";
|
|
27
27
|
import { renderViewIcon } from "@/components/story/views/view-types";
|
|
28
28
|
import type { TestCaseSavedView } from "./view-types";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
Tooltip,
|
|
25
25
|
TooltipContent,
|
|
26
26
|
TooltipTrigger,
|
|
27
|
-
} from "
|
|
27
|
+
} from "@/components/ui/tooltip";
|
|
28
28
|
import type { TestCaseViewType } from "./view-types";
|
|
29
29
|
|
|
30
30
|
const VIEWS: { value: TestCaseViewType; label: () => string; icon: LucideIcon }[] = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect, useRef, useState } from "react"
|
|
2
2
|
import { createPortal } from "react-dom"
|
|
3
3
|
import { cn } from "@/lib/utils"
|
|
4
|
-
import { Separator } from "
|
|
4
|
+
import { Separator } from "@/components/ui/separator"
|
|
5
5
|
import type { MenuActionId } from "./lib/menu-actions"
|
|
6
6
|
import type { ResolvedMenuGroup } from "./lib/menu-items"
|
|
7
7
|
import { ShortcutKeys } from "./mind-map-shortcut-keys"
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
Undo2,
|
|
18
18
|
X,
|
|
19
19
|
} from "lucide-react"
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
|
|
22
22
|
import { useOnClickOutside } from "../hooks/use-on-click-outside"
|
|
23
23
|
import { useMindMap } from "./mind-map-context"
|
|
24
24
|
import { LayoutIcon, MindMapLayoutGrid } from "./mind-map-layout-grid"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import { Dialog, DialogContent, DialogTitle } from "
|
|
18
|
+
import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog"
|
|
19
19
|
import { MindMap, MindMapControls } from "./mind-map"
|
|
20
20
|
import type { MindElixirData } from "mind-elixir"
|
|
21
21
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -29,12 +29,12 @@ import { ButtonGroup } from "../ui-primitive/button-group/index.tsx"
|
|
|
29
29
|
// --- Desktop integration ---
|
|
30
30
|
import { isDesktop } from "@/lib/desktop-detect"
|
|
31
31
|
import { insertLocalFile } from "../extensions/local-file/insert-local-file.ts"
|
|
32
|
-
import { Button } from "
|
|
32
|
+
import { Button } from "@/components/ui/button"
|
|
33
33
|
import {
|
|
34
34
|
Tooltip,
|
|
35
35
|
TooltipContent,
|
|
36
36
|
TooltipTrigger,
|
|
37
|
-
} from "
|
|
37
|
+
} from "@/components/ui/tooltip"
|
|
38
38
|
|
|
39
39
|
// --- Styles ---
|
|
40
40
|
import "./notion-like-editor-header.scss"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { useCallback, useEffect, useRef } from "react"
|
|
18
18
|
import { type Editor } from "@tiptap/react"
|
|
19
19
|
import { useChat, fetchServerSentEvents } from "@tanstack/ai-react"
|
|
20
|
-
import { toast } from "
|
|
20
|
+
import { toast } from "@/components/ui/toast"
|
|
21
21
|
|
|
22
22
|
import { AiMenuItems } from "./ai-menu-items/ai-menu-items.tsx"
|
|
23
23
|
import { insertDelta } from "../../extensions/ai-extension.ts"
|