@stigmer/react 3.11.0 → 3.12.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/activity/useRecentActivity.d.ts +3 -2
- package/activity/useRecentActivity.d.ts.map +1 -1
- package/activity/useRecentActivity.js +3 -2
- package/activity/useRecentActivity.js.map +1 -1
- package/agent/AgentDetailView.d.ts +2 -12
- package/agent/AgentDetailView.d.ts.map +1 -1
- package/agent/AgentDetailView.js +10 -42
- package/agent/AgentDetailView.js.map +1 -1
- package/agent/internal/agentToInput.d.ts.map +1 -1
- package/agent/internal/agentToInput.js +0 -8
- package/agent/internal/agentToInput.js.map +1 -1
- package/agent-instance/AgentInstanceList.d.ts.map +1 -1
- package/agent-instance/AgentInstanceList.js +2 -1
- package/agent-instance/AgentInstanceList.js.map +1 -1
- package/api-key/ApiKeyListPanel.d.ts.map +1 -1
- package/api-key/ApiKeyListPanel.js +2 -1
- package/api-key/ApiKeyListPanel.js.map +1 -1
- package/attachment/AttachmentChipList.d.ts.map +1 -1
- package/attachment/AttachmentChipList.js +9 -8
- package/attachment/AttachmentChipList.js.map +1 -1
- package/attachment/AttachmentImageLightbox.d.ts.map +1 -1
- package/attachment/AttachmentImageLightbox.js +1 -1
- package/attachment/AttachmentImageLightbox.js.map +1 -1
- package/channel/AgentChannelsPanel.d.ts.map +1 -1
- package/channel/AgentChannelsPanel.js +2 -1
- package/channel/AgentChannelsPanel.js.map +1 -1
- package/channel/ChannelConversationsDialog.d.ts.map +1 -1
- package/channel/ChannelConversationsDialog.js +2 -1
- package/channel/ChannelConversationsDialog.js.map +1 -1
- package/channel/ChannelTemplatesDialog.d.ts.map +1 -1
- package/channel/ChannelTemplatesDialog.js +2 -1
- package/channel/ChannelTemplatesDialog.js.map +1 -1
- package/channel-app/internal.d.ts.map +1 -1
- package/channel-app/internal.js +2 -1
- package/channel-app/internal.js.map +1 -1
- package/composer/ComposerToolbar.d.ts.map +1 -1
- package/composer/ComposerToolbar.js +10 -7
- package/composer/ComposerToolbar.js.map +1 -1
- package/composer/ConfigureMenu.d.ts.map +1 -1
- package/composer/ConfigureMenu.js +2 -1
- package/composer/ConfigureMenu.js.map +1 -1
- package/composer/ContextChip.d.ts.map +1 -1
- package/composer/ContextChip.js +2 -1
- package/composer/ContextChip.js.map +1 -1
- package/composer/ContextPopover.d.ts.map +1 -1
- package/composer/ContextPopover.js +2 -1
- package/composer/ContextPopover.js.map +1 -1
- package/composer/SessionComposer.d.ts +13 -0
- package/composer/SessionComposer.d.ts.map +1 -1
- package/composer/SessionComposer.js +12 -2
- package/composer/SessionComposer.js.map +1 -1
- package/conversation/ConversationMediaAttachment.d.ts.map +1 -1
- package/conversation/ConversationMediaAttachment.js +2 -1
- package/conversation/ConversationMediaAttachment.js.map +1 -1
- package/conversation/ConversationTimelineView.d.ts.map +1 -1
- package/conversation/ConversationTimelineView.js +14 -4
- package/conversation/ConversationTimelineView.js.map +1 -1
- package/conversation/conversationPresentation.d.ts +28 -0
- package/conversation/conversationPresentation.d.ts.map +1 -1
- package/conversation/conversationPresentation.js +38 -1
- package/conversation/conversationPresentation.js.map +1 -1
- package/cursor-accounts/MemberCoverageTable.d.ts.map +1 -1
- package/cursor-accounts/MemberCoverageTable.js +6 -5
- package/cursor-accounts/MemberCoverageTable.js.map +1 -1
- package/dashboard/DashboardKPICards.d.ts.map +1 -1
- package/dashboard/DashboardKPICards.js +3 -1
- package/dashboard/DashboardKPICards.js.map +1 -1
- package/dependency-graph/DependencyTreeNode.d.ts.map +1 -1
- package/dependency-graph/DependencyTreeNode.js +1 -7
- package/dependency-graph/DependencyTreeNode.js.map +1 -1
- package/dependency-graph/types.d.ts +8 -20
- package/dependency-graph/types.d.ts.map +1 -1
- package/dependency-graph/useDependencyGraph.d.ts.map +1 -1
- package/dependency-graph/useDependencyGraph.js +2 -20
- package/dependency-graph/useDependencyGraph.js.map +1 -1
- package/environment/EnvironmentVariableEditor.d.ts.map +1 -1
- package/environment/EnvironmentVariableEditor.js +2 -1
- package/environment/EnvironmentVariableEditor.js.map +1 -1
- package/execution/ApprovalCard.d.ts.map +1 -1
- package/execution/ApprovalCard.js +1 -1
- package/execution/ApprovalCard.js.map +1 -1
- package/execution/ArtifactRowView.d.ts.map +1 -1
- package/execution/ArtifactRowView.js +2 -1
- package/execution/ArtifactRowView.js.map +1 -1
- package/execution/FilePathLink.d.ts +4 -4
- package/execution/FilePathLink.d.ts.map +1 -1
- package/execution/FilePathLink.js +4 -4
- package/execution/FilePathLink.js.map +1 -1
- package/execution/McpToolDetail.d.ts.map +1 -1
- package/execution/McpToolDetail.js +2 -1
- package/execution/McpToolDetail.js.map +1 -1
- package/execution/MessageAttachments.d.ts.map +1 -1
- package/execution/MessageAttachments.js +10 -8
- package/execution/MessageAttachments.js.map +1 -1
- package/execution/MessageEntry.d.ts.map +1 -1
- package/execution/MessageEntry.js +2 -1
- package/execution/MessageEntry.js.map +1 -1
- package/execution/PlanArtifactCard.d.ts.map +1 -1
- package/execution/PlanArtifactCard.js +7 -4
- package/execution/PlanArtifactCard.js.map +1 -1
- package/execution/ToolCallDetail.d.ts.map +1 -1
- package/execution/ToolCallDetail.js +1 -1
- package/execution/ToolCallDetail.js.map +1 -1
- package/execution/ToolCallItem.d.ts.map +1 -1
- package/execution/ToolCallItem.js +5 -1
- package/execution/ToolCallItem.js.map +1 -1
- package/execution/WriteBackCard.d.ts.map +1 -1
- package/execution/WriteBackCard.js +6 -4
- package/execution/WriteBackCard.js.map +1 -1
- package/execution/artifact-row-item.d.ts +1 -1
- package/execution/artifact-row-item.d.ts.map +1 -1
- package/file-reference/FileReferenceChipList.d.ts.map +1 -1
- package/file-reference/FileReferenceChipList.js +6 -1
- package/file-reference/FileReferenceChipList.js.map +1 -1
- package/iam-policy/OrgMembersPanel.d.ts.map +1 -1
- package/iam-policy/OrgMembersPanel.js +6 -5
- package/iam-policy/OrgMembersPanel.js.map +1 -1
- package/iam-policy/ProviderBadge.d.ts.map +1 -1
- package/iam-policy/ProviderBadge.js +3 -2
- package/iam-policy/ProviderBadge.js.map +1 -1
- package/iam-policy/RoleSelector.d.ts.map +1 -1
- package/iam-policy/RoleSelector.js +1 -1
- package/iam-policy/RoleSelector.js.map +1 -1
- package/identity-provider/IdentityProviderListPanel.d.ts.map +1 -1
- package/identity-provider/IdentityProviderListPanel.js +2 -1
- package/identity-provider/IdentityProviderListPanel.js.map +1 -1
- package/index.d.ts +0 -2
- package/index.d.ts.map +1 -1
- package/index.js +0 -6
- package/index.js.map +1 -1
- package/internal/truncated-text.d.ts +17 -0
- package/internal/truncated-text.d.ts.map +1 -0
- package/internal/truncated-text.js +27 -0
- package/internal/truncated-text.js.map +1 -0
- package/invitation/InvitationManager.d.ts.map +1 -1
- package/invitation/InvitationManager.js +4 -3
- package/invitation/InvitationManager.js.map +1 -1
- package/library/ScopeToggle.d.ts.map +1 -1
- package/library/ScopeToggle.js +10 -2
- package/library/ScopeToggle.js.map +1 -1
- package/library/VisibilitySelector.d.ts.map +1 -1
- package/library/VisibilitySelector.js +2 -1
- package/library/VisibilitySelector.js.map +1 -1
- package/library/useExportResource.d.ts +3 -4
- package/library/useExportResource.d.ts.map +1 -1
- package/library/useExportResource.js +1 -1
- package/library/useExportResource.js.map +1 -1
- package/manifest/EditResourceYamlDialog.d.ts.map +1 -1
- package/manifest/EditResourceYamlDialog.js.map +1 -1
- package/mcp-server/McpServerConfigPanel.d.ts +30 -1
- package/mcp-server/McpServerConfigPanel.d.ts.map +1 -1
- package/mcp-server/McpServerConfigPanel.js +18 -8
- package/mcp-server/McpServerConfigPanel.js.map +1 -1
- package/mcp-server/McpServerConnectDialog.d.ts +12 -1
- package/mcp-server/McpServerConnectDialog.d.ts.map +1 -1
- package/mcp-server/McpServerConnectDialog.js +8 -7
- package/mcp-server/McpServerConnectDialog.js.map +1 -1
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js +4 -4
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/mcp-server/McpServerPicker.d.ts.map +1 -1
- package/mcp-server/McpServerPicker.js +86 -5
- package/mcp-server/McpServerPicker.js.map +1 -1
- package/mcp-server/McpToolSelector.d.ts.map +1 -1
- package/mcp-server/McpToolSelector.js +2 -1
- package/mcp-server/McpToolSelector.js.map +1 -1
- package/mcp-server/VendorApprovalBlockedNotice.d.ts +77 -0
- package/mcp-server/VendorApprovalBlockedNotice.d.ts.map +1 -0
- package/mcp-server/VendorApprovalBlockedNotice.js +62 -0
- package/mcp-server/VendorApprovalBlockedNotice.js.map +1 -0
- package/mcp-server/mcpServerSetupReducer.d.ts +18 -0
- package/mcp-server/mcpServerSetupReducer.d.ts.map +1 -1
- package/mcp-server/mcpServerSetupReducer.js +6 -0
- package/mcp-server/mcpServerSetupReducer.js.map +1 -1
- package/mcp-server/useMcpServerSetup.d.ts.map +1 -1
- package/mcp-server/useMcpServerSetup.js +7 -0
- package/mcp-server/useMcpServerSetup.js.map +1 -1
- package/oauth-app/OAuthAppListPanel.d.ts.map +1 -1
- package/oauth-app/OAuthAppListPanel.js +2 -1
- package/oauth-app/OAuthAppListPanel.js.map +1 -1
- package/package.json +4 -4
- package/platform-client/PlatformClientListPanel.d.ts.map +1 -1
- package/platform-client/PlatformClientListPanel.js +3 -2
- package/platform-client/PlatformClientListPanel.js.map +1 -1
- package/pricing-governance/BaselineEditor.d.ts.map +1 -1
- package/pricing-governance/BaselineEditor.js +7 -1
- package/pricing-governance/BaselineEditor.js.map +1 -1
- package/pricing-governance/ModelCatalogPanel.d.ts.map +1 -1
- package/pricing-governance/ModelCatalogPanel.js +2 -1
- package/pricing-governance/ModelCatalogPanel.js.map +1 -1
- package/pricing-governance/PricingGovernanceConsole.d.ts.map +1 -1
- package/pricing-governance/PricingGovernanceConsole.js +2 -1
- package/pricing-governance/PricingGovernanceConsole.js.map +1 -1
- package/pricing-governance/PricingGovernancePanel.d.ts.map +1 -1
- package/pricing-governance/PricingGovernancePanel.js +2 -1
- package/pricing-governance/PricingGovernancePanel.js.map +1 -1
- package/resource-workbench/components/StatusBadge.d.ts.map +1 -1
- package/resource-workbench/components/StatusBadge.js +2 -1
- package/resource-workbench/components/StatusBadge.js.map +1 -1
- package/schedule/CadenceField.d.ts.map +1 -1
- package/schedule/CadenceField.js +15 -8
- package/schedule/CadenceField.js.map +1 -1
- package/schedule/ScheduleRunsTable.d.ts.map +1 -1
- package/schedule/ScheduleRunsTable.js +3 -2
- package/schedule/ScheduleRunsTable.js.map +1 -1
- package/session/PlanEditor.d.ts.map +1 -1
- package/session/PlanEditor.js +3 -5
- package/session/PlanEditor.js.map +1 -1
- package/sharing/AgentShareList.d.ts.map +1 -1
- package/sharing/AgentShareList.js +3 -1
- package/sharing/AgentShareList.js.map +1 -1
- package/sharing/ShareAgentDialog.d.ts.map +1 -1
- package/sharing/ShareAgentDialog.js +2 -1
- package/sharing/ShareAgentDialog.js.map +1 -1
- package/skill/SkillDetailView.d.ts.map +1 -1
- package/skill/SkillDetailView.js +3 -2
- package/skill/SkillDetailView.js.map +1 -1
- package/src/__tests__/helpers/open-menu.ts +88 -0
- package/src/__tests__/portal-container.test.tsx +3 -3
- package/src/activity/useRecentActivity.ts +3 -2
- package/src/agent/AgentDetailView.tsx +6 -130
- package/src/agent/internal/__tests__/agentToInput.test.ts +2 -11
- package/src/agent/internal/agentToInput.ts +0 -11
- package/src/agent-instance/AgentInstanceList.tsx +5 -6
- package/src/agent-instance/__tests__/AgentInstanceList.test.tsx +5 -4
- package/src/api-key/ApiKeyListPanel.tsx +11 -3
- package/src/attachment/AttachmentChipList.tsx +74 -65
- package/src/attachment/AttachmentImageLightbox.tsx +5 -4
- package/src/attachment/__tests__/AttachmentChipList.test.tsx +4 -3
- package/src/channel/AgentChannelsPanel.tsx +5 -6
- package/src/channel/ChannelConversationsDialog.tsx +5 -3
- package/src/channel/ChannelTemplatesDialog.tsx +5 -6
- package/src/channel/__tests__/AgentChannelsPanel.test.tsx +14 -9
- package/src/channel-app/internal.tsx +5 -6
- package/src/composer/ComposerToolbar.tsx +122 -90
- package/src/composer/ConfigureMenu.tsx +33 -24
- package/src/composer/ContextChip.tsx +2 -3
- package/src/composer/ContextPopover.tsx +27 -18
- package/src/composer/SessionComposer.tsx +41 -9
- package/src/composer/__tests__/SessionComposer-agentSetupError.test.tsx +124 -0
- package/src/composer/__tests__/SessionComposer-lockAgent.test.tsx +4 -9
- package/src/conversation/ConversationMediaAttachment.tsx +2 -2
- package/src/conversation/ConversationTimelineView.tsx +19 -2
- package/src/conversation/__tests__/ConversationTimelineView.test.tsx +106 -3
- package/src/conversation/conversationPresentation.ts +52 -1
- package/src/cursor-accounts/MemberCoverageTable.tsx +15 -13
- package/src/cursor-accounts/__tests__/CursorAccountsConsole.test.tsx +4 -4
- package/src/dashboard/DashboardKPICards.tsx +2 -1
- package/src/dependency-graph/DependencyTreeNode.tsx +1 -7
- package/src/dependency-graph/__tests__/useDependencyGraph.test.ts +18 -34
- package/src/dependency-graph/types.ts +8 -20
- package/src/dependency-graph/useDependencyGraph.ts +2 -22
- package/src/environment/EnvironmentVariableEditor.tsx +17 -6
- package/src/execution/ApprovalCard.tsx +1 -3
- package/src/execution/ArtifactRowView.tsx +68 -48
- package/src/execution/FilePathLink.tsx +43 -27
- package/src/execution/McpToolDetail.tsx +6 -2
- package/src/execution/MessageAttachments.tsx +57 -41
- package/src/execution/MessageEntry.tsx +22 -15
- package/src/execution/PlanArtifactCard.tsx +25 -18
- package/src/execution/ToolCallDetail.tsx +1 -4
- package/src/execution/ToolCallItem.tsx +18 -7
- package/src/execution/WriteBackCard.tsx +38 -29
- package/src/execution/__tests__/ArtifactRow.test.tsx +6 -2
- package/src/execution/__tests__/ArtifactRowView.test.tsx +5 -2
- package/src/execution/__tests__/FilePathLink.test.tsx +10 -6
- package/src/execution/__tests__/FileReviewCard.test.tsx +2 -1
- package/src/execution/__tests__/MessageEntry-attachments.test.tsx +3 -2
- package/src/execution/__tests__/MessageThread.test.tsx +6 -1
- package/src/execution/__tests__/artifact-row-tooltips.layout.test.tsx +115 -0
- package/src/execution/artifact-row-item.ts +1 -1
- package/src/file-reference/FileReferenceChipList.tsx +29 -17
- package/src/file-reference/__tests__/FileReferenceChipList.test.tsx +5 -2
- package/src/iam-policy/OrgMembersPanel.tsx +26 -19
- package/src/iam-policy/ProviderBadge.tsx +17 -10
- package/src/iam-policy/RoleSelector.tsx +0 -1
- package/src/identity-provider/IdentityProviderListPanel.tsx +11 -3
- package/src/index.ts +0 -82
- package/src/internal/__tests__/truncated-text.layout.test.tsx +68 -0
- package/src/internal/__tests__/truncated-text.test.tsx +33 -0
- package/src/internal/truncated-text.tsx +81 -0
- package/src/invitation/InvitationManager.tsx +18 -5
- package/src/library/ScopeToggle.tsx +14 -2
- package/src/library/VisibilitySelector.tsx +21 -14
- package/src/library/useExportResource.ts +3 -4
- package/src/manifest/EditResourceYamlDialog.tsx +1 -2
- package/src/manifest/__tests__/ApplyManifestDialog.test.tsx +2 -2
- package/src/manifest/__tests__/EditResourceYamlDialog.test.tsx +9 -9
- package/src/mcp-server/McpServerConfigPanel.tsx +79 -37
- package/src/mcp-server/McpServerConnectDialog.tsx +41 -5
- package/src/mcp-server/McpServerDetailView.tsx +23 -39
- package/src/mcp-server/McpServerPicker.tsx +99 -7
- package/src/mcp-server/McpToolSelector.tsx +12 -7
- package/src/mcp-server/VendorApprovalBlockedNotice.tsx +221 -0
- package/src/mcp-server/__tests__/McpServerPicker.test.tsx +504 -0
- package/src/mcp-server/__tests__/VendorApprovalBlocked.surfaces.test.tsx +321 -0
- package/src/mcp-server/__tests__/VendorApprovalBlockedNotice.test.tsx +154 -0
- package/src/mcp-server/mcpServerSetupReducer.ts +24 -0
- package/src/mcp-server/useMcpServerSetup.ts +9 -0
- package/src/oauth-app/OAuthAppListPanel.tsx +11 -3
- package/src/platform-client/PlatformClientListPanel.tsx +35 -18
- package/src/pricing-governance/BaselineEditor.tsx +20 -0
- package/src/pricing-governance/ModelCatalogPanel.tsx +9 -5
- package/src/pricing-governance/PricingGovernanceConsole.tsx +9 -5
- package/src/pricing-governance/PricingGovernancePanel.tsx +13 -4
- package/src/pricing-governance/__tests__/ModelCatalogPanel.test.tsx +37 -0
- package/src/resource-workbench/components/StatusBadge.tsx +7 -3
- package/src/schedule/CadenceField.tsx +38 -27
- package/src/schedule/ScheduleRunsTable.tsx +23 -11
- package/src/schedule/__tests__/cadence-tooltips.layout.test.tsx +86 -0
- package/src/session/PlanEditor.tsx +9 -8
- package/src/sharing/AgentShareList.tsx +28 -22
- package/src/sharing/ShareAgentDialog.tsx +5 -6
- package/src/sharing/__tests__/AgentShareList.test.tsx +4 -4
- package/src/skill/SkillDetailView.tsx +23 -12
- package/src/version-history/VersionTimelineEntry.tsx +21 -12
- package/src/workflow/CanvasTransitionEdge.tsx +23 -16
- package/src/workflow/ExecutionActiveTaskIndicator.tsx +74 -59
- package/src/workflow/TaskPickerPopover.tsx +0 -1
- package/src/workflow/WorkflowCanvasEditor.tsx +95 -64
- package/src/workflow/WorkflowNode.tsx +13 -6
- package/src/workflow/WorkflowTaskApprovalSummary.tsx +18 -11
- package/src/workflow/WorkflowTaskList.tsx +2 -2
- package/src/workflow/WorkflowVersionBadge.tsx +33 -18
- package/src/workflow/WorkflowVersionTimeline.tsx +7 -6
- package/src/workflow/__tests__/WorkflowTaskApprovalSummary.test.tsx +3 -1
- package/src/workflow/__tests__/structured-data-viewer.test.tsx +5 -2
- package/src/workflow/execution-comparison/ExecutionComparisonView.tsx +5 -3
- package/src/workflow/execution-comparison/TaskComparisonTable.tsx +12 -5
- package/src/workflow/execution-history/ExecutionHistoryTable.tsx +24 -15
- package/src/workflow/inspector/InspectorHeader.tsx +20 -11
- package/src/workflow/inspector/NestedTaskList.tsx +18 -11
- package/src/workflow/inspector/WorkflowSummaryPanel.tsx +5 -3
- package/src/workflow/inspector/tabs/BranchesTab.tsx +61 -31
- package/src/workflow/instance/WorkflowInstanceList.tsx +5 -6
- package/src/workflow/instance/__tests__/WorkflowInstanceList.test.tsx +5 -4
- package/src/workflow/node-shell/DiffBadge.tsx +18 -11
- package/src/workflow/node-shell/ExecutionBadge.tsx +73 -46
- package/src/workflow/node-shell/NodeActions.tsx +128 -94
- package/src/workflow/task-detail/StructuredDataViewer.tsx +4 -2
- package/src/workspace/EditorTabs.tsx +102 -85
- package/src/workspace/ExplorerTree.tsx +47 -30
- package/src/workspace/FileViewer.tsx +11 -3
- package/src/workspace/PanelChip.tsx +32 -23
- package/src/workspace/WorkspaceEditor.tsx +21 -9
- package/src/workspace/WorkspaceSummary.tsx +21 -12
- package/src/workspace/WorkspaceSurface.tsx +86 -61
- package/src/workspace/__tests__/EditorTabs.test.tsx +5 -2
- package/src/workspace/__tests__/WorkspaceSurface.test.tsx +5 -2
- package/styles.css +1 -1
- package/version-history/VersionTimelineEntry.d.ts.map +1 -1
- package/version-history/VersionTimelineEntry.js +2 -1
- package/version-history/VersionTimelineEntry.js.map +1 -1
- package/workflow/CanvasTransitionEdge.d.ts +1 -1
- package/workflow/CanvasTransitionEdge.d.ts.map +1 -1
- package/workflow/CanvasTransitionEdge.js +3 -2
- package/workflow/CanvasTransitionEdge.js.map +1 -1
- package/workflow/ExecutionActiveTaskIndicator.d.ts.map +1 -1
- package/workflow/ExecutionActiveTaskIndicator.js +12 -11
- package/workflow/ExecutionActiveTaskIndicator.js.map +1 -1
- package/workflow/TaskPickerPopover.js +1 -1
- package/workflow/TaskPickerPopover.js.map +1 -1
- package/workflow/WorkflowCanvasEditor.d.ts.map +1 -1
- package/workflow/WorkflowCanvasEditor.js +9 -2
- package/workflow/WorkflowCanvasEditor.js.map +1 -1
- package/workflow/WorkflowNode.d.ts.map +1 -1
- package/workflow/WorkflowNode.js +2 -1
- package/workflow/WorkflowNode.js.map +1 -1
- package/workflow/WorkflowTaskApprovalSummary.d.ts.map +1 -1
- package/workflow/WorkflowTaskApprovalSummary.js +6 -4
- package/workflow/WorkflowTaskApprovalSummary.js.map +1 -1
- package/workflow/WorkflowTaskList.js +2 -2
- package/workflow/WorkflowTaskList.js.map +1 -1
- package/workflow/WorkflowVersionBadge.d.ts.map +1 -1
- package/workflow/WorkflowVersionBadge.js +2 -1
- package/workflow/WorkflowVersionBadge.js.map +1 -1
- package/workflow/WorkflowVersionTimeline.d.ts.map +1 -1
- package/workflow/WorkflowVersionTimeline.js +2 -1
- package/workflow/WorkflowVersionTimeline.js.map +1 -1
- package/workflow/execution-comparison/ExecutionComparisonView.d.ts.map +1 -1
- package/workflow/execution-comparison/ExecutionComparisonView.js +2 -1
- package/workflow/execution-comparison/ExecutionComparisonView.js.map +1 -1
- package/workflow/execution-comparison/TaskComparisonTable.d.ts.map +1 -1
- package/workflow/execution-comparison/TaskComparisonTable.js +2 -1
- package/workflow/execution-comparison/TaskComparisonTable.js.map +1 -1
- package/workflow/execution-history/ExecutionHistoryTable.d.ts.map +1 -1
- package/workflow/execution-history/ExecutionHistoryTable.js +6 -4
- package/workflow/execution-history/ExecutionHistoryTable.js.map +1 -1
- package/workflow/inspector/InspectorHeader.d.ts.map +1 -1
- package/workflow/inspector/InspectorHeader.js +4 -2
- package/workflow/inspector/InspectorHeader.js.map +1 -1
- package/workflow/inspector/NestedTaskList.d.ts.map +1 -1
- package/workflow/inspector/NestedTaskList.js +2 -1
- package/workflow/inspector/NestedTaskList.js.map +1 -1
- package/workflow/inspector/WorkflowSummaryPanel.d.ts.map +1 -1
- package/workflow/inspector/WorkflowSummaryPanel.js +2 -1
- package/workflow/inspector/WorkflowSummaryPanel.js.map +1 -1
- package/workflow/inspector/tabs/BranchesTab.d.ts.map +1 -1
- package/workflow/inspector/tabs/BranchesTab.js +5 -2
- package/workflow/inspector/tabs/BranchesTab.js.map +1 -1
- package/workflow/instance/WorkflowInstanceList.d.ts.map +1 -1
- package/workflow/instance/WorkflowInstanceList.js +2 -1
- package/workflow/instance/WorkflowInstanceList.js.map +1 -1
- package/workflow/node-shell/DiffBadge.d.ts.map +1 -1
- package/workflow/node-shell/DiffBadge.js +3 -2
- package/workflow/node-shell/DiffBadge.js.map +1 -1
- package/workflow/node-shell/ExecutionBadge.d.ts.map +1 -1
- package/workflow/node-shell/ExecutionBadge.js +5 -4
- package/workflow/node-shell/ExecutionBadge.js.map +1 -1
- package/workflow/node-shell/NodeActions.d.ts.map +1 -1
- package/workflow/node-shell/NodeActions.js +12 -11
- package/workflow/node-shell/NodeActions.js.map +1 -1
- package/workflow/task-detail/StructuredDataViewer.d.ts.map +1 -1
- package/workflow/task-detail/StructuredDataViewer.js +5 -1
- package/workflow/task-detail/StructuredDataViewer.js.map +1 -1
- package/workspace/EditorTabs.d.ts.map +1 -1
- package/workspace/EditorTabs.js +38 -37
- package/workspace/EditorTabs.js.map +1 -1
- package/workspace/ExplorerTree.d.ts.map +1 -1
- package/workspace/ExplorerTree.js +2 -1
- package/workspace/ExplorerTree.js.map +1 -1
- package/workspace/FileViewer.d.ts.map +1 -1
- package/workspace/FileViewer.js +2 -1
- package/workspace/FileViewer.js.map +1 -1
- package/workspace/PanelChip.d.ts.map +1 -1
- package/workspace/PanelChip.js +2 -1
- package/workspace/PanelChip.js.map +1 -1
- package/workspace/WorkspaceEditor.d.ts.map +1 -1
- package/workspace/WorkspaceEditor.js +2 -1
- package/workspace/WorkspaceEditor.js.map +1 -1
- package/workspace/WorkspaceSummary.d.ts.map +1 -1
- package/workspace/WorkspaceSummary.js +7 -2
- package/workspace/WorkspaceSummary.js.map +1 -1
- package/workspace/WorkspaceSurface.d.ts.map +1 -1
- package/workspace/WorkspaceSurface.js +12 -11
- package/workspace/WorkspaceSurface.js.map +1 -1
- package/datastore/CollectionRecordsBrowser.d.ts +0 -34
- package/datastore/CollectionRecordsBrowser.d.ts.map +0 -1
- package/datastore/CollectionRecordsBrowser.js +0 -223
- package/datastore/CollectionRecordsBrowser.js.map +0 -1
- package/datastore/CollectionSchemaView.d.ts +0 -29
- package/datastore/CollectionSchemaView.d.ts.map +0 -1
- package/datastore/CollectionSchemaView.js +0 -93
- package/datastore/CollectionSchemaView.js.map +0 -1
- package/datastore/DatastoreDetailView.d.ts +0 -44
- package/datastore/DatastoreDetailView.d.ts.map +0 -1
- package/datastore/DatastoreDetailView.js +0 -76
- package/datastore/DatastoreDetailView.js.map +0 -1
- package/datastore/DatastoreSyncReport.d.ts +0 -19
- package/datastore/DatastoreSyncReport.d.ts.map +0 -1
- package/datastore/DatastoreSyncReport.js +0 -45
- package/datastore/DatastoreSyncReport.js.map +0 -1
- package/datastore/DeleteDatastoreDialog.d.ts +0 -35
- package/datastore/DeleteDatastoreDialog.d.ts.map +0 -1
- package/datastore/DeleteDatastoreDialog.js +0 -90
- package/datastore/DeleteDatastoreDialog.js.map +0 -1
- package/datastore/FieldValueControl.d.ts +0 -55
- package/datastore/FieldValueControl.d.ts.map +0 -1
- package/datastore/FieldValueControl.js +0 -138
- package/datastore/FieldValueControl.js.map +0 -1
- package/datastore/RecordFilterBuilder.d.ts +0 -37
- package/datastore/RecordFilterBuilder.d.ts.map +0 -1
- package/datastore/RecordFilterBuilder.js +0 -122
- package/datastore/RecordFilterBuilder.js.map +0 -1
- package/datastore/RecordFormPanel.d.ts +0 -45
- package/datastore/RecordFormPanel.d.ts.map +0 -1
- package/datastore/RecordFormPanel.js +0 -215
- package/datastore/RecordFormPanel.js.map +0 -1
- package/datastore/index.d.ts +0 -43
- package/datastore/index.d.ts.map +0 -1
- package/datastore/index.js +0 -22
- package/datastore/index.js.map +0 -1
- package/datastore/recordFilter.d.ts +0 -62
- package/datastore/recordFilter.d.ts.map +0 -1
- package/datastore/recordFilter.js +0 -104
- package/datastore/recordFilter.js.map +0 -1
- package/datastore/recordValues.d.ts +0 -85
- package/datastore/recordValues.d.ts.map +0 -1
- package/datastore/recordValues.js +0 -282
- package/datastore/recordValues.js.map +0 -1
- package/datastore/useDatastore.d.ts +0 -39
- package/datastore/useDatastore.d.ts.map +0 -1
- package/datastore/useDatastore.js +0 -44
- package/datastore/useDatastore.js.map +0 -1
- package/datastore/useDatastoreCount.d.ts +0 -50
- package/datastore/useDatastoreCount.d.ts.map +0 -1
- package/datastore/useDatastoreCount.js +0 -27
- package/datastore/useDatastoreCount.js.map +0 -1
- package/datastore/useDatastoreDescription.d.ts +0 -54
- package/datastore/useDatastoreDescription.d.ts.map +0 -1
- package/datastore/useDatastoreDescription.js +0 -50
- package/datastore/useDatastoreDescription.js.map +0 -1
- package/datastore/useDatastoreList.d.ts +0 -57
- package/datastore/useDatastoreList.d.ts.map +0 -1
- package/datastore/useDatastoreList.js +0 -29
- package/datastore/useDatastoreList.js.map +0 -1
- package/datastore/useDatastoreSearch.d.ts +0 -19
- package/datastore/useDatastoreSearch.d.ts.map +0 -1
- package/datastore/useDatastoreSearch.js +0 -22
- package/datastore/useDatastoreSearch.js.map +0 -1
- package/datastore/useDeleteDatastore.d.ts +0 -53
- package/datastore/useDeleteDatastore.d.ts.map +0 -1
- package/datastore/useDeleteDatastore.js +0 -40
- package/datastore/useDeleteDatastore.js.map +0 -1
- package/datastore/useDeleteRecord.d.ts +0 -34
- package/datastore/useDeleteRecord.d.ts.map +0 -1
- package/datastore/useDeleteRecord.js +0 -43
- package/datastore/useDeleteRecord.js.map +0 -1
- package/datastore/useInsertRecord.d.ts +0 -50
- package/datastore/useInsertRecord.d.ts.map +0 -1
- package/datastore/useInsertRecord.js +0 -55
- package/datastore/useInsertRecord.js.map +0 -1
- package/datastore/useRecordCollection.d.ts +0 -104
- package/datastore/useRecordCollection.d.ts.map +0 -1
- package/datastore/useRecordCollection.js +0 -136
- package/datastore/useRecordCollection.js.map +0 -1
- package/datastore/useRecordList.d.ts +0 -66
- package/datastore/useRecordList.d.ts.map +0 -1
- package/datastore/useRecordList.js +0 -58
- package/datastore/useRecordList.js.map +0 -1
- package/datastore/useUpdateRecord.d.ts +0 -52
- package/datastore/useUpdateRecord.d.ts.map +0 -1
- package/datastore/useUpdateRecord.js +0 -55
- package/datastore/useUpdateRecord.js.map +0 -1
- package/src/agent/__tests__/AgentDetailView.datastores.test.tsx +0 -166
- package/src/datastore/CollectionRecordsBrowser.tsx +0 -570
- package/src/datastore/CollectionSchemaView.tsx +0 -247
- package/src/datastore/DatastoreDetailView.tsx +0 -201
- package/src/datastore/DatastoreSyncReport.tsx +0 -105
- package/src/datastore/DeleteDatastoreDialog.tsx +0 -202
- package/src/datastore/FieldValueControl.tsx +0 -289
- package/src/datastore/RecordFilterBuilder.tsx +0 -422
- package/src/datastore/RecordFormPanel.tsx +0 -432
- package/src/datastore/__tests__/CollectionRecordsBrowser.test.tsx +0 -245
- package/src/datastore/__tests__/DeleteDatastoreDialog.test.tsx +0 -133
- package/src/datastore/__tests__/FieldValueControl.test.tsx +0 -160
- package/src/datastore/__tests__/RecordFilterBuilder.test.tsx +0 -155
- package/src/datastore/__tests__/RecordFormPanel.test.tsx +0 -227
- package/src/datastore/__tests__/recordFilter.test.ts +0 -169
- package/src/datastore/__tests__/recordMutations.test.tsx +0 -195
- package/src/datastore/__tests__/recordValues.test.ts +0 -359
- package/src/datastore/__tests__/schemaAndSyncViews.test.tsx +0 -142
- package/src/datastore/__tests__/useDatastoreDescription.test.tsx +0 -143
- package/src/datastore/__tests__/useRecordCollection.test.tsx +0 -250
- package/src/datastore/__tests__/useRecordList.test.tsx +0 -85
- package/src/datastore/index.ts +0 -111
- package/src/datastore/recordFilter.ts +0 -154
- package/src/datastore/recordValues.ts +0 -327
- package/src/datastore/useDatastore.ts +0 -67
- package/src/datastore/useDatastoreCount.ts +0 -69
- package/src/datastore/useDatastoreDescription.ts +0 -90
- package/src/datastore/useDatastoreList.ts +0 -79
- package/src/datastore/useDatastoreSearch.ts +0 -39
- package/src/datastore/useDeleteDatastore.ts +0 -87
- package/src/datastore/useDeleteRecord.ts +0 -77
- package/src/datastore/useInsertRecord.ts +0 -92
- package/src/datastore/useRecordCollection.ts +0 -256
- package/src/datastore/useRecordList.ts +0 -131
- package/src/datastore/useUpdateRecord.ts +0 -95
|
@@ -27,6 +27,7 @@ import { useBillingAccount } from "../billing/useBillingAccount.js";
|
|
|
27
27
|
import { formatCreditBalance } from "../billing/format.js";
|
|
28
28
|
import { EnvironmentPicker } from "../environment/EnvironmentPicker.js";
|
|
29
29
|
import { generateSlug } from "../internal/slug.js";
|
|
30
|
+
import { TruncatedText } from "../internal/truncated-text.js";
|
|
30
31
|
import { getFieldError, validateMessage } from "../internal/validate.js";
|
|
31
32
|
import {
|
|
32
33
|
draftFromShare,
|
|
@@ -1637,15 +1638,13 @@ function CopyField({
|
|
|
1637
1638
|
{value}
|
|
1638
1639
|
</pre>
|
|
1639
1640
|
) : (
|
|
1640
|
-
<
|
|
1641
|
+
<TruncatedText
|
|
1642
|
+
text={value}
|
|
1641
1643
|
className={cn(
|
|
1642
|
-
"stg:min-w-0 stg:flex-1 stg:
|
|
1644
|
+
"stg:min-w-0 stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-muted-subtle stg:px-2.5 stg:py-1.5",
|
|
1643
1645
|
"stg:font-mono stg:text-xs stg:text-foreground",
|
|
1644
1646
|
)}
|
|
1645
|
-
|
|
1646
|
-
>
|
|
1647
|
-
{value}
|
|
1648
|
-
</code>
|
|
1647
|
+
/>
|
|
1649
1648
|
)}
|
|
1650
1649
|
<div className="stg:flex stg:shrink-0 stg:flex-col stg:gap-1.5">
|
|
1651
1650
|
<button
|
|
@@ -7,6 +7,7 @@ import type { AgentShareInput } from "@stigmer/sdk";
|
|
|
7
7
|
import { StigmerContext } from "../../context";
|
|
8
8
|
import { FetchCacheContext } from "../../internal/FetchCacheProvider";
|
|
9
9
|
import { DeploymentModeContext } from "../../deployment-mode";
|
|
10
|
+
import { openMenu } from "../../__tests__/helpers/open-menu";
|
|
10
11
|
import { AgentShareList } from "../AgentShareList";
|
|
11
12
|
|
|
12
13
|
// Toasts are visual feedback owned by the feedback module; keep them inert.
|
|
@@ -173,8 +174,7 @@ async function openRowMenu(rowName?: string) {
|
|
|
173
174
|
const scope = rowName
|
|
174
175
|
? within(screen.getByText(rowName).closest("tr")!)
|
|
175
176
|
: screen;
|
|
176
|
-
|
|
177
|
-
await screen.findByRole("menuitem", { name: "Edit" });
|
|
177
|
+
await openMenu(scope.getByRole("button", { name: /^Actions for/ }));
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
describe("AgentShareList", () => {
|
|
@@ -442,8 +442,8 @@ describe("AgentShareList", () => {
|
|
|
442
442
|
});
|
|
443
443
|
await renderList(client);
|
|
444
444
|
|
|
445
|
-
|
|
446
|
-
expect(
|
|
445
|
+
await openMenu(screen.getByRole("button", { name: /^Actions for/ }));
|
|
446
|
+
expect(screen.getByRole("menuitem", { name: "Delete" })).toBeTruthy();
|
|
447
447
|
expect(screen.queryByRole("menuitem", { name: "Edit" })).toBeNull();
|
|
448
448
|
expect(screen.queryByRole("menuitem", { name: "Pause" })).toBeNull();
|
|
449
449
|
expect(screen.queryByRole("menuitem", { name: "Reset link" })).toBeNull();
|
|
@@ -14,6 +14,7 @@ import { ErrorMessage } from "../error/ErrorMessage.js";
|
|
|
14
14
|
import { VisibilityBadge } from "../library/VisibilitySelector.js";
|
|
15
15
|
import { useManageAccess } from "../access/useManageAccess.js";
|
|
16
16
|
import { MARKDOWN_COMPONENTS, REMARK_PLUGINS, stripFrontmatter } from "../internal/markdown-components.js";
|
|
17
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../internal/tooltip.js";
|
|
17
18
|
import { ResourceDetailShell } from "../resource-detail/ResourceDetailShell.js";
|
|
18
19
|
import { Section } from "../resource-detail/Section.js";
|
|
19
20
|
import { useDetailTabs } from "../resource-detail/useDetailTabs.js";
|
|
@@ -518,12 +519,16 @@ function VersionSection({
|
|
|
518
519
|
<span className="stg:text-xs stg:font-medium stg:text-muted-foreground">
|
|
519
520
|
Hash
|
|
520
521
|
</span>
|
|
521
|
-
<
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
522
|
+
<Tooltip>
|
|
523
|
+
<TooltipTrigger
|
|
524
|
+
render={<code className="stg:font-mono stg:text-xs stg:text-foreground" />}
|
|
525
|
+
>
|
|
526
|
+
{truncatedHash}
|
|
527
|
+
</TooltipTrigger>
|
|
528
|
+
<TooltipContent side="top" className="stg:break-all">
|
|
529
|
+
{versionHash}
|
|
530
|
+
</TooltipContent>
|
|
531
|
+
</Tooltip>
|
|
527
532
|
</div>
|
|
528
533
|
)}
|
|
529
534
|
|
|
@@ -567,12 +572,18 @@ function GitProvenanceDisplay({
|
|
|
567
572
|
</>
|
|
568
573
|
)}
|
|
569
574
|
{truncatedCommit && (
|
|
570
|
-
<
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
575
|
+
<Tooltip>
|
|
576
|
+
<TooltipTrigger
|
|
577
|
+
render={
|
|
578
|
+
<code className="stg:rounded stg:bg-muted stg:px-1 stg:py-0.5 stg:font-mono stg:text-[10px]" />
|
|
579
|
+
}
|
|
580
|
+
>
|
|
581
|
+
{truncatedCommit}
|
|
582
|
+
</TooltipTrigger>
|
|
583
|
+
<TooltipContent side="top" className="stg:break-all">
|
|
584
|
+
{provenance.commit}
|
|
585
|
+
</TooltipContent>
|
|
586
|
+
</Tooltip>
|
|
576
587
|
)}
|
|
577
588
|
</div>
|
|
578
589
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { cn } from "@stigmer/theme";
|
|
4
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../internal/tooltip.js";
|
|
4
5
|
import type { VersionTimelineEntryProps } from "./types.js";
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -82,12 +83,18 @@ export function VersionTimelineEntry({
|
|
|
82
83
|
>
|
|
83
84
|
{/* Top line: hash + tag + current badge */}
|
|
84
85
|
<div className="stg:flex stg:items-center stg:gap-2">
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
<Tooltip>
|
|
87
|
+
<TooltipTrigger
|
|
88
|
+
render={
|
|
89
|
+
<code className="stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:font-mono stg:text-[11px] stg:font-medium stg:text-foreground" />
|
|
90
|
+
}
|
|
91
|
+
>
|
|
92
|
+
{entry.label}
|
|
93
|
+
</TooltipTrigger>
|
|
94
|
+
<TooltipContent side="top" className="stg:break-all">
|
|
95
|
+
{entry.id}
|
|
96
|
+
</TooltipContent>
|
|
97
|
+
</Tooltip>
|
|
91
98
|
|
|
92
99
|
{isCompareSource && (
|
|
93
100
|
<span className="stg:shrink-0 stg:rounded-full stg:bg-primary stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-primary-foreground">
|
|
@@ -114,12 +121,14 @@ export function VersionTimelineEntry({
|
|
|
114
121
|
|
|
115
122
|
{/* Second line: timestamp + actor */}
|
|
116
123
|
<div className="stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-muted-foreground">
|
|
117
|
-
<
|
|
118
|
-
dateTime={entry.timestamp.toISOString()}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
<Tooltip>
|
|
125
|
+
<TooltipTrigger render={<time dateTime={entry.timestamp.toISOString()} />}>
|
|
126
|
+
{formatRelativeTime(entry.timestamp)}
|
|
127
|
+
</TooltipTrigger>
|
|
128
|
+
<TooltipContent side="top">
|
|
129
|
+
{entry.timestamp.toLocaleString()}
|
|
130
|
+
</TooltipContent>
|
|
131
|
+
</Tooltip>
|
|
123
132
|
|
|
124
133
|
{entry.actor && (
|
|
125
134
|
<>
|
|
@@ -10,6 +10,7 @@ import type { EdgeDiffStatus } from "./diff/types.js";
|
|
|
10
10
|
import { CanvasActionsContext } from "./CanvasActionsContext.js";
|
|
11
11
|
import { TaskPickerPopover } from "./TaskPickerPopover.js";
|
|
12
12
|
import { useWorkflowGraphMode } from "./WorkflowGraphModeContext.js";
|
|
13
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../internal/tooltip.js";
|
|
13
14
|
|
|
14
15
|
// ---------------------------------------------------------------------------
|
|
15
16
|
// Execution-state visual mapping (DD-T06-005)
|
|
@@ -205,22 +206,28 @@ export const CanvasTransitionEdge = memo(function CanvasTransitionEdge({
|
|
|
205
206
|
{/* Insert button and picker — design mode only */}
|
|
206
207
|
{isDesignMode && (
|
|
207
208
|
<>
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
209
|
+
<Tooltip>
|
|
210
|
+
<TooltipTrigger
|
|
211
|
+
render={
|
|
212
|
+
<button
|
|
213
|
+
ref={insertBtnRef}
|
|
214
|
+
type="button"
|
|
215
|
+
onClick={handleOpenPicker}
|
|
216
|
+
className={cn(
|
|
217
|
+
"stg:flex stg:h-5 stg:w-5 stg:items-center stg:justify-center stg:rounded-full stg:border stg:border-[var(--stgm-border-prominent,#d4d4d8)] stg:bg-[var(--stgm-card,var(--stgm-background,#fff))] stg:text-[var(--stgm-muted-foreground,#737373)] stg:shadow-sm stg:transition-all",
|
|
218
|
+
"stg:hover:border-[var(--stgm-primary,#6366f1)] stg:hover:bg-[var(--stgm-primary,#6366f1)] stg:hover:text-[var(--stgm-primary-foreground,#fff)]",
|
|
219
|
+
hovered || selected || pickerOpen ? "stg:scale-100 stg:opacity-100" : "stg:scale-75 stg:opacity-0",
|
|
220
|
+
)}
|
|
221
|
+
aria-label="Insert task here"
|
|
222
|
+
/>
|
|
223
|
+
}
|
|
224
|
+
>
|
|
225
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" aria-hidden="true">
|
|
226
|
+
<path d="M5 2v6M2 5h6" />
|
|
227
|
+
</svg>
|
|
228
|
+
</TooltipTrigger>
|
|
229
|
+
<TooltipContent side="top">Insert task</TooltipContent>
|
|
230
|
+
</Tooltip>
|
|
224
231
|
|
|
225
232
|
<TaskPickerPopover
|
|
226
233
|
open={pickerOpen}
|
|
@@ -4,6 +4,7 @@ import { memo, useEffect, useRef, useState } from "react";
|
|
|
4
4
|
import { cn } from "@stigmer/theme";
|
|
5
5
|
import type { ActiveTaskInfo } from "./useActiveTaskName.js";
|
|
6
6
|
import { formatDuration } from "./format-utils.js";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../internal/tooltip.js";
|
|
7
8
|
|
|
8
9
|
/** Props for {@link ExecutionActiveTaskIndicator}. */
|
|
9
10
|
export interface ExecutionActiveTaskIndicatorProps {
|
|
@@ -79,70 +80,84 @@ export const ExecutionActiveTaskIndicator = memo(function ExecutionActiveTaskInd
|
|
|
79
80
|
return (
|
|
80
81
|
<div className={cn("stg:absolute stg:left-3 stg:top-3 stg:z-50 stg:flex stg:items-center stg:gap-2", className)}>
|
|
81
82
|
{/* Main indicator pill */}
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
83
|
+
<Tooltip>
|
|
84
|
+
<TooltipTrigger
|
|
85
|
+
render={
|
|
86
|
+
<button
|
|
87
|
+
type="button"
|
|
88
|
+
onClick={onJumpToTask}
|
|
89
|
+
className={cn(
|
|
90
|
+
"stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium stg:shadow-sm stg:backdrop-blur-sm stg:transition-colors",
|
|
91
|
+
isApproval
|
|
92
|
+
? "stg:border-[var(--stgm-warning,#f59e0b)]/40 stg:bg-[var(--stgm-warning,#f59e0b)]/10 stg:text-[var(--stgm-foreground,#1a1a2e)] stg:hover:bg-[var(--stgm-warning,#f59e0b)]/20"
|
|
93
|
+
: "stg:border-[var(--stgm-primary,#6366f1)]/30 stg:bg-[var(--stgm-card,#fff)]/90 stg:text-[var(--stgm-foreground,#1a1a2e)] stg:hover:bg-[var(--stgm-primary,#6366f1)]/10",
|
|
94
|
+
)}
|
|
95
|
+
/>
|
|
96
|
+
}
|
|
97
|
+
>
|
|
98
|
+
{/* Pulsing status dot */}
|
|
99
|
+
<span
|
|
100
|
+
className={cn(
|
|
101
|
+
"stg:inline-block stg:h-2 stg:w-2 stg:rounded-full stg:motion-safe:animate-pulse",
|
|
102
|
+
isApproval
|
|
103
|
+
? "stg:bg-[var(--stgm-warning,#f59e0b)]"
|
|
104
|
+
: "stg:bg-[var(--stgm-primary,#6366f1)]",
|
|
105
|
+
)}
|
|
106
|
+
aria-hidden="true"
|
|
107
|
+
/>
|
|
105
108
|
|
|
106
|
-
|
|
107
|
-
<>
|
|
108
|
-
<span className="stg:text-[var(--stgm-muted-foreground,#737373)]" aria-hidden="true">·</span>
|
|
109
|
-
<span className="stg:tabular-nums stg:text-[var(--stgm-muted-foreground,#737373)]">
|
|
110
|
-
{formatDuration(elapsedMs)}
|
|
111
|
-
</span>
|
|
112
|
-
</>
|
|
113
|
-
)}
|
|
114
|
-
</button>
|
|
109
|
+
<span>{statusLabel}</span>
|
|
115
110
|
|
|
116
|
-
|
|
117
|
-
<button
|
|
118
|
-
type="button"
|
|
119
|
-
onClick={onFollowToggle}
|
|
120
|
-
className={cn(
|
|
121
|
-
"stg:flex stg:h-7 stg:w-7 stg:items-center stg:justify-center stg:rounded-md stg:border stg:shadow-sm stg:backdrop-blur-sm stg:transition-colors",
|
|
122
|
-
isFollowing
|
|
123
|
-
? "stg:border-[var(--stgm-primary,#6366f1)]/40 stg:bg-[var(--stgm-primary,#6366f1)]/10 stg:text-[var(--stgm-primary,#6366f1)]"
|
|
124
|
-
: "stg:border-[var(--stgm-border,#e5e5e5)] stg:bg-[var(--stgm-card,#fff)]/90 stg:text-[var(--stgm-muted-foreground,#737373)] stg:hover:text-[var(--stgm-foreground,#1a1a2e)]",
|
|
125
|
-
)}
|
|
126
|
-
title={isFollowing ? "Following active task (click to stop)" : "Follow active task"}
|
|
127
|
-
aria-label={isFollowing ? "Stop following active task" : "Follow active task"}
|
|
128
|
-
aria-pressed={isFollowing}
|
|
129
|
-
>
|
|
130
|
-
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
|
|
131
|
-
{isFollowing ? (
|
|
132
|
-
// Crosshair icon (following)
|
|
111
|
+
{elapsedMs > 0 && (
|
|
133
112
|
<>
|
|
134
|
-
<
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
// Eye icon (not following)
|
|
139
|
-
<>
|
|
140
|
-
<path d="M1.5 7s2.2-3.5 5.5-3.5S12.5 7 12.5 7s-2.2 3.5-5.5 3.5S1.5 7 1.5 7z" stroke="currentColor" strokeWidth="1.5" strokeLinejoin="round" />
|
|
141
|
-
<circle cx="7" cy="7" r="1.5" stroke="currentColor" strokeWidth="1.5" />
|
|
113
|
+
<span className="stg:text-[var(--stgm-muted-foreground,#737373)]" aria-hidden="true">·</span>
|
|
114
|
+
<span className="stg:tabular-nums stg:text-[var(--stgm-muted-foreground,#737373)]">
|
|
115
|
+
{formatDuration(elapsedMs)}
|
|
116
|
+
</span>
|
|
142
117
|
</>
|
|
143
118
|
)}
|
|
144
|
-
</
|
|
145
|
-
|
|
119
|
+
</TooltipTrigger>
|
|
120
|
+
<TooltipContent side="bottom">Click to center on active task</TooltipContent>
|
|
121
|
+
</Tooltip>
|
|
122
|
+
|
|
123
|
+
{/* Follow toggle */}
|
|
124
|
+
<Tooltip>
|
|
125
|
+
<TooltipTrigger
|
|
126
|
+
render={
|
|
127
|
+
<button
|
|
128
|
+
type="button"
|
|
129
|
+
onClick={onFollowToggle}
|
|
130
|
+
className={cn(
|
|
131
|
+
"stg:flex stg:h-7 stg:w-7 stg:items-center stg:justify-center stg:rounded-md stg:border stg:shadow-sm stg:backdrop-blur-sm stg:transition-colors",
|
|
132
|
+
isFollowing
|
|
133
|
+
? "stg:border-[var(--stgm-primary,#6366f1)]/40 stg:bg-[var(--stgm-primary,#6366f1)]/10 stg:text-[var(--stgm-primary,#6366f1)]"
|
|
134
|
+
: "stg:border-[var(--stgm-border,#e5e5e5)] stg:bg-[var(--stgm-card,#fff)]/90 stg:text-[var(--stgm-muted-foreground,#737373)] stg:hover:text-[var(--stgm-foreground,#1a1a2e)]",
|
|
135
|
+
)}
|
|
136
|
+
aria-label={isFollowing ? "Stop following active task" : "Follow active task"}
|
|
137
|
+
aria-pressed={isFollowing}
|
|
138
|
+
/>
|
|
139
|
+
}
|
|
140
|
+
>
|
|
141
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
|
|
142
|
+
{isFollowing ? (
|
|
143
|
+
// Crosshair icon (following)
|
|
144
|
+
<>
|
|
145
|
+
<circle cx="7" cy="7" r="3" stroke="currentColor" strokeWidth="1.5" />
|
|
146
|
+
<path d="M7 1v2M7 11v2M1 7h2M11 7h2" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
|
|
147
|
+
</>
|
|
148
|
+
) : (
|
|
149
|
+
// Eye icon (not following)
|
|
150
|
+
<>
|
|
151
|
+
<path d="M1.5 7s2.2-3.5 5.5-3.5S12.5 7 12.5 7s-2.2 3.5-5.5 3.5S1.5 7 1.5 7z" stroke="currentColor" strokeWidth="1.5" strokeLinejoin="round" />
|
|
152
|
+
<circle cx="7" cy="7" r="1.5" stroke="currentColor" strokeWidth="1.5" />
|
|
153
|
+
</>
|
|
154
|
+
)}
|
|
155
|
+
</svg>
|
|
156
|
+
</TooltipTrigger>
|
|
157
|
+
<TooltipContent side="bottom">
|
|
158
|
+
{isFollowing ? "Following active task (click to stop)" : "Follow active task"}
|
|
159
|
+
</TooltipContent>
|
|
160
|
+
</Tooltip>
|
|
146
161
|
|
|
147
162
|
{/* Screen reader live region */}
|
|
148
163
|
<span
|
|
@@ -308,7 +308,6 @@ function PickerItem({
|
|
|
308
308
|
role="option"
|
|
309
309
|
aria-selected={isFocused}
|
|
310
310
|
aria-disabled={item.disabled}
|
|
311
|
-
title={item.disabled ? item.disabledReason : undefined}
|
|
312
311
|
onClick={item.disabled ? undefined : () => onSelect(item.descriptor.kind)}
|
|
313
312
|
className={cn(
|
|
314
313
|
"stg:flex stg:w-full stg:items-start stg:gap-2 stg:rounded stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",
|
|
@@ -16,6 +16,12 @@ import type { CanvasContextMenuTarget } from "./CanvasContextMenu.js";
|
|
|
16
16
|
import { TaskPickerPopover } from "./TaskPickerPopover.js";
|
|
17
17
|
import { useCanvasKeyboardShortcuts } from "./useCanvasKeyboardShortcuts.js";
|
|
18
18
|
import { ViewYamlDialog } from "./ViewYamlDialog.js";
|
|
19
|
+
import {
|
|
20
|
+
Tooltip,
|
|
21
|
+
TooltipContent,
|
|
22
|
+
TooltipProvider,
|
|
23
|
+
TooltipTrigger,
|
|
24
|
+
} from "../internal/tooltip.js";
|
|
19
25
|
|
|
20
26
|
/** Props for {@link WorkflowCanvasEditor}. */
|
|
21
27
|
export interface WorkflowCanvasEditorProps {
|
|
@@ -732,41 +738,49 @@ function PaletteToggle({
|
|
|
732
738
|
onToggle: () => void;
|
|
733
739
|
}) {
|
|
734
740
|
return (
|
|
735
|
-
<
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
viewBox="0 0 16 16"
|
|
750
|
-
fill="none"
|
|
751
|
-
stroke="currentColor"
|
|
752
|
-
strokeWidth="1.5"
|
|
753
|
-
strokeLinecap="round"
|
|
754
|
-
strokeLinejoin="round"
|
|
755
|
-
className="stg:text-[var(--stgm-foreground,#1a1a2e)]"
|
|
741
|
+
<Tooltip>
|
|
742
|
+
<TooltipTrigger
|
|
743
|
+
render={
|
|
744
|
+
<button
|
|
745
|
+
type="button"
|
|
746
|
+
onClick={onToggle}
|
|
747
|
+
className={cn(
|
|
748
|
+
"stg:absolute stg:left-2 stg:z-10 stg:rounded stg:border stg:border-[var(--stgm-border-prominent,#d4d4d8)] stg:bg-[var(--stgm-card,var(--stgm-background,#fff))] stg:p-1 stg:shadow-sm",
|
|
749
|
+
"stg:hover:bg-[var(--stgm-muted,#f5f5f5)] stg:active:bg-[var(--stgm-accent,#e5e5e5)]",
|
|
750
|
+
collapsed ? "stg:top-2" : "stg:bottom-2",
|
|
751
|
+
)}
|
|
752
|
+
aria-label={collapsed ? "Show task palette" : "Hide task palette"}
|
|
753
|
+
/>
|
|
754
|
+
}
|
|
756
755
|
>
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
756
|
+
<svg
|
|
757
|
+
width="14"
|
|
758
|
+
height="14"
|
|
759
|
+
viewBox="0 0 16 16"
|
|
760
|
+
fill="none"
|
|
761
|
+
stroke="currentColor"
|
|
762
|
+
strokeWidth="1.5"
|
|
763
|
+
strokeLinecap="round"
|
|
764
|
+
strokeLinejoin="round"
|
|
765
|
+
className="stg:text-[var(--stgm-foreground,#1a1a2e)]"
|
|
766
|
+
>
|
|
767
|
+
{collapsed ? (
|
|
768
|
+
<>
|
|
769
|
+
<rect x="1" y="1" width="5" height="14" rx="1" />
|
|
770
|
+
<path d="M10 8h5M11 6l2 2-2 2" />
|
|
771
|
+
</>
|
|
772
|
+
) : (
|
|
773
|
+
<>
|
|
774
|
+
<rect x="1" y="1" width="5" height="14" rx="1" />
|
|
775
|
+
<path d="M14 8H9M13 6l-2 2 2 2" />
|
|
776
|
+
</>
|
|
777
|
+
)}
|
|
778
|
+
</svg>
|
|
779
|
+
</TooltipTrigger>
|
|
780
|
+
<TooltipContent side="right">
|
|
781
|
+
{collapsed ? "Show task palette" : "Hide task palette"}
|
|
782
|
+
</TooltipContent>
|
|
783
|
+
</Tooltip>
|
|
770
784
|
);
|
|
771
785
|
}
|
|
772
786
|
|
|
@@ -802,35 +816,52 @@ function CanvasToolbar({
|
|
|
802
816
|
"stg:rounded stg:border stg:border-[var(--stgm-border-prominent,#d4d4d8)] stg:bg-[var(--stgm-card,var(--stgm-background,#fff))] stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:text-[var(--stgm-foreground,#1a1a2e)] stg:shadow-sm stg:hover:bg-[var(--stgm-muted,#f5f5f5)] stg:active:bg-[var(--stgm-accent,#e5e5e5)] stg:disabled:cursor-not-allowed stg:disabled:opacity-40";
|
|
803
817
|
|
|
804
818
|
return (
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
<
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
disabled={!
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
</
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
819
|
+
// Undo/Redo show their keyboard shortcut on the house tooltip; the
|
|
820
|
+
// trigger is a wrapper span so the shortcut stays discoverable while the
|
|
821
|
+
// button is disabled (disabled buttons receive no pointer events).
|
|
822
|
+
// Auto-layout's label is already visible text — no tooltip to add. The
|
|
823
|
+
// provider is context-only and groups the buttons' hover delay.
|
|
824
|
+
<TooltipProvider>
|
|
825
|
+
<div className="stg:absolute stg:left-2 stg:top-2 stg:z-10 stg:flex stg:items-center stg:gap-1">
|
|
826
|
+
<Tooltip>
|
|
827
|
+
<TooltipTrigger render={<span className="stg:inline-flex" />}>
|
|
828
|
+
<button type="button" onClick={onUndo} disabled={!canUndo} className={btnClass} aria-label="Undo">
|
|
829
|
+
Undo
|
|
830
|
+
</button>
|
|
831
|
+
</TooltipTrigger>
|
|
832
|
+
<TooltipContent side="bottom">{TOOLBAR_SHORTCUTS.undo}</TooltipContent>
|
|
833
|
+
</Tooltip>
|
|
834
|
+
<Tooltip>
|
|
835
|
+
<TooltipTrigger render={<span className="stg:inline-flex" />}>
|
|
836
|
+
<button type="button" onClick={onRedo} disabled={!canRedo} className={btnClass} aria-label="Redo">
|
|
837
|
+
Redo
|
|
838
|
+
</button>
|
|
839
|
+
</TooltipTrigger>
|
|
840
|
+
<TooltipContent side="bottom">{TOOLBAR_SHORTCUTS.redo}</TooltipContent>
|
|
841
|
+
</Tooltip>
|
|
842
|
+
<div className="stg:mx-1 stg:h-4 stg:w-px stg:bg-[var(--stgm-border,#d4d4d8)]" aria-hidden="true" />
|
|
843
|
+
<button type="button" onClick={onAutoLayout} className={btnClass} aria-label="Auto-layout">
|
|
844
|
+
Auto-layout
|
|
845
|
+
</button>
|
|
846
|
+
{onSave && (
|
|
847
|
+
<>
|
|
848
|
+
<div className="stg:mx-1 stg:h-4 stg:w-px stg:bg-[var(--stgm-border,#d4d4d8)]" aria-hidden="true" />
|
|
849
|
+
<button
|
|
850
|
+
type="button"
|
|
851
|
+
onClick={onSave}
|
|
852
|
+
disabled={!isDirty || isSaving}
|
|
853
|
+
className="stg:rounded stg:bg-[var(--stgm-primary,#6366f1)] stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:text-[var(--stgm-primary-foreground,#fff)] stg:shadow-sm stg:hover:opacity-90 stg:disabled:cursor-not-allowed stg:disabled:opacity-40"
|
|
854
|
+
>
|
|
855
|
+
{isSaving ? "Saving\u2026" : "Save"}
|
|
856
|
+
</button>
|
|
857
|
+
</>
|
|
858
|
+
)}
|
|
859
|
+
{isDirty && !onSave && (
|
|
860
|
+
<span className="stg:ml-1 stg:text-[10px] stg:text-[var(--stgm-muted-foreground,#737373)]">
|
|
861
|
+
Modified
|
|
862
|
+
</span>
|
|
863
|
+
)}
|
|
864
|
+
</div>
|
|
865
|
+
</TooltipProvider>
|
|
835
866
|
);
|
|
836
867
|
}
|
|
@@ -7,6 +7,7 @@ import type { CanvasTaskNodeData } from "./workflow-graph-conversions.js";
|
|
|
7
7
|
import { getVisualSpec } from "./task-type-visual-registry.js";
|
|
8
8
|
import { NodeShell, NodeContent, NodeHandles, NodeActions, ExecutionBadge, BranchBadge, DiffBadge } from "./node-shell/index.js";
|
|
9
9
|
import { useWorkflowGraphMode } from "./WorkflowGraphModeContext.js";
|
|
10
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../internal/tooltip.js";
|
|
10
11
|
|
|
11
12
|
const NESTED_TASK_KINDS = new Set(["fork", "for_each", "try_catch"]);
|
|
12
13
|
|
|
@@ -67,12 +68,18 @@ export const WorkflowNode = memo(function WorkflowNode({
|
|
|
67
68
|
|
|
68
69
|
{/* Validation badge — design mode only */}
|
|
69
70
|
{mode === "design" && errorCount > 0 && (
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
<Tooltip>
|
|
72
|
+
<TooltipTrigger
|
|
73
|
+
render={
|
|
74
|
+
<span className="stg:absolute stg:-right-1.5 stg:-top-1.5 stg:z-20 stg:flex stg:h-4 stg:min-w-4 stg:items-center stg:justify-center stg:rounded-full stg:bg-[var(--stgm-destructive,#ef4444)] stg:px-1 stg:text-[9px] stg:font-bold stg:leading-none stg:text-[var(--stgm-destructive-foreground,#fff)]" />
|
|
75
|
+
}
|
|
76
|
+
>
|
|
77
|
+
{errorCount}
|
|
78
|
+
</TooltipTrigger>
|
|
79
|
+
<TooltipContent side="top">
|
|
80
|
+
{`${errorCount} validation ${errorCount === 1 ? "error" : "errors"}`}
|
|
81
|
+
</TooltipContent>
|
|
82
|
+
</Tooltip>
|
|
76
83
|
)}
|
|
77
84
|
|
|
78
85
|
{/* Execution badge — execution mode only */}
|