@burdenoff/microfe-cosmicintersection 2026.1110.1 → 2026.1111.1
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/dist/cosmicintersection/CosmicIntersectionRoot.d.ts +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoot.js +1 -2
- package/dist/cosmicintersection/CosmicIntersectionRoot.js.map +1 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js +1 -2
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts +0 -1
- package/dist/cosmicintersection/api/cosmicApi.js +1 -2
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/api/databricksTransport.d.ts +0 -1
- package/dist/cosmicintersection/api/databricksTransport.js +1 -2
- package/dist/cosmicintersection/api/databricksTransport.js.map +1 -1
- package/dist/cosmicintersection/api/tagsApi.d.ts +0 -1
- package/dist/cosmicintersection/api/tagsApi.js +1 -2
- package/dist/cosmicintersection/api/tagsApi.js.map +1 -1
- package/dist/cosmicintersection/components/ActionMenu.d.ts +0 -1
- package/dist/cosmicintersection/components/ActionMenu.js +1 -2
- package/dist/cosmicintersection/components/ActionMenu.js.map +1 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.js +27 -25
- package/dist/cosmicintersection/components/ActivityFeedPanel.js.map +1 -1
- package/dist/cosmicintersection/components/AiRunAttribution.d.ts +0 -1
- package/dist/cosmicintersection/components/AiRunAttribution.js +1 -2
- package/dist/cosmicintersection/components/AiRunAttribution.js.map +1 -1
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +0 -1
- package/dist/cosmicintersection/components/DatabricksQueueForm.js +1 -2
- package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -1
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/DatabricksRunPanel.js +1 -2
- package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -1
- package/dist/cosmicintersection/components/DiscussionPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/DiscussionPanel.js +4 -4
- package/dist/cosmicintersection/components/DiscussionPanel.js.map +1 -1
- package/dist/cosmicintersection/components/EmptyState.d.ts +0 -1
- package/dist/cosmicintersection/components/EmptyState.js +1 -2
- package/dist/cosmicintersection/components/EmptyState.js.map +1 -1
- package/dist/cosmicintersection/components/EntityFormShell.d.ts +0 -1
- package/dist/cosmicintersection/components/EntityFormShell.js +1 -2
- package/dist/cosmicintersection/components/EntityFormShell.js.map +1 -1
- package/dist/cosmicintersection/components/EntityTagsField.d.ts +0 -1
- package/dist/cosmicintersection/components/EntityTagsField.js +1 -2
- package/dist/cosmicintersection/components/EntityTagsField.js.map +1 -1
- package/dist/cosmicintersection/components/ErrorState.d.ts +0 -1
- package/dist/cosmicintersection/components/ErrorState.js +1 -2
- package/dist/cosmicintersection/components/ErrorState.js.map +1 -1
- package/dist/cosmicintersection/components/FacetPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/FacetPanel.js +1 -2
- package/dist/cosmicintersection/components/FacetPanel.js.map +1 -1
- package/dist/cosmicintersection/components/FileUploadField.d.ts +5 -2
- package/dist/cosmicintersection/components/FileUploadField.js +80 -76
- package/dist/cosmicintersection/components/FileUploadField.js.map +1 -1
- package/dist/cosmicintersection/components/LineageGraph.d.ts +0 -1
- package/dist/cosmicintersection/components/LineageGraph.js +7 -12
- package/dist/cosmicintersection/components/LineageGraph.js.map +1 -1
- package/dist/cosmicintersection/components/LoadingState.d.ts +0 -1
- package/dist/cosmicintersection/components/LoadingState.js +1 -2
- package/dist/cosmicintersection/components/LoadingState.js.map +1 -1
- package/dist/cosmicintersection/components/PageLayout.d.ts +0 -1
- package/dist/cosmicintersection/components/PageLayout.js +1 -2
- package/dist/cosmicintersection/components/PageLayout.js.map +1 -1
- package/dist/cosmicintersection/components/Pagination.d.ts +0 -1
- package/dist/cosmicintersection/components/Pagination.js +1 -2
- package/dist/cosmicintersection/components/Pagination.js.map +1 -1
- package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts +0 -1
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js +7 -12
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js.map +1 -1
- package/dist/cosmicintersection/components/ResultsChart.d.ts +0 -1
- package/dist/cosmicintersection/components/ResultsChart.js +4 -8
- package/dist/cosmicintersection/components/ResultsChart.js.map +1 -1
- package/dist/cosmicintersection/components/RunTriageCard.d.ts +0 -1
- package/dist/cosmicintersection/components/RunTriageCard.js +18 -19
- package/dist/cosmicintersection/components/RunTriageCard.js.map +1 -1
- package/dist/cosmicintersection/components/SafeLink.d.ts +0 -1
- package/dist/cosmicintersection/components/SafeLink.js +8 -7
- package/dist/cosmicintersection/components/SafeLink.js.map +1 -1
- package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts +0 -1
- package/dist/cosmicintersection/components/SchemaProposalPanel.js +17 -18
- package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
- package/dist/cosmicintersection/components/ScienceCanvas.d.ts +0 -1
- package/dist/cosmicintersection/components/ScienceCanvas.js +226 -233
- package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -1
- package/dist/cosmicintersection/components/StatusBadge.d.ts +0 -1
- package/dist/cosmicintersection/components/StatusBadge.js +1 -2
- package/dist/cosmicintersection/components/StatusBadge.js.map +1 -1
- package/dist/cosmicintersection/components/StepDAG.d.ts +0 -1
- package/dist/cosmicintersection/components/StepDAG.js +1 -2
- package/dist/cosmicintersection/components/StepDAG.js.map +1 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts +0 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +1 -2
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.js.map +1 -1
- package/dist/cosmicintersection/components/index.d.ts +0 -1
- package/dist/cosmicintersection/components/index.js +14 -14
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +0 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js +2 -7
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +18 -19
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -1
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +1 -2
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -1
- package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts +0 -1
- package/dist/cosmicintersection/hooks/useEntityTagSync.js +29 -25
- package/dist/cosmicintersection/hooks/useEntityTagSync.js.map +1 -1
- package/dist/cosmicintersection/index.d.ts +0 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.d.ts +0 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.js +1 -2
- package/dist/cosmicintersection/lib/assistantAwareDialog.js.map +1 -1
- package/dist/cosmicintersection/lib/databricksForm.d.ts +0 -1
- package/dist/cosmicintersection/lib/databricksForm.js +1 -2
- package/dist/cosmicintersection/lib/databricksForm.js.map +1 -1
- package/dist/cosmicintersection/lib/databricksIntent.d.ts +0 -1
- package/dist/cosmicintersection/lib/databricksIntent.js +1 -2
- package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -1
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts +0 -1
- package/dist/cosmicintersection/lib/databricksPresentation.js +1 -2
- package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -1
- package/dist/cosmicintersection/lib/mutationResult.d.ts +0 -1
- package/dist/cosmicintersection/lib/mutationResult.js +1 -2
- package/dist/cosmicintersection/lib/mutationResult.js.map +1 -1
- package/dist/cosmicintersection/lib/toast.d.ts +0 -1
- package/dist/cosmicintersection/lib/toast.js +1 -2
- package/dist/cosmicintersection/lib/toast.js.map +1 -1
- package/dist/cosmicintersection/lib/uploadAudience.d.ts +4 -0
- package/dist/cosmicintersection/lib/uploadAudience.js +17 -0
- package/dist/cosmicintersection/lib/uploadAudience.js.map +1 -0
- package/dist/cosmicintersection/lib/useSelectedRecord.d.ts +0 -1
- package/dist/cosmicintersection/lib/useSelectedRecord.js +1 -2
- package/dist/cosmicintersection/lib/useSelectedRecord.js.map +1 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts +0 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.js +7 -8
- package/dist/cosmicintersection/lib/useTrackRecentItem.js.map +1 -1
- package/dist/cosmicintersection/lib/visualization.d.ts +0 -1
- package/dist/cosmicintersection/lib/visualization.js +2 -3
- package/dist/cosmicintersection/lib/visualization.js.map +1 -1
- package/dist/cosmicintersection/lib/visualizationSamples.d.ts +0 -1
- package/dist/cosmicintersection/pages/access/AccessPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/access/AccessPage.js +225 -226
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +260 -260
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts +0 -1
- package/dist/cosmicintersection/pages/archive/ArchivePage.js +23 -48
- package/dist/cosmicintersection/pages/archive/ArchivePage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +32 -33
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +17 -18
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +20 -21
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +19 -20
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +64 -75
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +131 -119
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +207 -208
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +20 -24
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts +0 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.js +53 -54
- package/dist/cosmicintersection/pages/lineage/LineagePage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +61 -62
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js +154 -149
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +28 -29
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +119 -120
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +41 -42
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +30 -31
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js +16 -17
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +268 -269
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +194 -195
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +20 -21
- package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +31 -32
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.js +23 -24
- package/dist/cosmicintersection/pages/sources/SourceFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts +0 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +184 -182
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/dist/cosmicintersection/types/index.d.ts +0 -1
- package/dist/cosmicintersection/utils/cn.d.ts +0 -1
- package/dist/cosmicintersection/utils/cn.js +1 -2
- package/dist/cosmicintersection/utils/cn.js.map +1 -1
- package/dist/cosmicintersection/utils/i18n.d.ts +0 -1
- package/dist/cosmicintersection/utils/navigation.d.ts +0 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -3
- package/dist/node_modules/clsx/dist/clsx.js +7 -6
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
- package/dist/services/createSandboxAssistantTransport.js +1 -2
- package/dist/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/services/recentItems.d.ts +0 -1
- package/dist/services/recentItems.js +5 -6
- package/dist/services/recentItems.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/stories/EmptyState.stories.d.ts +0 -1
- package/dist/stories/LoadingState.stories.d.ts +0 -1
- package/dist/stories/ScienceCanvas.stories.d.ts +0 -1
- package/dist/stories/StatusBadge.stories.d.ts +0 -1
- package/dist/stories/WorkspaceTagsPicker.stories.d.ts +0 -1
- package/dist/test/fakeGateway.d.ts +0 -1
- package/dist/test/fixtures.d.ts +0 -1
- package/dist/test/happydom.d.ts +1 -0
- package/dist/test/i18nMock.d.ts +13 -1
- package/dist/test/renderWithProviders.d.ts +1 -2
- package/dist/test/storage.d.ts +13 -0
- package/dist/types/assistant.d.ts +0 -1
- package/dist/utils/pageContext.d.ts +0 -1
- package/dist/utils/pageContext.js +1 -2
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +64 -38
- package/dist/cosmicintersection/CosmicIntersectionRoot.d.ts.map +0 -1
- package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts.map +0 -1
- package/dist/cosmicintersection/api/cosmicApi.d.ts.map +0 -1
- package/dist/cosmicintersection/api/databricksTransport.d.ts.map +0 -1
- package/dist/cosmicintersection/api/tagsApi.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ActionMenu.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/AiRunAttribution.d.ts.map +0 -1
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +0 -1
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/DiscussionPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/EmptyState.d.ts.map +0 -1
- package/dist/cosmicintersection/components/EntityFormShell.d.ts.map +0 -1
- package/dist/cosmicintersection/components/EntityTagsField.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ErrorState.d.ts.map +0 -1
- package/dist/cosmicintersection/components/FacetPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/FileUploadField.d.ts.map +0 -1
- package/dist/cosmicintersection/components/LineageGraph.d.ts.map +0 -1
- package/dist/cosmicintersection/components/LoadingState.d.ts.map +0 -1
- package/dist/cosmicintersection/components/PageLayout.d.ts.map +0 -1
- package/dist/cosmicintersection/components/Pagination.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ResultsChart.d.ts.map +0 -1
- package/dist/cosmicintersection/components/RunTriageCard.d.ts.map +0 -1
- package/dist/cosmicintersection/components/SafeLink.d.ts.map +0 -1
- package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts.map +0 -1
- package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +0 -1
- package/dist/cosmicintersection/components/StatusBadge.d.ts.map +0 -1
- package/dist/cosmicintersection/components/StepDAG.d.ts.map +0 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts.map +0 -1
- package/dist/cosmicintersection/components/index.d.ts.map +0 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +0 -1
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +0 -1
- package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts.map +0 -1
- package/dist/cosmicintersection/index.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/assistantAwareDialog.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/databricksForm.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/mutationResult.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/toast.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/useSelectedRecord.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/visualization.d.ts.map +0 -1
- package/dist/cosmicintersection/lib/visualizationSamples.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/access/AccessPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts.map +0 -1
- package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts.map +0 -1
- package/dist/cosmicintersection/types/index.d.ts.map +0 -1
- package/dist/cosmicintersection/utils/cn.d.ts.map +0 -1
- package/dist/cosmicintersection/utils/i18n.d.ts.map +0 -1
- package/dist/cosmicintersection/utils/navigation.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
- package/dist/services/recentItems.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/stories/EmptyState.stories.d.ts.map +0 -1
- package/dist/stories/LoadingState.stories.d.ts.map +0 -1
- package/dist/stories/ScienceCanvas.stories.d.ts.map +0 -1
- package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
- package/dist/stories/WorkspaceTagsPicker.stories.d.ts.map +0 -1
- package/dist/test/fakeGateway.d.ts.map +0 -1
- package/dist/test/fixtures.d.ts.map +0 -1
- package/dist/test/i18nMock.d.ts.map +0 -1
- package/dist/test/renderWithProviders.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.d.ts.map +0 -1
- package/dist/types/assistant.d.ts.map +0 -1
- package/dist/utils/pageContext.d.ts.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { notify as t } from "../../lib/toast.js";
|
|
3
|
-
import { useCosAnalysesQuery as n, useCosAnalysisQuery as r, useCosCompleteAnalysisMutation as i, useCosDatasetsQuery as a, useCosNotebooksQuery as o, useCosRunAnalysisMutation as s } from "../../api/cosmicApi.js";
|
|
4
|
-
import { useTr as c } from "../../../shared/hooks/useTr.js";
|
|
5
|
-
import { ActionMenu as l } from "../../components/ActionMenu.js";
|
|
6
|
-
import { EmptyState as u } from "../../components/EmptyState.js";
|
|
7
|
-
import { ErrorState as d } from "../../components/ErrorState.js";
|
|
8
|
-
import { LoadingState as f } from "../../components/LoadingState.js";
|
|
9
|
-
import { FileUploadField as p, useFileDownloadUrl as m } from "../../components/FileUploadField.js";
|
|
10
|
-
import { PageLayout as h } from "../../components/PageLayout.js";
|
|
11
|
-
import { ScienceCanvas as g } from "../../components/ScienceCanvas.js";
|
|
12
|
-
import { StatusBadge as _ } from "../../components/StatusBadge.js";
|
|
1
|
+
import { useCosAnalysesQuery as e, useCosAnalysisQuery as t, useCosCompleteAnalysisMutation as n, useCosDatasetsQuery as r, useCosNotebooksQuery as i, useCosRunAnalysisMutation as a } from "../../api/cosmicApi.js";
|
|
13
2
|
import "../../components/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
3
|
+
import { ScienceCanvas as o } from "../../components/ScienceCanvas.js";
|
|
4
|
+
import { useCosmicIntersection as s } from "../../context/CosmicIntersectionContext.js";
|
|
5
|
+
import { ActionMenu as c } from "../../components/ActionMenu.js";
|
|
6
|
+
import { EmptyState as l } from "../../components/EmptyState.js";
|
|
7
|
+
import { ErrorState as u } from "../../components/ErrorState.js";
|
|
8
|
+
import { LoadingState as d } from "../../components/LoadingState.js";
|
|
9
|
+
import { FileUploadField as f, useFileDownloadUrl as p } from "../../components/FileUploadField.js";
|
|
10
|
+
import { PageLayout as m } from "../../components/PageLayout.js";
|
|
11
|
+
import { notify as h } from "../../lib/toast.js";
|
|
12
|
+
import { StatusBadge as g } from "../../components/StatusBadge.js";
|
|
13
|
+
import { ASSISTANT_AWARE_DIALOG_CONTENT_PROPS as _, ASSISTANT_AWARE_DIALOG_ROOT_PROPS as v } from "../../lib/assistantAwareDialog.js";
|
|
14
|
+
import { useSelectedRecord as ee } from "../../lib/useSelectedRecord.js";
|
|
15
|
+
import { useTrackRecentItem as te } from "../../lib/useTrackRecentItem.js";
|
|
16
|
+
import { useTr as y } from "../../../shared/hooks/useTr.js";
|
|
17
|
+
import { useMemo as b, useState as x } from "react";
|
|
18
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
19
|
+
import { Badge as T, Button as E, Dialog as D, DialogClose as O, DialogContent as k, DialogDescription as A, DialogFooter as j, DialogHeader as M, DialogTitle as N, Input as P, Label as F, Select as I, SelectContent as L, SelectItem as R, SelectTrigger as z, SelectValue as B, Switch as V, Table as H, TableBody as ne, TableCell as U, TableHead as W, TableHeader as re, TableRow as ie, Textarea as ae } from "@burdenoff/fe-libs/ui";
|
|
20
20
|
import { BarChart3 as G, Beaker as K, Download as q, ExternalLink as oe, Play as J, Sparkles as se } from "lucide-react";
|
|
21
|
-
|
|
21
|
+
// src/cosmicintersection/pages/analyses/AnalysesPage.tsx
|
|
22
22
|
function Y(e) {
|
|
23
23
|
return !!e.outputFile?.id || !!(e.results && Object.keys(e.results).length > 0);
|
|
24
24
|
}
|
|
@@ -42,20 +42,20 @@ var ce = [
|
|
|
42
42
|
], X = "ALL";
|
|
43
43
|
function le({ value: e }) {
|
|
44
44
|
let t = Z(e);
|
|
45
|
-
if (!e || t === "—") return /* @__PURE__ */
|
|
45
|
+
if (!e || t === "—") return /* @__PURE__ */ C("span", { children: "—" });
|
|
46
46
|
let n = new Date(e);
|
|
47
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ w("time", {
|
|
48
48
|
dateTime: n.toISOString(),
|
|
49
49
|
title: t,
|
|
50
50
|
className: "flex flex-col leading-tight",
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ C("span", {
|
|
52
52
|
className: "whitespace-nowrap",
|
|
53
53
|
children: n.toLocaleDateString(void 0, {
|
|
54
54
|
year: "numeric",
|
|
55
55
|
month: "short",
|
|
56
56
|
day: "numeric"
|
|
57
57
|
})
|
|
58
|
-
}), /* @__PURE__ */
|
|
58
|
+
}), /* @__PURE__ */ C("span", {
|
|
59
59
|
className: "whitespace-nowrap text-xs text-text-muted",
|
|
60
60
|
children: n.toLocaleTimeString(void 0, {
|
|
61
61
|
hour: "2-digit",
|
|
@@ -76,69 +76,69 @@ function Z(e) {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
function Q({ fileId: e }) {
|
|
79
|
-
let { data: t, loading: n } =
|
|
80
|
-
return n ? /* @__PURE__ */
|
|
79
|
+
let { data: t, loading: n } = p(e), [r, i] = x(!1), a = t?.getFileDownloadUrl ?? null;
|
|
80
|
+
return n ? /* @__PURE__ */ C("span", {
|
|
81
81
|
className: "text-xs text-text-secondary",
|
|
82
82
|
children: "Resolving link…"
|
|
83
|
-
}) : a ? /* @__PURE__ */
|
|
83
|
+
}) : a ? /* @__PURE__ */ w("div", {
|
|
84
84
|
className: "space-y-2",
|
|
85
|
-
children: [r ? null : /* @__PURE__ */
|
|
85
|
+
children: [r ? null : /* @__PURE__ */ C("img", {
|
|
86
86
|
src: a,
|
|
87
87
|
alt: "Analysis output preview",
|
|
88
88
|
onError: () => i(!0),
|
|
89
89
|
className: "max-h-72 w-full rounded-card border border-border-default bg-bg-sunken object-contain"
|
|
90
|
-
}), /* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ w("a", {
|
|
91
91
|
href: a,
|
|
92
92
|
target: "_blank",
|
|
93
93
|
rel: "noopener noreferrer",
|
|
94
94
|
className: "inline-flex items-center gap-1 text-sm text-text-primary underline-offset-2 hover:underline",
|
|
95
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ C(q, {
|
|
96
96
|
className: "size-3.5",
|
|
97
97
|
"aria-hidden": "true"
|
|
98
98
|
}), "Download output"]
|
|
99
99
|
})]
|
|
100
|
-
}) : /* @__PURE__ */
|
|
100
|
+
}) : /* @__PURE__ */ w("span", {
|
|
101
101
|
className: "text-xs text-text-secondary",
|
|
102
102
|
children: ["File ", e]
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
function ue({ analysis: e, onOpenChange: t }) {
|
|
106
106
|
let n = e?.results ?? null, r = !!(n && Object.keys(n).length > 0), i = !!e?.outputFile?.id;
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
...
|
|
107
|
+
return /* @__PURE__ */ C(D, {
|
|
108
|
+
...v,
|
|
109
109
|
open: !!e,
|
|
110
110
|
onOpenChange: t,
|
|
111
|
-
children: /* @__PURE__ */
|
|
112
|
-
...
|
|
111
|
+
children: /* @__PURE__ */ C(k, {
|
|
112
|
+
..._,
|
|
113
113
|
className: "max-h-[85vh] max-w-2xl overflow-y-auto",
|
|
114
|
-
children: e ? /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
114
|
+
children: e ? /* @__PURE__ */ w(S, { children: [
|
|
115
|
+
/* @__PURE__ */ w(M, { children: [/* @__PURE__ */ w(N, {
|
|
116
116
|
className: "flex items-center gap-2",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ C(G, {
|
|
118
118
|
className: "size-5 text-text-secondary",
|
|
119
119
|
"aria-hidden": "true"
|
|
120
120
|
}), "Analysis results"]
|
|
121
|
-
}), /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
121
|
+
}), /* @__PURE__ */ w(A, { children: [e.title, e.method ? ` · ${e.method}` : ""] })] }),
|
|
122
|
+
/* @__PURE__ */ w("div", {
|
|
123
123
|
className: "space-y-5",
|
|
124
124
|
children: [
|
|
125
|
-
r && n ? /* @__PURE__ */
|
|
126
|
-
i && e.outputFile ? /* @__PURE__ */
|
|
125
|
+
r && n ? /* @__PURE__ */ C(o, { results: n }) : null,
|
|
126
|
+
i && e.outputFile ? /* @__PURE__ */ w("div", {
|
|
127
127
|
className: "space-y-2",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ C("p", {
|
|
129
129
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
130
130
|
children: "Output artifact"
|
|
131
|
-
}), /* @__PURE__ */
|
|
131
|
+
}), /* @__PURE__ */ C(Q, { fileId: e.outputFile.id })]
|
|
132
132
|
}) : null,
|
|
133
|
-
!r && !i ? /* @__PURE__ */
|
|
133
|
+
!r && !i ? /* @__PURE__ */ C("p", {
|
|
134
134
|
className: "rounded-card border border-border-default bg-bg-sunken px-4 py-6 text-center text-sm text-text-secondary",
|
|
135
135
|
children: "No results or output artifact has been recorded for this analysis yet."
|
|
136
136
|
}) : null
|
|
137
137
|
]
|
|
138
138
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ C(j, { children: /* @__PURE__ */ C(O, {
|
|
140
140
|
asChild: !0,
|
|
141
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ C(E, {
|
|
142
142
|
type: "button",
|
|
143
143
|
variant: "outline",
|
|
144
144
|
children: "Close"
|
|
@@ -170,258 +170,259 @@ function $(e, t) {
|
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function de({ open: e, onOpenChange:
|
|
174
|
-
let
|
|
173
|
+
function de({ open: e, onOpenChange: t, onCompleted: n }) {
|
|
174
|
+
let o = y(), [s, c] = x(""), [l, u] = x(""), [d, f] = x(!1), [p, m] = x("NOTEBOOK"), [g, _] = x(""), { data: v, loading: ee } = i({ pagination: {
|
|
175
175
|
limit: 100,
|
|
176
176
|
offset: 0
|
|
177
|
-
} }), { data:
|
|
177
|
+
} }), { data: te, loading: b } = r({ pagination: {
|
|
178
178
|
limit: 100,
|
|
179
179
|
offset: 0
|
|
180
|
-
} }), [
|
|
181
|
-
|
|
180
|
+
} }), [S, { loading: T }] = a(), O = v?.cosListNotebooks.items ?? [], H = te?.cosListDatasets.items ?? [], ne = () => {
|
|
181
|
+
c(""), u(""), f(!1), m("NOTEBOOK"), _("");
|
|
182
182
|
};
|
|
183
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ C(D, {
|
|
184
184
|
open: e,
|
|
185
185
|
onOpenChange: (e) => {
|
|
186
|
-
|
|
186
|
+
T || t(e);
|
|
187
187
|
},
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ C(k, { children: /* @__PURE__ */ w("form", {
|
|
189
189
|
onSubmit: async (e) => {
|
|
190
190
|
e.preventDefault();
|
|
191
|
-
let
|
|
192
|
-
if (!
|
|
193
|
-
|
|
191
|
+
let r = s.trim();
|
|
192
|
+
if (!r) {
|
|
193
|
+
h.error(o("cosmicintersection.pages.analyses.titleRequired", "Title is required"), o("cosmicintersection.pages.analyses.titleRequiredDescription", "Give the analysis a descriptive title."));
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
if (!
|
|
197
|
-
|
|
196
|
+
if (!g) {
|
|
197
|
+
h.error(o("cosmicintersection.pages.analyses.selectSource", "Select a source"), o("cosmicintersection.pages.analyses.selectSourceDescription", "Choose a {{kind}} to analyse.", { kind: p === "NOTEBOOK" ? o("nav.notebooks", "notebook").toLowerCase() : o("nav.datasets", "dataset").toLowerCase() }));
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
|
-
let
|
|
201
|
-
title:
|
|
202
|
-
method:
|
|
203
|
-
aiAssisted:
|
|
204
|
-
...
|
|
200
|
+
let i = await S({ variables: { input: {
|
|
201
|
+
title: r,
|
|
202
|
+
method: l.trim() || void 0,
|
|
203
|
+
aiAssisted: d,
|
|
204
|
+
...p === "NOTEBOOK" ? { notebookId: g } : { datasetId: g }
|
|
205
205
|
} } });
|
|
206
|
-
|
|
206
|
+
!i.error && i.data?.cosRunAnalysis?.id && (h.success(o("cosmicintersection.pages.analyses.analysisStarted", "Analysis started"), o("cosmicintersection.pages.analyses.analysisStartedDescription", "“{{name}}” is now running.", { name: r })), ne(), t(!1), n());
|
|
207
207
|
},
|
|
208
208
|
className: "space-y-4",
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ w(M, { children: [/* @__PURE__ */ C(N, { children: "Run analysis" }), /* @__PURE__ */ C(A, { children: "Launch a new analysis against a notebook or a dataset. Exactly one source is required." })] }),
|
|
211
|
+
/* @__PURE__ */ w("div", {
|
|
212
212
|
className: "space-y-1.5",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ C(F, {
|
|
214
214
|
htmlFor: "run-title",
|
|
215
215
|
children: "Title"
|
|
216
|
-
}), /* @__PURE__ */
|
|
216
|
+
}), /* @__PURE__ */ C(P, {
|
|
217
217
|
id: "run-title",
|
|
218
|
-
value:
|
|
219
|
-
onChange: (e) =>
|
|
218
|
+
value: s,
|
|
219
|
+
onChange: (e) => c(e.target.value),
|
|
220
220
|
placeholder: "e.g. Spectral line fitting",
|
|
221
221
|
required: !0
|
|
222
222
|
})]
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ w("div", {
|
|
225
225
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ w("div", {
|
|
227
227
|
className: "space-y-1.5",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ C(F, {
|
|
229
229
|
htmlFor: "run-source-kind",
|
|
230
230
|
children: "Source type"
|
|
231
|
-
}), /* @__PURE__ */
|
|
232
|
-
value:
|
|
231
|
+
}), /* @__PURE__ */ w(I, {
|
|
232
|
+
value: p,
|
|
233
233
|
onValueChange: (e) => {
|
|
234
|
-
|
|
234
|
+
m(e), _("");
|
|
235
235
|
},
|
|
236
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ C(z, {
|
|
237
237
|
id: "run-source-kind",
|
|
238
238
|
"aria-label": "Source type",
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
-
}), /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ C(B, {})
|
|
240
|
+
}), /* @__PURE__ */ w(L, { children: [/* @__PURE__ */ C(R, {
|
|
241
241
|
value: "NOTEBOOK",
|
|
242
242
|
children: "Notebook"
|
|
243
|
-
}), /* @__PURE__ */
|
|
243
|
+
}), /* @__PURE__ */ C(R, {
|
|
244
244
|
value: "DATASET",
|
|
245
245
|
children: "Dataset"
|
|
246
246
|
})] })]
|
|
247
247
|
})]
|
|
248
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ w("div", {
|
|
249
249
|
className: "space-y-1.5",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ C(F, {
|
|
251
251
|
htmlFor: "run-source-id",
|
|
252
|
-
children:
|
|
253
|
-
}), /* @__PURE__ */
|
|
254
|
-
value:
|
|
255
|
-
onValueChange: (e) =>
|
|
256
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: p === "NOTEBOOK" ? "Notebook" : "Dataset"
|
|
253
|
+
}), /* @__PURE__ */ w(I, {
|
|
254
|
+
value: g,
|
|
255
|
+
onValueChange: (e) => _(e),
|
|
256
|
+
children: [/* @__PURE__ */ C(z, {
|
|
257
257
|
id: "run-source-id",
|
|
258
258
|
"aria-label": "Analysis source",
|
|
259
|
-
children: /* @__PURE__ */
|
|
260
|
-
}), /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ C(B, { placeholder: (p === "NOTEBOOK" ? ee : b) ? "Loading…" : `Select a ${p === "NOTEBOOK" ? "notebook" : "dataset"}` })
|
|
260
|
+
}), /* @__PURE__ */ C(L, { children: p === "NOTEBOOK" ? O.map((e) => /* @__PURE__ */ C(R, {
|
|
261
261
|
value: e.id,
|
|
262
262
|
children: e.title
|
|
263
|
-
}, e.id)) :
|
|
263
|
+
}, e.id)) : H.map((e) => /* @__PURE__ */ C(R, {
|
|
264
264
|
value: e.id,
|
|
265
265
|
children: e.name
|
|
266
266
|
}, e.id)) })]
|
|
267
267
|
})]
|
|
268
268
|
})]
|
|
269
269
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ w("div", {
|
|
271
271
|
className: "space-y-1.5",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ C(F, {
|
|
273
273
|
htmlFor: "run-method",
|
|
274
274
|
children: "Method"
|
|
275
|
-
}), /* @__PURE__ */
|
|
275
|
+
}), /* @__PURE__ */ C(P, {
|
|
276
276
|
id: "run-method",
|
|
277
|
-
value:
|
|
278
|
-
onChange: (e) =>
|
|
277
|
+
value: l,
|
|
278
|
+
onChange: (e) => u(e.target.value),
|
|
279
279
|
placeholder: "e.g. gaussian-fit"
|
|
280
280
|
})]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ w("div", {
|
|
283
283
|
className: "flex items-center gap-3",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ C(V, {
|
|
285
285
|
id: "run-ai",
|
|
286
|
-
checked:
|
|
287
|
-
onCheckedChange: (e) =>
|
|
288
|
-
}), /* @__PURE__ */
|
|
286
|
+
checked: d,
|
|
287
|
+
onCheckedChange: (e) => f(e)
|
|
288
|
+
}), /* @__PURE__ */ C(F, {
|
|
289
289
|
htmlFor: "run-ai",
|
|
290
290
|
className: "cursor-pointer",
|
|
291
291
|
children: "AI-assisted analysis"
|
|
292
292
|
})]
|
|
293
293
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ w(j, { children: [/* @__PURE__ */ C(E, {
|
|
295
295
|
type: "button",
|
|
296
296
|
variant: "outline",
|
|
297
|
-
onClick: () =>
|
|
298
|
-
disabled:
|
|
297
|
+
onClick: () => t(!1),
|
|
298
|
+
disabled: T,
|
|
299
299
|
children: "Cancel"
|
|
300
|
-
}), /* @__PURE__ */
|
|
300
|
+
}), /* @__PURE__ */ w(E, {
|
|
301
301
|
type: "submit",
|
|
302
|
-
disabled:
|
|
303
|
-
children: [/* @__PURE__ */
|
|
302
|
+
disabled: T,
|
|
303
|
+
children: [/* @__PURE__ */ C(J, { className: "size-4" }), T ? "Starting…" : "Run analysis"]
|
|
304
304
|
})] })
|
|
305
305
|
]
|
|
306
306
|
}) })
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
function fe({ analysis: e, onOpenChange:
|
|
310
|
-
let [
|
|
311
|
-
return /* @__PURE__ */
|
|
309
|
+
function fe({ analysis: e, onOpenChange: t, onCompleted: r }) {
|
|
310
|
+
let [i, a] = x("COMPLETED"), [o, s] = x(""), [c, l] = x(""), [u, { loading: d }] = n(), p = y();
|
|
311
|
+
return /* @__PURE__ */ C(D, {
|
|
312
312
|
open: !!e,
|
|
313
313
|
onOpenChange: (e) => {
|
|
314
|
-
|
|
314
|
+
d || t(e);
|
|
315
315
|
},
|
|
316
|
-
children: /* @__PURE__ */
|
|
317
|
-
onSubmit: async (
|
|
318
|
-
if (
|
|
319
|
-
let
|
|
320
|
-
if (!
|
|
321
|
-
|
|
316
|
+
children: /* @__PURE__ */ C(k, { children: /* @__PURE__ */ w("form", {
|
|
317
|
+
onSubmit: async (n) => {
|
|
318
|
+
if (n.preventDefault(), !e) return;
|
|
319
|
+
let a = $(o, p);
|
|
320
|
+
if (!a.ok) {
|
|
321
|
+
h.error(p("cosmicintersection.pages.analyses.invalidResults", "Invalid results"), a.error);
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
|
-
let
|
|
324
|
+
let s = await u({ variables: {
|
|
325
325
|
id: e.id,
|
|
326
|
-
status:
|
|
327
|
-
results:
|
|
328
|
-
outputFileId:
|
|
326
|
+
status: i,
|
|
327
|
+
results: a.value,
|
|
328
|
+
outputFileId: c || void 0
|
|
329
329
|
} });
|
|
330
|
-
|
|
330
|
+
!s.error && s.data?.cosCompleteAnalysis && (h.success(i === "COMPLETED" ? p("cosmicintersection.pages.analyses.analysisCompleted", "Analysis completed") : p("cosmicintersection.pages.analyses.analysisMarkedFailed", "Analysis marked failed"), p("cosmicintersection.pages.analyses.analysisUpdatedDescription", "“{{name}}” was updated.", { name: e.title })), t(!1), r());
|
|
331
331
|
},
|
|
332
332
|
className: "space-y-4",
|
|
333
333
|
children: [
|
|
334
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ w(M, { children: [/* @__PURE__ */ C(N, { children: "Complete analysis" }), /* @__PURE__ */ w(A, { children: [
|
|
335
335
|
"Record the outcome for ",
|
|
336
336
|
e ? `“${e.title}”` : "this analysis",
|
|
337
337
|
". Attach results or an output artifact if you have them."
|
|
338
338
|
] })] }),
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ w("div", {
|
|
340
340
|
className: "space-y-1.5",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ C(F, {
|
|
342
342
|
htmlFor: "complete-status",
|
|
343
343
|
children: "Outcome"
|
|
344
|
-
}), /* @__PURE__ */
|
|
345
|
-
value:
|
|
346
|
-
onValueChange: (e) =>
|
|
347
|
-
children: [/* @__PURE__ */
|
|
344
|
+
}), /* @__PURE__ */ w(I, {
|
|
345
|
+
value: i,
|
|
346
|
+
onValueChange: (e) => a(e),
|
|
347
|
+
children: [/* @__PURE__ */ C(z, {
|
|
348
348
|
id: "complete-status",
|
|
349
349
|
"aria-label": "Outcome",
|
|
350
|
-
children: /* @__PURE__ */
|
|
351
|
-
}), /* @__PURE__ */
|
|
350
|
+
children: /* @__PURE__ */ C(B, {})
|
|
351
|
+
}), /* @__PURE__ */ w(L, { children: [/* @__PURE__ */ C(R, {
|
|
352
352
|
value: "COMPLETED",
|
|
353
353
|
children: "Completed"
|
|
354
|
-
}), /* @__PURE__ */
|
|
354
|
+
}), /* @__PURE__ */ C(R, {
|
|
355
355
|
value: "FAILED",
|
|
356
356
|
children: "Failed"
|
|
357
357
|
})] })]
|
|
358
358
|
})]
|
|
359
359
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ w("div", {
|
|
361
361
|
className: "space-y-1.5",
|
|
362
362
|
children: [
|
|
363
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ C(F, {
|
|
364
364
|
htmlFor: "complete-results",
|
|
365
365
|
children: "Results (JSON)"
|
|
366
366
|
}),
|
|
367
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ C(ae, {
|
|
368
368
|
id: "complete-results",
|
|
369
|
-
value:
|
|
370
|
-
onChange: (e) =>
|
|
369
|
+
value: o,
|
|
370
|
+
onChange: (e) => s(e.target.value),
|
|
371
371
|
rows: 4,
|
|
372
372
|
className: "font-mono text-xs",
|
|
373
373
|
placeholder: "{ \"snr\": 12.4, \"detections\": 3 }"
|
|
374
374
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ C("p", {
|
|
376
376
|
className: "text-xs text-text-secondary",
|
|
377
377
|
children: "Optional structured results as a JSON object."
|
|
378
378
|
})
|
|
379
379
|
]
|
|
380
380
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
/* @__PURE__ */ C(f, {
|
|
382
|
+
visibility: "PRIVATE",
|
|
383
|
+
value: c,
|
|
384
|
+
onChange: (e) => l(e),
|
|
384
385
|
label: "Attach output file",
|
|
385
386
|
hint: "Optional output artifact (plots, tables, exports). Stored in workspace files."
|
|
386
387
|
}),
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ w(j, { children: [/* @__PURE__ */ C(E, {
|
|
388
389
|
type: "button",
|
|
389
390
|
variant: "outline",
|
|
390
|
-
onClick: () =>
|
|
391
|
-
disabled:
|
|
391
|
+
onClick: () => t(!1),
|
|
392
|
+
disabled: d,
|
|
392
393
|
children: "Cancel"
|
|
393
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ C(E, {
|
|
394
395
|
type: "submit",
|
|
395
|
-
disabled:
|
|
396
|
-
children:
|
|
396
|
+
disabled: d,
|
|
397
|
+
children: d ? "Saving…" : "Save outcome"
|
|
397
398
|
})] })
|
|
398
399
|
]
|
|
399
400
|
}) })
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
403
|
function pe() {
|
|
403
|
-
let { navigate:
|
|
404
|
+
let { navigate: n } = s(), a = y(), [o, f] = x(void 0), [p, h] = x(!1), [_, v] = x(null), { data: D, loading: O, error: k, refetch: A } = e({ status: o }), { data: j } = i({ pagination: {
|
|
404
405
|
limit: 100,
|
|
405
406
|
offset: 0
|
|
406
|
-
} }), { data:
|
|
407
|
+
} }), { data: M } = r({ pagination: {
|
|
407
408
|
limit: 100,
|
|
408
409
|
offset: 0
|
|
409
|
-
} }),
|
|
410
|
-
|
|
410
|
+
} }), N = D?.cosListAnalyses ?? [], { selectedId: P, select: F } = ee(), V = P ? N.find((e) => e.id === P) ?? null : null, { data: ae } = t(P, { skip: V !== null || O || !D }), q = ae?.cosAnalysis ?? null, Q = V ?? (q && q.id === P ? q : null), $ = (e) => F(e ? e.id : null);
|
|
411
|
+
te(Q ? {
|
|
411
412
|
type: "analysis",
|
|
412
413
|
id: Q.id,
|
|
413
414
|
name: Q.title,
|
|
414
415
|
path: `analyses?id=${encodeURIComponent(Q.id)}`
|
|
415
416
|
} : null);
|
|
416
|
-
let pe =
|
|
417
|
+
let pe = b(() => {
|
|
417
418
|
let e = /* @__PURE__ */ new Map();
|
|
418
|
-
for (let t of
|
|
419
|
+
for (let t of j?.cosListNotebooks.items ?? []) e.set(t.id, t.title);
|
|
419
420
|
return e;
|
|
420
|
-
}, [
|
|
421
|
+
}, [j]), me = b(() => {
|
|
421
422
|
let e = /* @__PURE__ */ new Map();
|
|
422
|
-
for (let t of
|
|
423
|
+
for (let t of M?.cosListDatasets.items ?? []) e.set(t.id, t.name);
|
|
423
424
|
return e;
|
|
424
|
-
}, [
|
|
425
|
+
}, [M]), he = (e) => e.notebookId ? {
|
|
425
426
|
label: pe.get(e.notebookId) ?? "Notebook",
|
|
426
427
|
path: `notebooks/${e.notebookId}`
|
|
427
428
|
} : e.datasetId ? {
|
|
@@ -438,219 +439,219 @@ function pe() {
|
|
|
438
439
|
key: "complete",
|
|
439
440
|
label: "Complete…",
|
|
440
441
|
icon: K,
|
|
441
|
-
onSelect: () =>
|
|
442
|
+
onSelect: () => v(e)
|
|
442
443
|
}] : []];
|
|
443
|
-
}, _e = /* @__PURE__ */
|
|
444
|
+
}, _e = /* @__PURE__ */ w(E, {
|
|
444
445
|
type: "button",
|
|
445
|
-
onClick: () =>
|
|
446
|
-
children: [/* @__PURE__ */
|
|
446
|
+
onClick: () => h(!0),
|
|
447
|
+
children: [/* @__PURE__ */ C(J, { className: "size-4" }), a("cosmicintersection.pages.analyses.create", "Run analysis")]
|
|
447
448
|
});
|
|
448
|
-
return /* @__PURE__ */
|
|
449
|
-
title:
|
|
450
|
-
description:
|
|
449
|
+
return /* @__PURE__ */ w(m, {
|
|
450
|
+
title: a("cosmicintersection.pages.analyses.title", "Analyses"),
|
|
451
|
+
description: a("cosmicintersection.pages.analyses.description", "Analysis runs executed over notebooks and federated datasets."),
|
|
451
452
|
actions: _e,
|
|
452
453
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ w("div", {
|
|
454
455
|
className: "space-y-4",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ w("div", {
|
|
456
457
|
className: "flex flex-wrap items-center gap-3",
|
|
457
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ C("label", {
|
|
458
459
|
className: "text-sm text-text-secondary",
|
|
459
460
|
htmlFor: "analysis-status-filter",
|
|
460
461
|
children: "Status"
|
|
461
|
-
}), /* @__PURE__ */
|
|
462
|
-
value:
|
|
463
|
-
onValueChange: (e) =>
|
|
464
|
-
children: [/* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ w(I, {
|
|
463
|
+
value: o ?? X,
|
|
464
|
+
onValueChange: (e) => f(e === X ? void 0 : e),
|
|
465
|
+
children: [/* @__PURE__ */ C(z, {
|
|
465
466
|
id: "analysis-status-filter",
|
|
466
467
|
className: "w-48",
|
|
467
468
|
"aria-label": "Filter by status",
|
|
468
|
-
children: /* @__PURE__ */
|
|
469
|
-
}), /* @__PURE__ */
|
|
469
|
+
children: /* @__PURE__ */ C(B, {})
|
|
470
|
+
}), /* @__PURE__ */ w(L, { children: [/* @__PURE__ */ C(R, {
|
|
470
471
|
value: X,
|
|
471
472
|
children: "All statuses"
|
|
472
|
-
}), ce.map((e) => /* @__PURE__ */
|
|
473
|
+
}), ce.map((e) => /* @__PURE__ */ C(R, {
|
|
473
474
|
value: e.value,
|
|
474
475
|
children: e.label
|
|
475
476
|
}, e.value))] })]
|
|
476
477
|
})]
|
|
477
|
-
}),
|
|
478
|
+
}), O ? /* @__PURE__ */ C(d, {
|
|
478
479
|
variant: "rows",
|
|
479
480
|
rows: 6,
|
|
480
|
-
label:
|
|
481
|
-
}) :
|
|
482
|
-
message:
|
|
483
|
-
onRetry: () => void
|
|
484
|
-
}) :
|
|
481
|
+
label: a("cosmicintersection.pages.analyses.loading", "Loading analyses…")
|
|
482
|
+
}) : k ? /* @__PURE__ */ C(u, {
|
|
483
|
+
message: a("cosmicintersection.pages.analyses.error", "We could not load analyses. Please try again."),
|
|
484
|
+
onRetry: () => void A()
|
|
485
|
+
}) : N.length === 0 ? /* @__PURE__ */ C(l, {
|
|
485
486
|
icon: K,
|
|
486
|
-
title:
|
|
487
|
-
description:
|
|
488
|
-
action:
|
|
487
|
+
title: o ? a("cosmicintersection.pages.analyses.emptyFilterTitle", "No analyses match this filter.") : a("cosmicintersection.pages.analyses.emptyTitle", "No analyses yet."),
|
|
488
|
+
description: o ? a("cosmicintersection.pages.analyses.emptyFilterDescription", "Try a different status filter.") : a("cosmicintersection.pages.analyses.emptyDescription", "Run an analysis against a notebook or dataset to see results here."),
|
|
489
|
+
action: o ? void 0 : /* @__PURE__ */ w(E, {
|
|
489
490
|
type: "button",
|
|
490
|
-
onClick: () =>
|
|
491
|
-
children: [/* @__PURE__ */
|
|
491
|
+
onClick: () => h(!0),
|
|
492
|
+
children: [/* @__PURE__ */ C(J, { className: "size-4" }), a("cosmicintersection.pages.analyses.create", "Run analysis")]
|
|
492
493
|
})
|
|
493
|
-
}) : /* @__PURE__ */
|
|
494
|
+
}) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
494
495
|
className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
|
|
495
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ w(H, {
|
|
496
497
|
className: "table-auto",
|
|
497
498
|
"data-testid": "analyses-table",
|
|
498
|
-
children: [/* @__PURE__ */
|
|
499
|
-
/* @__PURE__ */
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
505
|
-
/* @__PURE__ */
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
-
/* @__PURE__ */
|
|
499
|
+
children: [/* @__PURE__ */ C(re, { children: /* @__PURE__ */ w(ie, { children: [
|
|
500
|
+
/* @__PURE__ */ C(W, { children: "Title" }),
|
|
501
|
+
/* @__PURE__ */ C(W, { children: "Method" }),
|
|
502
|
+
/* @__PURE__ */ C(W, { children: "AI" }),
|
|
503
|
+
/* @__PURE__ */ C(W, { children: "Status" }),
|
|
504
|
+
/* @__PURE__ */ C(W, { children: "Source" }),
|
|
505
|
+
/* @__PURE__ */ C(W, { children: "Started" }),
|
|
506
|
+
/* @__PURE__ */ C(W, { children: "Finished" }),
|
|
507
|
+
/* @__PURE__ */ C(W, { children: "Output" }),
|
|
508
|
+
/* @__PURE__ */ C(W, {
|
|
508
509
|
className: "w-12 text-right",
|
|
509
510
|
children: "Actions"
|
|
510
511
|
})
|
|
511
|
-
] }) }), /* @__PURE__ */
|
|
512
|
-
let
|
|
513
|
-
return /* @__PURE__ */
|
|
514
|
-
/* @__PURE__ */
|
|
512
|
+
] }) }), /* @__PURE__ */ C(ne, { children: N.map((e) => {
|
|
513
|
+
let t = he(e);
|
|
514
|
+
return /* @__PURE__ */ w(ie, { children: [
|
|
515
|
+
/* @__PURE__ */ C(U, {
|
|
515
516
|
className: "font-medium text-text-primary",
|
|
516
517
|
children: e.title
|
|
517
518
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ C(U, {
|
|
519
520
|
className: "text-text-secondary",
|
|
520
521
|
children: e.method ?? "—"
|
|
521
522
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ C(U, { children: e.aiAssisted ? /* @__PURE__ */ w(T, {
|
|
523
524
|
variant: "secondary",
|
|
524
525
|
className: "gap-1",
|
|
525
|
-
children: [/* @__PURE__ */
|
|
526
|
+
children: [/* @__PURE__ */ C(se, {
|
|
526
527
|
className: "size-3",
|
|
527
528
|
"aria-hidden": "true"
|
|
528
529
|
}), "AI"]
|
|
529
|
-
}) : /* @__PURE__ */
|
|
530
|
+
}) : /* @__PURE__ */ C("span", {
|
|
530
531
|
className: "text-text-secondary",
|
|
531
532
|
children: "—"
|
|
532
533
|
}) }),
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ C(U, { children: /* @__PURE__ */ C(g, { status: e.status }) }),
|
|
535
|
+
/* @__PURE__ */ C(U, { children: t ? /* @__PURE__ */ w("button", {
|
|
535
536
|
type: "button",
|
|
536
|
-
onClick: () => t
|
|
537
|
+
onClick: () => n(t.path),
|
|
537
538
|
className: "inline-flex max-w-[12rem] items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
539
|
+
children: [/* @__PURE__ */ C(oe, {
|
|
539
540
|
className: "size-3.5 shrink-0",
|
|
540
541
|
"aria-hidden": "true"
|
|
541
|
-
}), /* @__PURE__ */
|
|
542
|
+
}), /* @__PURE__ */ C("span", {
|
|
542
543
|
className: "truncate",
|
|
543
|
-
children:
|
|
544
|
+
children: t.label
|
|
544
545
|
})]
|
|
545
|
-
}) : /* @__PURE__ */
|
|
546
|
+
}) : /* @__PURE__ */ C("span", {
|
|
546
547
|
className: "text-text-secondary",
|
|
547
548
|
children: "—"
|
|
548
549
|
}) }),
|
|
549
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ C(U, {
|
|
550
551
|
className: "text-text-secondary",
|
|
551
|
-
children: /* @__PURE__ */
|
|
552
|
+
children: /* @__PURE__ */ C(le, { value: e.startedAt })
|
|
552
553
|
}),
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ C(U, {
|
|
554
555
|
className: "text-text-secondary",
|
|
555
|
-
children: /* @__PURE__ */
|
|
556
|
+
children: /* @__PURE__ */ C(le, { value: e.finishedAt })
|
|
556
557
|
}),
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
+
/* @__PURE__ */ C(U, { children: Y(e) ? /* @__PURE__ */ w(E, {
|
|
558
559
|
type: "button",
|
|
559
560
|
variant: "outline",
|
|
560
561
|
size: "sm",
|
|
561
562
|
className: "h-auto gap-1 px-2 py-1",
|
|
562
563
|
onClick: () => $(e),
|
|
563
|
-
children: [/* @__PURE__ */
|
|
564
|
+
children: [/* @__PURE__ */ C(G, {
|
|
564
565
|
className: "size-3.5",
|
|
565
566
|
"aria-hidden": "true"
|
|
566
567
|
}), "View"]
|
|
567
|
-
}) : /* @__PURE__ */
|
|
568
|
+
}) : /* @__PURE__ */ C("span", {
|
|
568
569
|
className: "text-text-secondary",
|
|
569
570
|
children: "—"
|
|
570
571
|
}) }),
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ C(U, {
|
|
572
573
|
className: "text-right",
|
|
573
|
-
children: /* @__PURE__ */
|
|
574
|
+
children: /* @__PURE__ */ C(c, {
|
|
574
575
|
ariaLabel: `Actions for ${e.title}`,
|
|
575
|
-
onView:
|
|
576
|
+
onView: t ? () => n(t.path) : void 0,
|
|
576
577
|
extraItems: ge(e)
|
|
577
578
|
})
|
|
578
579
|
})
|
|
579
580
|
] }, e.id);
|
|
580
581
|
}) })]
|
|
581
582
|
})
|
|
582
|
-
}), /* @__PURE__ */
|
|
583
|
+
}), /* @__PURE__ */ C("ul", {
|
|
583
584
|
className: "space-y-3 md:hidden",
|
|
584
|
-
children:
|
|
585
|
-
let
|
|
586
|
-
return /* @__PURE__ */
|
|
585
|
+
children: N.map((e) => {
|
|
586
|
+
let t = he(e), r = e.status === "PENDING" || e.status === "RUNNING";
|
|
587
|
+
return /* @__PURE__ */ w("li", {
|
|
587
588
|
className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
|
|
588
589
|
children: [
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ w("div", {
|
|
590
591
|
className: "flex items-start justify-between gap-3",
|
|
591
|
-
children: [/* @__PURE__ */
|
|
592
|
+
children: [/* @__PURE__ */ w("div", {
|
|
592
593
|
className: "min-w-0",
|
|
593
|
-
children: [/* @__PURE__ */
|
|
594
|
+
children: [/* @__PURE__ */ C("p", {
|
|
594
595
|
className: "truncate font-medium text-text-primary",
|
|
595
596
|
children: e.title
|
|
596
|
-
}), e.method ? /* @__PURE__ */
|
|
597
|
+
}), e.method ? /* @__PURE__ */ C("p", {
|
|
597
598
|
className: "truncate text-xs text-text-secondary",
|
|
598
599
|
children: e.method
|
|
599
600
|
}) : null]
|
|
600
|
-
}), /* @__PURE__ */
|
|
601
|
+
}), /* @__PURE__ */ C(g, { status: e.status })]
|
|
601
602
|
}),
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ w("div", {
|
|
603
604
|
className: "flex flex-wrap items-center gap-2",
|
|
604
|
-
children: [e.aiAssisted ? /* @__PURE__ */ T
|
|
605
|
+
children: [e.aiAssisted ? /* @__PURE__ */ w(T, {
|
|
605
606
|
variant: "secondary",
|
|
606
607
|
className: "gap-1",
|
|
607
|
-
children: [/* @__PURE__ */
|
|
608
|
+
children: [/* @__PURE__ */ C(se, {
|
|
608
609
|
className: "size-3",
|
|
609
610
|
"aria-hidden": "true"
|
|
610
611
|
}), "AI"]
|
|
611
|
-
}) : null,
|
|
612
|
+
}) : null, t ? /* @__PURE__ */ w("button", {
|
|
612
613
|
type: "button",
|
|
613
|
-
onClick: () => t
|
|
614
|
+
onClick: () => n(t.path),
|
|
614
615
|
className: "inline-flex max-w-full items-center gap-1 truncate text-sm text-text-primary underline-offset-2 hover:underline",
|
|
615
|
-
children: [/* @__PURE__ */
|
|
616
|
+
children: [/* @__PURE__ */ C(oe, {
|
|
616
617
|
className: "size-3.5 shrink-0",
|
|
617
618
|
"aria-hidden": "true"
|
|
618
|
-
}), /* @__PURE__ */
|
|
619
|
+
}), /* @__PURE__ */ C("span", {
|
|
619
620
|
className: "truncate",
|
|
620
|
-
children:
|
|
621
|
+
children: t.label
|
|
621
622
|
})]
|
|
622
623
|
}) : null]
|
|
623
624
|
}),
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ w("dl", {
|
|
625
626
|
className: "grid grid-cols-2 gap-2 text-xs",
|
|
626
|
-
children: [/* @__PURE__ */
|
|
627
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
|
|
627
628
|
className: "text-text-secondary",
|
|
628
629
|
children: "Started"
|
|
629
|
-
}), /* @__PURE__ */
|
|
630
|
+
}), /* @__PURE__ */ C("dd", {
|
|
630
631
|
className: "text-text-primary",
|
|
631
632
|
children: Z(e.startedAt)
|
|
632
|
-
})] }), /* @__PURE__ */
|
|
633
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("dt", {
|
|
633
634
|
className: "text-text-secondary",
|
|
634
635
|
children: "Finished"
|
|
635
|
-
}), /* @__PURE__ */
|
|
636
|
+
}), /* @__PURE__ */ C("dd", {
|
|
636
637
|
className: "text-text-primary",
|
|
637
638
|
children: Z(e.finishedAt)
|
|
638
639
|
})] })]
|
|
639
640
|
}),
|
|
640
|
-
Y(e) || r ? /* @__PURE__ */
|
|
641
|
+
Y(e) || r ? /* @__PURE__ */ w("div", {
|
|
641
642
|
className: "flex flex-wrap gap-2",
|
|
642
|
-
children: [Y(e) ? /* @__PURE__ */
|
|
643
|
+
children: [Y(e) ? /* @__PURE__ */ w(E, {
|
|
643
644
|
type: "button",
|
|
644
645
|
variant: "outline",
|
|
645
646
|
size: "sm",
|
|
646
647
|
onClick: () => $(e),
|
|
647
|
-
children: [/* @__PURE__ */
|
|
648
|
-
}) : null, r ? /* @__PURE__ */
|
|
648
|
+
children: [/* @__PURE__ */ C(G, { className: "size-4" }), "View results"]
|
|
649
|
+
}) : null, r ? /* @__PURE__ */ w(E, {
|
|
649
650
|
type: "button",
|
|
650
651
|
variant: "outline",
|
|
651
652
|
size: "sm",
|
|
652
|
-
onClick: () =>
|
|
653
|
-
children: [/* @__PURE__ */
|
|
653
|
+
onClick: () => v(e),
|
|
654
|
+
children: [/* @__PURE__ */ C(K, { className: "size-4" }), "Complete"]
|
|
654
655
|
}) : null]
|
|
655
656
|
}) : null
|
|
656
657
|
]
|
|
@@ -658,19 +659,19 @@ function pe() {
|
|
|
658
659
|
})
|
|
659
660
|
})] })]
|
|
660
661
|
}),
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
-
open:
|
|
663
|
-
onOpenChange:
|
|
664
|
-
onCompleted: () => void
|
|
662
|
+
/* @__PURE__ */ C(de, {
|
|
663
|
+
open: p,
|
|
664
|
+
onOpenChange: h,
|
|
665
|
+
onCompleted: () => void A()
|
|
665
666
|
}),
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
analysis:
|
|
667
|
+
/* @__PURE__ */ C(fe, {
|
|
668
|
+
analysis: _,
|
|
668
669
|
onOpenChange: (e) => {
|
|
669
|
-
e ||
|
|
670
|
+
e || v(null);
|
|
670
671
|
},
|
|
671
|
-
onCompleted: () => void
|
|
672
|
-
},
|
|
673
|
-
/* @__PURE__ */
|
|
672
|
+
onCompleted: () => void A()
|
|
673
|
+
}, _?.id ?? "none"),
|
|
674
|
+
/* @__PURE__ */ C(ue, {
|
|
674
675
|
analysis: Q,
|
|
675
676
|
onOpenChange: (e) => {
|
|
676
677
|
e || $(null);
|
|
@@ -679,7 +680,6 @@ function pe() {
|
|
|
679
680
|
]
|
|
680
681
|
});
|
|
681
682
|
}
|
|
682
|
-
//#endregion
|
|
683
683
|
export { pe as default };
|
|
684
684
|
|
|
685
685
|
//# sourceMappingURL=AnalysesPage.js.map
|