@vetta-org/theme-ui 0.1.0
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 +195 -0
- package/src/action-approval/AppearanceActionPickerView.tsx +291 -0
- package/src/action-approval/AppearanceApprovalDrawerView.tsx +69 -0
- package/src/action-approval/AppearancePickerApprovalView.tsx +31 -0
- package/src/action-approval/ApprovalParts.tsx +376 -0
- package/src/action-approval/BatchTasksApprovalFrameView.tsx +138 -0
- package/src/action-approval/BatchTasksExecutionApprovalView.tsx +158 -0
- package/src/action-approval/BatchTasksTaskApprovalView.tsx +152 -0
- package/src/action-approval/GeneralSetExecutionModeApprovalView.tsx +76 -0
- package/src/action-approval/GenericActionApprovalView.tsx +127 -0
- package/src/action-approval/ManageActionApprovalFrameTypes.ts +27 -0
- package/src/action-approval/ManageActionApprovalFrameView.tsx +136 -0
- package/src/action-approval/NavigationOpenApprovalView.tsx +119 -0
- package/src/action-approval/SchedulerActionApprovalDialogView.tsx +191 -0
- package/src/action-approval/SchedulerEditApprovalDrawerView.tsx +113 -0
- package/src/action-approval/SchedulerUpdateApprovalView.tsx +14 -0
- package/src/action-approval/ThemeChangeApprovalView.tsx +30 -0
- package/src/action-approval/WebhookDeleteApprovalView.tsx +56 -0
- package/src/action-approval/WebhookTestApprovalView.tsx +51 -0
- package/src/action-approval/cn.ts +4 -0
- package/src/action-approval/index.ts +88 -0
- package/src/activity/ActivityPanel.tsx +269 -0
- package/src/activity/ActivityPanelFrame.tsx +36 -0
- package/src/activity/BackgroundTasksTabPanelView.tsx +382 -0
- package/src/activity/BatchProgressTabPanelView.tsx +22 -0
- package/src/activity/BrowserPanelView.tsx +169 -0
- package/src/activity/ChatTabPanelView.tsx +36 -0
- package/src/activity/CodePreview.tsx +57 -0
- package/src/activity/DebugTabPanelView.tsx +67 -0
- package/src/activity/FileTabContentView.tsx +46 -0
- package/src/activity/FloatingActivityTabView.tsx +107 -0
- package/src/activity/HtmlPreviewView.tsx +135 -0
- package/src/activity/JourneyPanelView.tsx +327 -0
- package/src/activity/KnowledgeHistoryPanelView.tsx +93 -0
- package/src/activity/MarkdownPreviewView.tsx +217 -0
- package/src/activity/PluginTabPickerView.tsx +182 -0
- package/src/activity/RequestHistorySubTabView.tsx +102 -0
- package/src/activity/ScheduleExecutionTabPanelView.tsx +162 -0
- package/src/activity/TodoTabPanelView.tsx +66 -0
- package/src/activity/ToolCallsSubTabView.tsx +184 -0
- package/src/activity/WorkflowTabPanelView.tsx +129 -0
- package/src/activity/index.ts +110 -0
- package/src/app/AppBackground.tsx +24 -0
- package/src/app/AppBootLoadingView.tsx +51 -0
- package/src/app/RouteContentLoadingView.tsx +20 -0
- package/src/app/index.ts +13 -0
- package/src/app-boot.ts +1 -0
- package/src/app-shell/DefaultPageHeader.tsx +46 -0
- package/src/app-shell/DefaultWindowControls.tsx +32 -0
- package/src/app-shell/PageHeaderActionGroup.tsx +15 -0
- package/src/app-shell/PageHeaderContent.tsx +70 -0
- package/src/app-shell/PageHeaderFrame.tsx +53 -0
- package/src/app-shell/PageHeaderSidebarTrigger.tsx +21 -0
- package/src/app-shell/PageHeaderTitle.tsx +25 -0
- package/src/app-shell/PageHeaderWindowActions.tsx +22 -0
- package/src/app-shell/WindowControlButton.tsx +35 -0
- package/src/app-shell/index.ts +49 -0
- package/src/appearance/BackgroundImageFrame.tsx +57 -0
- package/src/appearance/CenterSliceImageFrame.tsx +64 -0
- package/src/appearance/CornerImageFrame.tsx +63 -0
- package/src/appearance/HorizontalSliceImageFrame.tsx +97 -0
- package/src/appearance/NineSliceImageFrame.tsx +65 -0
- package/src/appearance/ThemeSurface.tsx +91 -0
- package/src/appearance/index.ts +12 -0
- package/src/batch-tasks/BatchProjectArtifactFieldView.tsx +36 -0
- package/src/batch-tasks/BatchProjectDialogView.tsx +61 -0
- package/src/batch-tasks/BatchProjectFoldersFieldView.tsx +108 -0
- package/src/batch-tasks/BatchProjectGroupView.tsx +77 -0
- package/src/batch-tasks/BatchProjectNameFieldView.tsx +29 -0
- package/src/batch-tasks/BatchProjectNotificationFieldView.tsx +42 -0
- package/src/batch-tasks/BatchProjectRuntimeFieldsView.tsx +67 -0
- package/src/batch-tasks/BatchTaskActionButtonsView.tsx +67 -0
- package/src/batch-tasks/BatchTaskCardView.tsx +142 -0
- package/src/batch-tasks/BatchTaskGridView.tsx +95 -0
- package/src/batch-tasks/BatchTaskListView.tsx +10 -0
- package/src/batch-tasks/BatchTaskProjectActionsView.tsx +73 -0
- package/src/batch-tasks/BatchTaskProjectBlockView.tsx +117 -0
- package/src/batch-tasks/BatchTaskProjectHeaderView.tsx +74 -0
- package/src/batch-tasks/BatchTasksPageView.tsx +126 -0
- package/src/batch-tasks/batchTaskUi.tsx +101 -0
- package/src/batch-tasks/index.ts +70 -0
- package/src/batch-tasks/types.ts +120 -0
- package/src/chat/ActionButtonBarView.tsx +45 -0
- package/src/chat/AgentAvatarView.tsx +59 -0
- package/src/chat/AppshotCardView.tsx +89 -0
- package/src/chat/AskUserQuestionView.tsx +177 -0
- package/src/chat/AssistantMessageView.tsx +147 -0
- package/src/chat/AtPanelView.tsx +220 -0
- package/src/chat/BackgroundTasksBadgeView.tsx +28 -0
- package/src/chat/BashTerminalCard.tsx +225 -0
- package/src/chat/ChatExportHostView.tsx +17 -0
- package/src/chat/ChatHeaderActionsView.tsx +75 -0
- package/src/chat/ContextRingView.tsx +100 -0
- package/src/chat/CopyIconButton.tsx +61 -0
- package/src/chat/DefaultGuidingWords.tsx +75 -0
- package/src/chat/DefaultSceneCarousel.tsx +113 -0
- package/src/chat/DefaultSkillBadgeRow.tsx +103 -0
- package/src/chat/DrawerCard.tsx +149 -0
- package/src/chat/EditDiffView.tsx +137 -0
- package/src/chat/ExecutionModeSelectorView.tsx +124 -0
- package/src/chat/ExportMessageListView.tsx +20 -0
- package/src/chat/GuideBadgeSwiperView.tsx +79 -0
- package/src/chat/InlineTokenChip.tsx +68 -0
- package/src/chat/InputActionBarView.tsx +112 -0
- package/src/chat/InputBarBackground.tsx +25 -0
- package/src/chat/InputBarCapsule.tsx +56 -0
- package/src/chat/InputBarContextMenuView.tsx +79 -0
- package/src/chat/InputBarPlaceholder.tsx +84 -0
- package/src/chat/InputBarToolbarButton.tsx +42 -0
- package/src/chat/KnowledgeToolViews.tsx +119 -0
- package/src/chat/LiveThinkingView.tsx +102 -0
- package/src/chat/MessageActions.tsx +109 -0
- package/src/chat/MessageBlockSegmentsView.tsx +203 -0
- package/src/chat/MessageBoundaryViews.tsx +93 -0
- package/src/chat/MessageCardsView.tsx +126 -0
- package/src/chat/MessageFeedContext.tsx +14 -0
- package/src/chat/MessageFeedLayoutView.tsx +97 -0
- package/src/chat/MessageFeedView.tsx +228 -0
- package/src/chat/MessageInputView.tsx +193 -0
- package/src/chat/MessageLayoutView.tsx +156 -0
- package/src/chat/MessageListFooterView.tsx +127 -0
- package/src/chat/MessageSelectionContextMenuView.tsx +66 -0
- package/src/chat/MessageTimelineView.tsx +261 -0
- package/src/chat/MessageView.tsx +82 -0
- package/src/chat/MessageVisualView.tsx +43 -0
- package/src/chat/ModelSelectorView.tsx +407 -0
- package/src/chat/NewSession.ts +107 -0
- package/src/chat/NewSessionBackground.tsx +54 -0
- package/src/chat/NewSessionPageLayoutView.tsx +96 -0
- package/src/chat/NewSessionPicker.tsx +270 -0
- package/src/chat/ProgressGroupView.tsx +323 -0
- package/src/chat/ProjectSelectorView.tsx +253 -0
- package/src/chat/QueueCardView.tsx +151 -0
- package/src/chat/ReadImageView.tsx +73 -0
- package/src/chat/SandboxGrantsBadgeView.tsx +101 -0
- package/src/chat/SandboxPermissionCard.tsx +64 -0
- package/src/chat/SceneCard.tsx +138 -0
- package/src/chat/SendButton.tsx +135 -0
- package/src/chat/SessionDropZoneView.tsx +85 -0
- package/src/chat/SessionViewerPageView.tsx +56 -0
- package/src/chat/SkillCard.tsx +56 -0
- package/src/chat/SkillPromptAreaView.tsx +129 -0
- package/src/chat/SuggestionBubblesView.tsx +58 -0
- package/src/chat/TextBlockView.tsx +770 -0
- package/src/chat/TextPreview.tsx +37 -0
- package/src/chat/ThinkingBlockView.tsx +183 -0
- package/src/chat/TodoCard.tsx +243 -0
- package/src/chat/TodoProgress.tsx +205 -0
- package/src/chat/TodoStatusBarView.tsx +140 -0
- package/src/chat/ToolCallBlockView.tsx +188 -0
- package/src/chat/UsageBarView.tsx +19 -0
- package/src/chat/UserMessageContextMenuView.tsx +87 -0
- package/src/chat/UserMessageView.tsx +241 -0
- package/src/chat/WorkflowFooterItemsView.tsx +170 -0
- package/src/chat/WriteContentView.tsx +12 -0
- package/src/chat/index.ts +524 -0
- package/src/chat/markdown-link.test.ts +238 -0
- package/src/chat/markdown-link.ts +279 -0
- package/src/chat/send-button.css +318 -0
- package/src/chat/useHorizontalDragScroll.ts +146 -0
- package/src/file-explorer/ConfirmDeleteDialogView.tsx +62 -0
- package/src/file-explorer/FileContextMenuView.tsx +209 -0
- package/src/file-explorer/FileTreeCreateRow.tsx +82 -0
- package/src/file-explorer/FileTreeNodeView.tsx +274 -0
- package/src/file-explorer/FileTreeView.tsx +301 -0
- package/src/file-explorer/FilesPanelView.tsx +91 -0
- package/src/file-explorer/drag-target.test.ts +34 -0
- package/src/file-explorer/drag-target.ts +26 -0
- package/src/file-explorer/fileIcons.ts +1 -0
- package/src/file-explorer/index.ts +28 -0
- package/src/file-explorer/nativeFileDrag.test.ts +30 -0
- package/src/file-explorer/nativeFileDrag.ts +14 -0
- package/src/file-explorer/types.ts +40 -0
- package/src/file-explorer/useFileTreeMarqueeSelection.ts +115 -0
- package/src/file-preview/FilePreviewDialogView.tsx +241 -0
- package/src/file-preview/FilePreviewView.tsx +162 -0
- package/src/file-preview/LightboxImageView.tsx +131 -0
- package/src/file-preview/PluginFilePreviewView.tsx +24 -0
- package/src/file-preview/PreviewBodyView.tsx +99 -0
- package/src/file-preview/PreviewErrorBoundary.tsx +51 -0
- package/src/file-preview/TextCodeEditorView.tsx +72 -0
- package/src/file-preview/TextFileEditorView.tsx +213 -0
- package/src/file-preview/index.ts +56 -0
- package/src/file-preview/keyboard-target.test.ts +49 -0
- package/src/file-preview/keyboard-target.ts +33 -0
- package/src/file-preview/syntax-tokens.css +77 -0
- package/src/file-preview/syntax-tokens.test.ts +31 -0
- package/src/file-preview/syntax-tokens.ts +155 -0
- package/src/file-preview/text-code-editor-theme.ts +321 -0
- package/src/file-preview/text-editor-language.test.ts +58 -0
- package/src/file-preview/text-editor-language.ts +182 -0
- package/src/file-preview/types.ts +29 -0
- package/src/flowing/FlowingPanelView.tsx +79 -0
- package/src/flowing/FlowingWorkflowView.tsx +54 -0
- package/src/flowing/UserNodeView.tsx +148 -0
- package/src/flowing/WorkflowBindDialogView.tsx +145 -0
- package/src/flowing/WorkflowProgressView.tsx +149 -0
- package/src/flowing/index.ts +27 -0
- package/src/flowing-chat/ChatBubbleView.tsx +219 -0
- package/src/flowing-chat/ChatComposerView.tsx +362 -0
- package/src/flowing-chat/ChatMembersBarView.tsx +86 -0
- package/src/flowing-chat/ChatPanelView.tsx +73 -0
- package/src/flowing-chat/index.ts +21 -0
- package/src/index.ts +22 -0
- package/src/knowledge/KnowledgeBaseSwitcherView.tsx +154 -0
- package/src/knowledge/KnowledgeBreadcrumbView.tsx +92 -0
- package/src/knowledge/KnowledgeContentsPanelView.tsx +77 -0
- package/src/knowledge/KnowledgeContextMenuView.tsx +70 -0
- package/src/knowledge/KnowledgeFilesSkeleton.tsx +22 -0
- package/src/knowledge/KnowledgeGridView.tsx +113 -0
- package/src/knowledge/KnowledgeHowItWorksDialogView.tsx +85 -0
- package/src/knowledge/KnowledgeImportDialogView.tsx +153 -0
- package/src/knowledge/KnowledgeListView.tsx +107 -0
- package/src/knowledge/KnowledgePendingFilesDialogView.tsx +76 -0
- package/src/knowledge/KnowledgeProcessingBadgeView.tsx +18 -0
- package/src/knowledge/KnowledgeRenameDialogView.tsx +66 -0
- package/src/knowledge/KnowledgeSourcePickerView.tsx +60 -0
- package/src/knowledge/KnowledgeViewShared.tsx +103 -0
- package/src/knowledge/cn.ts +4 -0
- package/src/knowledge/coloredFileIcons.ts +1 -0
- package/src/knowledge/index.ts +66 -0
- package/src/knowledge/types.ts +31 -0
- package/src/knowledge/useMarqueeSelection.ts +95 -0
- package/src/layout/AppFrame.tsx +34 -0
- package/src/layout/MainContentFrame.tsx +54 -0
- package/src/layout/ResizeHandle.tsx +91 -0
- package/src/layout/SidebarDock.tsx +33 -0
- package/src/layout/SidebarOverlay.tsx +36 -0
- package/src/layout/index.ts +10 -0
- package/src/overlays/CommandMenuRow.tsx +119 -0
- package/src/overlays/CommandMenuView.tsx +183 -0
- package/src/overlays/ConfirmDialogView.tsx +109 -0
- package/src/overlays/DetailDrawer.tsx +63 -0
- package/src/overlays/DetailDrawerEnter.tsx +37 -0
- package/src/overlays/KnowledgeDropOverlayView.tsx +43 -0
- package/src/overlays/RouteErrorPageView.tsx +72 -0
- package/src/overlays/ToasterView.tsx +76 -0
- package/src/overlays/UpdateCheckerView.tsx +206 -0
- package/src/overlays/UpdateRestartDialogView.tsx +107 -0
- package/src/overlays/command-menu-types.ts +47 -0
- package/src/overlays/command-menu.css +69 -0
- package/src/overlays/detail-drawer-guard.test.ts +16 -0
- package/src/overlays/detail-drawer-guard.ts +13 -0
- package/src/overlays/index.ts +44 -0
- package/src/plugin-ui/index.ts +26 -0
- package/src/project/BatchQueueStatusView.tsx +352 -0
- package/src/project/ConversationTagDotsView.tsx +130 -0
- package/src/project/ConversationTagEditorDialogView.tsx +273 -0
- package/src/project/DefaultConversationSectionView.tsx +74 -0
- package/src/project/DefaultSessionListView.tsx +128 -0
- package/src/project/DefaultSessionRowView.tsx +125 -0
- package/src/project/NewProjectDialogView.tsx +140 -0
- package/src/project/ProjectContextMenuView.tsx +187 -0
- package/src/project/ProjectDetailPageView.tsx +351 -0
- package/src/project/ProjectGroupView.tsx +37 -0
- package/src/project/ProjectRowView.tsx +111 -0
- package/src/project/ProjectSessionsLoadingView.tsx +14 -0
- package/src/project/ProjectSessionsView.tsx +96 -0
- package/src/project/ProjectsLoadingView.tsx +15 -0
- package/src/project/ProjectsPanelMenusView.tsx +23 -0
- package/src/project/ProjectsPanelView.tsx +56 -0
- package/src/project/QuickScrollOverlay.tsx +188 -0
- package/src/project/ScheduleStatusView.tsx +110 -0
- package/src/project/SessionContextMenuView.tsx +71 -0
- package/src/project/SessionRenameInputView.tsx +49 -0
- package/src/project/SessionRowView.tsx +119 -0
- package/src/project/SidebarProjectsSectionView.tsx +35 -0
- package/src/project/index.ts +87 -0
- package/src/project/types.ts +21 -0
- package/src/project/useActiveSessionAutoScroll.ts +171 -0
- package/src/registry.ts +62 -0
- package/src/scheduler/AutomationPageView.tsx +159 -0
- package/src/scheduler/ExecutionHistoryView.tsx +179 -0
- package/src/scheduler/HistoryDrawerView.tsx +149 -0
- package/src/scheduler/TaskFormDialogView.tsx +60 -0
- package/src/scheduler/TaskListView.tsx +219 -0
- package/src/scheduler/index.ts +30 -0
- package/src/settings/AchievementNavigationButtonView.tsx +90 -0
- package/src/settings/AchievementPromotionDialogView.tsx +91 -0
- package/src/settings/AchievementSettingsView.tsx +44 -0
- package/src/settings/AppshotSettingsView.tsx +132 -0
- package/src/settings/ArchivedProjectsSettingsView.tsx +80 -0
- package/src/settings/BuiltinMcpSecretsDialogView.tsx +278 -0
- package/src/settings/BuiltinMcpSectionView.tsx +164 -0
- package/src/settings/EnvironmentSettingsView.tsx +176 -0
- package/src/settings/GeneralSettingsView.tsx +174 -0
- package/src/settings/ImChannelCardView.tsx +152 -0
- package/src/settings/ImChannelGuideDialogView.tsx +126 -0
- package/src/settings/ImFeishuDialogView.tsx +156 -0
- package/src/settings/ImLegacyImportBannerView.tsx +44 -0
- package/src/settings/ImLogDrawerView.tsx +75 -0
- package/src/settings/ImStatusBadgeView.tsx +39 -0
- package/src/settings/McpDefaultIcon.tsx +27 -0
- package/src/settings/McpJsonEditorView.tsx +56 -0
- package/src/settings/ModelsProviderFormView.tsx +128 -0
- package/src/settings/ModelsProvidersSectionView.tsx +52 -0
- package/src/settings/MotionSelect.tsx +125 -0
- package/src/settings/PermissionsSettingsView.tsx +106 -0
- package/src/settings/PetBubbleStylePreviewView.tsx +44 -0
- package/src/settings/PetSettingsView.tsx +165 -0
- package/src/settings/PresetProviderModelsListView.tsx +58 -0
- package/src/settings/PresetProviderRowView.tsx +302 -0
- package/src/settings/PresetProvidersSectionView.tsx +70 -0
- package/src/settings/QrBindDialogView.tsx +165 -0
- package/src/settings/QuickPanelSettingsSectionView.tsx +66 -0
- package/src/settings/RemoteMcpSectionView.tsx +192 -0
- package/src/settings/SettingChrome.tsx +104 -0
- package/src/settings/SettingsAiAssistButtonView.tsx +150 -0
- package/src/settings/SettingsAiAssistDialogView.tsx +251 -0
- package/src/settings/SettingsFormFields.tsx +121 -0
- package/src/settings/SettingsPageShellView.tsx +84 -0
- package/src/settings/SettingsSidebarView.tsx +133 -0
- package/src/settings/ShortcutRecorderView.tsx +88 -0
- package/src/settings/ShortcutsSettingsView.tsx +66 -0
- package/src/settings/SubscriptionActionsView.tsx +63 -0
- package/src/settings/SubscriptionCardsView.tsx +212 -0
- package/src/settings/TeamDetailView.tsx +148 -0
- package/src/settings/TeamDialogsView.tsx +151 -0
- package/src/settings/TeamListView.tsx +57 -0
- package/src/settings/TeamSettingsView.tsx +51 -0
- package/src/settings/TokenActivityChartView.tsx +286 -0
- package/src/settings/UsageStatsView.tsx +101 -0
- package/src/settings/WebhookEndpointListView.tsx +123 -0
- package/src/settings/WechatBindDialogView.tsx +45 -0
- package/src/settings/achievements/AchievementCurtains.tsx +50 -0
- package/src/settings/achievements/AchievementPromotionBadge3D.tsx +350 -0
- package/src/settings/achievements/AchievementPromotionConfetti.tsx +71 -0
- package/src/settings/achievements/AchievementTitle.tsx +52 -0
- package/src/settings/achievements/index.ts +13 -0
- package/src/settings/index.ts +226 -0
- package/src/settings/shouldCloseEmptyApiKeyEditor.test.ts +135 -0
- package/src/settings/shouldCloseEmptyApiKeyEditor.ts +40 -0
- package/src/settings/token-activity.test.ts +195 -0
- package/src/settings/token-activity.ts +320 -0
- package/src/shared/AvatarStackView.tsx +45 -0
- package/src/shared/BotAvatar.tsx +395 -0
- package/src/shared/CodeBlockCopyButton.tsx +48 -0
- package/src/shared/CollapsePanel.tsx +125 -0
- package/src/shared/ContextMenuView.tsx +134 -0
- package/src/shared/MacKeyboardPreview.tsx +260 -0
- package/src/shared/MarkdownTable.tsx +216 -0
- package/src/shared/MultiplierTag.tsx +15 -0
- package/src/shared/ScrollFade.tsx +114 -0
- package/src/shared/SegmentedControl.tsx +82 -0
- package/src/shared/SyntaxHighlightedCode.tsx +0 -0
- package/src/shared/TabBar.tsx +696 -0
- package/src/shared/TimePicker.tsx +96 -0
- package/src/shared/connected-tab-outline.test.ts +22 -0
- package/src/shared/connected-tab-outline.ts +39 -0
- package/src/shared/fileIcons.test.ts +28 -0
- package/src/shared/fileIcons.ts +322 -0
- package/src/shared/index.ts +38 -0
- package/src/shared/markdown-table-clipboard.ts +31 -0
- package/src/shared/provider-icon/icons.ts +56 -0
- package/src/shared/provider-icon/index.tsx +42 -0
- package/src/shared/provider-icon/svg-url.d.ts +4 -0
- package/src/shared/tab-drag.test.ts +14 -0
- package/src/shared/tab-drag.ts +15 -0
- package/src/shared/useDelayedUnmount.ts +36 -0
- package/src/sidebar/AddProjectMenuItem.tsx +21 -0
- package/src/sidebar/AddProjectMenuPopoverView.tsx +52 -0
- package/src/sidebar/AddProjectMenuTriggerView.tsx +50 -0
- package/src/sidebar/ChatMessageListView.tsx +66 -0
- package/src/sidebar/DefaultSidebar.tsx +91 -0
- package/src/sidebar/FlowingMessageListView.tsx +111 -0
- package/src/sidebar/MessageCenterDialogView.tsx +81 -0
- package/src/sidebar/MessageCenterEmptyState.tsx +24 -0
- package/src/sidebar/MessageCenterTabs.tsx +86 -0
- package/src/sidebar/MessageCenterToolbarButton.tsx +25 -0
- package/src/sidebar/MessageCenterTriggerView.tsx +39 -0
- package/src/sidebar/NotificationMessageListView.tsx +136 -0
- package/src/sidebar/ProjectsPanelEmptyState.tsx +20 -0
- package/src/sidebar/RunningPulseDot.tsx +10 -0
- package/src/sidebar/SessionStatusIcon.tsx +43 -0
- package/src/sidebar/SettingsMenuAccountSection.tsx +32 -0
- package/src/sidebar/SettingsMenuActionButton.tsx +24 -0
- package/src/sidebar/SettingsMenuDivider.tsx +5 -0
- package/src/sidebar/SettingsMenuQuotaSection.tsx +45 -0
- package/src/sidebar/SettingsMenuSettingsItem.tsx +18 -0
- package/src/sidebar/SettingsMenuThemeSection.tsx +51 -0
- package/src/sidebar/SettingsMenuTriggerView.tsx +65 -0
- package/src/sidebar/ShowMoreSessionsButton.tsx +37 -0
- package/src/sidebar/SidebarFilterSelectView.tsx +95 -0
- package/src/sidebar/SidebarNavBadgeView.tsx +58 -0
- package/src/sidebar/SidebarNavIcon.tsx +33 -0
- package/src/sidebar/SidebarNavItemButton.tsx +59 -0
- package/src/sidebar/SidebarNavMorePanel.tsx +199 -0
- package/src/sidebar/SidebarNavigation.tsx +223 -0
- package/src/sidebar/SidebarPanel.tsx +48 -0
- package/src/sidebar/SidebarTopBar.tsx +103 -0
- package/src/sidebar/SidebarUpdateIcon.tsx +79 -0
- package/src/sidebar/index.ts +118 -0
- package/src/sidebar/nav-badge-text.test.ts +23 -0
- package/src/sidebar/nav-badge-text.ts +19 -0
- package/src/sidebar/useSidebarNavDrag.ts +139 -0
- package/src/skills/PluginCardView.tsx +150 -0
- package/src/skills/SceneCardView.tsx +194 -0
- package/src/skills/SkillCardView.tsx +186 -0
- package/src/skills/SkillDetailDialogView.tsx +138 -0
- package/src/skills/SkillTagGroupView.tsx +56 -0
- package/src/skills/SkillToggleSwitch.tsx +31 -0
- package/src/skills/index.ts +29 -0
- package/src/skills/skill-icon.test.ts +38 -0
- package/src/skills/skill-icon.tsx +126 -0
- package/src/styles.css +75 -0
- package/src/utils/platform.ts +2 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import { Button, Dialog, DialogContent, cn } from "@vetta-org/ui";
|
|
3
|
+
import { ThemeSurface } from "../appearance/ThemeSurface";
|
|
4
|
+
|
|
5
|
+
export interface SchedulerActionApprovalDialogViewLabels {
|
|
6
|
+
readonly reject: string;
|
|
7
|
+
readonly confirm: string;
|
|
8
|
+
readonly responding: string;
|
|
9
|
+
readonly permission: string;
|
|
10
|
+
readonly fallbackAction: string;
|
|
11
|
+
readonly targetTask: string;
|
|
12
|
+
readonly rawInput: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SchedulerActionApprovalDialogViewDetail {
|
|
16
|
+
readonly label: string;
|
|
17
|
+
readonly icon: string;
|
|
18
|
+
readonly description: string;
|
|
19
|
+
readonly descriptionTitle: string;
|
|
20
|
+
readonly warning?: string;
|
|
21
|
+
readonly destructive?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SchedulerActionApprovalDialogViewProps {
|
|
25
|
+
readonly title: string;
|
|
26
|
+
readonly summary: string;
|
|
27
|
+
readonly taskId?: string;
|
|
28
|
+
readonly rawInput?: unknown;
|
|
29
|
+
readonly detail?: SchedulerActionApprovalDialogViewDetail;
|
|
30
|
+
readonly error?: string | null;
|
|
31
|
+
readonly responding: boolean;
|
|
32
|
+
readonly countdown: string;
|
|
33
|
+
readonly labels: SchedulerActionApprovalDialogViewLabels;
|
|
34
|
+
readonly onReject: () => void;
|
|
35
|
+
readonly onApprove: () => void;
|
|
36
|
+
readonly className?: string;
|
|
37
|
+
readonly classNames?: {
|
|
38
|
+
readonly content?: string;
|
|
39
|
+
readonly header?: string;
|
|
40
|
+
readonly body?: string;
|
|
41
|
+
readonly footer?: string;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SchedulerActionApprovalDialogView({
|
|
46
|
+
title,
|
|
47
|
+
summary,
|
|
48
|
+
taskId,
|
|
49
|
+
rawInput,
|
|
50
|
+
detail,
|
|
51
|
+
error,
|
|
52
|
+
responding,
|
|
53
|
+
countdown,
|
|
54
|
+
labels,
|
|
55
|
+
onReject,
|
|
56
|
+
onApprove,
|
|
57
|
+
className,
|
|
58
|
+
classNames,
|
|
59
|
+
}: SchedulerActionApprovalDialogViewProps): JSX.Element {
|
|
60
|
+
const isDestructive = Boolean(detail?.destructive);
|
|
61
|
+
const iconClassName = detail?.icon ?? "icon-[mdi--cog-play-outline]";
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<Dialog open>
|
|
65
|
+
<DialogContent
|
|
66
|
+
className={cn("overflow-visible p-0 sm:max-w-[480px]", className, classNames?.content)}
|
|
67
|
+
showCloseButton={false}
|
|
68
|
+
onInteractOutside={(event) => event.preventDefault()}
|
|
69
|
+
>
|
|
70
|
+
<ThemeSurface slot="root.approval.schedulerAction.panel" />
|
|
71
|
+
<div className="relative z-10 max-h-[90vh] overflow-y-auto rounded-[inherit]">
|
|
72
|
+
<div className={cn("border-b border-border/60 p-5", classNames?.header)}>
|
|
73
|
+
<div className="flex items-start gap-3">
|
|
74
|
+
<div
|
|
75
|
+
className={cn(
|
|
76
|
+
"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",
|
|
77
|
+
isDestructive ? "bg-destructive/10 text-destructive" : "bg-primary/10 text-primary",
|
|
78
|
+
)}
|
|
79
|
+
>
|
|
80
|
+
<span className={`${iconClassName} h-5 w-5`} />
|
|
81
|
+
</div>
|
|
82
|
+
<div className="min-w-0 flex-1">
|
|
83
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
84
|
+
<h2 className="text-[15px] font-semibold text-foreground">{title}</h2>
|
|
85
|
+
{detail && (
|
|
86
|
+
<span
|
|
87
|
+
className={cn(
|
|
88
|
+
"rounded-full px-2 py-0.5 text-[10px] font-semibold",
|
|
89
|
+
isDestructive
|
|
90
|
+
? "bg-destructive/10 text-destructive"
|
|
91
|
+
: "bg-primary/10 text-primary",
|
|
92
|
+
)}
|
|
93
|
+
>
|
|
94
|
+
{detail.label}
|
|
95
|
+
</span>
|
|
96
|
+
)}
|
|
97
|
+
</div>
|
|
98
|
+
<p className="mt-1 text-[12px] leading-5 text-muted-foreground">{summary}</p>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<div className={cn("space-y-3 p-5", classNames?.body)}>
|
|
104
|
+
{taskId && detail && (
|
|
105
|
+
<>
|
|
106
|
+
<div className="rounded-lg border border-border/50 bg-background/50 p-3">
|
|
107
|
+
<div className="flex items-start gap-3">
|
|
108
|
+
<div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted">
|
|
109
|
+
<span className="icon-[mdi--clipboard-text-clock-outline] h-4 w-4 text-muted-foreground" />
|
|
110
|
+
</div>
|
|
111
|
+
<div className="min-w-0 flex-1">
|
|
112
|
+
<div className="truncate text-[12px] font-semibold text-foreground">
|
|
113
|
+
{labels.targetTask}
|
|
114
|
+
</div>
|
|
115
|
+
<div className="mt-0.5 break-all font-mono text-[10px] text-muted-foreground">
|
|
116
|
+
{taskId}
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div
|
|
123
|
+
className={cn(
|
|
124
|
+
"rounded-lg border p-3",
|
|
125
|
+
isDestructive
|
|
126
|
+
? "border-destructive/30 bg-destructive/10"
|
|
127
|
+
: "border-primary/20 bg-primary/5",
|
|
128
|
+
)}
|
|
129
|
+
>
|
|
130
|
+
<div className="flex gap-2">
|
|
131
|
+
<span
|
|
132
|
+
className={`${detail.icon} mt-0.5 h-4 w-4 shrink-0 ${
|
|
133
|
+
isDestructive ? "text-destructive" : "text-primary"
|
|
134
|
+
}`}
|
|
135
|
+
/>
|
|
136
|
+
<div>
|
|
137
|
+
<div className="text-[11px] font-semibold text-foreground">
|
|
138
|
+
{detail.descriptionTitle}
|
|
139
|
+
</div>
|
|
140
|
+
<p className="mt-1 text-[11px] leading-5 text-muted-foreground">
|
|
141
|
+
{detail.description}
|
|
142
|
+
</p>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
{detail.warning && (
|
|
148
|
+
<div className="flex gap-2 rounded-lg border border-destructive/30 bg-destructive/10 p-3 text-destructive">
|
|
149
|
+
<span className="icon-[mdi--alert-outline] mt-0.5 h-4 w-4 shrink-0" />
|
|
150
|
+
<p className="text-[11px] leading-5">{detail.warning}</p>
|
|
151
|
+
</div>
|
|
152
|
+
)}
|
|
153
|
+
</>
|
|
154
|
+
)}
|
|
155
|
+
|
|
156
|
+
{(!taskId || !detail) && (
|
|
157
|
+
<div>
|
|
158
|
+
<div className="mb-2 text-[11px] font-semibold text-muted-foreground">
|
|
159
|
+
{labels.rawInput}
|
|
160
|
+
</div>
|
|
161
|
+
<pre className="max-h-48 overflow-auto whitespace-pre-wrap break-words rounded-lg border border-border/50 bg-background/50 p-3 font-mono text-[10px] leading-4 text-foreground">
|
|
162
|
+
{JSON.stringify(rawInput, null, 2)}
|
|
163
|
+
</pre>
|
|
164
|
+
</div>
|
|
165
|
+
)}
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<div className={cn("border-t border-border/60 px-5 py-4", classNames?.footer)}>
|
|
169
|
+
<div className="mb-3 flex items-center justify-between text-[10px] text-muted-foreground">
|
|
170
|
+
<span>{labels.permission}</span>
|
|
171
|
+
</div>
|
|
172
|
+
{error && <div className="mb-3 text-[11px] text-destructive">{error}</div>}
|
|
173
|
+
<div className="flex justify-end gap-2">
|
|
174
|
+
<Button variant="outline" size="sm" disabled={responding} onClick={onReject}>
|
|
175
|
+
{labels.reject} ({countdown})
|
|
176
|
+
</Button>
|
|
177
|
+
<Button
|
|
178
|
+
size="sm"
|
|
179
|
+
variant={isDestructive ? "destructive" : "default"}
|
|
180
|
+
disabled={responding}
|
|
181
|
+
onClick={onApprove}
|
|
182
|
+
>
|
|
183
|
+
{responding ? labels.responding : labels.confirm}
|
|
184
|
+
</Button>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</DialogContent>
|
|
189
|
+
</Dialog>
|
|
190
|
+
);
|
|
191
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
Drawer,
|
|
5
|
+
DrawerContent,
|
|
6
|
+
DrawerDescription,
|
|
7
|
+
DrawerFooter,
|
|
8
|
+
DrawerHeader,
|
|
9
|
+
DrawerTitle,
|
|
10
|
+
cn,
|
|
11
|
+
} from "@vetta-org/ui";
|
|
12
|
+
import { ThemeSurface } from "../appearance/ThemeSurface";
|
|
13
|
+
|
|
14
|
+
export interface SchedulerEditApprovalDrawerViewLabels {
|
|
15
|
+
readonly reject: string;
|
|
16
|
+
readonly submit: string;
|
|
17
|
+
readonly submitting: string;
|
|
18
|
+
readonly taskId: string;
|
|
19
|
+
readonly permission: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SchedulerEditApprovalDrawerViewProps {
|
|
23
|
+
readonly title: string;
|
|
24
|
+
readonly description: string;
|
|
25
|
+
readonly taskId?: string;
|
|
26
|
+
readonly loadingMessage?: string;
|
|
27
|
+
readonly loadError?: string | null;
|
|
28
|
+
readonly error?: string | null;
|
|
29
|
+
readonly responding: boolean;
|
|
30
|
+
readonly countdown: string;
|
|
31
|
+
readonly labels: SchedulerEditApprovalDrawerViewLabels;
|
|
32
|
+
readonly onReject: () => void;
|
|
33
|
+
readonly onSubmit?: () => void;
|
|
34
|
+
readonly canSubmit: boolean;
|
|
35
|
+
/** Host injects SchedulerApprovalFields (desktop-bound). */
|
|
36
|
+
readonly fields?: ReactNode;
|
|
37
|
+
readonly className?: string;
|
|
38
|
+
readonly classNames?: {
|
|
39
|
+
readonly content?: string;
|
|
40
|
+
readonly header?: string;
|
|
41
|
+
readonly body?: string;
|
|
42
|
+
readonly footer?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SchedulerEditApprovalDrawerView({
|
|
47
|
+
title,
|
|
48
|
+
description,
|
|
49
|
+
taskId,
|
|
50
|
+
loadingMessage,
|
|
51
|
+
loadError,
|
|
52
|
+
error,
|
|
53
|
+
responding,
|
|
54
|
+
countdown,
|
|
55
|
+
labels,
|
|
56
|
+
onReject,
|
|
57
|
+
onSubmit,
|
|
58
|
+
canSubmit,
|
|
59
|
+
fields,
|
|
60
|
+
className,
|
|
61
|
+
classNames,
|
|
62
|
+
}: SchedulerEditApprovalDrawerViewProps): JSX.Element {
|
|
63
|
+
return (
|
|
64
|
+
<Drawer open direction="right" dismissible={false}>
|
|
65
|
+
<DrawerContent
|
|
66
|
+
className={cn(
|
|
67
|
+
"w-[min(520px,calc(100vw-2rem))] overflow-visible sm:max-w-[520px]",
|
|
68
|
+
className,
|
|
69
|
+
classNames?.content,
|
|
70
|
+
)}
|
|
71
|
+
>
|
|
72
|
+
<ThemeSurface slot="root.approval.schedulerEdit.panel" />
|
|
73
|
+
<div className="relative z-10 flex min-h-0 flex-1 flex-col">
|
|
74
|
+
<DrawerHeader className={cn("border-b border-border/60", classNames?.header)}>
|
|
75
|
+
<DrawerTitle>{title}</DrawerTitle>
|
|
76
|
+
<DrawerDescription>{description}</DrawerDescription>
|
|
77
|
+
</DrawerHeader>
|
|
78
|
+
<div className={cn("min-h-0 flex-1 overflow-y-auto p-4", classNames?.body)}>
|
|
79
|
+
{loadingMessage && (
|
|
80
|
+
<div className="py-10 text-center text-[12px] text-muted-foreground">{loadingMessage}</div>
|
|
81
|
+
)}
|
|
82
|
+
{!loadingMessage && loadError && (
|
|
83
|
+
<div className="py-10 text-center text-[12px] text-destructive">{loadError}</div>
|
|
84
|
+
)}
|
|
85
|
+
{!loadingMessage && !loadError && fields && (
|
|
86
|
+
<>
|
|
87
|
+
{taskId && (
|
|
88
|
+
<div className="mb-4 rounded-lg border border-border/50 bg-card/40 p-3">
|
|
89
|
+
<div className="text-[11px] text-muted-foreground">{labels.taskId}</div>
|
|
90
|
+
<div className="mt-1 break-all font-mono text-[11px] text-foreground">{taskId}</div>
|
|
91
|
+
</div>
|
|
92
|
+
)}
|
|
93
|
+
{fields}
|
|
94
|
+
<div className="mt-4 text-[11px] text-muted-foreground">{labels.permission}</div>
|
|
95
|
+
{error && <div className="mt-2 text-[11px] text-destructive">{error}</div>}
|
|
96
|
+
</>
|
|
97
|
+
)}
|
|
98
|
+
</div>
|
|
99
|
+
<DrawerFooter className={cn("border-t border-border/60", classNames?.footer)}>
|
|
100
|
+
<Button variant="outline" size="sm" disabled={responding} onClick={onReject}>
|
|
101
|
+
{labels.reject} ({countdown})
|
|
102
|
+
</Button>
|
|
103
|
+
{canSubmit && (
|
|
104
|
+
<Button size="sm" disabled={responding} onClick={onSubmit}>
|
|
105
|
+
{responding ? labels.submitting : labels.submit}
|
|
106
|
+
</Button>
|
|
107
|
+
)}
|
|
108
|
+
</DrawerFooter>
|
|
109
|
+
</div>
|
|
110
|
+
</DrawerContent>
|
|
111
|
+
</Drawer>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentType, JSX } from "react";
|
|
2
|
+
|
|
3
|
+
export interface SchedulerUpdateApprovalViewProps {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
readonly EditView: ComponentType<any>;
|
|
6
|
+
readonly drawerProps: object;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function SchedulerUpdateApprovalView({
|
|
10
|
+
EditView,
|
|
11
|
+
drawerProps,
|
|
12
|
+
}: SchedulerUpdateApprovalViewProps): JSX.Element {
|
|
13
|
+
return <EditView {...drawerProps} />;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ComponentType, JSX, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
export interface ThemeChangeApprovalViewProps {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
readonly Drawer: ComponentType<any>;
|
|
6
|
+
readonly drawerProps: object;
|
|
7
|
+
readonly hasInput: boolean;
|
|
8
|
+
readonly picker: ReactNode;
|
|
9
|
+
readonly rawInput: unknown;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function ThemeChangeApprovalView({
|
|
13
|
+
Drawer,
|
|
14
|
+
drawerProps,
|
|
15
|
+
hasInput,
|
|
16
|
+
picker,
|
|
17
|
+
rawInput,
|
|
18
|
+
}: ThemeChangeApprovalViewProps): JSX.Element {
|
|
19
|
+
return (
|
|
20
|
+
<Drawer {...drawerProps}>
|
|
21
|
+
{hasInput ? (
|
|
22
|
+
picker
|
|
23
|
+
) : (
|
|
24
|
+
<pre className="max-h-[200px] overflow-auto whitespace-pre-wrap break-words rounded-lg border border-border/50 bg-background/50 p-3 font-mono text-[11px] leading-5 text-foreground">
|
|
25
|
+
{JSON.stringify(rawInput, null, 2)}
|
|
26
|
+
</pre>
|
|
27
|
+
)}
|
|
28
|
+
</Drawer>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ComponentType, JSX } from "react";
|
|
2
|
+
import {
|
|
3
|
+
ApprovalImpactCard,
|
|
4
|
+
ApprovalRawFallback,
|
|
5
|
+
type ApprovalRawFallbackLabels,
|
|
6
|
+
ApprovalTargetCard,
|
|
7
|
+
ApprovalWarningCard,
|
|
8
|
+
} from "./ApprovalParts";
|
|
9
|
+
import type { ManageActionApprovalFrameProps } from "./ManageActionApprovalFrameTypes";
|
|
10
|
+
|
|
11
|
+
export interface WebhookDeleteApprovalViewProps {
|
|
12
|
+
readonly Frame: ComponentType<ManageActionApprovalFrameProps>;
|
|
13
|
+
readonly frame: Omit<ManageActionApprovalFrameProps, "children">;
|
|
14
|
+
readonly input: { operation: "delete"; id: string } | null;
|
|
15
|
+
readonly rawInput: unknown;
|
|
16
|
+
readonly target: { readonly title: string; readonly subtitle: string };
|
|
17
|
+
readonly impactTitle: string;
|
|
18
|
+
readonly impactDescription: string;
|
|
19
|
+
readonly warning: string;
|
|
20
|
+
readonly rawFallbackLabels: ApprovalRawFallbackLabels;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function WebhookDeleteApprovalView({
|
|
24
|
+
Frame,
|
|
25
|
+
frame,
|
|
26
|
+
input,
|
|
27
|
+
rawInput,
|
|
28
|
+
target,
|
|
29
|
+
impactTitle,
|
|
30
|
+
impactDescription,
|
|
31
|
+
warning,
|
|
32
|
+
rawFallbackLabels,
|
|
33
|
+
}: WebhookDeleteApprovalViewProps): JSX.Element {
|
|
34
|
+
return (
|
|
35
|
+
<Frame {...frame}>
|
|
36
|
+
{input ? (
|
|
37
|
+
<>
|
|
38
|
+
<ApprovalTargetCard
|
|
39
|
+
icon="icon-[mdi--webhook]"
|
|
40
|
+
title={target.title}
|
|
41
|
+
subtitle={target.subtitle}
|
|
42
|
+
/>
|
|
43
|
+
<ApprovalImpactCard
|
|
44
|
+
icon="icon-[mdi--delete-outline]"
|
|
45
|
+
title={impactTitle}
|
|
46
|
+
description={impactDescription}
|
|
47
|
+
destructive
|
|
48
|
+
/>
|
|
49
|
+
<ApprovalWarningCard>{warning}</ApprovalWarningCard>
|
|
50
|
+
</>
|
|
51
|
+
) : (
|
|
52
|
+
<ApprovalRawFallback input={rawInput} labels={rawFallbackLabels} />
|
|
53
|
+
)}
|
|
54
|
+
</Frame>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ComponentType, JSX } from "react";
|
|
2
|
+
import {
|
|
3
|
+
ApprovalImpactCard,
|
|
4
|
+
ApprovalRawFallback,
|
|
5
|
+
type ApprovalRawFallbackLabels,
|
|
6
|
+
ApprovalTargetCard,
|
|
7
|
+
} from "./ApprovalParts";
|
|
8
|
+
import type { ManageActionApprovalFrameProps } from "./ManageActionApprovalFrameTypes";
|
|
9
|
+
|
|
10
|
+
export interface WebhookTestApprovalViewProps {
|
|
11
|
+
readonly Frame: ComponentType<ManageActionApprovalFrameProps>;
|
|
12
|
+
readonly frame: Omit<ManageActionApprovalFrameProps, "children">;
|
|
13
|
+
readonly input: { operation: "test"; id: string } | null;
|
|
14
|
+
readonly rawInput: unknown;
|
|
15
|
+
readonly target: { readonly title: string; readonly subtitle: string };
|
|
16
|
+
readonly impactTitle: string;
|
|
17
|
+
readonly impactDescription: string;
|
|
18
|
+
readonly rawFallbackLabels: ApprovalRawFallbackLabels;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function WebhookTestApprovalView({
|
|
22
|
+
Frame,
|
|
23
|
+
frame,
|
|
24
|
+
input,
|
|
25
|
+
rawInput,
|
|
26
|
+
target,
|
|
27
|
+
impactTitle,
|
|
28
|
+
impactDescription,
|
|
29
|
+
rawFallbackLabels,
|
|
30
|
+
}: WebhookTestApprovalViewProps): JSX.Element {
|
|
31
|
+
return (
|
|
32
|
+
<Frame {...frame}>
|
|
33
|
+
{input ? (
|
|
34
|
+
<>
|
|
35
|
+
<ApprovalTargetCard
|
|
36
|
+
icon="icon-[mdi--webhook]"
|
|
37
|
+
title={target.title}
|
|
38
|
+
subtitle={target.subtitle}
|
|
39
|
+
/>
|
|
40
|
+
<ApprovalImpactCard
|
|
41
|
+
icon="icon-[mdi--test-tube]"
|
|
42
|
+
title={impactTitle}
|
|
43
|
+
description={impactDescription}
|
|
44
|
+
/>
|
|
45
|
+
</>
|
|
46
|
+
) : (
|
|
47
|
+
<ApprovalRawFallback input={rawInput} labels={rawFallbackLabels} />
|
|
48
|
+
)}
|
|
49
|
+
</Frame>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
AppearanceActionPickerViewLabels,
|
|
3
|
+
AppearanceActionPickerViewProps,
|
|
4
|
+
AppearanceCursorOption,
|
|
5
|
+
AppearanceModeOption,
|
|
6
|
+
AppearanceThemeMode,
|
|
7
|
+
AppearanceThemePalettePreview,
|
|
8
|
+
AppearanceThemePreview,
|
|
9
|
+
} from "./AppearanceActionPickerView";
|
|
10
|
+
export { AppearanceActionPickerView } from "./AppearanceActionPickerView";
|
|
11
|
+
export type {
|
|
12
|
+
AppearanceApprovalDrawerViewLabels,
|
|
13
|
+
AppearanceApprovalDrawerViewProps,
|
|
14
|
+
} from "./AppearanceApprovalDrawerView";
|
|
15
|
+
export { AppearanceApprovalDrawerView } from "./AppearanceApprovalDrawerView";
|
|
16
|
+
export type { AppearancePickerApprovalViewProps } from "./AppearancePickerApprovalView";
|
|
17
|
+
export { AppearancePickerApprovalView } from "./AppearancePickerApprovalView";
|
|
18
|
+
export type { ApprovalRawFallbackLabels } from "./ApprovalParts";
|
|
19
|
+
export {
|
|
20
|
+
ApprovalFormField,
|
|
21
|
+
ApprovalImpactCard,
|
|
22
|
+
ApprovalRawFallback,
|
|
23
|
+
ApprovalSettingGroup,
|
|
24
|
+
ApprovalSettingRow,
|
|
25
|
+
ApprovalTargetCard,
|
|
26
|
+
ApprovalToggleIntentCard,
|
|
27
|
+
ApprovalValueList,
|
|
28
|
+
ApprovalValueRow,
|
|
29
|
+
ApprovalWarningCard,
|
|
30
|
+
} from "./ApprovalParts";
|
|
31
|
+
export type {
|
|
32
|
+
BatchTasksApprovalFrameViewLabels,
|
|
33
|
+
BatchTasksApprovalFrameViewProps,
|
|
34
|
+
} from "./BatchTasksApprovalFrameView";
|
|
35
|
+
export { BatchTasksApprovalFrameView } from "./BatchTasksApprovalFrameView";
|
|
36
|
+
export type {
|
|
37
|
+
BatchTasksExecutionApprovalViewProps,
|
|
38
|
+
BatchTasksExecutionSelectedTask,
|
|
39
|
+
BatchTasksExecutionStatusCount,
|
|
40
|
+
} from "./BatchTasksExecutionApprovalView";
|
|
41
|
+
export { BatchTasksExecutionApprovalView } from "./BatchTasksExecutionApprovalView";
|
|
42
|
+
export type { BatchTasksTaskApprovalViewProps } from "./BatchTasksTaskApprovalView";
|
|
43
|
+
export { BatchTasksTaskApprovalView } from "./BatchTasksTaskApprovalView";
|
|
44
|
+
export type {
|
|
45
|
+
ExecutionModeOption,
|
|
46
|
+
GeneralSetExecutionModeApprovalViewProps,
|
|
47
|
+
} from "./GeneralSetExecutionModeApprovalView";
|
|
48
|
+
export { GeneralSetExecutionModeApprovalView } from "./GeneralSetExecutionModeApprovalView";
|
|
49
|
+
export type {
|
|
50
|
+
GenericActionApprovalField,
|
|
51
|
+
GenericActionApprovalViewLabels,
|
|
52
|
+
GenericActionApprovalViewProps,
|
|
53
|
+
} from "./GenericActionApprovalView";
|
|
54
|
+
export { GenericActionApprovalView } from "./GenericActionApprovalView";
|
|
55
|
+
export type {
|
|
56
|
+
ManageActionApprovalFrameLabels,
|
|
57
|
+
ManageActionApprovalFrameProps,
|
|
58
|
+
} from "./ManageActionApprovalFrameTypes";
|
|
59
|
+
export type {
|
|
60
|
+
ManageActionApprovalFrameViewLabels,
|
|
61
|
+
ManageActionApprovalFrameViewProps,
|
|
62
|
+
} from "./ManageActionApprovalFrameView";
|
|
63
|
+
export { ManageActionApprovalFrameView } from "./ManageActionApprovalFrameView";
|
|
64
|
+
export type {
|
|
65
|
+
NavigationOpenApprovalField,
|
|
66
|
+
NavigationOpenApprovalViewLabels,
|
|
67
|
+
NavigationOpenApprovalViewProps,
|
|
68
|
+
} from "./NavigationOpenApprovalView";
|
|
69
|
+
export { NavigationOpenApprovalView } from "./NavigationOpenApprovalView";
|
|
70
|
+
export type {
|
|
71
|
+
SchedulerActionApprovalDialogViewDetail,
|
|
72
|
+
SchedulerActionApprovalDialogViewLabels,
|
|
73
|
+
SchedulerActionApprovalDialogViewProps,
|
|
74
|
+
} from "./SchedulerActionApprovalDialogView";
|
|
75
|
+
export { SchedulerActionApprovalDialogView } from "./SchedulerActionApprovalDialogView";
|
|
76
|
+
export type {
|
|
77
|
+
SchedulerEditApprovalDrawerViewLabels,
|
|
78
|
+
SchedulerEditApprovalDrawerViewProps,
|
|
79
|
+
} from "./SchedulerEditApprovalDrawerView";
|
|
80
|
+
export { SchedulerEditApprovalDrawerView } from "./SchedulerEditApprovalDrawerView";
|
|
81
|
+
export type { SchedulerUpdateApprovalViewProps } from "./SchedulerUpdateApprovalView";
|
|
82
|
+
export { SchedulerUpdateApprovalView } from "./SchedulerUpdateApprovalView";
|
|
83
|
+
export type { ThemeChangeApprovalViewProps } from "./ThemeChangeApprovalView";
|
|
84
|
+
export { ThemeChangeApprovalView } from "./ThemeChangeApprovalView";
|
|
85
|
+
export type { WebhookDeleteApprovalViewProps } from "./WebhookDeleteApprovalView";
|
|
86
|
+
export { WebhookDeleteApprovalView } from "./WebhookDeleteApprovalView";
|
|
87
|
+
export type { WebhookTestApprovalViewProps } from "./WebhookTestApprovalView";
|
|
88
|
+
export { WebhookTestApprovalView } from "./WebhookTestApprovalView";
|