@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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
|
|
5
|
+
import type { ReactElement, ReactNode } from "react"
|
|
6
|
+
import {
|
|
7
|
+
AlertDialog,
|
|
8
|
+
AlertDialogAction,
|
|
9
|
+
AlertDialogCancel,
|
|
10
|
+
AlertDialogContent,
|
|
11
|
+
AlertDialogDescription,
|
|
12
|
+
AlertDialogFooter,
|
|
13
|
+
AlertDialogHeader,
|
|
14
|
+
AlertDialogTitle,
|
|
15
|
+
AlertDialogTrigger,
|
|
16
|
+
} from "./ui/alert-dialog"
|
|
17
|
+
import type { Button } from "./ui/button"
|
|
18
|
+
|
|
19
|
+
export interface ConfirmDialogProps {
|
|
20
|
+
/** 受控 open;不传则由 trigger 非受控驱动 */
|
|
21
|
+
open?: boolean
|
|
22
|
+
onOpenChange?: (open: boolean) => void
|
|
23
|
+
title: ReactNode
|
|
24
|
+
/** 传 null 渲染空描述(保持 aria-describedby 结构),缺省则不渲染 */
|
|
25
|
+
description?: ReactNode
|
|
26
|
+
cancelLabel: ReactNode
|
|
27
|
+
confirmLabel: ReactNode
|
|
28
|
+
/** 确认按钮点击回调;关闭时机由调用方自行控制(与既有内联实现一致,不自动关闭) */
|
|
29
|
+
onConfirm: () => void
|
|
30
|
+
confirmVariant?: React.ComponentProps<typeof Button>["variant"]
|
|
31
|
+
confirmClassName?: string
|
|
32
|
+
confirmDisabled?: boolean
|
|
33
|
+
cancelDisabled?: boolean
|
|
34
|
+
confirmTestId?: string
|
|
35
|
+
contentTestId?: string
|
|
36
|
+
contentClassName?: string
|
|
37
|
+
/** 可选触发器元素(作为 AlertDialogTrigger 的 render 元素) */
|
|
38
|
+
trigger?: ReactElement
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 通用确认弹窗:收口各处内联的「双 state + 手写 AlertDialog」确认模式。
|
|
43
|
+
* 仅做骨架渲染,onConfirm 的异步/关闭时序完全由调用方决定,保证逐站点行为等价迁移。
|
|
44
|
+
*/
|
|
45
|
+
export function ConfirmDialog({
|
|
46
|
+
open,
|
|
47
|
+
onOpenChange,
|
|
48
|
+
title,
|
|
49
|
+
description,
|
|
50
|
+
cancelLabel,
|
|
51
|
+
confirmLabel,
|
|
52
|
+
onConfirm,
|
|
53
|
+
confirmVariant,
|
|
54
|
+
confirmClassName,
|
|
55
|
+
confirmDisabled,
|
|
56
|
+
cancelDisabled,
|
|
57
|
+
confirmTestId,
|
|
58
|
+
contentTestId,
|
|
59
|
+
contentClassName,
|
|
60
|
+
trigger,
|
|
61
|
+
}: ConfirmDialogProps) {
|
|
62
|
+
const rootProps: { open?: boolean; onOpenChange?: (open: boolean) => void } = {}
|
|
63
|
+
if (open !== undefined) {
|
|
64
|
+
rootProps.open = open
|
|
65
|
+
rootProps.onOpenChange = onOpenChange
|
|
66
|
+
} else if (onOpenChange) {
|
|
67
|
+
rootProps.onOpenChange = onOpenChange
|
|
68
|
+
}
|
|
69
|
+
return (
|
|
70
|
+
<AlertDialog {...rootProps}>
|
|
71
|
+
{trigger ? <AlertDialogTrigger render={trigger} /> : null}
|
|
72
|
+
<AlertDialogContent data-testid={contentTestId} className={contentClassName}>
|
|
73
|
+
<AlertDialogHeader>
|
|
74
|
+
<AlertDialogTitle>{title}</AlertDialogTitle>
|
|
75
|
+
{description !== undefined ? (
|
|
76
|
+
<AlertDialogDescription>{description}</AlertDialogDescription>
|
|
77
|
+
) : null}
|
|
78
|
+
</AlertDialogHeader>
|
|
79
|
+
<AlertDialogFooter>
|
|
80
|
+
<AlertDialogCancel disabled={cancelDisabled}>{cancelLabel}</AlertDialogCancel>
|
|
81
|
+
<AlertDialogAction
|
|
82
|
+
variant={confirmVariant}
|
|
83
|
+
className={confirmClassName}
|
|
84
|
+
disabled={confirmDisabled}
|
|
85
|
+
onClick={onConfirm}
|
|
86
|
+
data-testid={confirmTestId}
|
|
87
|
+
>
|
|
88
|
+
{confirmLabel}
|
|
89
|
+
</AlertDialogAction>
|
|
90
|
+
</AlertDialogFooter>
|
|
91
|
+
</AlertDialogContent>
|
|
92
|
+
</AlertDialog>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
SelectItem,
|
|
10
10
|
SelectTrigger,
|
|
11
11
|
SelectValue,
|
|
12
|
-
} from "
|
|
13
|
-
import { Switch } from "
|
|
14
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
12
|
+
} from "@/components/ui/select";
|
|
13
|
+
import { Switch } from "@/components/ui/switch";
|
|
14
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
15
15
|
|
|
16
16
|
import type { SceneNode } from "../document/types";
|
|
17
17
|
import { useCanvasSnapshot } from "../react/canvas-hooks";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "../../document/style/paints"
|
|
13
13
|
import { createShaderProps, firstShaderPresetId } from "../../plugins/shader/presets"
|
|
14
14
|
import { parseColor, toHex } from "../../document/style/color-utils"
|
|
15
|
-
import { Button } from "
|
|
15
|
+
import { Button } from "@/components/ui/button"
|
|
16
16
|
import { cn } from "@/lib/utils"
|
|
17
17
|
import { m } from "@/paraglide/messages.js"
|
|
18
18
|
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
SelectItem,
|
|
11
11
|
SelectTrigger,
|
|
12
12
|
SelectValue,
|
|
13
|
-
} from "
|
|
14
|
-
import { Switch } from "
|
|
13
|
+
} from "@/components/ui/select"
|
|
14
|
+
import { Switch } from "@/components/ui/switch"
|
|
15
15
|
import { cn } from "@/lib/utils"
|
|
16
16
|
import { m } from "@/paraglide/messages.js"
|
|
17
17
|
|
|
@@ -3,15 +3,15 @@ import { useEffect, useState } from "react"
|
|
|
3
3
|
import { ChevronDown, ChevronUp, Download, Trash2 } from "lucide-react"
|
|
4
4
|
|
|
5
5
|
import type { ExportPreset, NodeEffect, NodePaint, NodeStroke, StrokeAlign } from "../../document/style/paints"
|
|
6
|
-
import { Button } from "
|
|
6
|
+
import { Button } from "@/components/ui/button"
|
|
7
7
|
import {
|
|
8
8
|
Select,
|
|
9
9
|
SelectContent,
|
|
10
10
|
SelectItem,
|
|
11
11
|
SelectTrigger,
|
|
12
12
|
SelectValue,
|
|
13
|
-
} from "
|
|
14
|
-
import { Switch } from "
|
|
13
|
+
} from "@/components/ui/select"
|
|
14
|
+
import { Switch } from "@/components/ui/switch"
|
|
15
15
|
import { m } from "@/paraglide/messages.js"
|
|
16
16
|
|
|
17
17
|
import { GradientEditor, switchPaintType } from "./gradient-editor"
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
shaderPresetDefOf,
|
|
17
17
|
type ShaderPresetDef,
|
|
18
18
|
} from "../../plugins/shader/presets"
|
|
19
|
-
import { Button } from "
|
|
19
|
+
import { Button } from "@/components/ui/button"
|
|
20
20
|
import {
|
|
21
21
|
Select,
|
|
22
22
|
SelectContent,
|
|
23
23
|
SelectItem,
|
|
24
24
|
SelectTrigger,
|
|
25
25
|
SelectValue,
|
|
26
|
-
} from "
|
|
27
|
-
import { Switch } from "
|
|
26
|
+
} from "@/components/ui/select"
|
|
27
|
+
import { Switch } from "@/components/ui/switch"
|
|
28
28
|
import { cn } from "@/lib/utils"
|
|
29
29
|
import { m } from "@/paraglide/messages.js"
|
|
30
30
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
import { cn } from "@/lib/utils";
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
6
|
+
import { Button } from "@/components/ui/button";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
8
8
|
|
|
9
9
|
export function ToolbarButton({
|
|
10
10
|
label,
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { m } from "@/paraglide/messages.js";
|
|
20
20
|
import { cn } from "@/lib/utils";
|
|
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
|
SquareRoundCorner,
|
|
25
25
|
Lock,
|
|
26
26
|
LockOpen,
|
|
27
27
|
X,
|
|
28
28
|
} from "lucide-react";
|
|
29
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
29
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
30
30
|
|
|
31
31
|
import { createPaint, type NodePaint } from "../document/style/paints";
|
|
32
32
|
import type { LeaferEngine } from "@/design-engine/engine/app";
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
} from "lucide-react"
|
|
35
35
|
import { cn } from "@/lib/utils"
|
|
36
36
|
import { m } from "@/paraglide/messages.js"
|
|
37
|
-
import { Button } from "
|
|
38
|
-
import { Input } from "
|
|
37
|
+
import { Button } from "@/components/ui/button"
|
|
38
|
+
import { Input } from "@/components/ui/input"
|
|
39
39
|
|
|
40
40
|
import { type SceneNode, type SceneNodeType } from "../document/types"
|
|
41
41
|
import { buildLayerEntries, layerNodeName, type LayerEntry } from "./layer-model"
|
|
@@ -20,9 +20,9 @@ import { Lock, LockOpen } from "lucide-react";
|
|
|
20
20
|
|
|
21
21
|
import { m } from "@/paraglide/messages.js";
|
|
22
22
|
import { cn } from "@/lib/utils";
|
|
23
|
-
import { Button } from "
|
|
24
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
25
|
-
import { toast } from "
|
|
23
|
+
import { Button } from "@/components/ui/button";
|
|
24
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
25
|
+
import { toast } from "@/components/ui/toast";
|
|
26
26
|
|
|
27
27
|
import { BOOLEAN_SHAPE_TYPES } from "@/design-engine/engine/boolean-ops";
|
|
28
28
|
import type { LeaferEngine } from "@/design-engine/engine/app";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
SelectItem,
|
|
9
9
|
SelectTrigger,
|
|
10
10
|
SelectValue,
|
|
11
|
-
} from "
|
|
12
|
-
import { Switch } from "
|
|
11
|
+
} from "@/components/ui/select";
|
|
12
|
+
import { Switch } from "@/components/ui/switch";
|
|
13
13
|
|
|
14
14
|
import type { SceneNode } from "../document/types";
|
|
15
15
|
import { useCanvasSnapshot } from "../react/canvas-hooks";
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
import { detectPlatform, formatForDisplay, type Hotkey } from "@tanstack/hotkeys"
|
|
37
37
|
import { cn } from "@/lib/utils"
|
|
38
38
|
import { m } from "@/paraglide/messages.js"
|
|
39
|
-
import { Button } from "
|
|
40
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
39
|
+
import { Button } from "@/components/ui/button"
|
|
40
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
|
|
41
41
|
import {
|
|
42
42
|
DropdownMenu,
|
|
43
43
|
DropdownMenuContent,
|
|
@@ -47,9 +47,9 @@ import {
|
|
|
47
47
|
DropdownMenuSubContent,
|
|
48
48
|
DropdownMenuSubTrigger,
|
|
49
49
|
DropdownMenuTrigger,
|
|
50
|
-
} from "
|
|
50
|
+
} from "@/components/ui/dropdown-menu"
|
|
51
51
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
|
|
52
|
-
import { Separator } from "
|
|
52
|
+
import { Separator } from "@/components/ui/separator"
|
|
53
53
|
|
|
54
54
|
import { isTypingTarget } from "../tools/dom"
|
|
55
55
|
import type { ToolId } from "../document/types"
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { Minus, Plus, RotateCw, SquareRoundCorner } from "lucide-react";
|
|
4
4
|
|
|
5
5
|
import { m } from "@/paraglide/messages.js";
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { Separator } from "
|
|
8
|
-
import { Switch } from "
|
|
6
|
+
import { Button } from "@/components/ui/button";
|
|
7
|
+
import { Separator } from "@/components/ui/separator";
|
|
8
|
+
import { Switch } from "@/components/ui/switch";
|
|
9
9
|
|
|
10
10
|
import { alignNodes, distributeSpacingNodes, flipNodes } from "../document/align";
|
|
11
11
|
import {
|
|
@@ -53,7 +53,7 @@ vi.mock("@/design-engine/engine/app", () => ({
|
|
|
53
53
|
LeaferEngine: { create: vi.fn() },
|
|
54
54
|
}))
|
|
55
55
|
|
|
56
|
-
vi.mock("
|
|
56
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
57
57
|
toast: {
|
|
58
58
|
success: vi.fn(),
|
|
59
59
|
error: vi.fn(),
|
|
@@ -444,7 +444,7 @@ describe("canvas hooks", () => {
|
|
|
444
444
|
})
|
|
445
445
|
|
|
446
446
|
it("groupSelection 返回 null 时 toast 提示(请选择同一画板下的元素)", async () => {
|
|
447
|
-
const { toast } = await import("
|
|
447
|
+
const { toast } = await import("@/components/ui/toast")
|
|
448
448
|
engine.groupSelection.mockReturnValueOnce(null)
|
|
449
449
|
const { unmount } = renderGroupProbe()
|
|
450
450
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { useCallback, useEffect, type RefObject } from "react"
|
|
19
19
|
import { useHotkey } from "@tanstack/react-hotkeys"
|
|
20
20
|
|
|
21
|
-
import { toast } from "
|
|
21
|
+
import { toast } from "@/components/ui/toast"
|
|
22
22
|
import { m } from "@/paraglide/messages.js"
|
|
23
23
|
|
|
24
24
|
import { isTypingTarget } from "../tools/dom"
|
|
@@ -19,8 +19,8 @@ import { useEffect, type ReactNode } from "react"
|
|
|
19
19
|
import { Maximize, Redo2, Undo2, ZoomIn, ZoomOut } from "lucide-react"
|
|
20
20
|
import { cn } from "@/lib/utils"
|
|
21
21
|
import { m } from "@/paraglide/messages.js"
|
|
22
|
-
import { Button } from "
|
|
23
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
22
|
+
import { Button } from "@/components/ui/button"
|
|
23
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
|
|
24
24
|
|
|
25
25
|
import type { DeviceType, SceneDocument } from "../document/types"
|
|
26
26
|
import { ComponentLibrary } from "../panels/component-library"
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
MessageSquareQuote,
|
|
31
31
|
Square as SquareIcon,
|
|
32
32
|
} from "lucide-react";
|
|
33
|
-
import { toast } from '
|
|
33
|
+
import { toast } from '@/components/ui/toast';
|
|
34
34
|
import { useCanvasEngineOptional } from "@/components/design/canvas/react/hooks";
|
|
35
35
|
import "./annotation-node.scss";
|
|
36
36
|
import { m } from "@/paraglide/messages.js";
|
package/src/components/design/editor/collaboration/__tests__/design-agent-panel-regenerate.test.tsx
CHANGED
|
@@ -100,7 +100,7 @@ vi.mock("@/server/serverFns/design/ai/generate-prototype", () => ({
|
|
|
100
100
|
generatePrototypeFn: vi.fn(),
|
|
101
101
|
}))
|
|
102
102
|
|
|
103
|
-
vi.mock("
|
|
103
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
104
104
|
toast: {
|
|
105
105
|
success: vi.fn(),
|
|
106
106
|
error: vi.fn(),
|
package/src/components/design/editor/collaboration/__tests__/design-agent-panel-stream.test.tsx
CHANGED
|
@@ -108,7 +108,7 @@ vi.mock("@/server/serverFns/design/ai/generate-prototype", () => ({
|
|
|
108
108
|
generatePrototypeFn: vi.fn(),
|
|
109
109
|
}))
|
|
110
110
|
|
|
111
|
-
vi.mock("
|
|
111
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
112
112
|
toast: {
|
|
113
113
|
success: vi.fn(),
|
|
114
114
|
error: vi.fn(),
|
|
@@ -118,7 +118,7 @@ vi.mock("@allbluecn/ui/toast", () => ({
|
|
|
118
118
|
}))
|
|
119
119
|
|
|
120
120
|
const { DesignAgentPanel } = await import("../design-agent-panel")
|
|
121
|
-
import { toast } from "
|
|
121
|
+
import { toast } from "@/components/ui/toast"
|
|
122
122
|
import { saveAgentMessageFn } from "@/server/serverFns/design/ai/agent-conversations"
|
|
123
123
|
|
|
124
124
|
// ===== SSE mock 工具 =====
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { useRef, useEffect, useState, type KeyboardEvent } from "react";
|
|
19
19
|
import { m } from '@/paraglide/messages.js'
|
|
20
20
|
import { ArrowUp, Loader2, User, Bot, ChevronDown, Cpu, Square } from "lucide-react";
|
|
21
|
-
import { Textarea } from "
|
|
21
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
22
22
|
import {
|
|
23
23
|
DropdownMenu,
|
|
24
24
|
DropdownMenuTrigger,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
DropdownMenuGroup,
|
|
27
27
|
DropdownMenuItem,
|
|
28
28
|
DropdownMenuLabel,
|
|
29
|
-
} from "
|
|
29
|
+
} from "@/components/ui/dropdown-menu";
|
|
30
30
|
import { cn } from "@/lib/utils";
|
|
31
31
|
|
|
32
32
|
export interface ModelOption {
|
|
@@ -20,7 +20,7 @@ import { useState, useRef, useEffect, useCallback, useMemo } from "react"
|
|
|
20
20
|
import { Bot, Loader2, User, Plus, Trash2, ChevronDown, MessageSquare, Sparkles } from "lucide-react"
|
|
21
21
|
import { fetchServerSentEvents } from "@tanstack/ai-react"
|
|
22
22
|
import { cn } from "@/lib/utils"
|
|
23
|
-
import { toast } from '
|
|
23
|
+
import { toast } from '@/components/ui/toast'
|
|
24
24
|
import { generatePrototypeFn, type PrototypeScene } from "@/server/serverFns/design/ai/generate-prototype"
|
|
25
25
|
import { listEnabledModelsFn } from "@/server/serverFns/design/ai/providers"
|
|
26
26
|
import {
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
DropdownMenuItem,
|
|
51
51
|
DropdownMenuLabel,
|
|
52
52
|
DropdownMenuSeparator,
|
|
53
|
-
} from "
|
|
53
|
+
} from "@/components/ui/dropdown-menu"
|
|
54
54
|
import { AgentInput, type ModelOption } from "./agent-input"
|
|
55
55
|
|
|
56
56
|
// ===== FS-8.3 流式生成(SSE /api/design/prototype)=====
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
import { useState, useEffect } from "react";
|
|
19
19
|
import { cn } from "@/lib/utils";
|
|
20
|
-
import { Badge } from "
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
20
|
+
import { Badge } from "@/components/ui/badge";
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
23
23
|
import { MessageSquare, ClipboardCheck, Check, X, Reply, ChevronUp } from "lucide-react";
|
|
24
|
-
import { toast } from '
|
|
24
|
+
import { toast } from '@/components/ui/toast';
|
|
25
25
|
import { useSession } from "@/components/shared-kit/auth/auth-client";
|
|
26
26
|
import { maskEmail, formatTime, formatEditedTime } from "@/lib/comment-utils";
|
|
27
27
|
import { UserAvatar } from "@/components/shared-kit";
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
import React, { 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 { getIconPicker } from "../icon-picker-bridge";
|
|
31
31
|
import { createDesignFn } from "@/server/serverFns/design/designs";
|
|
32
32
|
import { createDesignSchema } from "./schemas/create-design";
|
|
@@ -20,13 +20,13 @@ import { useEffect, useMemo, useState } from "react";
|
|
|
20
20
|
import { m } from '@/paraglide/messages.js'
|
|
21
21
|
import { onEvent, emitEvent, AppEvents } from "@/lib/events";
|
|
22
22
|
import { Link } from "@tanstack/react-router";
|
|
23
|
-
import { Card } from "
|
|
24
|
-
import { Button } from "
|
|
25
|
-
import { Input } from "
|
|
23
|
+
import { Card } from "@/components/ui/card";
|
|
24
|
+
import { Button } from "@/components/ui/button";
|
|
25
|
+
import { Input } from "@/components/ui/input";
|
|
26
26
|
import { TagBadge } from '@/components/tags/tag-badge'
|
|
27
27
|
import { GridPattern } from "@/components/shared-kit/decorative/grid-pattern";
|
|
28
28
|
import { LayoutPanelTopIcon } from "@/components/shared-kit/layout/layout-panel-top";
|
|
29
|
-
import { ConfirmDialog } from "
|
|
29
|
+
import { ConfirmDialog } from "@/components/confirm-dialog";
|
|
30
30
|
import { CreateDesignDialog } from "./create-design-dialog";
|
|
31
31
|
import { ICON_MAP, type Design } from "@allbluecn/kernel";
|
|
32
32
|
import { listDesignsFn, deleteDesignFn } from "@/server/serverFns/design/designs";
|
|
@@ -95,7 +95,7 @@ vi.mock("@/components/design/editor/layout/design-right-sidebar", () => ({
|
|
|
95
95
|
vi.mock("@/components/design/editor/layout/design-navigation", () => ({
|
|
96
96
|
DesignNavigation: () => null,
|
|
97
97
|
}));
|
|
98
|
-
vi.mock("
|
|
98
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
99
99
|
toast: { success: vi.fn(), error: vi.fn(), warning: vi.fn() },
|
|
100
100
|
}));
|
|
101
101
|
vi.mock("@/server/serverFns/design/pages", () => ({
|
|
@@ -67,7 +67,7 @@ vi.mock("@/components/design/editor/layout/design-navigation", () => ({
|
|
|
67
67
|
vi.mock("@/components/design/editor/layout/design-right-sidebar", () => ({
|
|
68
68
|
DesignRightSidebar: () => null,
|
|
69
69
|
}));
|
|
70
|
-
vi.mock("
|
|
70
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
71
71
|
toast: { success: vi.fn(), error: vi.fn(), warning: vi.fn() },
|
|
72
72
|
}));
|
|
73
73
|
vi.mock("@/server/serverFns/design/pages", () => ({
|
|
@@ -87,7 +87,7 @@ vi.mock("@/components/design/editor/layout/design-doc-panel", () => ({
|
|
|
87
87
|
DesignDocPanel: () => null,
|
|
88
88
|
}));
|
|
89
89
|
|
|
90
|
-
import { toast } from "
|
|
90
|
+
import { toast } from "@/components/ui/toast";
|
|
91
91
|
import { getDesignPageFn, updateDesignPageFn } from "@/server/serverFns/design/pages";
|
|
92
92
|
import { m } from "@/paraglide/messages.js";
|
|
93
93
|
import { DesignEditorLayout } from "../design-editor-layout";
|
|
@@ -65,7 +65,7 @@ vi.mock("@/components/design/editor/layout/design-left-sidebar", () => ({
|
|
|
65
65
|
vi.mock("@/components/design/editor/layout/design-navigation", () => ({
|
|
66
66
|
DesignNavigation: () => null,
|
|
67
67
|
}));
|
|
68
|
-
vi.mock("
|
|
68
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
69
69
|
toast: { success: vi.fn(), error: vi.fn() },
|
|
70
70
|
}));
|
|
71
71
|
vi.mock("@/server/serverFns/design/pages", () => ({
|
|
@@ -62,7 +62,7 @@ vi.mock("@/components/design/editor/layout/design-left-sidebar", () => ({
|
|
|
62
62
|
vi.mock("@/components/design/editor/layout/design-navigation", () => ({
|
|
63
63
|
DesignNavigation: () => null,
|
|
64
64
|
}));
|
|
65
|
-
vi.mock("
|
|
65
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
66
66
|
toast: { success: vi.fn(), error: vi.fn() },
|
|
67
67
|
}));
|
|
68
68
|
vi.mock("@/server/serverFns/design/pages", () => ({
|
|
@@ -19,8 +19,8 @@ import React, { useEffect, useState, type ComponentType } from "react";
|
|
|
19
19
|
import { m } from '@/paraglide/messages.js'
|
|
20
20
|
import { cn } from "@/lib/utils";
|
|
21
21
|
import { Maximize2, Minimize2, RotateCcw } from "lucide-react";
|
|
22
|
-
import { Button } from "
|
|
23
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
24
24
|
|
|
25
25
|
const LAZY_RETRY_COUNT = 2
|
|
26
26
|
const LAZY_RETRY_BASE_DELAY_MS = 600
|
|
@@ -27,7 +27,7 @@ import { AnnotationOverlay } from "@/components/design/editor/annotation/overlay
|
|
|
27
27
|
import { ElementContext } from "./element-context";
|
|
28
28
|
import type { Design } from "@allbluecn/kernel";
|
|
29
29
|
import { updateDesignFn } from "@/server/serverFns/design/designs";
|
|
30
|
-
import { toast } from "
|
|
30
|
+
import { toast } from "@/components/ui/toast";
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
import { useCanvasSnapshotOptional } from "@/components/design/canvas/react/canvas-hooks"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
import React, { useState, useRef, useEffect } from "react";
|
|
19
19
|
import { m } from '@/paraglide/messages.js'
|
|
20
20
|
import { emitEvent, AppEvents } from "@/lib/events";
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Input } from "
|
|
23
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
|
+
import { Input } from "@/components/ui/input";
|
|
23
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog";
|
|
24
24
|
import { DesignSharePanel } from "../share/design-share-panel";
|
|
25
25
|
import {
|
|
26
26
|
DropdownMenu,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
DropdownMenuItem,
|
|
29
29
|
DropdownMenuTrigger,
|
|
30
30
|
DropdownMenuSeparator,
|
|
31
|
-
} from "
|
|
31
|
+
} from "@/components/ui/dropdown-menu";
|
|
32
32
|
import { NameConfirmDialog } from "@/components/shared-kit/dialogs/name-confirm-dialog";
|
|
33
33
|
import { useRouter } from "@tanstack/react-router";
|
|
34
34
|
import { ICON_MAP, type Design } from "@allbluecn/kernel";
|
|
@@ -19,9 +19,9 @@ import React, { useState, useEffect, useRef } from "react";
|
|
|
19
19
|
import { m } from '@/paraglide/messages.js'
|
|
20
20
|
import { onEvent, AppEvents } from "@/lib/events";
|
|
21
21
|
import { cn } from "@/lib/utils";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
23
|
import { PanelRightClose, PanelRightOpen } from "lucide-react";
|
|
24
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
24
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
25
25
|
import { PropertyPanel } from "@/components/design/canvas/panels/property-panel";
|
|
26
26
|
import { PageVersionPanel } from "../versions/page-version-panel";
|
|
27
27
|
import { DesignCommentReviewPanel } from "../collaboration/design-comment-review-panel";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { m } from '@/paraglide/messages.js'
|
|
5
|
-
import { toast } from "
|
|
5
|
+
import { toast } from "@/components/ui/toast";
|
|
6
6
|
import { formatSaveTime } from "@/lib/time-format";
|
|
7
7
|
import { updateDesignPageFn } from "@/server/serverFns/design/pages";
|
|
8
8
|
import type { SceneDocument } from "@/components/design/canvas/document/types";
|