@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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useEffect, useRef, useState } from "react"
|
|
19
|
-
import { toast } from "
|
|
19
|
+
import { toast } from "@/components/ui/toast"
|
|
20
20
|
import { fetchStoryAiStream, type StoryAiPolishAction } from "@/lib/ai/story-ai-stream"
|
|
21
21
|
|
|
22
22
|
/** TipTap editor reference (inline copy; will be imported from story-ai-toolbar after Task 5) */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
import { useRef, useState } from "react"
|
|
19
19
|
import { Loader2, PencilRuler, Copy } from "lucide-react"
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "
|
|
22
|
-
import { Textarea } from "
|
|
23
|
-
import { toast } from "
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"
|
|
22
|
+
import { Textarea } from "@/components/ui/textarea"
|
|
23
|
+
import { toast } from "@/components/ui/toast"
|
|
24
24
|
import { useSession } from "@/lib/auth/auth-client"
|
|
25
25
|
import { generatePrototypeFn, type PrototypeScene } from "@/server/serverFns/design/ai/generate-prototype"
|
|
26
26
|
import { CanvasWorkbench } from "@/components/design/canvas/react/workbench"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
|
|
18
18
|
import { useEffect, useRef, useState } from "react"
|
|
19
19
|
import { Loader2, WandSparkles, X, Check, SquareStop, CheckCheck, Sparkles } from "lucide-react"
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "
|
|
22
|
-
import { Badge } from "
|
|
23
|
-
import { Textarea } from "
|
|
24
|
-
import { toast } from "
|
|
25
|
-
import { Checkbox } from "
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "@/components/ui/dialog"
|
|
22
|
+
import { Badge } from "@/components/ui/badge"
|
|
23
|
+
import { Textarea } from "@/components/ui/textarea"
|
|
24
|
+
import { toast } from "@/components/ui/toast"
|
|
25
|
+
import { Checkbox } from "@/components/ui/checkbox"
|
|
26
26
|
import { createStoryFn, addChildFn } from "@/server/serverFns/story"
|
|
27
27
|
import { useSession } from "@/lib/auth/auth-client"
|
|
28
28
|
import { fetchStoryAiStream, type StoryAiMode, type StoryAiSplitMode } from "@/lib/ai/story-ai-stream"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { useMemo, useRef, useState } from "react"
|
|
19
19
|
import { Sparkles, Wand2, ListPlus, Type, Loader2 } from "lucide-react"
|
|
20
20
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Textarea } from "
|
|
21
|
+
import { Button } from "@/components/ui/button"
|
|
22
|
+
import { Textarea } from "@/components/ui/textarea"
|
|
23
23
|
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
|
|
24
24
|
import {
|
|
25
25
|
Select,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
SelectItem,
|
|
28
28
|
SelectTrigger,
|
|
29
29
|
SelectValue,
|
|
30
|
-
} from "
|
|
31
|
-
import { toast } from "
|
|
30
|
+
} from "@/components/ui/select"
|
|
31
|
+
import { toast } from "@/components/ui/toast"
|
|
32
32
|
import { createStoryFn, addChildFn, createLabelFn } from "@/server/serverFns/story"
|
|
33
33
|
import { useSession } from "@/lib/auth/auth-client"
|
|
34
34
|
import {
|
|
@@ -15,9 +15,9 @@
|
|
|
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 { Checkbox } from "
|
|
19
|
-
import { Input } from "
|
|
20
|
-
import { Button } from "
|
|
18
|
+
import { Checkbox } from "@/components/ui/checkbox"
|
|
19
|
+
import { Input } from "@/components/ui/input"
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
21
|
import { Trash2 } from "lucide-react"
|
|
22
22
|
import {
|
|
23
23
|
Select,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
SelectItem,
|
|
26
26
|
SelectTrigger,
|
|
27
27
|
SelectValue,
|
|
28
|
-
} from "
|
|
28
|
+
} from "@/components/ui/select"
|
|
29
29
|
import { STORY_PRIORITIES } from "@/components/story/constants"
|
|
30
30
|
import type { UserBrief } from "@/components/story/types"
|
|
31
31
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
PopoverContent,
|
|
26
26
|
PopoverTrigger,
|
|
27
27
|
} from "@/components/ui/popover"
|
|
28
|
-
import { Button } from "
|
|
29
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
28
|
+
import { Button } from "@/components/ui/button"
|
|
29
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
|
|
30
30
|
import { type StoryAiModelGroup } from "./use-story-ai-model"
|
|
31
31
|
import {
|
|
32
32
|
ACTION_REGISTRY,
|
|
@@ -126,7 +126,7 @@ export function StoryAiToolbar(props: StoryAiToolbarProps) {
|
|
|
126
126
|
return
|
|
127
127
|
}
|
|
128
128
|
if (def.mode === "reserved") {
|
|
129
|
-
import("
|
|
129
|
+
import("@/components/ui/toast").then(({ toast }) =>
|
|
130
130
|
toast.info(m.story_storyAi_toolbar_underDevelopment()),
|
|
131
131
|
)
|
|
132
132
|
return
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
tableFeatures,
|
|
26
26
|
type ColumnDef,
|
|
27
27
|
} from "@tanstack/react-table";
|
|
28
|
-
import { Badge } from "
|
|
28
|
+
import { Badge } from "@/components/ui/badge";
|
|
29
29
|
import { UserAvatar } from "@/components/shared-kit";
|
|
30
30
|
import { PriorityIcon } from "./priority-icon";
|
|
31
31
|
import { STATE_COLOR, PRIORITY_RANK } from "./constants";
|
|
@@ -19,10 +19,10 @@ import { useCallback, useEffect, useRef, useState } from "react"
|
|
|
19
19
|
import { CalendarCheck, CalendarPlus2, Sprout } from "lucide-react"
|
|
20
20
|
import { useForm } from "@tanstack/react-form"
|
|
21
21
|
import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name"
|
|
22
|
-
import { Button } from "
|
|
23
|
-
import { Input } from "
|
|
22
|
+
import { Button } from "@/components/ui/button"
|
|
23
|
+
import { Input } from "@/components/ui/input"
|
|
24
24
|
|
|
25
|
-
import { Switch } from "
|
|
25
|
+
import { Switch } from "@/components/ui/switch"
|
|
26
26
|
import {
|
|
27
27
|
Popover,
|
|
28
28
|
PopoverContent,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
DialogFooter,
|
|
35
35
|
DialogHeader,
|
|
36
36
|
DialogTitle,
|
|
37
|
-
} from "
|
|
37
|
+
} from "@/components/ui/dialog"
|
|
38
38
|
|
|
39
39
|
import { createStoryFn } from "@/server/serverFns/story"
|
|
40
40
|
import { ensureBuiltinProjectFn } from "@/server/serverFns/project"
|
|
@@ -31,7 +31,7 @@ vi.mock("@/server/serverFns/story", () => ({
|
|
|
31
31
|
vi.mock("@/server/serverFns/knowledge", () => ({
|
|
32
32
|
getDocumentFn: vi.fn(async () => ({ content: { html: "<p>hello</p>", markdown: "hello" } })),
|
|
33
33
|
}));
|
|
34
|
-
vi.mock("
|
|
34
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
35
35
|
toast: { success: vi.fn(), error: vi.fn() },
|
|
36
36
|
}));
|
|
37
37
|
vi.mock("@tanstack/react-router", () => ({
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect } from "vitest";
|
|
19
19
|
import { render, screen } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
import { StoryDetailCategories } from "../story-detail-toolbar/categories";
|
|
22
22
|
|
|
23
23
|
;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi } from "vitest";
|
|
19
19
|
import { render, screen, fireEvent } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
import { StoryDetailDependencies } from "../story-detail-toolbar/dependencies";
|
|
22
22
|
|
|
23
23
|
;
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
import { useForm } from "@tanstack/react-form";
|
|
19
19
|
import { useState } from "react";
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Textarea } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
22
22
|
import { createCommentFn } from "@/server/serverFns/story";
|
|
23
|
-
import { toast } from "
|
|
23
|
+
import { toast } from "@/components/ui/toast";
|
|
24
24
|
import type { CommentWithReplies } from "../types";
|
|
25
25
|
import { m } from "@/paraglide/messages.js";
|
|
26
26
|
|
|
@@ -19,16 +19,16 @@ import { UserAvatar } from "@/components/shared-kit";
|
|
|
19
19
|
import { formatRelative } from "./comment-thread";
|
|
20
20
|
import { CommentInput } from "./comment-input";
|
|
21
21
|
import { useState } from "react";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
23
|
import { MoreHorizontal } from "lucide-react";
|
|
24
24
|
import {
|
|
25
25
|
DropdownMenu,
|
|
26
26
|
DropdownMenuContent,
|
|
27
27
|
DropdownMenuItem,
|
|
28
28
|
DropdownMenuTrigger,
|
|
29
|
-
} from "
|
|
29
|
+
} from "@/components/ui/dropdown-menu";
|
|
30
30
|
import { deleteCommentFn, updateCommentFn } from "@/server/serverFns/story";
|
|
31
|
-
import { toast } from "
|
|
31
|
+
import { toast } from "@/components/ui/toast";
|
|
32
32
|
import type { CommentWithReplies } from "../types";
|
|
33
33
|
import { m } from "@/paraglide/messages.js";
|
|
34
34
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { Plus } from "lucide-react";
|
|
19
|
-
import { Button } from "
|
|
19
|
+
import { Button } from "@/components/ui/button";
|
|
20
20
|
import { cn } from "@/lib/utils";
|
|
21
21
|
import { EmojiPicker } from "./emoji-picker";
|
|
22
22
|
import type { ReactionGroup } from "@/components/story/types";
|
|
@@ -27,15 +27,15 @@ import {
|
|
|
27
27
|
ClockArrowUp,
|
|
28
28
|
} from "lucide-react";
|
|
29
29
|
import { UserAvatar } from "@/components/shared-kit";
|
|
30
|
-
import { Input } from "
|
|
30
|
+
import { Input } from "@/components/ui/input";
|
|
31
31
|
|
|
32
|
-
import { Skeleton } from "
|
|
33
|
-
import { Button } from "
|
|
32
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
33
|
+
import { Button } from "@/components/ui/button";
|
|
34
34
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
35
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
35
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
36
36
|
import { updateStoryFn, listStoryReactionsFn, toggleStoryReactionFn } from "@/server/serverFns/story";
|
|
37
37
|
import { formatTimestamp } from "@/lib/datetime";
|
|
38
|
-
import { toast } from "
|
|
38
|
+
import { toast } from "@/components/ui/toast";
|
|
39
39
|
import type { StoryDetail, UserBrief, CommentWithReplies, ActivityItem, ReactionGroup, RelationsData } from "../types";
|
|
40
40
|
import { parseStoryDescription, serializeStoryDescription } from "../types";
|
|
41
41
|
import type { StoryState } from "../constants";
|
package/src/components/story/detail/story-detail-toolbar/__tests__/related-test-cases.test.tsx
CHANGED
|
@@ -72,7 +72,7 @@ vi.mock("@/components/billing/use-feature", () => ({
|
|
|
72
72
|
useFeature: mocks.useFeature,
|
|
73
73
|
}));
|
|
74
74
|
|
|
75
|
-
vi.mock("
|
|
75
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
76
76
|
toast: { success: mocks.toastSuccess, error: mocks.toastError },
|
|
77
77
|
}));
|
|
78
78
|
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
Unlink,
|
|
35
35
|
ChartNoAxesGantt,
|
|
36
36
|
} from "lucide-react";
|
|
37
|
-
import { Button } from "
|
|
38
|
-
import { Badge } from "
|
|
39
|
-
import { Dialog, DialogContent } from "
|
|
40
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
37
|
+
import { Button } from "@/components/ui/button";
|
|
38
|
+
import { Badge } from "@/components/ui/badge";
|
|
39
|
+
import { Dialog, DialogContent } from "@/components/ui/dialog";
|
|
40
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
41
41
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
42
42
|
import { cn } from "@/lib/utils";
|
|
43
43
|
import { FilePreview } from "@/components/story/relations/file-preview";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
CircleCheckBig,
|
|
26
26
|
Speech,
|
|
27
27
|
} from "lucide-react";
|
|
28
|
-
import { Button } from "
|
|
28
|
+
import { Button } from "@/components/ui/button";
|
|
29
29
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
30
30
|
|
|
31
31
|
interface StoryDetailCategoryConfig {
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
SquareDashedMousePointer,
|
|
24
24
|
ChartNoAxesGantt,
|
|
25
25
|
} from "lucide-react";
|
|
26
|
-
import { Button } from "
|
|
26
|
+
import { Button } from "@/components/ui/button";
|
|
27
27
|
import {
|
|
28
28
|
DropdownMenu,
|
|
29
29
|
DropdownMenuContent,
|
|
30
30
|
DropdownMenuItem,
|
|
31
31
|
DropdownMenuTrigger,
|
|
32
|
-
} from "
|
|
32
|
+
} from "@/components/ui/dropdown-menu";
|
|
33
33
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
34
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
35
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
36
|
-
import { toast } from "
|
|
34
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
35
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
36
|
+
import { toast } from "@/components/ui/toast";
|
|
37
37
|
import {
|
|
38
38
|
removeChildFn,
|
|
39
39
|
bulkArchiveStoriesFn,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { Waypoints } from "lucide-react";
|
|
19
|
-
import { Button } from "
|
|
19
|
+
import { Button } from "@/components/ui/button";
|
|
20
20
|
import { m } from "@/paraglide/messages.js";
|
|
21
21
|
|
|
22
22
|
export function StoryDetailDependencies({
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { Plus, ChevronDown, ChartNoAxesGantt } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
21
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
22
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
22
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
23
23
|
import { useServerFn } from "@tanstack/react-start";
|
|
24
|
-
import { toast } from "
|
|
24
|
+
import { toast } from "@/components/ui/toast";
|
|
25
25
|
import {
|
|
26
26
|
removeDependencyFn,
|
|
27
27
|
updateDependencyFn,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
import * as React from "react";
|
|
30
30
|
import { Link } from "@tanstack/react-router";
|
|
31
31
|
import { AlertTriangle, ChevronDown, ListChecks } from "lucide-react";
|
|
32
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
32
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
33
33
|
import { listTestCasesFn } from "@/server/serverFns/testcase/testcase-crud";
|
|
34
34
|
import { getStoryStalenessFn } from "@/server/serverFns/testcase/stats";
|
|
35
35
|
import type { TestCaseSummary } from "@/server/serverFns/testcase/types";
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
import * as React from "react";
|
|
19
19
|
import { useServerFn } from "@tanstack/react-start";
|
|
20
|
-
import { toast } from "
|
|
20
|
+
import { toast } from "@/components/ui/toast";
|
|
21
21
|
import { LinkIcon, Paperclip, BookOpenText } from "lucide-react";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
23
|
import { StoryDetailChildrenButton, StoryDetailChildrenPanel } from "./story-detail-toolbar/children";
|
|
24
24
|
import { StoryDetailDependencies } from "./story-detail-toolbar/dependencies";
|
|
25
25
|
import { StoryDetailDependencyPanel } from "./story-detail-toolbar/dependency-panel";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { GitPullRequestArrow, Tag, CalendarRange } from "lucide-react";
|
|
19
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "
|
|
19
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
20
20
|
import { ChevronDown } from "lucide-react";
|
|
21
21
|
import type { StoryState } from "../constants";
|
|
22
22
|
import type { ActivityItem } from "../types";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi, beforeAll, beforeEach } from "vitest";
|
|
19
19
|
import { render, screen, fireEvent, within } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
import { DisplayDropdown } from "../display-dropdown";
|
|
22
22
|
import { DEFAULT_DISPLAY_OPTIONS } from "../types";
|
|
23
23
|
import { buildDefaultView } from "../../views/view-types";
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
import { useMemo, useState } from "react";
|
|
19
19
|
import { ArrowDownNarrowWide, ArrowUpWideNarrow, ChartNoAxesGantt, Check, ChevronRight, ChevronDown, Lock, type LucideIcon } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Switch } from "
|
|
22
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
|
+
import { Switch } from "@/components/ui/switch";
|
|
22
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
23
23
|
import { useFeature } from "@/components/billing/use-feature";
|
|
24
24
|
import {
|
|
25
25
|
Popover,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { Plus } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
21
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
22
22
|
import { FILTER_FIELD_CONFIGS, type FilterKey, type FilterCondition } from "./filter-types";
|
|
23
23
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { X, Calendar, CircleUser, Archive, BrushCleaning } from "lucide-react";
|
|
19
19
|
import { format, parseISO, isValid } from "date-fns";
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
21
|
import { UserAvatar } from "@/components/shared-kit";
|
|
22
22
|
import { PriorityIcon } from "../priority-icon";
|
|
23
23
|
import { STORY_STATES, STATE_ICON, PRIORITY_LABEL, type StoryPriority } from "../constants";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useCallback } from "react";
|
|
19
19
|
import { CopyPlus, BrushCleaning, X } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
21
|
import { AddFilterDropdown } from "./add-filter-dropdown";
|
|
22
22
|
import { FilterConditionRow } from "./filter-condition";
|
|
23
23
|
import { createDefaultCondition, type FilterCondition, type FilterKey, type FilterOperator } from "./filter-types";
|
|
@@ -17,8 +17,8 @@ import { m } from '@/paraglide/messages.js'
|
|
|
17
17
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
18
18
|
|
|
19
19
|
import { ListFilter, ListFilterPlus } 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 { cn } from "@/lib/utils";
|
|
23
23
|
import type { FilterCondition } from "./filter-types";
|
|
24
24
|
|
|
@@ -26,12 +26,12 @@ if (typeof globalThis.ResizeObserver === "undefined") {
|
|
|
26
26
|
|
|
27
27
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
|
28
28
|
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
|
|
29
|
-
import { TooltipProvider } from "
|
|
29
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
30
30
|
import { DependencyTypeSelect } from "../dependency-type-select";
|
|
31
31
|
|
|
32
32
|
;
|
|
33
33
|
|
|
34
|
-
vi.mock("
|
|
34
|
+
vi.mock("@/components/ui/tooltip", () => ({
|
|
35
35
|
TooltipProvider: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
|
|
36
36
|
Tooltip: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
|
|
37
37
|
TooltipContent: ({ children, ...props }: { children: React.ReactNode; side?: string; className?: string }) => (
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
|
19
19
|
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
import { LabelsEditor } from "../labels-editor";
|
|
22
22
|
|
|
23
23
|
;
|
|
@@ -30,7 +30,7 @@ vi.mock("@/lib/auth/auth-client", () => ({
|
|
|
30
30
|
useSession: () => ({ data: { user: { hasAiKey: true } } }),
|
|
31
31
|
}));
|
|
32
32
|
|
|
33
|
-
vi.mock("
|
|
33
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
34
34
|
toast: { error: vi.fn(), success: vi.fn() },
|
|
35
35
|
}));
|
|
36
36
|
|
|
@@ -26,7 +26,7 @@ if (typeof globalThis.ResizeObserver === "undefined") {
|
|
|
26
26
|
|
|
27
27
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
|
28
28
|
import { render, screen, fireEvent } from "@testing-library/react";
|
|
29
|
-
import { TooltipProvider } from "
|
|
29
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
30
30
|
import { PriorityEditor } from "../priority-editor";
|
|
31
31
|
|
|
32
32
|
;
|
|
@@ -26,7 +26,7 @@ if (typeof globalThis.ResizeObserver === "undefined") {
|
|
|
26
26
|
|
|
27
27
|
import { describe, it, expect, vi, beforeEach } from "vitest";
|
|
28
28
|
import { render, screen, fireEvent } from "@testing-library/react";
|
|
29
|
-
import { TooltipProvider } from "
|
|
29
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
30
30
|
import { StateEditor } from "../state-editor";
|
|
31
31
|
|
|
32
32
|
;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useMemo, useState } from "react";
|
|
19
19
|
import { CircleUser, Search, Check, ArrowDownUp } from "lucide-react";
|
|
20
|
-
import { Input } from "
|
|
20
|
+
import { Input } from "@/components/ui/input";
|
|
21
21
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
22
22
|
import { UserAvatar } from "@/components/shared-kit";
|
|
23
23
|
import type { UserBrief } from "../types";
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { format } from "date-fns";
|
|
20
20
|
import type { LucideIcon } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
22
|
import { Calendar } from "@/components/ui/calendar";
|
|
23
23
|
import { Popover, PopoverContent } from "@/components/ui/popover";
|
|
24
24
|
import { cn } from "@/lib/utils";
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { Check, Waypoints } from "lucide-react";
|
|
20
20
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
21
|
-
import { Button, buttonVariants } from "
|
|
22
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
21
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
22
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
23
23
|
import { DEPENDENCY_TYPE_OPTIONS, type DependencyTypeOption } from "../constants";
|
|
24
24
|
import { cn } from "@/lib/utils";
|
|
25
25
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import type { ReactNode } from "react";
|
|
19
|
-
import { Button } from "
|
|
19
|
+
import { Button } from "@/components/ui/button";
|
|
20
20
|
import { PopoverTrigger } from "@/components/ui/popover";
|
|
21
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
21
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
22
22
|
import { cn } from "@/lib/utils";
|
|
23
23
|
import { m } from "@/paraglide/messages.js";
|
|
24
24
|
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { Tag, Check, Loader2, Sparkles } from "lucide-react";
|
|
20
20
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
|
21
|
-
import { Checkbox } from "
|
|
21
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
22
22
|
import { cn } from "@/lib/utils";
|
|
23
23
|
import { useSession } from "@/lib/auth/auth-client";
|
|
24
|
-
import { toast } from "
|
|
24
|
+
import { toast } from "@/components/ui/toast";
|
|
25
25
|
import { createLabelFn, suggestStoryLabelsFn } from "@/server/serverFns/story";
|
|
26
26
|
import { InlineTrigger } from "./inline-trigger";
|
|
27
27
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useState } from "react";
|
|
19
19
|
import { GitPullRequestCreateArrow, ExternalLink, X, GitPullRequestArrow } from "lucide-react";
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
21
|
import { cn } from "@/lib/utils";
|
|
22
22
|
import { StorySelectDialog } from "./story-select-dialog";
|
|
23
23
|
import type { StoryState } from "../constants";
|
|
@@ -19,11 +19,11 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
|
19
19
|
import { useDebouncedCallback, SEARCH_DEBOUNCE_MS } from "@/lib/pacer";
|
|
20
20
|
import { cn } from "@/lib/utils";
|
|
21
21
|
import { Search, Sprout, ChevronsUpDown, Check, Trees, ListFilter, Flag } from "lucide-react";
|
|
22
|
-
import { Badge } from "
|
|
23
|
-
import { Checkbox } from "
|
|
22
|
+
import { Badge } from "@/components/ui/badge";
|
|
23
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
24
24
|
import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name";
|
|
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
|
Popover,
|
|
29
29
|
PopoverContent,
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
DialogFooter,
|
|
36
36
|
DialogHeader,
|
|
37
37
|
DialogTitle,
|
|
38
|
-
} from "
|
|
39
|
-
import { toast } from "
|
|
38
|
+
} from "@/components/ui/dialog";
|
|
39
|
+
import { toast } from "@/components/ui/toast";
|
|
40
40
|
import type { ActivityItem } from "../types";
|
|
41
41
|
import {
|
|
42
42
|
listProjectStoriesFn,
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
19
19
|
import { useHotkey } from "@tanstack/react-hotkeys";
|
|
20
|
-
import { Skeleton } from "
|
|
21
|
-
import { Dialog, DialogContent } from "
|
|
20
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
21
|
+
import { Dialog, DialogContent } from "@/components/ui/dialog";
|
|
22
22
|
import {
|
|
23
23
|
getStoryDetailFn,
|
|
24
24
|
listCommentsFn,
|