@allbluecn/web-app 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -5
- package/src/__tests__/{knowledge/public → knowledge-public}/canonical-id.test.ts +1 -1
- package/src/__tests__/{knowledge/public → knowledge-public}/favicon.test.ts +1 -1
- package/src/__tests__/{knowledge/public → knowledge-public}/github-sync.test.ts +1 -1
- package/src/__tests__/{knowledge/public → knowledge-public}/share-merge.test.ts +1 -1
- package/src/__tests__/visual/theme-surface.vrt.test.tsx +1 -1
- package/src/components/agents/agent-bindings-tab.tsx +3 -3
- package/src/components/agents/agent-card.tsx +4 -4
- package/src/components/agents/agent-form-dialog.tsx +9 -9
- package/src/components/agents/agent-selector.tsx +1 -1
- package/src/components/agents/agents-page.tsx +1 -1
- package/src/components/agents/skill-card.tsx +1 -1
- package/src/components/agents/skill-form-dialog.tsx +5 -5
- package/src/components/agents/use-agent-handlers.ts +1 -1
- package/src/components/ai/__tests__/prompt-input-actions.test.tsx +1 -1
- package/src/components/ai/ai-chat-prompt.tsx +3 -3
- package/src/components/ai/ai-prompt-input/components/action-buttons.tsx +3 -3
- package/src/components/ai/ai-prompt-input/components/agent-mode-select.tsx +1 -1
- package/src/components/ai/ai-prompt-input/components/model-select.tsx +1 -1
- package/src/components/ai/ai-prompt-input/index.tsx +3 -3
- package/src/components/ai/ai-suggested-prompts.tsx +5 -5
- package/src/components/ai/global-harness-sidebar/index.tsx +5 -5
- package/src/components/ai/tool-parts/tool-call-part.tsx +1 -1
- package/src/components/ai/tool-parts/tool-result-part.tsx +1 -1
- package/src/components/anyhub/anyhub-app-card.tsx +5 -5
- package/src/components/anyhub/anyhub-install-dialog.tsx +4 -4
- package/src/components/anyhub/anyhub-management-view.tsx +1 -1
- package/src/components/anyhub/anyhub-marketplace-view.tsx +4 -4
- package/src/components/anyhub/anyhub-permission-panel.tsx +4 -4
- package/src/components/anyhub/anyhub-top-nav.tsx +2 -2
- package/src/components/auth/icon-input.tsx +2 -2
- package/src/components/auth/oauth-section.tsx +2 -2
- package/src/components/auth/password-input.tsx +2 -2
- package/src/components/auth/sso-section.tsx +1 -1
- package/src/components/billing/__tests__/seats-manager.test.tsx +1 -1
- package/src/components/billing/checkout-redirect.ts +1 -1
- package/src/components/billing/login-prompt-dialog.tsx +3 -3
- package/src/components/billing/seats-manager.tsx +2 -2
- package/src/components/bug/__tests__/bug-display-dropdown.test.tsx +1 -1
- package/src/components/bug/__tests__/bug-toolbar.test.tsx +1 -1
- package/src/components/bug/__tests__/create-bug-dialog.test.tsx +2 -2
- package/src/components/bug/__tests__/use-paged-bug-groups.test.tsx +1 -1
- package/src/components/bug/bug-list-table.tsx +1 -1
- package/src/components/bug/bug-list-view.tsx +1 -1
- package/src/components/bug/bug-panel-header.tsx +5 -5
- package/src/components/bug/bug-toolbar.tsx +3 -3
- package/src/components/bug/collect/__tests__/collect-form.test.tsx +1 -1
- package/src/components/bug/collect/collect-form.tsx +5 -5
- package/src/components/bug/columns.tsx +1 -1
- package/src/components/bug/create-bug-dialog.tsx +4 -4
- package/src/components/bug/detail/__tests__/error-context.test.tsx +1 -1
- package/src/components/bug/detail/__tests__/repro-report-card.test.tsx +1 -1
- package/src/components/bug/detail/activity-tabs.tsx +1 -1
- package/src/components/bug/detail/bug-detail-body.tsx +6 -6
- package/src/components/bug/detail/comment-input.tsx +3 -3
- package/src/components/bug/detail/comment-item.tsx +5 -5
- package/src/components/bug/detail/events-timeline.tsx +1 -1
- package/src/components/bug/detail/fix-timeline.tsx +3 -3
- package/src/components/bug/detail/props-section.tsx +2 -2
- package/src/components/bug/detail/regression-section.tsx +3 -3
- package/src/components/bug/detail/repro-report-card.tsx +6 -6
- package/src/components/bug/display/display-dropdown.tsx +2 -2
- package/src/components/bug/filters/add-filter-dropdown.tsx +1 -1
- package/src/components/bug/filters/applied-filters.tsx +1 -1
- package/src/components/bug/filters/filter-row.tsx +1 -1
- package/src/components/bug/filters/filter-toggle.tsx +2 -2
- package/src/components/bug/filters/filter-value-input.tsx +1 -1
- package/src/components/bug/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/bug/inline-editors/date-editor.tsx +1 -1
- package/src/components/bug/inline-editors/inline-trigger.tsx +2 -2
- package/src/components/bug/peek-panel.tsx +1 -1
- package/src/components/bug/reproduce-steps-editor.tsx +3 -3
- package/src/components/bug/settings/bug-settings-panel.tsx +4 -4
- package/src/components/bug/settings/collect-page-manager.tsx +9 -9
- package/src/components/bug/settings/install-commands.tsx +3 -3
- package/src/components/bug/settings/token-list.tsx +7 -7
- package/src/components/bug/settings/webhook-manager.tsx +9 -9
- package/src/components/bug/views/bug-list/batch-toolbar.tsx +4 -4
- package/src/components/bug/views/bug-list/group.tsx +2 -2
- package/src/components/bug/views/bug-list/index.tsx +1 -1
- package/src/components/bug/views/bug-list/inline-bug-creator.tsx +1 -1
- package/src/components/bug/views/bug-list/row.tsx +2 -2
- package/src/components/bug/views/view-switcher.tsx +1 -1
- package/src/components/changelog/changelog-page.tsx +1 -1
- package/{allblue-ui/src → src}/components/confirm-dialog.tsx +2 -2
- package/src/components/design/canvas/panels/appearance-text-panel.tsx +3 -3
- package/src/components/design/canvas/panels/controls/add-button.tsx +1 -1
- package/src/components/design/canvas/panels/controls/constraint-select.tsx +1 -1
- package/src/components/design/canvas/panels/controls/gradient-editor.tsx +1 -1
- package/src/components/design/canvas/panels/controls/pattern-params.tsx +2 -2
- package/src/components/design/canvas/panels/controls/rows.tsx +3 -3
- package/src/components/design/canvas/panels/controls/shader-picker.tsx +3 -3
- package/src/components/design/canvas/panels/controls/text-style-button.tsx +1 -1
- package/src/components/design/canvas/panels/controls/toolbar-button.tsx +2 -2
- package/src/components/design/canvas/panels/frame-property-panel.tsx +3 -3
- package/src/components/design/canvas/panels/layer-panel.tsx +2 -2
- package/src/components/design/canvas/panels/paint-lists-panel.tsx +1 -1
- package/src/components/design/canvas/panels/property-panel.tsx +3 -3
- package/src/components/design/canvas/panels/shape-corners-panel.tsx +2 -2
- package/src/components/design/canvas/panels/toolbar.tsx +4 -4
- package/src/components/design/canvas/panels/transform-layout-panel.tsx +3 -3
- package/src/components/design/canvas/react/__tests__/hooks.test.tsx +2 -2
- package/src/components/design/canvas/react/hooks.ts +1 -1
- package/src/components/design/canvas/react/workbench.tsx +2 -2
- package/src/components/design/editor/annotation/annotation-node/annotation-node-view.tsx +1 -1
- package/src/components/design/editor/collaboration/__tests__/design-agent-panel-regenerate.test.tsx +1 -1
- package/src/components/design/editor/collaboration/__tests__/design-agent-panel-stream.test.tsx +2 -2
- package/src/components/design/editor/collaboration/agent-input.tsx +2 -2
- package/src/components/design/editor/collaboration/design-agent-panel.tsx +2 -2
- package/src/components/design/editor/collaboration/design-comment-review-panel.tsx +4 -4
- package/src/components/design/editor/dashboard/create-design-dialog.tsx +3 -3
- package/src/components/design/editor/dashboard/design-dashboard.tsx +4 -4
- package/src/components/design/editor/layout/__tests__/context-menu.test.tsx +1 -1
- package/src/components/design/editor/layout/__tests__/no-page-save-toast.test.tsx +2 -2
- package/src/components/design/editor/layout/__tests__/persistence-restore.test.tsx +1 -1
- package/src/components/design/editor/layout/__tests__/ssr-localstorage-smoke.test.tsx +1 -1
- package/src/components/design/editor/layout/context-menu.tsx +1 -1
- package/src/components/design/editor/layout/design-doc-panel.tsx +2 -2
- package/src/components/design/editor/layout/design-editor-layout.tsx +1 -1
- package/src/components/design/editor/layout/design-navigation.tsx +4 -4
- package/src/components/design/editor/layout/design-right-sidebar.tsx +2 -2
- package/src/components/design/editor/layout/hooks/use-design-auto-save.ts +1 -1
- package/src/components/design/editor/pages/design-detail-page.tsx +1 -1
- package/src/components/design/editor/pages/share-design-page.tsx +1 -1
- package/src/components/design/editor/pages-tree/design-tree-page-tab.tsx +3 -3
- package/src/components/design/editor/share/design-share-panel/components/single-version-share-card.tsx +6 -6
- package/src/components/design/editor/share/design-share-panel/index.tsx +9 -9
- package/src/components/design/editor/share/share-comment-panel.tsx +4 -4
- package/src/components/design/editor/share/share-nav-bar.tsx +3 -3
- package/src/components/design/editor/share/share-password-gate.tsx +3 -3
- package/src/components/design/editor/share/share-review-panel.tsx +4 -4
- package/src/components/design/editor/versions/components/create-version-dialog.tsx +2 -2
- package/src/components/design/editor/versions/components/delete-version-dialog.tsx +2 -2
- package/src/components/design/editor/versions/components/edit-version-dialog.tsx +2 -2
- package/src/components/design/editor/versions/components/page-tree-selector.tsx +4 -4
- package/src/components/design/editor/versions/components/page-version-timeline.tsx +2 -2
- package/src/components/design/editor/versions/page-version-panel.tsx +5 -5
- package/src/components/design/editor/versions/page-version-tree.tsx +3 -3
- package/src/components/design/editor/versions/restore-version-dialog.tsx +2 -2
- package/src/components/error/global-error-boundary.tsx +1 -1
- package/src/components/forms/app-array-field.tsx +1 -1
- package/src/components/forms/app-checkbox.tsx +1 -1
- package/src/components/forms/app-combobox.tsx +1 -1
- package/src/components/forms/app-date-picker.tsx +1 -1
- package/src/components/forms/app-field.tsx +1 -1
- package/src/components/forms/app-form-dialog.tsx +2 -2
- package/src/components/forms/app-input.tsx +1 -1
- package/src/components/forms/app-section.tsx +1 -1
- package/src/components/forms/app-select.tsx +1 -1
- package/src/components/forms/app-switch.tsx +1 -1
- package/src/components/forms/app-textarea.tsx +1 -1
- package/src/components/forms/hooks/use-form-submit.ts +1 -1
- package/src/components/harness/__tests__/media-route.test.tsx +1 -1
- package/src/components/harness/agent-preset-picker.tsx +3 -3
- package/src/components/harness/ai-chat-history/components/conversation-header.tsx +2 -2
- package/src/components/harness/ai-chat-history/components/conversation-item.tsx +3 -3
- package/src/components/harness/ai-chat-history/components/conversation-search.tsx +1 -1
- package/src/components/harness/ai-chat-history/components/empty-state.tsx +1 -1
- package/src/components/harness/ai-chat-history/index.tsx +2 -2
- package/src/components/harness/ai-citations/components/citation-item.tsx +1 -1
- package/src/components/harness/ai-citations/components/source-components.tsx +1 -1
- package/src/components/harness/ai-citations/index.tsx +1 -1
- package/src/components/harness/ai-thinking.tsx +1 -1
- package/src/components/harness/code/file-tree.tsx +1 -1
- package/src/components/harness/code/preview-panel.tsx +2 -2
- package/src/components/harness/code/workspace-picker.tsx +3 -3
- package/src/components/harness/composer/harness-composer.tsx +3 -3
- package/src/components/harness/composer/model-select.tsx +1 -1
- package/src/components/harness/connection-indicator.tsx +1 -1
- package/src/components/harness/gallery/gallery-card.tsx +5 -5
- package/src/components/harness/gallery/gallery-grid.tsx +5 -5
- package/src/components/harness/gallery/lightbox-viewer.tsx +2 -2
- package/src/components/harness/gallery/retranscribe-dialog.tsx +5 -5
- package/src/components/harness/harness-workbench-page.tsx +2 -2
- package/src/components/harness/image-lightbox.tsx +1 -1
- package/src/components/harness/interrupt-approval.tsx +2 -2
- package/src/components/harness/message-actions.tsx +2 -2
- package/src/components/harness/plan-approval-card.tsx +2 -2
- package/src/components/harness/plugin-define-approval.tsx +2 -2
- package/src/components/harness/plugin-panel.tsx +3 -3
- package/src/components/harness/queue-bar.tsx +1 -1
- package/src/components/harness/queue-item.tsx +1 -1
- package/src/components/harness/retry-countdown-bar.tsx +1 -1
- package/src/components/hextaui/ai-citations.tsx +1 -1
- package/src/components/hextaui/ai-file-upload.tsx +2 -2
- package/src/components/hextaui/ai-message.tsx +2 -2
- package/src/components/hextaui/ai-thinking.tsx +1 -1
- package/src/components/hotkeys/shortcuts-panel.tsx +2 -2
- package/src/components/iteration/auto-schedule-dialog.tsx +5 -5
- package/src/components/iteration/create-iteration-dialog.tsx +5 -5
- package/src/components/iteration/iteration-editor.tsx +3 -3
- package/src/components/knowledge/dialog/knowledge-form-dialog.tsx +3 -3
- package/src/components/knowledge/doc-properties.tsx +2 -2
- package/src/components/knowledge/kb-filter-popover.tsx +2 -2
- package/src/components/knowledge/knowledge-tag-input.tsx +2 -2
- package/src/components/knowledge/knowledge-toolbar.tsx +9 -9
- package/src/components/knowledge/knowledge-tree-item.tsx +5 -5
- package/src/components/knowledge/knowledge-tree.tsx +3 -3
- package/src/components/{knowledge/public → knowledge-public}/bookmark-card.tsx +3 -3
- package/src/components/{knowledge/public → knowledge-public}/bookmark-form-dialog.tsx +10 -10
- package/src/components/{knowledge/public → knowledge-public}/knowledge-card.tsx +2 -2
- package/src/components/{knowledge/public → knowledge-public}/knowledge-form-dialog.tsx +15 -15
- package/src/components/{knowledge/public → knowledge-public}/knowledge-search-bar.tsx +2 -2
- package/src/components/{knowledge/public → knowledge-public}/legal-compliance-editor.tsx +7 -7
- package/src/components/{knowledge/public → knowledge-public}/markdown-editor.tsx +2 -2
- package/src/components/{knowledge/public → knowledge-public}/sharers-avatar-group.tsx +1 -1
- package/src/components/layout/sidebar-03/__tests__/nav-workspace.test.tsx +2 -2
- package/src/components/layout/sidebar-03/__tests__/user-menu-anonymous.test.tsx +3 -3
- package/src/components/layout/sidebar-03/app-sidebar.tsx +1 -1
- package/src/components/layout/sidebar-03/index.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-anyhub.tsx +2 -2
- package/src/components/layout/sidebar-03/nav-knowledge.tsx +4 -4
- package/src/components/layout/sidebar-03/nav-main.tsx +4 -4
- package/src/components/layout/sidebar-03/nav-notifications.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-search-trigger.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-secondary.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-workspace.tsx +2 -2
- package/src/components/layout/sidebar-03/team-switcher.tsx +2 -2
- package/src/components/layout/sidebar-03/user-menu.tsx +3 -3
- package/src/components/notifications/settings-notifications.tsx +6 -6
- package/src/components/notifications/team-notifications.tsx +6 -6
- package/src/components/project/create-project-dialog.tsx +4 -4
- package/src/components/project/invite-member-dialog.tsx +6 -6
- package/src/components/project/project-member-manager.tsx +5 -5
- package/src/components/project/project-module-card.tsx +1 -1
- package/src/components/settings/ai/api-key-field.tsx +3 -3
- package/src/components/settings/ai/byok-section.tsx +2 -2
- package/src/components/settings/ai/create-custom-model-dialog.tsx +5 -5
- package/src/components/settings/ai/create-custom-provider-dialog.tsx +5 -5
- package/src/components/settings/ai/local-agent-panel.tsx +3 -3
- package/src/components/settings/ai/model-card.tsx +2 -2
- package/src/components/settings/ai/model-manager.tsx +4 -4
- package/src/components/settings/ai/provider-card.tsx +1 -1
- package/src/components/settings/ai/provider-detail-form.tsx +6 -6
- package/src/components/settings/ai/provider-grid.tsx +3 -3
- package/src/components/settings/ai/source/model-source-picker.tsx +2 -2
- package/src/components/settings/language-selector.tsx +2 -2
- package/src/components/settings/personal-team/account/account-client.tsx +2 -2
- package/src/components/settings/personal-team/account/avatar/notion-avatar-editor.tsx +3 -3
- package/src/components/settings/personal-team/account/settings-profile.tsx +8 -8
- package/src/components/settings/personal-team/team/invitation-cards/invitation-badges.tsx +1 -1
- package/src/components/settings/personal-team/team/invitation-cards/invitation-history-list.tsx +5 -5
- package/src/components/settings/personal-team/team/invitation-cards/invite-email-card.tsx +5 -5
- package/src/components/settings/personal-team/team/invitation-cards/invite-link-card.tsx +3 -3
- package/src/components/settings/personal-team/team/team-client.tsx +6 -6
- package/src/components/settings/personal-team/team/team-invitations.tsx +1 -1
- package/src/components/settings/personal-team/team/team-member-list.tsx +7 -7
- package/src/components/shared-kit/avatars/notion-avatar.tsx +109 -3
- package/src/components/shared-kit/avatars/user-avatar.tsx +65 -3
- package/src/components/shared-kit/data-viz/contribution-graph-tooltip.tsx +1 -1
- package/src/components/shared-kit/dialogs/name-confirm-dialog.tsx +5 -5
- package/src/components/shared-kit/i18n/language-switcher.tsx +2 -2
- package/src/components/shared-kit/icons/lucide-icon-picker/index.tsx +1 -1
- package/src/components/shared-kit/icons/lucide-icon-picker/panel.tsx +1 -1
- package/src/components/shared-kit/theme/theme-surface.tsx +4 -4
- package/src/components/shared-kit/theme/theme-toggle.tsx +1 -1
- package/src/components/shared-kit/timezone/timezone-select.tsx +1 -1
- package/src/components/story/__tests__/story-list-view-restore.test.tsx +2 -2
- package/src/components/story/__tests__/story-list-view-ssr.test.tsx +2 -2
- package/src/components/story/ai/handlers/more-popover.tsx +2 -2
- package/src/components/story/ai/handlers/stream-text.ts +1 -1
- package/src/components/story/ai/prototype-dialog.tsx +4 -4
- package/src/components/story/ai/split-dialog.tsx +6 -6
- package/src/components/story/ai/story-ai-panel.tsx +4 -4
- package/src/components/story/ai/story-ai-preview-list.tsx +4 -4
- package/src/components/story/ai/story-ai-toolbar.tsx +3 -3
- package/src/components/story/columns.tsx +1 -1
- package/src/components/story/create-story-dialog.tsx +4 -4
- package/src/components/story/detail/__tests__/associated-attachments-panel.test.tsx +1 -1
- package/src/components/story/detail/__tests__/categories.test.tsx +1 -1
- package/src/components/story/detail/__tests__/dependencies-button.test.tsx +1 -1
- package/src/components/story/detail/comment-input.tsx +3 -3
- package/src/components/story/detail/comment-item.tsx +3 -3
- package/src/components/story/detail/reaction-bar.tsx +1 -1
- package/src/components/story/detail/story-detail-body.tsx +5 -5
- package/src/components/story/detail/story-detail-toolbar/__tests__/related-test-cases.test.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar/associated-attachments-panel.tsx +4 -4
- package/src/components/story/detail/story-detail-toolbar/categories.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar/children.tsx +5 -5
- package/src/components/story/detail/story-detail-toolbar/dependencies.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar/dependency-panel.tsx +3 -3
- package/src/components/story/detail/story-detail-toolbar/related-test-cases.tsx +1 -1
- package/src/components/story/detail/story-detail-toolbar.tsx +2 -2
- package/src/components/story/detail/story-properties.tsx +1 -1
- package/src/components/story/display/__tests__/display-dropdown.test.tsx +1 -1
- package/src/components/story/display/display-dropdown.tsx +3 -3
- package/src/components/story/filters/add-filter-dropdown.tsx +1 -1
- package/src/components/story/filters/applied-filters.tsx +1 -1
- package/src/components/story/filters/filter-row.tsx +1 -1
- package/src/components/story/filters/filter-toggle.tsx +2 -2
- package/src/components/story/inline-editors/__tests__/dependency-type-select.test.tsx +2 -2
- package/src/components/story/inline-editors/__tests__/labels-editor.test.tsx +2 -2
- package/src/components/story/inline-editors/__tests__/priority-editor.test.tsx +1 -1
- package/src/components/story/inline-editors/__tests__/state-editor.test.tsx +1 -1
- package/src/components/story/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/story/inline-editors/date-editor.tsx +1 -1
- package/src/components/story/inline-editors/dependency-type-select.tsx +2 -2
- package/src/components/story/inline-editors/inline-trigger.tsx +2 -2
- package/src/components/story/inline-editors/labels-editor.tsx +2 -2
- package/src/components/story/inline-editors/parent-story-editor.tsx +1 -1
- package/src/components/story/inline-editors/story-select-dialog.tsx +6 -6
- package/src/components/story/peek-panel.tsx +2 -2
- package/src/components/story/relations/__tests__/attachment-manage-dialog.test.tsx +4 -4
- package/src/components/story/relations/__tests__/knowledge-select-dialog.test.tsx +2 -2
- package/src/components/story/relations/__tests__/link-manage-dialog.test.tsx +1 -1
- package/src/components/story/relations/attachment-manage-dialog.tsx +4 -4
- package/src/components/story/relations/knowledge-select-dialog.tsx +5 -5
- package/src/components/story/relations/link-manage-dialog.tsx +5 -5
- package/src/components/story/relations/story-ref-row.tsx +5 -5
- package/src/components/story/search-popover.tsx +1 -1
- package/src/components/story/story-list-table.tsx +1 -1
- package/src/components/story/story-list-view.tsx +2 -2
- package/src/components/story/story-panel-header.tsx +5 -5
- package/src/components/story/story-toolbar.tsx +4 -4
- package/src/components/story/transfer-story-popover.tsx +4 -4
- package/src/components/story/views/calendar-view.tsx +3 -3
- package/src/components/story/views/create-view-dialog.tsx +2 -2
- package/src/components/story/views/kanban-board.tsx +2 -2
- package/src/components/story/views/story-list/__tests__/batch-toolbar.test.tsx +1 -1
- package/src/components/story/views/story-list/__tests__/group-header.test.tsx +1 -1
- package/src/components/story/views/story-list/batch-preview-dialog.tsx +7 -7
- package/src/components/story/views/story-list/batch-toolbar.tsx +3 -3
- package/src/components/story/views/story-list/group.tsx +2 -2
- package/src/components/story/views/story-list/index.tsx +1 -1
- package/src/components/story/views/story-list/row.tsx +1 -1
- package/src/components/story/views/timeline-view.tsx +3 -3
- package/src/components/story/views/view-list-section.tsx +1 -1
- package/src/components/story/views/view-selector-button.tsx +2 -2
- package/src/components/story/views/view-switcher.tsx +1 -1
- package/src/components/tags/nav-tag.tsx +6 -6
- package/src/components/tags/tag-badge.tsx +1 -1
- package/src/components/tags/tag-manager.tsx +5 -5
- package/src/components/tags/tag-selector.tsx +1 -1
- package/src/components/testcase/__tests__/artifact-panel.test.tsx +1 -1
- package/src/components/testcase/__tests__/case-row.test.tsx +2 -2
- package/src/components/testcase/__tests__/convert-bug.test.tsx +2 -2
- package/src/components/testcase/__tests__/folder-tree.test.tsx +2 -2
- package/src/components/testcase/__tests__/generate-dialog.test.tsx +1 -1
- package/src/components/testcase/__tests__/review-layout.test.tsx +1 -1
- package/src/components/testcase/__tests__/step-editor.test.tsx +2 -2
- package/src/components/testcase/ai/generate-dialog.tsx +4 -4
- package/src/components/testcase/automation/artifact-diff.tsx +1 -1
- package/src/components/testcase/automation/artifact-panel.tsx +6 -6
- package/src/components/testcase/automation/verify-report.tsx +1 -1
- package/src/components/testcase/create-testcase-dialog.tsx +5 -5
- package/src/components/testcase/detail/case-detail-body.tsx +1 -1
- package/src/components/testcase/detail/properties.tsx +1 -1
- package/src/components/testcase/detail/story-link-editor.tsx +1 -1
- package/src/components/testcase/filters/index.tsx +2 -2
- package/src/components/testcase/folder-tree.tsx +2 -2
- package/src/components/testcase/generation/batch-actions.tsx +1 -1
- package/src/components/testcase/generation/draft-card.tsx +5 -5
- package/src/components/testcase/generation/review-layout.tsx +2 -2
- package/src/components/testcase/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/testcase/list/case-row.tsx +1 -1
- package/src/components/testcase/list/grouped-list.tsx +1 -1
- package/src/components/testcase/list-view.tsx +1 -1
- package/src/components/testcase/peek-panel.tsx +4 -4
- package/src/components/testcase/plans/add-to-plan-bar.tsx +2 -2
- package/src/components/testcase/plans/add-to-plan-dialog.tsx +4 -4
- package/src/components/testcase/plans/create-plan-dialog.tsx +5 -5
- package/src/components/testcase/plans/plan-detail.tsx +7 -7
- package/src/components/testcase/plans/plan-list.tsx +3 -3
- package/src/components/testcase/plans/plan-state-badge.tsx +1 -1
- package/src/components/testcase/runs/case-checklist.tsx +3 -3
- package/src/components/testcase/runs/convert-bug-button.tsx +1 -1
- package/src/components/testcase/runs/failure-list.tsx +2 -2
- package/src/components/testcase/runs/pending-bugs.tsx +3 -3
- package/src/components/testcase/runs/run-header.tsx +1 -1
- package/src/components/testcase/runs/step-row.tsx +2 -2
- package/src/components/testcase/step-editor.tsx +2 -2
- package/src/components/testcase/table/table-view.tsx +1 -1
- package/src/components/testcase/testcase-toolbar.tsx +3 -3
- package/src/components/testcase/views/create-view-dialog.tsx +2 -2
- package/src/components/testcase/views/view-selector-button.tsx +2 -2
- package/src/components/testcase/views/view-switcher.tsx +1 -1
- package/src/components/tiptap/mindmap/mind-map-context-menu.tsx +1 -1
- package/src/components/tiptap/mindmap/mind-map-controls.tsx +2 -2
- package/src/components/tiptap/mindmap/mindmap-fullscreen-dialog.tsx +1 -1
- package/src/components/tiptap/notion-like/notion-like-editor-header.tsx +2 -2
- package/src/components/tiptap/ui/ai-menu/ai-menu.tsx +1 -1
- package/src/components/tiptap/ui/mention-dropdown-menu/mention-dropdown-menu.tsx +1 -1
- package/src/components/ui/__tests__/select.test.tsx +1 -1
- package/src/components/ui/button-group.tsx +1 -1
- package/src/components/ui/calendar.tsx +1 -1
- package/src/components/ui/command.tsx +2 -2
- package/src/components/ui/item.tsx +1 -1
- package/src/components/ui/message-scroller.tsx +1 -1
- package/src/components/ui/questionnaire.tsx +1 -1
- package/{allblue-ui/src → src/components}/ui/sidebar.tsx +1 -1
- package/src/components/workspace/__tests__/dialogs/create-workspace-dialog.test.tsx +3 -3
- package/src/components/workspace/__tests__/dialogs/delete-workspace-options.test.tsx +3 -3
- package/src/components/workspace/__tests__/dialogs/edit-workspace-dialog.test.tsx +3 -3
- package/src/components/workspace/__tests__/header/workspace-header.test.tsx +3 -3
- package/src/components/workspace/__tests__/kb/workspace-kb-card.test.tsx +2 -2
- package/src/components/workspace/__tests__/members/workspace-members-manager.test.tsx +5 -5
- package/src/components/workspace/__tests__/projects/workspace-project-list.test.tsx +2 -2
- package/src/components/workspace/dialogs/create-workspace-dialog.tsx +3 -3
- package/src/components/workspace/dialogs/delete-workspace-options.tsx +3 -3
- package/src/components/workspace/dialogs/edit-workspace-dialog.tsx +3 -3
- package/src/components/workspace/header/workspace-header.tsx +3 -3
- package/src/components/workspace/kb/workspace-kb-card.tsx +6 -6
- package/src/components/workspace/kb/workspace-kb-manage-dialog.tsx +5 -5
- package/src/components/workspace/kb/workspace-quick-doc-dialog.tsx +6 -6
- package/src/components/workspace/members/workspace-members-manager.tsx +6 -6
- package/src/components/workspace/projects/workspace-project-list.tsx +2 -2
- package/src/hooks/use-notifications.ts +1 -1
- package/src/lib/changelog/sdk-versions.ts +1 -1
- package/src/lib/collections/reference/bookmark-categories-collection.ts +1 -1
- package/src/lib/datetime.ts +209 -4
- package/src/lib/sanitize.ts +17 -19
- package/src/lib/toast-error.ts +1 -1
- package/src/providers/index.tsx +2 -2
- package/src/routes/__desktop/onboarding/route.lazy.tsx +6 -6
- package/src/routes/__root.tsx +2 -2
- package/src/routes/_login/forgot-password/route.lazy.tsx +1 -1
- package/src/routes/_login/login/route.lazy.tsx +4 -4
- package/src/routes/_login/register/route.lazy.tsx +2 -2
- package/src/routes/_login/reset-password/route.lazy.tsx +1 -1
- package/src/routes/_login/verify-email/route.lazy.tsx +1 -1
- package/src/routes/_nav/-components/nav-not-found.tsx +1 -1
- package/src/routes/_nav/bugs/$bugId/route.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/activity-feed.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/quick-actions.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/stats-grid.tsx +1 -1
- package/src/routes/_nav/dashboard/route.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/-components/knowledge-workspace-pending.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/doc/$docId/route.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/route.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/bookmarks/$id.lazy.tsx +12 -12
- package/src/routes/_nav/knowledge/bookmarks/index.lazy.tsx +11 -11
- package/src/routes/_nav/knowledge/compliance/$id.lazy.tsx +12 -12
- package/src/routes/_nav/knowledge/compliance/edit/$id.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/compliance/index.lazy.tsx +8 -8
- package/src/routes/_nav/knowledge/dictionaries/$id.lazy.tsx +7 -7
- package/src/routes/_nav/knowledge/dictionaries/index.lazy.tsx +6 -6
- package/src/routes/_nav/knowledge/index.lazy.tsx +6 -6
- package/src/routes/_nav/knowledge/laws/$id.lazy.tsx +12 -12
- package/src/routes/_nav/knowledge/laws/edit/$id.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/laws/index.lazy.tsx +9 -9
- package/src/routes/_nav/knowledge/summary/index.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/$storyId/route.lazy.tsx +2 -2
- package/src/routes/_nav/projects/$projectId/index.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/iterations/$iterationId/route.lazy.tsx +5 -5
- package/src/routes/_nav/projects/$projectId/iterations/index.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/settings/route.lazy.tsx +8 -8
- package/src/routes/_nav/settings/ai/hosted/route.lazy.tsx +2 -2
- package/src/routes/_nav/settings/ai/index/route.lazy.tsx +1 -1
- package/src/routes/_nav/settings/billing/route.lazy.tsx +1 -1
- package/src/routes/_nav/settings/connection/route.lazy.tsx +3 -3
- package/src/routes/_nav/settings/general/route.lazy.tsx +3 -3
- package/src/routes/_nav/settings/privacy/route.lazy.tsx +5 -5
- package/src/routes/_nav/settings/route.tsx +1 -1
- package/src/routes/_nav/stories/-components/story-detail-skeleton.tsx +1 -1
- package/src/routes/_nav/test-cases/$caseId/route.tsx +1 -1
- package/src/routes/_nav/test-cases/generation/$generationId/route.tsx +1 -1
- package/src/routes/_nav/test-cases/plans/$planId/route.tsx +1 -1
- package/src/routes/_nav/test-cases/runs/$runId/route.tsx +1 -1
- package/src/routes/_nav/workspaces/$workspaceId/activities/route.lazy.tsx +1 -1
- package/src/routes/_nav/workspaces/$workspaceId/settings/route.lazy.tsx +6 -6
- package/src/routes/_nav/workspaces/index.lazy.tsx +5 -5
- package/src/routes/api/knowledge/sync-github.ts +1 -1
- package/src/routes/invite/$token/route.lazy.tsx +2 -2
- package/src/routes/share/compliance/$id/route.lazy.tsx +5 -5
- package/src/routes/share/compliance/$id/route.tsx +1 -1
- package/src/routes/share/law/$id/route.lazy.tsx +5 -5
- package/src/routes/share/law/$id/route.tsx +1 -1
- package/src/server/__tests__/agent-client-graph.test.ts +1 -1
- package/src/server/serverFns/__tests__/read-write-merge.test.ts +2 -2
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/create.ts +3 -3
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/refresh-favicon.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/sync-github.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/update.ts +3 -3
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/create.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/update.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/create.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/update.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/create.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/detail.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/list.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/share.ts +1 -1
- package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/update.ts +1 -1
- package/src/start.ts +1 -1
- package/src/styles/globals.css +0 -1
- package/allblue-ui/package.json +0 -6
- package/allblue-ui/src/components/notion-avatar.tsx +0 -126
- package/allblue-ui/src/components/user-avatar.tsx +0 -82
- package/allblue-ui/src/data-table/data-table-pagination.tsx +0 -121
- package/allblue-ui/src/data-table/data-table.tsx +0 -218
- package/allblue-ui/src/data-table/table-detail-layout.tsx +0 -97
- package/allblue-ui/src/index.ts +0 -31
- package/allblue-ui/src/lib/avatar.ts +0 -41
- package/allblue-ui/src/lib/datetime.ts +0 -226
- package/allblue-ui/src/lib/sanitize.ts +0 -18
- package/allblue-ui/src/lib/utils.ts +0 -1
- /package/{allblue-ui/src → src}/components/infinite-scroll-sentinel.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/category-icon.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/chip-utils.ts +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/knowledge-card-grid.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/knowledge-filters.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/markdown-view.tsx +0 -0
- /package/src/components/{knowledge/public → knowledge-public}/tag-filter.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/alert-dialog.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/alert.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/avatar.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/badge.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/button.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/card.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/checkbox.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/collapsible.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/dialog.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/dropdown-menu.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/field.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/input-group.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/input.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/label.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/pagination.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/select.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/separator.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/sheet.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/skeleton.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/switch.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/table.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/textarea.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/toast.tsx +0 -0
- /package/{allblue-ui/src → src/components}/ui/tooltip.tsx +0 -0
- /package/{allblue-ui/src → src}/hooks/use-load-more.ts +0 -0
- /package/{allblue-ui/src → src}/hooks/use-mobile.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/canonical-id.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/favicon.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/github-sync.ts +0 -0
- /package/src/server/{knowledge/public → knowledge-public}/share-merge.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/categories.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/favorite.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/bookmarks/unshare.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/public.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/compliance/unshare.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/dictionary/unshare.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/entity-tags.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/favorite.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/delete.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/public.ts +0 -0
- /package/src/server/serverFns/{knowledge/public → knowledge-public}/legal/unshare.ts +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allbluecn/web-app",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"public",
|
|
9
|
-
"vite.shared.ts"
|
|
10
|
-
"allblue-ui"
|
|
9
|
+
"vite.shared.ts"
|
|
11
10
|
],
|
|
12
11
|
"exports": {
|
|
13
12
|
"./vite.shared": {
|
|
@@ -279,8 +278,7 @@
|
|
|
279
278
|
"vite": "^8.3.3",
|
|
280
279
|
"vitest": "5.0.0",
|
|
281
280
|
"vitest-browser-react": "2.3.0",
|
|
282
|
-
"wrangler": "^4.99.0"
|
|
283
|
-
"@allbluecn/ui": "0.1.0"
|
|
281
|
+
"wrangler": "^4.99.0"
|
|
284
282
|
},
|
|
285
283
|
"prisma": {
|
|
286
284
|
"version": "7.8.0",
|
|
@@ -20,7 +20,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest'
|
|
|
20
20
|
const fetchMock = vi.fn()
|
|
21
21
|
vi.stubGlobal('fetch', fetchMock)
|
|
22
22
|
|
|
23
|
-
import { resolveFavicon } from '@/server/knowledge
|
|
23
|
+
import { resolveFavicon } from '@/server/knowledge-public/favicon'
|
|
24
24
|
|
|
25
25
|
beforeEach(() => vi.clearAllMocks())
|
|
26
26
|
|
|
@@ -20,7 +20,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest'
|
|
|
20
20
|
const fetchMock = vi.fn()
|
|
21
21
|
vi.stubGlobal('fetch', fetchMock)
|
|
22
22
|
|
|
23
|
-
import { fetchGithubData } from '@/server/knowledge
|
|
23
|
+
import { fetchGithubData } from '@/server/knowledge-public/github-sync'
|
|
24
24
|
|
|
25
25
|
beforeEach(() => vi.clearAllMocks())
|
|
26
26
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi, beforeEach } from 'vitest'
|
|
19
|
-
import { shareToPublic } from '@/server/knowledge
|
|
19
|
+
import { shareToPublic } from '@/server/knowledge-public/share-merge'
|
|
20
20
|
|
|
21
21
|
vi.mock('@allbluecn/database', () => ({
|
|
22
22
|
prisma: {
|
|
@@ -22,7 +22,7 @@ import { expect, test } from 'vitest'
|
|
|
22
22
|
import { page } from 'vitest/browser'
|
|
23
23
|
import { render } from 'vitest-browser-react'
|
|
24
24
|
import { ThemeProvider } from 'next-themes'
|
|
25
|
-
import { TooltipProvider } from '
|
|
25
|
+
import { TooltipProvider } from '@/components/ui/tooltip'
|
|
26
26
|
import { ThemeSurface } from '@/components/shared-kit/theme/theme-surface'
|
|
27
27
|
|
|
28
28
|
test('theme surface light baseline', async () => {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { useMemo } from 'react'
|
|
3
3
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
4
4
|
import { Link2, Loader2 } from 'lucide-react'
|
|
5
|
-
import { toast } from '
|
|
5
|
+
import { toast } from '@/components/ui/toast'
|
|
6
6
|
import {
|
|
7
7
|
Select,
|
|
8
8
|
SelectContent,
|
|
9
9
|
SelectItem,
|
|
10
10
|
SelectTrigger,
|
|
11
11
|
SelectValue,
|
|
12
|
-
} from '
|
|
13
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '
|
|
12
|
+
} from '@/components/ui/select'
|
|
13
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
|
14
14
|
import { listAgentsFn } from '@/server/serverFns/agents/agent-crud'
|
|
15
15
|
import { listBindingsFn, upsertBindingFn } from '@/server/serverFns/agents/bindings'
|
|
16
16
|
import { BIZ_AGENT_KEYS, BIZ_KEY_LABELS } from '@/server/ai-gateway/runs/biz-keys'
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
DropdownMenuContent,
|
|
12
12
|
DropdownMenuItem,
|
|
13
13
|
DropdownMenuTrigger,
|
|
14
|
-
} from '
|
|
15
|
-
import { Badge } from '
|
|
16
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '
|
|
17
|
-
import { Button } from '
|
|
14
|
+
} from '@/components/ui/dropdown-menu'
|
|
15
|
+
import { Badge } from '@/components/ui/badge'
|
|
16
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
|
17
|
+
import { Button } from '@/components/ui/button'
|
|
18
18
|
import type { AgentData } from './agents-page'
|
|
19
19
|
import { m } from "@/paraglide/messages.js";
|
|
20
20
|
|
|
@@ -3,7 +3,7 @@ import { useQuery } from '@tanstack/react-query'
|
|
|
3
3
|
|
|
4
4
|
import { m } from '@/paraglide/messages.js'
|
|
5
5
|
import { useForm } from '@tanstack/react-form'
|
|
6
|
-
import { toast } from '
|
|
6
|
+
import { toast } from '@/components/ui/toast'
|
|
7
7
|
import {
|
|
8
8
|
Dialog,
|
|
9
9
|
DialogContent,
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
DialogFooter,
|
|
12
12
|
DialogHeader,
|
|
13
13
|
DialogTitle,
|
|
14
|
-
} from '
|
|
15
|
-
import { Button } from '
|
|
16
|
-
import { Input } from '
|
|
17
|
-
import { Textarea } from '
|
|
18
|
-
import { Label } from '
|
|
19
|
-
import { Badge } from '
|
|
20
|
-
import { Checkbox } from '
|
|
21
|
-
import { Switch } from '
|
|
14
|
+
} from '@/components/ui/dialog'
|
|
15
|
+
import { Button } from '@/components/ui/button'
|
|
16
|
+
import { Input } from '@/components/ui/input'
|
|
17
|
+
import { Textarea } from '@/components/ui/textarea'
|
|
18
|
+
import { Label } from '@/components/ui/label'
|
|
19
|
+
import { Badge } from '@/components/ui/badge'
|
|
20
|
+
import { Checkbox } from '@/components/ui/checkbox'
|
|
21
|
+
import { Switch } from '@/components/ui/switch'
|
|
22
22
|
import {
|
|
23
23
|
Plus,
|
|
24
24
|
X,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
SelectItem,
|
|
7
7
|
SelectTrigger,
|
|
8
8
|
SelectValue,
|
|
9
|
-
} from '
|
|
9
|
+
} from '@/components/ui/select'
|
|
10
10
|
import { listAgentsFn } from '@/server/serverFns/agents/agent-crud'
|
|
11
11
|
import type { AgentData } from './agents-page'
|
|
12
12
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TabsList,
|
|
13
13
|
TabsTrigger,
|
|
14
14
|
} from '@/components/ui/tabs'
|
|
15
|
-
import { Button } from '
|
|
15
|
+
import { Button } from '@/components/ui/button'
|
|
16
16
|
import { FeatureGate } from '@/components/billing/feature-gate'
|
|
17
17
|
import { NameConfirmDialog } from '@/components/shared-kit/dialogs/name-confirm-dialog'
|
|
18
18
|
import { listAgentsFn } from '@/server/serverFns/agents/agent-crud'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useForm } from '@tanstack/react-form'
|
|
2
|
-
import { toast } from '
|
|
2
|
+
import { toast } from '@/components/ui/toast'
|
|
3
3
|
import {
|
|
4
4
|
Dialog,
|
|
5
5
|
DialogContent,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
DialogFooter,
|
|
8
8
|
DialogHeader,
|
|
9
9
|
DialogTitle,
|
|
10
|
-
} from '
|
|
11
|
-
import { Button } from '
|
|
12
|
-
import { Input } from '
|
|
13
|
-
import { Textarea } from '
|
|
10
|
+
} from '@/components/ui/dialog'
|
|
11
|
+
import { Button } from '@/components/ui/button'
|
|
12
|
+
import { Input } from '@/components/ui/input'
|
|
13
|
+
import { Textarea } from '@/components/ui/textarea'
|
|
14
14
|
import { createSkillFn, updateSkillFn } from '@/server/serverFns/agents/skill-crud'
|
|
15
15
|
import { skillFormSchema, type SkillFormValues } from './schemas/agent-form'
|
|
16
16
|
import { useAgentHandlers } from './use-agent-handlers'
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import type { FormEvent } from "react"
|
|
20
20
|
import { fireEvent, render, screen } from "@testing-library/react"
|
|
21
21
|
import { describe, expect, it, vi } from "vitest"
|
|
22
|
-
import { TooltipProvider } from "
|
|
22
|
+
import { TooltipProvider } from "@/components/ui/tooltip"
|
|
23
23
|
import { RightActionButtons } from "../ai-prompt-input/components/action-buttons"
|
|
24
24
|
|
|
25
25
|
function renderButton(props: { input?: string; isLoading?: boolean; onStop?: () => void }) {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import { useCallback } from "react";
|
|
20
20
|
import { useChat, fetchServerSentEvents } from "@tanstack/ai-react";
|
|
21
21
|
import { ScrollArea } from "@/components/ui/scroll-area";
|
|
22
|
-
import { Button } from "
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
23
|
import { cn } from "@/lib/utils";
|
|
24
24
|
import {
|
|
25
25
|
Loader2,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
Tooltip,
|
|
33
33
|
TooltipContent,
|
|
34
34
|
TooltipTrigger,
|
|
35
|
-
} from "
|
|
35
|
+
} from "@/components/ui/tooltip";
|
|
36
36
|
import { AIPromptInput, DEFAULT_ACTIONS } from "@/components/ai/ai-prompt-input";
|
|
37
37
|
import { filterImageFilesAndToast } from "@/components/ai/ai-prompt-input/image-filter";
|
|
38
38
|
import { useSelectedModel } from "@/lib/ai/use-selected-model";
|
|
@@ -42,7 +42,7 @@ import { ToolCallPartView } from "@/components/ai/tool-parts/tool-call-part";
|
|
|
42
42
|
import { ToolResultPartView } from "@/components/ai/tool-parts/tool-result-part";
|
|
43
43
|
import { stashSidebarDraft } from "@/lib/ai/chat-handoff";
|
|
44
44
|
import { useAttachments } from "@/components/harness/composer/attachments/use-attachments";
|
|
45
|
-
import { toast } from "
|
|
45
|
+
import { toast } from "@/components/ui/toast";
|
|
46
46
|
import { m } from "@/paraglide/messages.js";
|
|
47
47
|
|
|
48
48
|
export function AiChatPrompt({ hasAiKey }: { hasAiKey?: boolean | null }) {
|
|
@@ -30,20 +30,20 @@ import {
|
|
|
30
30
|
Send,
|
|
31
31
|
Square,
|
|
32
32
|
} from "lucide-react";
|
|
33
|
-
import { Button } from "
|
|
33
|
+
import { Button } from "@/components/ui/button";
|
|
34
34
|
import {
|
|
35
35
|
DropdownMenu,
|
|
36
36
|
DropdownMenuContent,
|
|
37
37
|
DropdownMenuItem,
|
|
38
38
|
DropdownMenuSeparator,
|
|
39
39
|
DropdownMenuTrigger,
|
|
40
|
-
} from "
|
|
40
|
+
} from "@/components/ui/dropdown-menu";
|
|
41
41
|
import { Toggle } from "@/components/ui/toggle";
|
|
42
42
|
import {
|
|
43
43
|
Tooltip,
|
|
44
44
|
TooltipContent,
|
|
45
45
|
TooltipTrigger,
|
|
46
|
-
} from "
|
|
46
|
+
} from "@/components/ui/tooltip";
|
|
47
47
|
import { m } from "@/paraglide/messages.js";
|
|
48
48
|
|
|
49
49
|
interface LeftActionButtonsProps {
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
SelectLabel,
|
|
26
26
|
SelectTrigger,
|
|
27
27
|
SelectValue,
|
|
28
|
-
} from "
|
|
28
|
+
} from "@/components/ui/select";
|
|
29
29
|
import { listEnabledModelsFn } from "@/server/serverFns/design/ai/providers";
|
|
30
30
|
import { m } from "@/paraglide/messages.js";
|
|
31
31
|
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
import { useCallback, useRef, useState } from "react";
|
|
20
20
|
import { Image as ImageIcon, Paperclip, X } from "lucide-react";
|
|
21
|
-
import { Button } from "
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
22
|
import type { Attachment } from "@/components/harness/composer/attachments/use-attachments";
|
|
23
|
-
import { Card, CardContent } from "
|
|
24
|
-
import { Textarea } from "
|
|
23
|
+
import { Card, CardContent } from "@/components/ui/card";
|
|
24
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
25
25
|
import { AgentModeSelect } from "./components/agent-mode-select";
|
|
26
26
|
import { LeftActionButtons, RightActionButtons } from "./components/action-buttons";
|
|
27
27
|
import { KbContextSelector } from "./components/kb-context-selector";
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
} from "lucide-react";
|
|
10
10
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { cn } from "@/lib/utils";
|
|
12
|
-
import { Badge } from "
|
|
13
|
-
import { Button } from "
|
|
12
|
+
import { Badge } from "@/components/ui/badge";
|
|
13
|
+
import { Button } from "@/components/ui/button";
|
|
14
14
|
import {
|
|
15
15
|
Card,
|
|
16
16
|
CardContent,
|
|
17
17
|
CardDescription,
|
|
18
18
|
CardHeader,
|
|
19
19
|
CardTitle,
|
|
20
|
-
} from "
|
|
20
|
+
} from "@/components/ui/card";
|
|
21
21
|
import {
|
|
22
22
|
InputGroup,
|
|
23
23
|
InputGroupAddon,
|
|
24
24
|
InputGroupInput,
|
|
25
|
-
} from "
|
|
26
|
-
import { Separator } from "
|
|
25
|
+
} from "@/components/ui/input-group";
|
|
26
|
+
import { Separator } from "@/components/ui/separator";
|
|
27
27
|
import { m } from "@/paraglide/messages.js";
|
|
28
28
|
|
|
29
29
|
export interface SuggestedPrompt {
|
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
X,
|
|
36
36
|
} from "lucide-react";
|
|
37
37
|
import { BotMessageSquareIcon } from "@/components/animated-icons/bot-message-square";
|
|
38
|
-
import { Button } from "
|
|
38
|
+
import { Button } from "@/components/ui/button";
|
|
39
39
|
import {
|
|
40
40
|
DropdownMenu,
|
|
41
41
|
DropdownMenuContent,
|
|
42
42
|
DropdownMenuItem,
|
|
43
43
|
DropdownMenuSeparator,
|
|
44
44
|
DropdownMenuTrigger,
|
|
45
|
-
} from "
|
|
46
|
-
import { toast } from "
|
|
45
|
+
} from "@/components/ui/dropdown-menu";
|
|
46
|
+
import { toast } from "@/components/ui/toast";
|
|
47
47
|
import { cn } from "@/lib/utils";
|
|
48
48
|
import { useSelectedModel } from "@/lib/ai/use-selected-model";
|
|
49
49
|
import { useSearchCapability } from "@/lib/ai/use-search-capability";
|
|
@@ -63,8 +63,8 @@ import {
|
|
|
63
63
|
attachLatestCitationsToMessageId,
|
|
64
64
|
} from "@/components/harness/harness-chat-slots";
|
|
65
65
|
import type { Citation } from "@/components/harness/ai-citations";
|
|
66
|
-
import { ConfirmDialog } from "
|
|
67
|
-
import { Input } from "
|
|
66
|
+
import { ConfirmDialog } from "@/components/confirm-dialog";
|
|
67
|
+
import { Input } from "@/components/ui/input";
|
|
68
68
|
import { listConversationsFn, createConversationFn, updateConversationFn, deleteConversationFn } from "@/server/serverFns/chat/conversations";
|
|
69
69
|
import { listMessagesFn } from "@/server/serverFns/chat/list-messages";
|
|
70
70
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import type { ToolCallPart } from "@tanstack/ai";
|
|
20
20
|
import { Loader2, Wrench, CircleAlert } from "lucide-react";
|
|
21
|
-
import { Badge } from "
|
|
21
|
+
import { Badge } from "@/components/ui/badge";
|
|
22
22
|
import { m } from "@/paraglide/messages.js";
|
|
23
23
|
|
|
24
24
|
export type ToolCallPartProps = {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import type { ToolResultPart } from "@tanstack/ai";
|
|
20
20
|
import { Check, Loader2, CircleAlert } from "lucide-react";
|
|
21
|
-
import { Badge } from "
|
|
21
|
+
import { Badge } from "@/components/ui/badge";
|
|
22
22
|
import { m } from "@/paraglide/messages.js";
|
|
23
23
|
|
|
24
24
|
export type ToolResultPartProps = {
|
|
@@ -21,17 +21,17 @@ import { useRouter } from "@tanstack/react-router"
|
|
|
21
21
|
import {
|
|
22
22
|
Card,
|
|
23
23
|
CardContent,
|
|
24
|
-
} from "
|
|
24
|
+
} from "@/components/ui/card"
|
|
25
25
|
import {
|
|
26
26
|
DropdownMenu,
|
|
27
27
|
DropdownMenuContent,
|
|
28
28
|
DropdownMenuItem,
|
|
29
29
|
DropdownMenuTrigger,
|
|
30
|
-
} from "
|
|
31
|
-
import { Button } from "
|
|
32
|
-
import { Badge } from "
|
|
30
|
+
} from "@/components/ui/dropdown-menu"
|
|
31
|
+
import { Button } from "@/components/ui/button"
|
|
32
|
+
import { Badge } from "@/components/ui/badge"
|
|
33
33
|
import { MoreVertical, Pin, PinOff, Trash2, RefreshCw, Settings } from "lucide-react"
|
|
34
|
-
import { toast } from '
|
|
34
|
+
import { toast } from '@/components/ui/toast'
|
|
35
35
|
import { anyHubActions } from "@/lib/anyhub/anyhub-store"
|
|
36
36
|
import type { AnyHubAppData } from "@/lib/anyhub/types"
|
|
37
37
|
import { AnyHubPermissionPanel } from "./anyhub-permission-panel"
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
DialogContent,
|
|
23
23
|
DialogHeader,
|
|
24
24
|
DialogTitle,
|
|
25
|
-
} from "
|
|
25
|
+
} from "@/components/ui/dialog"
|
|
26
26
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
|
27
|
-
import { Button } from "
|
|
28
|
-
import { Input } from "
|
|
29
|
-
import { toast } from '
|
|
27
|
+
import { Button } from "@/components/ui/button"
|
|
28
|
+
import { Input } from "@/components/ui/input"
|
|
29
|
+
import { toast } from '@/components/ui/toast'
|
|
30
30
|
import { anyHubActions } from "@/lib/anyhub/anyhub-store"
|
|
31
31
|
import { AnyHubMarketplaceView } from "./anyhub-marketplace-view"
|
|
32
32
|
|
|
@@ -17,7 +17,7 @@ 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 { useEffect, useState } from "react"
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
21
|
import { Plus } from "lucide-react"
|
|
22
22
|
import { useAnyHubStore, anyHubActions } from "@/lib/anyhub/anyhub-store"
|
|
23
23
|
import { AnyHubAppCard } from "./anyhub-app-card"
|
|
@@ -17,11 +17,11 @@ 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 { useEffect, useState } from "react"
|
|
20
|
-
import { Input } from "
|
|
21
|
-
import { Button } from "
|
|
22
|
-
import { Badge } from "
|
|
20
|
+
import { Input } from "@/components/ui/input"
|
|
21
|
+
import { Button } from "@/components/ui/button"
|
|
22
|
+
import { Badge } from "@/components/ui/badge"
|
|
23
23
|
import { Search, Download } from "lucide-react"
|
|
24
|
-
import { toast } from '
|
|
24
|
+
import { toast } from '@/components/ui/toast'
|
|
25
25
|
import { useAnyHubStore, anyHubActions } from "@/lib/anyhub/anyhub-store"
|
|
26
26
|
|
|
27
27
|
interface AnyHubMarketplaceViewProps {
|
|
@@ -17,12 +17,12 @@ 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 { useEffect, useState } from "react"
|
|
20
|
-
import { Button } from "
|
|
21
|
-
import { Switch } from "
|
|
22
|
-
import { Separator } from "
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
|
+
import { Switch } from "@/components/ui/switch"
|
|
22
|
+
import { Separator } from "@/components/ui/separator"
|
|
23
23
|
import { CAPABILITY_GROUPS } from "@/lib/anyhub/capabilities"
|
|
24
24
|
import { X, Save } from "lucide-react"
|
|
25
|
-
import { toast } from '
|
|
25
|
+
import { toast } from '@/components/ui/toast'
|
|
26
26
|
import { getAnyHubPermissionsFn, updateAnyHubPermissionFn } from "@/server/serverFns/anyhub/permissions"
|
|
27
27
|
|
|
28
28
|
interface Permission {
|
|
@@ -17,12 +17,12 @@ 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 { useRouter } from "@tanstack/react-router"
|
|
20
|
-
import { Button } from "
|
|
20
|
+
import { Button } from "@/components/ui/button"
|
|
21
21
|
import {
|
|
22
22
|
Tooltip,
|
|
23
23
|
TooltipContent,
|
|
24
24
|
TooltipTrigger,
|
|
25
|
-
} from "
|
|
25
|
+
} from "@/components/ui/tooltip"
|
|
26
26
|
import { ChevronLeft, ChevronRight, Settings, X } from "lucide-react"
|
|
27
27
|
import { useAnyHubStore, anyHubActions } from "@/lib/anyhub/anyhub-store"
|
|
28
28
|
import { useState } from "react"
|
|
@@ -15,8 +15,8 @@
|
|
|
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 { Input } from '
|
|
19
|
-
import { Label } from '
|
|
18
|
+
import { Input } from '@/components/ui/input'
|
|
19
|
+
import { Label } from '@/components/ui/label'
|
|
20
20
|
import type { LucideIcon } from 'lucide-react'
|
|
21
21
|
|
|
22
22
|
interface IconInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
//
|
|
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
|
-
import { Button } from '
|
|
18
|
-
import { Separator } from '
|
|
17
|
+
import { Button } from '@/components/ui/button'
|
|
18
|
+
import { Separator } from '@/components/ui/separator'
|
|
19
19
|
import type { AuthProvider } from '@/components/auth/auth-providers'
|
|
20
20
|
import { signIn } from '@/lib/auth/auth-client'
|
|
21
21
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useState } from 'react'
|
|
19
|
-
import { Input } from '
|
|
20
|
-
import { Label } from '
|
|
19
|
+
import { Input } from '@/components/ui/input'
|
|
20
|
+
import { Label } from '@/components/ui/label'
|
|
21
21
|
import { Lock } from 'lucide-react'
|
|
22
22
|
import { m } from "@/paraglide/messages.js";
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
2
|
import { KeyRound } from 'lucide-react'
|
|
3
|
-
import { Button } from '
|
|
3
|
+
import { Button } from '@/components/ui/button'
|
|
4
4
|
import { checkSsoDomainFn } from '@/server/serverFns/sso'
|
|
5
5
|
import { useDebouncedCallback } from '@/lib/pacer'
|
|
6
6
|
import { m } from "@/paraglide/messages.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createCheckoutSessionFn,
|
|
3
3
|
createCustomerPortalSessionFn,
|
|
4
4
|
} from '@/server/serverFns/billing'
|
|
5
|
-
import { toast } from '
|
|
5
|
+
import { toast } from '@/components/ui/toast'
|
|
6
6
|
import { isChina } from '@/lib/deploy-region'
|
|
7
7
|
import { m } from '@/paraglide/messages.js'
|
|
8
8
|
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
DialogFooter,
|
|
7
7
|
DialogHeader,
|
|
8
8
|
DialogTitle,
|
|
9
|
-
} from '
|
|
10
|
-
import { Button } from '
|
|
9
|
+
} from '@/components/ui/dialog'
|
|
10
|
+
import { Button } from '@/components/ui/button'
|
|
11
11
|
import { Loader2, LogIn } from 'lucide-react'
|
|
12
|
-
import { toast } from '
|
|
12
|
+
import { toast } from '@/components/ui/toast'
|
|
13
13
|
import { openLoginUrl } from '@/server/remote-auth'
|
|
14
14
|
import { m } from "@/paraglide/messages.js";
|
|
15
15
|
import { errorMessage } from "@/lib/toast-error";
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { useState } from 'react'
|
|
19
19
|
import { Link } from '@tanstack/react-router'
|
|
20
20
|
import { Minus, Plus } from 'lucide-react'
|
|
21
|
-
import { toast } from '
|
|
22
|
-
import { Button } from '
|
|
21
|
+
import { toast } from '@/components/ui/toast'
|
|
22
|
+
import { Button } from '@/components/ui/button'
|
|
23
23
|
import { useResource } from './use-resource'
|
|
24
24
|
import { useSubscription } from './subscription-provider'
|
|
25
25
|
import { updateSeatsFn } from '@/server/serverFns/billing'
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
19
19
|
import { render, renderHook, screen, fireEvent, waitFor, cleanup, within } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
|
|
22
22
|
const h = vi.hoisted(() => ({
|
|
23
23
|
getBugDisplayOptionsFn: vi.fn(),
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
19
19
|
import { render, screen, fireEvent, act, cleanup } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
|
|
22
22
|
const mocks = vi.hoisted(() => ({
|
|
23
23
|
onFilterChange: vi.fn(),
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
19
19
|
import { render, screen, fireEvent, waitFor, cleanup } from "@testing-library/react";
|
|
20
|
-
import { TooltipProvider } from "
|
|
20
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
21
21
|
|
|
22
22
|
const mocks = vi.hoisted(() => ({
|
|
23
23
|
createBugFn: vi.fn(),
|
|
@@ -39,7 +39,7 @@ vi.mock("@/server/serverFns/project", () => ({
|
|
|
39
39
|
ensureBuiltinProjectFn: mocks.ensureBuiltinProjectFn,
|
|
40
40
|
}));
|
|
41
41
|
|
|
42
|
-
vi.mock("
|
|
42
|
+
vi.mock("@/components/ui/toast", () => ({
|
|
43
43
|
toast: { success: mocks.toastSuccess, error: mocks.toastError },
|
|
44
44
|
}));
|
|
45
45
|
|