@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.
Files changed (350) hide show
  1. package/dist/cosmicintersection/CosmicIntersectionRoot.d.ts +0 -1
  2. package/dist/cosmicintersection/CosmicIntersectionRoot.js +1 -2
  3. package/dist/cosmicintersection/CosmicIntersectionRoot.js.map +1 -1
  4. package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts +0 -1
  5. package/dist/cosmicintersection/CosmicIntersectionRoutes.js +1 -2
  6. package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
  7. package/dist/cosmicintersection/api/cosmicApi.d.ts +0 -1
  8. package/dist/cosmicintersection/api/cosmicApi.js +1 -2
  9. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  10. package/dist/cosmicintersection/api/databricksTransport.d.ts +0 -1
  11. package/dist/cosmicintersection/api/databricksTransport.js +1 -2
  12. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -1
  13. package/dist/cosmicintersection/api/tagsApi.d.ts +0 -1
  14. package/dist/cosmicintersection/api/tagsApi.js +1 -2
  15. package/dist/cosmicintersection/api/tagsApi.js.map +1 -1
  16. package/dist/cosmicintersection/components/ActionMenu.d.ts +0 -1
  17. package/dist/cosmicintersection/components/ActionMenu.js +1 -2
  18. package/dist/cosmicintersection/components/ActionMenu.js.map +1 -1
  19. package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts +0 -1
  20. package/dist/cosmicintersection/components/ActivityFeedPanel.js +27 -25
  21. package/dist/cosmicintersection/components/ActivityFeedPanel.js.map +1 -1
  22. package/dist/cosmicintersection/components/AiRunAttribution.d.ts +0 -1
  23. package/dist/cosmicintersection/components/AiRunAttribution.js +1 -2
  24. package/dist/cosmicintersection/components/AiRunAttribution.js.map +1 -1
  25. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +0 -1
  26. package/dist/cosmicintersection/components/DatabricksQueueForm.js +1 -2
  27. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -1
  28. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +0 -1
  29. package/dist/cosmicintersection/components/DatabricksRunPanel.js +1 -2
  30. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -1
  31. package/dist/cosmicintersection/components/DiscussionPanel.d.ts +0 -1
  32. package/dist/cosmicintersection/components/DiscussionPanel.js +4 -4
  33. package/dist/cosmicintersection/components/DiscussionPanel.js.map +1 -1
  34. package/dist/cosmicintersection/components/EmptyState.d.ts +0 -1
  35. package/dist/cosmicintersection/components/EmptyState.js +1 -2
  36. package/dist/cosmicintersection/components/EmptyState.js.map +1 -1
  37. package/dist/cosmicintersection/components/EntityFormShell.d.ts +0 -1
  38. package/dist/cosmicintersection/components/EntityFormShell.js +1 -2
  39. package/dist/cosmicintersection/components/EntityFormShell.js.map +1 -1
  40. package/dist/cosmicintersection/components/EntityTagsField.d.ts +0 -1
  41. package/dist/cosmicintersection/components/EntityTagsField.js +1 -2
  42. package/dist/cosmicintersection/components/EntityTagsField.js.map +1 -1
  43. package/dist/cosmicintersection/components/ErrorState.d.ts +0 -1
  44. package/dist/cosmicintersection/components/ErrorState.js +1 -2
  45. package/dist/cosmicintersection/components/ErrorState.js.map +1 -1
  46. package/dist/cosmicintersection/components/FacetPanel.d.ts +0 -1
  47. package/dist/cosmicintersection/components/FacetPanel.js +1 -2
  48. package/dist/cosmicintersection/components/FacetPanel.js.map +1 -1
  49. package/dist/cosmicintersection/components/FileUploadField.d.ts +5 -2
  50. package/dist/cosmicintersection/components/FileUploadField.js +80 -76
  51. package/dist/cosmicintersection/components/FileUploadField.js.map +1 -1
  52. package/dist/cosmicintersection/components/LineageGraph.d.ts +0 -1
  53. package/dist/cosmicintersection/components/LineageGraph.js +7 -12
  54. package/dist/cosmicintersection/components/LineageGraph.js.map +1 -1
  55. package/dist/cosmicintersection/components/LoadingState.d.ts +0 -1
  56. package/dist/cosmicintersection/components/LoadingState.js +1 -2
  57. package/dist/cosmicintersection/components/LoadingState.js.map +1 -1
  58. package/dist/cosmicintersection/components/PageLayout.d.ts +0 -1
  59. package/dist/cosmicintersection/components/PageLayout.js +1 -2
  60. package/dist/cosmicintersection/components/PageLayout.js.map +1 -1
  61. package/dist/cosmicintersection/components/Pagination.d.ts +0 -1
  62. package/dist/cosmicintersection/components/Pagination.js +1 -2
  63. package/dist/cosmicintersection/components/Pagination.js.map +1 -1
  64. package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts +0 -1
  65. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +7 -12
  66. package/dist/cosmicintersection/components/ReleaseDraftDialog.js.map +1 -1
  67. package/dist/cosmicintersection/components/ResultsChart.d.ts +0 -1
  68. package/dist/cosmicintersection/components/ResultsChart.js +4 -8
  69. package/dist/cosmicintersection/components/ResultsChart.js.map +1 -1
  70. package/dist/cosmicintersection/components/RunTriageCard.d.ts +0 -1
  71. package/dist/cosmicintersection/components/RunTriageCard.js +18 -19
  72. package/dist/cosmicintersection/components/RunTriageCard.js.map +1 -1
  73. package/dist/cosmicintersection/components/SafeLink.d.ts +0 -1
  74. package/dist/cosmicintersection/components/SafeLink.js +8 -7
  75. package/dist/cosmicintersection/components/SafeLink.js.map +1 -1
  76. package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts +0 -1
  77. package/dist/cosmicintersection/components/SchemaProposalPanel.js +17 -18
  78. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  79. package/dist/cosmicintersection/components/ScienceCanvas.d.ts +0 -1
  80. package/dist/cosmicintersection/components/ScienceCanvas.js +226 -233
  81. package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -1
  82. package/dist/cosmicintersection/components/StatusBadge.d.ts +0 -1
  83. package/dist/cosmicintersection/components/StatusBadge.js +1 -2
  84. package/dist/cosmicintersection/components/StatusBadge.js.map +1 -1
  85. package/dist/cosmicintersection/components/StepDAG.d.ts +0 -1
  86. package/dist/cosmicintersection/components/StepDAG.js +1 -2
  87. package/dist/cosmicintersection/components/StepDAG.js.map +1 -1
  88. package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts +0 -1
  89. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +1 -2
  90. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js.map +1 -1
  91. package/dist/cosmicintersection/components/index.d.ts +0 -1
  92. package/dist/cosmicintersection/components/index.js +14 -14
  93. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +0 -1
  94. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +2 -7
  95. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  96. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +0 -1
  97. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +18 -19
  98. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -1
  99. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +0 -1
  100. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +1 -2
  101. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -1
  102. package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts +0 -1
  103. package/dist/cosmicintersection/hooks/useEntityTagSync.js +29 -25
  104. package/dist/cosmicintersection/hooks/useEntityTagSync.js.map +1 -1
  105. package/dist/cosmicintersection/index.d.ts +0 -1
  106. package/dist/cosmicintersection/lib/assistantAwareDialog.d.ts +0 -1
  107. package/dist/cosmicintersection/lib/assistantAwareDialog.js +1 -2
  108. package/dist/cosmicintersection/lib/assistantAwareDialog.js.map +1 -1
  109. package/dist/cosmicintersection/lib/databricksForm.d.ts +0 -1
  110. package/dist/cosmicintersection/lib/databricksForm.js +1 -2
  111. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -1
  112. package/dist/cosmicintersection/lib/databricksIntent.d.ts +0 -1
  113. package/dist/cosmicintersection/lib/databricksIntent.js +1 -2
  114. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -1
  115. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +0 -1
  116. package/dist/cosmicintersection/lib/databricksPresentation.js +1 -2
  117. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -1
  118. package/dist/cosmicintersection/lib/mutationResult.d.ts +0 -1
  119. package/dist/cosmicintersection/lib/mutationResult.js +1 -2
  120. package/dist/cosmicintersection/lib/mutationResult.js.map +1 -1
  121. package/dist/cosmicintersection/lib/toast.d.ts +0 -1
  122. package/dist/cosmicintersection/lib/toast.js +1 -2
  123. package/dist/cosmicintersection/lib/toast.js.map +1 -1
  124. package/dist/cosmicintersection/lib/uploadAudience.d.ts +4 -0
  125. package/dist/cosmicintersection/lib/uploadAudience.js +17 -0
  126. package/dist/cosmicintersection/lib/uploadAudience.js.map +1 -0
  127. package/dist/cosmicintersection/lib/useSelectedRecord.d.ts +0 -1
  128. package/dist/cosmicintersection/lib/useSelectedRecord.js +1 -2
  129. package/dist/cosmicintersection/lib/useSelectedRecord.js.map +1 -1
  130. package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts +0 -1
  131. package/dist/cosmicintersection/lib/useTrackRecentItem.js +7 -8
  132. package/dist/cosmicintersection/lib/useTrackRecentItem.js.map +1 -1
  133. package/dist/cosmicintersection/lib/visualization.d.ts +0 -1
  134. package/dist/cosmicintersection/lib/visualization.js +2 -3
  135. package/dist/cosmicintersection/lib/visualization.js.map +1 -1
  136. package/dist/cosmicintersection/lib/visualizationSamples.d.ts +0 -1
  137. package/dist/cosmicintersection/pages/access/AccessPage.d.ts +0 -1
  138. package/dist/cosmicintersection/pages/access/AccessPage.js +225 -226
  139. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  140. package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts +0 -1
  141. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +260 -260
  142. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  143. package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts +0 -1
  144. package/dist/cosmicintersection/pages/archive/ArchivePage.js +23 -48
  145. package/dist/cosmicintersection/pages/archive/ArchivePage.js.map +1 -1
  146. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts +0 -1
  147. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +32 -33
  148. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
  149. package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts +0 -1
  150. package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +17 -18
  151. package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
  152. package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts +0 -1
  153. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +20 -21
  154. package/dist/cosmicintersection/pages/collections/CollectionsPage.js.map +1 -1
  155. package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts +0 -1
  156. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +19 -20
  157. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
  158. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts +0 -1
  159. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +64 -75
  160. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
  161. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts +0 -1
  162. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +131 -119
  163. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js.map +1 -1
  164. package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts +0 -1
  165. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +207 -208
  166. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  167. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts +0 -1
  168. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +20 -24
  169. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  170. package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts +0 -1
  171. package/dist/cosmicintersection/pages/lineage/LineagePage.js +53 -54
  172. package/dist/cosmicintersection/pages/lineage/LineagePage.js.map +1 -1
  173. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts +0 -1
  174. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +61 -62
  175. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  176. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts +0 -1
  177. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js +154 -149
  178. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js.map +1 -1
  179. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts +0 -1
  180. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +28 -29
  181. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js.map +1 -1
  182. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts +0 -1
  183. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +119 -120
  184. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  185. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts +0 -1
  186. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +41 -42
  187. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  188. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts +0 -1
  189. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +30 -31
  190. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js.map +1 -1
  191. package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts +0 -1
  192. package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js +16 -17
  193. package/dist/cosmicintersection/pages/releases/ReleaseFormPage.js.map +1 -1
  194. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts +0 -1
  195. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +268 -269
  196. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  197. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts +0 -1
  198. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +194 -195
  199. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  200. package/dist/cosmicintersection/pages/runs/RunsPage.d.ts +0 -1
  201. package/dist/cosmicintersection/pages/runs/RunsPage.js +20 -21
  202. package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
  203. package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts +0 -1
  204. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +31 -32
  205. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -1
  206. package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts +0 -1
  207. package/dist/cosmicintersection/pages/sources/SourceFormPage.js +23 -24
  208. package/dist/cosmicintersection/pages/sources/SourceFormPage.js.map +1 -1
  209. package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts +0 -1
  210. package/dist/cosmicintersection/pages/sources/SourcesPage.js +184 -182
  211. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  212. package/dist/cosmicintersection/types/index.d.ts +0 -1
  213. package/dist/cosmicintersection/utils/cn.d.ts +0 -1
  214. package/dist/cosmicintersection/utils/cn.js +1 -2
  215. package/dist/cosmicintersection/utils/cn.js.map +1 -1
  216. package/dist/cosmicintersection/utils/i18n.d.ts +0 -1
  217. package/dist/cosmicintersection/utils/navigation.d.ts +0 -1
  218. package/dist/dev/main.d.ts +0 -1
  219. package/dist/generated/global-types.d.ts +0 -1
  220. package/dist/generated/wspace-operations.d.ts +0 -1
  221. package/dist/generated/wspace-operations.js +1 -2
  222. package/dist/generated/wspace-operations.js.map +1 -1
  223. package/dist/generated/wspace-types.d.ts +0 -1
  224. package/dist/index.d.ts +0 -1
  225. package/dist/index.js +3 -3
  226. package/dist/node_modules/clsx/dist/clsx.js +7 -6
  227. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  228. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
  229. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  230. package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
  231. package/dist/services/createSandboxAssistantTransport.js +1 -2
  232. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  233. package/dist/services/recentItems.d.ts +0 -1
  234. package/dist/services/recentItems.js +5 -6
  235. package/dist/services/recentItems.js.map +1 -1
  236. package/dist/shared/hooks/useTr.d.ts +0 -1
  237. package/dist/shared/hooks/useTr.js +1 -2
  238. package/dist/shared/hooks/useTr.js.map +1 -1
  239. package/dist/stories/EmptyState.stories.d.ts +0 -1
  240. package/dist/stories/LoadingState.stories.d.ts +0 -1
  241. package/dist/stories/ScienceCanvas.stories.d.ts +0 -1
  242. package/dist/stories/StatusBadge.stories.d.ts +0 -1
  243. package/dist/stories/WorkspaceTagsPicker.stories.d.ts +0 -1
  244. package/dist/test/fakeGateway.d.ts +0 -1
  245. package/dist/test/fixtures.d.ts +0 -1
  246. package/dist/test/happydom.d.ts +1 -0
  247. package/dist/test/i18nMock.d.ts +13 -1
  248. package/dist/test/renderWithProviders.d.ts +1 -2
  249. package/dist/test/storage.d.ts +13 -0
  250. package/dist/types/assistant.d.ts +0 -1
  251. package/dist/utils/pageContext.d.ts +0 -1
  252. package/dist/utils/pageContext.js +1 -2
  253. package/dist/utils/pageContext.js.map +1 -1
  254. package/package.json +64 -38
  255. package/dist/cosmicintersection/CosmicIntersectionRoot.d.ts.map +0 -1
  256. package/dist/cosmicintersection/CosmicIntersectionRoutes.d.ts.map +0 -1
  257. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +0 -1
  258. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +0 -1
  259. package/dist/cosmicintersection/api/tagsApi.d.ts.map +0 -1
  260. package/dist/cosmicintersection/components/ActionMenu.d.ts.map +0 -1
  261. package/dist/cosmicintersection/components/ActivityFeedPanel.d.ts.map +0 -1
  262. package/dist/cosmicintersection/components/AiRunAttribution.d.ts.map +0 -1
  263. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +0 -1
  264. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +0 -1
  265. package/dist/cosmicintersection/components/DiscussionPanel.d.ts.map +0 -1
  266. package/dist/cosmicintersection/components/EmptyState.d.ts.map +0 -1
  267. package/dist/cosmicintersection/components/EntityFormShell.d.ts.map +0 -1
  268. package/dist/cosmicintersection/components/EntityTagsField.d.ts.map +0 -1
  269. package/dist/cosmicintersection/components/ErrorState.d.ts.map +0 -1
  270. package/dist/cosmicintersection/components/FacetPanel.d.ts.map +0 -1
  271. package/dist/cosmicintersection/components/FileUploadField.d.ts.map +0 -1
  272. package/dist/cosmicintersection/components/LineageGraph.d.ts.map +0 -1
  273. package/dist/cosmicintersection/components/LoadingState.d.ts.map +0 -1
  274. package/dist/cosmicintersection/components/PageLayout.d.ts.map +0 -1
  275. package/dist/cosmicintersection/components/Pagination.d.ts.map +0 -1
  276. package/dist/cosmicintersection/components/ReleaseDraftDialog.d.ts.map +0 -1
  277. package/dist/cosmicintersection/components/ResultsChart.d.ts.map +0 -1
  278. package/dist/cosmicintersection/components/RunTriageCard.d.ts.map +0 -1
  279. package/dist/cosmicintersection/components/SafeLink.d.ts.map +0 -1
  280. package/dist/cosmicintersection/components/SchemaProposalPanel.d.ts.map +0 -1
  281. package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +0 -1
  282. package/dist/cosmicintersection/components/StatusBadge.d.ts.map +0 -1
  283. package/dist/cosmicintersection/components/StepDAG.d.ts.map +0 -1
  284. package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts.map +0 -1
  285. package/dist/cosmicintersection/components/index.d.ts.map +0 -1
  286. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +0 -1
  287. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +0 -1
  288. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +0 -1
  289. package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts.map +0 -1
  290. package/dist/cosmicintersection/index.d.ts.map +0 -1
  291. package/dist/cosmicintersection/lib/assistantAwareDialog.d.ts.map +0 -1
  292. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +0 -1
  293. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +0 -1
  294. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +0 -1
  295. package/dist/cosmicintersection/lib/mutationResult.d.ts.map +0 -1
  296. package/dist/cosmicintersection/lib/toast.d.ts.map +0 -1
  297. package/dist/cosmicintersection/lib/useSelectedRecord.d.ts.map +0 -1
  298. package/dist/cosmicintersection/lib/useTrackRecentItem.d.ts.map +0 -1
  299. package/dist/cosmicintersection/lib/visualization.d.ts.map +0 -1
  300. package/dist/cosmicintersection/lib/visualizationSamples.d.ts.map +0 -1
  301. package/dist/cosmicintersection/pages/access/AccessPage.d.ts.map +0 -1
  302. package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +0 -1
  303. package/dist/cosmicintersection/pages/archive/ArchivePage.d.ts.map +0 -1
  304. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.d.ts.map +0 -1
  305. package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts.map +0 -1
  306. package/dist/cosmicintersection/pages/collections/CollectionsPage.d.ts.map +0 -1
  307. package/dist/cosmicintersection/pages/dashboard/DashboardPage.d.ts.map +0 -1
  308. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +0 -1
  309. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts.map +0 -1
  310. package/dist/cosmicintersection/pages/datasets/DatasetsPage.d.ts.map +0 -1
  311. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.d.ts.map +0 -1
  312. package/dist/cosmicintersection/pages/lineage/LineagePage.d.ts.map +0 -1
  313. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.d.ts.map +0 -1
  314. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts.map +0 -1
  315. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.d.ts.map +0 -1
  316. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.d.ts.map +0 -1
  317. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts.map +0 -1
  318. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.d.ts.map +0 -1
  319. package/dist/cosmicintersection/pages/releases/ReleaseFormPage.d.ts.map +0 -1
  320. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +0 -1
  321. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +0 -1
  322. package/dist/cosmicintersection/pages/runs/RunsPage.d.ts.map +0 -1
  323. package/dist/cosmicintersection/pages/sources/SourceDetailPage.d.ts.map +0 -1
  324. package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts.map +0 -1
  325. package/dist/cosmicintersection/pages/sources/SourcesPage.d.ts.map +0 -1
  326. package/dist/cosmicintersection/types/index.d.ts.map +0 -1
  327. package/dist/cosmicintersection/utils/cn.d.ts.map +0 -1
  328. package/dist/cosmicintersection/utils/i18n.d.ts.map +0 -1
  329. package/dist/cosmicintersection/utils/navigation.d.ts.map +0 -1
  330. package/dist/dev/main.d.ts.map +0 -1
  331. package/dist/generated/global-types.d.ts.map +0 -1
  332. package/dist/generated/wspace-operations.d.ts.map +0 -1
  333. package/dist/generated/wspace-types.d.ts.map +0 -1
  334. package/dist/index.d.ts.map +0 -1
  335. package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
  336. package/dist/services/recentItems.d.ts.map +0 -1
  337. package/dist/shared/hooks/useTr.d.ts.map +0 -1
  338. package/dist/stories/EmptyState.stories.d.ts.map +0 -1
  339. package/dist/stories/LoadingState.stories.d.ts.map +0 -1
  340. package/dist/stories/ScienceCanvas.stories.d.ts.map +0 -1
  341. package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
  342. package/dist/stories/WorkspaceTagsPicker.stories.d.ts.map +0 -1
  343. package/dist/test/fakeGateway.d.ts.map +0 -1
  344. package/dist/test/fixtures.d.ts.map +0 -1
  345. package/dist/test/i18nMock.d.ts.map +0 -1
  346. package/dist/test/renderWithProviders.d.ts.map +0 -1
  347. package/dist/test/setup.d.ts +0 -1
  348. package/dist/test/setup.d.ts.map +0 -1
  349. package/dist/types/assistant.d.ts.map +0 -1
  350. package/dist/utils/pageContext.d.ts.map +0 -1
@@ -1,39 +1,39 @@
1
- import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
- import { useCosAnalysesQuery as ee, useCosCollectionsQuery as te, useCosDatasetsQuery as ne, useCosNotebooksQuery as t, useCosPipelinesQuery as n, useCosReleasesQuery as re, useCosRunsQuery as ie, useCosSourcesQuery as r } from "../../api/cosmicApi.js";
3
- import { useTr as i } from "../../../shared/hooks/useTr.js";
4
- import { EmptyState as a } from "../../components/EmptyState.js";
5
- import { ErrorState as o } from "../../components/ErrorState.js";
6
- import { LoadingState as ae } from "../../components/LoadingState.js";
7
- import { PageLayout as s } from "../../components/PageLayout.js";
1
+ import { useCosAnalysesQuery as e, useCosCollectionsQuery as ee, useCosDatasetsQuery as te, useCosNotebooksQuery as ne, useCosPipelinesQuery as t, useCosReleasesQuery as n, useCosRunsQuery as re, useCosSourcesQuery as ie } from "../../api/cosmicApi.js";
8
2
  import "../../components/index.js";
9
- import { LineageGraph as c, buildDatasetLineage as l, buildReleaseLineage as oe } from "../../components/LineageGraph.js";
10
- import { useMemo as u, useState as d } from "react";
11
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
- import { useParams as m } from "react-router";
13
- import { Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y } from "@burdenoff/fe-libs/ui";
14
- import { Info as b, Share2 as x, Workflow as S } from "lucide-react";
15
- //#region src/cosmicintersection/pages/lineage/LineagePage.tsx
3
+ import { LineageGraph as r, buildDatasetLineage as i, buildReleaseLineage as a } from "../../components/LineageGraph.js";
4
+ import { EmptyState as o } from "../../components/EmptyState.js";
5
+ import { ErrorState as ae } from "../../components/ErrorState.js";
6
+ import { LoadingState as s } from "../../components/LoadingState.js";
7
+ import { PageLayout as c } from "../../components/PageLayout.js";
8
+ import { useCosmicIntersection as l } from "../../context/CosmicIntersectionContext.js";
9
+ import { useTr as u } from "../../../shared/hooks/useTr.js";
10
+ import { useMemo as d, useState as f } from "react";
11
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
+ import { useParams as h } from "react-router";
13
+ import { Select as g, SelectContent as _, SelectItem as v, SelectTrigger as y, SelectValue as b } from "@burdenoff/fe-libs/ui";
14
+ import { Info as x, Share2 as S, Workflow as oe } from "lucide-react";
15
+ // src/cosmicintersection/pages/lineage/LineagePage.tsx
16
16
  var C = 100;
17
17
  function w() {
18
- let { navigate: w } = e(), T = i(), { datasetId: E } = m(), D = ne({ pagination: {
18
+ let { navigate: w } = l(), T = u(), { datasetId: E } = h(), D = te({ pagination: {
19
19
  limit: C,
20
20
  offset: 0
21
- } }), O = re({ pagination: {
21
+ } }), O = n({ pagination: {
22
22
  limit: C,
23
23
  offset: 0
24
- } }), k = r({ pagination: {
24
+ } }), k = ie({ pagination: {
25
25
  limit: C,
26
26
  offset: 0
27
- } }), A = te(), j = ie({ pagination: {
27
+ } }), A = ee(), j = re({ pagination: {
28
28
  limit: C,
29
29
  offset: 0
30
- } }), M = t({ pagination: {
30
+ } }), M = ne({ pagination: {
31
31
  limit: C,
32
32
  offset: 0
33
- } }), N = ee({}), P = n({ pagination: {
33
+ } }), N = e({}), P = t({ pagination: {
34
34
  limit: C,
35
35
  offset: 0
36
- } }), F = u(() => D.data?.cosListDatasets?.items ?? [], [D.data]), I = u(() => O.data?.cosListReleases?.items ?? [], [O.data]), L = u(() => k.data?.cosListSources?.items ?? [], [k.data]), R = u(() => A.data?.cosListCollections ?? [], [A.data]), z = u(() => j.data?.cosListRuns?.items ?? [], [j.data]), B = u(() => M.data?.cosListNotebooks?.items ?? [], [M.data]), V = u(() => N.data?.cosListAnalyses ?? [], [N.data]), H = u(() => P.data?.cosListPipelines?.items ?? [], [P.data]), U = u(() => ({
36
+ } }), F = d(() => D.data?.cosListDatasets?.items ?? [], [D.data]), I = d(() => O.data?.cosListReleases?.items ?? [], [O.data]), L = d(() => k.data?.cosListSources?.items ?? [], [k.data]), R = d(() => A.data?.cosListCollections ?? [], [A.data]), z = d(() => j.data?.cosListRuns?.items ?? [], [j.data]), B = d(() => M.data?.cosListNotebooks?.items ?? [], [M.data]), V = d(() => N.data?.cosListAnalyses ?? [], [N.data]), H = d(() => P.data?.cosListPipelines?.items ?? [], [P.data]), U = d(() => ({
37
37
  datasetsById: new Map(F.map((e) => [e.id, e])),
38
38
  sourcesById: new Map(L.map((e) => [e.id, e])),
39
39
  collectionsById: new Map(R.map((e) => [e.id, e])),
@@ -51,9 +51,9 @@ function w() {
51
51
  V,
52
52
  I,
53
53
  H
54
- ]), [W, G] = d("dataset"), [K, q] = d(E ?? ""), J = W === "dataset" ? F : I, Y = J[0]?.id ?? "", X = J.some((e) => e.id === K);
54
+ ]), [W, G] = f("dataset"), [K, q] = f(E ?? ""), J = W === "dataset" ? F : I, Y = J[0]?.id ?? "", X = J.some((e) => e.id === K);
55
55
  !X && Y && q(Y);
56
- let Z = X ? K : Y, Q = u(() => Z ? W === "dataset" ? l(Z, U) : oe(Z, U) : {
56
+ let Z = X ? K : Y, Q = d(() => Z ? W === "dataset" ? i(Z, U) : a(Z, U) : {
57
57
  nodes: [],
58
58
  edges: []
59
59
  }, [
@@ -63,99 +63,98 @@ function w() {
63
63
  ]), se = D.loading && F.length === 0 || O.loading && I.length === 0, ce = D.error || O.error, le = (e) => {
64
64
  G(e), q("");
65
65
  }, $ = W === "dataset" ? F.find((e) => e.id === Z)?.name : I.find((e) => e.id === Z)?.title;
66
- return /* @__PURE__ */ f(s, {
66
+ return /* @__PURE__ */ p(c, {
67
67
  title: T("cosmicintersection.pages.lineage.title", "Lineage"),
68
68
  description: T("cosmicintersection.pages.lineage.description", "Trace any result from raw observation to citable release."),
69
- children: /* @__PURE__ */ p("div", {
69
+ children: /* @__PURE__ */ m("div", {
70
70
  className: "space-y-6",
71
- children: [/* @__PURE__ */ p("div", {
71
+ children: [/* @__PURE__ */ m("div", {
72
72
  className: "flex flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-4 sm:flex-row sm:items-end",
73
- children: [/* @__PURE__ */ p("label", {
73
+ children: [/* @__PURE__ */ m("label", {
74
74
  className: "space-y-1 text-sm",
75
- children: [/* @__PURE__ */ f("span", {
75
+ children: [/* @__PURE__ */ p("span", {
76
76
  className: "block font-medium text-text-primary",
77
77
  children: T("cosmicintersection.pages.lineage.traceFrom", "Trace from")
78
- }), /* @__PURE__ */ p(h, {
78
+ }), /* @__PURE__ */ m(g, {
79
79
  value: W,
80
80
  onValueChange: le,
81
- children: [/* @__PURE__ */ f(v, {
81
+ children: [/* @__PURE__ */ p(y, {
82
82
  "aria-label": T("cosmicintersection.pages.lineage.rootEntityKind", "Root entity kind"),
83
83
  className: "w-full sm:w-44",
84
- children: /* @__PURE__ */ f(y, {})
85
- }), /* @__PURE__ */ p(g, { children: [/* @__PURE__ */ f(_, {
84
+ children: /* @__PURE__ */ p(b, {})
85
+ }), /* @__PURE__ */ m(_, { children: [/* @__PURE__ */ p(v, {
86
86
  value: "dataset",
87
87
  children: T("cosmicintersection.pages.lineage.dataset", "Dataset")
88
- }), /* @__PURE__ */ f(_, {
88
+ }), /* @__PURE__ */ p(v, {
89
89
  value: "release",
90
90
  children: T("cosmicintersection.pages.lineage.release", "Release")
91
91
  })] })]
92
92
  })]
93
- }), /* @__PURE__ */ p("label", {
93
+ }), /* @__PURE__ */ m("label", {
94
94
  className: "space-y-1 text-sm sm:flex-1",
95
- children: [/* @__PURE__ */ f("span", {
95
+ children: [/* @__PURE__ */ p("span", {
96
96
  className: "block font-medium text-text-primary",
97
97
  children: W === "dataset" ? T("cosmicintersection.pages.lineage.dataset", "Dataset") : T("cosmicintersection.pages.lineage.release", "Release")
98
- }), /* @__PURE__ */ p(h, {
98
+ }), /* @__PURE__ */ m(g, {
99
99
  value: Z,
100
100
  onValueChange: q,
101
101
  disabled: J.length === 0,
102
- children: [/* @__PURE__ */ f(v, {
102
+ children: [/* @__PURE__ */ p(y, {
103
103
  "aria-label": T("cosmicintersection.pages.lineage.selectRoot", "Select {{kind}}", { kind: W }),
104
104
  className: "w-full sm:max-w-md",
105
- children: /* @__PURE__ */ f(y, { placeholder: J.length === 0 ? T("cosmicintersection.pages.lineage.noRootAvailable", "No {{kind}}s available", { kind: W }) : T("cosmicintersection.pages.lineage.selectRoot", "Select a {{kind}}", { kind: W }) })
106
- }), /* @__PURE__ */ f(g, { children: J.map((e) => /* @__PURE__ */ f(_, {
105
+ children: /* @__PURE__ */ p(b, { placeholder: J.length === 0 ? T("cosmicintersection.pages.lineage.noRootAvailable", "No {{kind}}s available", { kind: W }) : T("cosmicintersection.pages.lineage.selectRoot", "Select a {{kind}}", { kind: W }) })
106
+ }), /* @__PURE__ */ p(_, { children: J.map((e) => /* @__PURE__ */ p(v, {
107
107
  value: e.id,
108
108
  children: W === "dataset" ? e.name : e.title
109
109
  }, e.id)) })]
110
110
  })]
111
111
  })]
112
- }), ce ? /* @__PURE__ */ f(o, {
112
+ }), ce ? /* @__PURE__ */ p(ae, {
113
113
  message: T("cosmicintersection.pages.lineage.error", "We could not load lineage data. Please try again."),
114
114
  onRetry: () => {
115
115
  D.refetch(), O.refetch();
116
116
  }
117
- }) : se ? /* @__PURE__ */ f(ae, { label: T("cosmicintersection.pages.lineage.loading", "Loading lineage…") }) : F.length === 0 && I.length === 0 ? /* @__PURE__ */ f(a, {
118
- icon: S,
117
+ }) : se ? /* @__PURE__ */ p(s, { label: T("cosmicintersection.pages.lineage.loading", "Loading lineage…") }) : F.length === 0 && I.length === 0 ? /* @__PURE__ */ p(o, {
118
+ icon: oe,
119
119
  title: T("cosmicintersection.pages.lineage.nothingToTrace", "Nothing to trace yet."),
120
120
  description: T("cosmicintersection.pages.lineage.nothingToTraceDescription", "Register a dataset or publish a release to build a provenance graph from raw observation to citable output."),
121
- action: /* @__PURE__ */ f("button", {
121
+ action: /* @__PURE__ */ p("button", {
122
122
  type: "button",
123
123
  onClick: () => w("datasets"),
124
124
  className: "text-sm font-medium text-text-link underline-offset-2 hover:underline",
125
125
  children: T("cosmicintersection.pages.lineage.goToDatasets", "Go to datasets")
126
126
  })
127
- }) : Q.nodes.length === 0 ? /* @__PURE__ */ f(a, {
128
- icon: x,
127
+ }) : Q.nodes.length === 0 ? /* @__PURE__ */ p(o, {
128
+ icon: S,
129
129
  title: T("cosmicintersection.pages.lineage.selectToTrace", "Select a {{kind}} to trace", { kind: W }),
130
130
  description: T("cosmicintersection.pages.lineage.selectToTraceDescription", "Choose a root above to render its provenance graph.")
131
- }) : /* @__PURE__ */ p("div", {
131
+ }) : /* @__PURE__ */ m("div", {
132
132
  className: "space-y-4",
133
133
  children: [
134
- $ ? /* @__PURE__ */ p("div", {
134
+ $ ? /* @__PURE__ */ m("div", {
135
135
  className: "flex items-center gap-2 text-sm text-text-secondary",
136
- children: [/* @__PURE__ */ f(x, {
136
+ children: [/* @__PURE__ */ p(S, {
137
137
  className: "size-4 text-text-tertiary",
138
138
  "aria-hidden": "true"
139
- }), /* @__PURE__ */ f("span", { children: T("cosmicintersection.pages.lineage.provenanceFor", "Provenance for {{name}}", { name: $ }) })]
139
+ }), /* @__PURE__ */ p("span", { children: T("cosmicintersection.pages.lineage.provenanceFor", "Provenance for {{name}}", { name: $ }) })]
140
140
  }) : null,
141
- /* @__PURE__ */ f(c, {
141
+ /* @__PURE__ */ p(r, {
142
142
  model: Q,
143
143
  mode: "full",
144
144
  onNavigate: w
145
145
  }),
146
- /* @__PURE__ */ p("p", {
146
+ /* @__PURE__ */ m("p", {
147
147
  className: "flex items-start gap-2 text-xs text-text-tertiary",
148
- children: [/* @__PURE__ */ f(b, {
148
+ children: [/* @__PURE__ */ p(x, {
149
149
  className: "mt-0.5 size-3.5 shrink-0",
150
150
  "aria-hidden": "true"
151
- }), /* @__PURE__ */ f("span", { children: T("cosmicintersection.pages.lineage.graphDisclaimer", "This graph is derived live from your workspace’s cos entities. Connected runs, notebooks, analyses and releases are matched across the {{limit}} most recent records of each type; older items may not appear.", { limit: C }) })]
151
+ }), /* @__PURE__ */ p("span", { children: T("cosmicintersection.pages.lineage.graphDisclaimer", "This graph is derived live from your workspace’s cos entities. Connected runs, notebooks, analyses and releases are matched across the {{limit}} most recent records of each type; older items may not appear.", { limit: C }) })]
152
152
  })
153
153
  ]
154
154
  })]
155
155
  })
156
156
  });
157
157
  }
158
- //#endregion
159
158
  export { w as default };
160
159
 
161
160
  //# sourceMappingURL=LineagePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineagePage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/lineage/LineagePage.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { useParams } from 'react-router';\nimport { Info, Share2, Workflow } from 'lucide-react';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n useCosCollectionsQuery,\n useCosDatasetsQuery,\n useCosNotebooksQuery,\n useCosPipelinesQuery,\n useCosReleasesQuery,\n useCosRunsQuery,\n useCosAnalysesQuery,\n useCosSourcesQuery,\n} from '../../api/cosmicApi';\nimport { EmptyState, ErrorState, LoadingState, PageLayout } from '../../components';\nimport {\n LineageGraph,\n buildDatasetLineage,\n buildReleaseLineage,\n type LineageDataPools,\n} from '../../components/LineageGraph';\nimport { useCosmicIntersection } from '../../context/CosmicIntersectionContext';\nimport { useTr } from '../../../shared/hooks/useTr';\n\ntype RootKind = 'dataset' | 'release';\n\nconst PAGE_LIMIT = 100;\n\nexport default function LineagePage() {\n const { navigate } = useCosmicIntersection();\n const tr = useTr();\n // Optional deep-link: /lineage/:datasetId preselects that dataset as the root.\n const { datasetId: routeDatasetId } = useParams<{ datasetId?: string }>();\n\n const datasetsQuery = useCosDatasetsQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const releasesQuery = useCosReleasesQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const sourcesQuery = useCosSourcesQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const collectionsQuery = useCosCollectionsQuery();\n const runsQuery = useCosRunsQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const notebooksQuery = useCosNotebooksQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const analysesQuery = useCosAnalysesQuery({});\n const pipelinesQuery = useCosPipelinesQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n\n const datasets = useMemo(\n () => datasetsQuery.data?.cosListDatasets?.items ?? [],\n [datasetsQuery.data]\n );\n const releases = useMemo(\n () => releasesQuery.data?.cosListReleases?.items ?? [],\n [releasesQuery.data]\n );\n const sources = useMemo(\n () => sourcesQuery.data?.cosListSources?.items ?? [],\n [sourcesQuery.data]\n );\n const collections = useMemo(\n () => collectionsQuery.data?.cosListCollections ?? [],\n [collectionsQuery.data]\n );\n const runs = useMemo(() => runsQuery.data?.cosListRuns?.items ?? [], [runsQuery.data]);\n const notebooks = useMemo(\n () => notebooksQuery.data?.cosListNotebooks?.items ?? [],\n [notebooksQuery.data]\n );\n const analyses = useMemo(() => analysesQuery.data?.cosListAnalyses ?? [], [analysesQuery.data]);\n const pipelines = useMemo(\n () => pipelinesQuery.data?.cosListPipelines?.items ?? [],\n [pipelinesQuery.data]\n );\n\n const pools: LineageDataPools = useMemo(\n () => ({\n datasetsById: new Map(datasets.map((item) => [item.id, item])),\n sourcesById: new Map(sources.map((item) => [item.id, item])),\n collectionsById: new Map(collections.map((item) => [item.id, item])),\n runs,\n notebooks,\n analyses,\n releases,\n pipelinesById: new Map(pipelines.map((item) => [item.id, item])),\n }),\n [datasets, sources, collections, runs, notebooks, analyses, releases, pipelines]\n );\n\n const [rootKind, setRootKind] = useState<RootKind>('dataset');\n const [selectedId, setSelectedId] = useState<string>(routeDatasetId ?? '');\n\n // Auto-select the first available root of the current kind once lists load —\n // the documented derive-state-during-render pattern (no effect required).\n const options = rootKind === 'dataset' ? datasets : releases;\n const firstOption = options[0]?.id ?? '';\n const selectionValid = options.some((item) => item.id === selectedId);\n if (!selectionValid && firstOption) {\n setSelectedId(firstOption);\n }\n const activeId = selectionValid ? selectedId : firstOption;\n\n const model = useMemo(() => {\n if (!activeId) {\n return { nodes: [], edges: [] };\n }\n return rootKind === 'dataset'\n ? buildDatasetLineage(activeId, pools)\n : buildReleaseLineage(activeId, pools);\n }, [activeId, rootKind, pools]);\n\n const primaryLoading =\n (datasetsQuery.loading && datasets.length === 0) ||\n (releasesQuery.loading && releases.length === 0);\n const primaryError = datasetsQuery.error || releasesQuery.error;\n\n const handleKindChange = (value: string) => {\n setRootKind(value as RootKind);\n setSelectedId('');\n };\n\n const activeLabel =\n rootKind === 'dataset'\n ? datasets.find((item) => item.id === activeId)?.name\n : releases.find((item) => item.id === activeId)?.title;\n\n return (\n <PageLayout\n title={tr('cosmicintersection.pages.lineage.title', 'Lineage')}\n description={tr(\n 'cosmicintersection.pages.lineage.description',\n 'Trace any result from raw observation to citable release.'\n )}\n >\n <div className=\"space-y-6\">\n {/* Root picker */}\n <div className=\"flex flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-4 sm:flex-row sm:items-end\">\n <label className=\"space-y-1 text-sm\">\n <span className=\"block font-medium text-text-primary\">\n {tr('cosmicintersection.pages.lineage.traceFrom', 'Trace from')}\n </span>\n <Select value={rootKind} onValueChange={handleKindChange}>\n <SelectTrigger\n aria-label={tr(\n 'cosmicintersection.pages.lineage.rootEntityKind',\n 'Root entity kind'\n )}\n className=\"w-full sm:w-44\"\n >\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"dataset\">\n {tr('cosmicintersection.pages.lineage.dataset', 'Dataset')}\n </SelectItem>\n <SelectItem value=\"release\">\n {tr('cosmicintersection.pages.lineage.release', 'Release')}\n </SelectItem>\n </SelectContent>\n </Select>\n </label>\n\n <label className=\"space-y-1 text-sm sm:flex-1\">\n <span className=\"block font-medium text-text-primary\">\n {rootKind === 'dataset'\n ? tr('cosmicintersection.pages.lineage.dataset', 'Dataset')\n : tr('cosmicintersection.pages.lineage.release', 'Release')}\n </span>\n <Select value={activeId} onValueChange={setSelectedId} disabled={options.length === 0}>\n <SelectTrigger\n aria-label={tr('cosmicintersection.pages.lineage.selectRoot', 'Select {{kind}}', {\n kind: rootKind,\n })}\n className=\"w-full sm:max-w-md\"\n >\n <SelectValue\n placeholder={\n options.length === 0\n ? tr(\n 'cosmicintersection.pages.lineage.noRootAvailable',\n 'No {{kind}}s available',\n { kind: rootKind }\n )\n : tr('cosmicintersection.pages.lineage.selectRoot', 'Select a {{kind}}', {\n kind: rootKind,\n })\n }\n />\n </SelectTrigger>\n <SelectContent>\n {options.map((item) => (\n <SelectItem key={item.id} value={item.id}>\n {rootKind === 'dataset'\n ? (item as (typeof datasets)[number]).name\n : (item as (typeof releases)[number]).title}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </label>\n </div>\n\n {primaryError ? (\n <ErrorState\n message={tr(\n 'cosmicintersection.pages.lineage.error',\n 'We could not load lineage data. Please try again.'\n )}\n onRetry={() => {\n void datasetsQuery.refetch();\n void releasesQuery.refetch();\n }}\n />\n ) : primaryLoading ? (\n <LoadingState\n label={tr('cosmicintersection.pages.lineage.loading', 'Loading lineage…')}\n />\n ) : datasets.length === 0 && releases.length === 0 ? (\n <EmptyState\n icon={Workflow}\n title={tr('cosmicintersection.pages.lineage.nothingToTrace', 'Nothing to trace yet.')}\n description={tr(\n 'cosmicintersection.pages.lineage.nothingToTraceDescription',\n 'Register a dataset or publish a release to build a provenance graph from raw observation to citable output.'\n )}\n action={\n <button\n type=\"button\"\n onClick={() => navigate('datasets')}\n className=\"text-sm font-medium text-text-link underline-offset-2 hover:underline\"\n >\n {tr('cosmicintersection.pages.lineage.goToDatasets', 'Go to datasets')}\n </button>\n }\n />\n ) : model.nodes.length === 0 ? (\n <EmptyState\n icon={Share2}\n title={tr(\n 'cosmicintersection.pages.lineage.selectToTrace',\n 'Select a {{kind}} to trace',\n { kind: rootKind }\n )}\n description={tr(\n 'cosmicintersection.pages.lineage.selectToTraceDescription',\n 'Choose a root above to render its provenance graph.'\n )}\n />\n ) : (\n <div className=\"space-y-4\">\n {activeLabel ? (\n <div className=\"flex items-center gap-2 text-sm text-text-secondary\">\n <Share2 className=\"size-4 text-text-tertiary\" aria-hidden=\"true\" />\n <span>\n {tr('cosmicintersection.pages.lineage.provenanceFor', 'Provenance for {{name}}', {\n name: activeLabel,\n })}\n </span>\n </div>\n ) : null}\n\n <LineageGraph model={model} mode=\"full\" onNavigate={navigate} />\n\n <p className=\"flex items-start gap-2 text-xs text-text-tertiary\">\n <Info className=\"mt-0.5 size-3.5 shrink-0\" aria-hidden=\"true\" />\n <span>\n {tr(\n 'cosmicintersection.pages.lineage.graphDisclaimer',\n 'This graph is derived live from your workspace’s cos entities. Connected runs, notebooks, analyses and releases are matched across the {{limit}} most recent records of each type; older items may not appear.',\n { limit: PAGE_LIMIT }\n )}\n </span>\n </p>\n </div>\n )}\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAM,IAAa;AAEnB,SAAwB,IAAc;CACpC,IAAM,EAAE,gBAAa,EAAsB,GACrC,IAAK,EAAM,GAEX,EAAE,WAAW,MAAmB,EAAkC,GAElE,IAAgB,GAAoB,EAAE,YAAY;EAAE,OAAO;EAAY,QAAQ;CAAE,EAAE,CAAC,GACpF,IAAgB,GAAoB,EAAE,YAAY;EAAE,OAAO;EAAY,QAAQ;CAAE,EAAE,CAAC,GACpF,IAAe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B;IACpF,aAAa,EACX,8DACA,6GACF;IACA,QACE,kBAAC,UAAD;KACE,MAAK;KACL,eAAe,EAAS,UAAU;KAClC,WAAU;eAET,EAAG,iDAAiD,gBAAgB;IAC/D,CAAA;GAEX,CAAA,IACC,EAAM,MAAM,WAAW,IACzB,kBAAC,GAAD;IACE,MAAM;IACN,OAAO,EACL,kDACA,8BACA,EAAE,MAAM,EAAS,CACnB;IACA,aAAa,EACX,6DACA,qDACF;GACD,CAAA,IAED,kBAAC,OAAD;IAAK,WAAU;cAAf;KACG,IACC,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,GAAD;OAAQ,WAAU;OAA4B,eAAY;MAAQ,CAAA,GAClE,kBAAC,QAAD,EAAA,UACG,EAAG,kDAAkD,2BAA2B,EAC/E,MAAM,EACR,CAAC,EACG,CAAA,CACH;UACH;KAEJ,kBAAC,GAAD;MAAqB;MAAO,MAAK;MAAO,YAAY;KAAW,CAAA;KAE/D,kBAAC,KAAD;MAAG,WAAU;gBAAb,CACE,kBAAC,GAAD;OAAM,WAAU;OAA2B,eAAY;MAAQ,CAAA,GAC/D,kBAAC,QAAD,EAAA,UACG,EACC,oDACA,kNACA,EAAE,OAAO,EAAW,CACtB,EACI,CAAA,CACL;;IACA;KAEJ;;CACK,CAAA;AAEhB"}
1
+ {"version":3,"file":"LineagePage.js","names":["PAGE_LIMIT","LineagePage","useCosmicIntersection","tr","useTr","routeDatasetId","useParams","datasetsQuery","useCosDatasetsQuery","releasesQuery","useCosReleasesQuery","sourcesQuery","useCosSourcesQuery","collectionsQuery","useCosCollectionsQuery","runsQuery","useCosRunsQuery","notebooksQuery","useCosNotebooksQuery","analysesQuery","useCosAnalysesQuery","pipelinesQuery","useCosPipelinesQuery","datasets","useMemo","releases","sources","collections","runs","notebooks","analyses","pipelines","pools","item","rootKind","setRootKind","useState","selectedId","setSelectedId","options","firstOption","selectionValid","activeId","model","buildDatasetLineage","buildReleaseLineage","primaryLoading","primaryError","handleKindChange","value","activeLabel","PageLayout","Select","SelectTrigger","SelectValue","SelectContent","SelectItem","ErrorState","LoadingState","EmptyState","Workflow","navigate","Share2","LineageGraph","Info"],"sources":["../../../../src/cosmicintersection/pages/lineage/LineagePage.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { useParams } from 'react-router';\nimport { Info, Share2, Workflow } from 'lucide-react';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n useCosCollectionsQuery,\n useCosDatasetsQuery,\n useCosNotebooksQuery,\n useCosPipelinesQuery,\n useCosReleasesQuery,\n useCosRunsQuery,\n useCosAnalysesQuery,\n useCosSourcesQuery,\n} from '../../api/cosmicApi';\nimport { EmptyState, ErrorState, LoadingState, PageLayout } from '../../components';\nimport {\n LineageGraph,\n buildDatasetLineage,\n buildReleaseLineage,\n type LineageDataPools,\n} from '../../components/LineageGraph';\nimport { useCosmicIntersection } from '../../context/CosmicIntersectionContext';\nimport { useTr } from '../../../shared/hooks/useTr';\n\ntype RootKind = 'dataset' | 'release';\n\nconst PAGE_LIMIT = 100;\n\nexport default function LineagePage() {\n const { navigate } = useCosmicIntersection();\n const tr = useTr();\n // Optional deep-link: /lineage/:datasetId preselects that dataset as the root.\n const { datasetId: routeDatasetId } = useParams<{ datasetId?: string }>();\n\n const datasetsQuery = useCosDatasetsQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const releasesQuery = useCosReleasesQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const sourcesQuery = useCosSourcesQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const collectionsQuery = useCosCollectionsQuery();\n const runsQuery = useCosRunsQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const notebooksQuery = useCosNotebooksQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n const analysesQuery = useCosAnalysesQuery({});\n const pipelinesQuery = useCosPipelinesQuery({ pagination: { limit: PAGE_LIMIT, offset: 0 } });\n\n const datasets = useMemo(\n () => datasetsQuery.data?.cosListDatasets?.items ?? [],\n [datasetsQuery.data]\n );\n const releases = useMemo(\n () => releasesQuery.data?.cosListReleases?.items ?? [],\n [releasesQuery.data]\n );\n const sources = useMemo(\n () => sourcesQuery.data?.cosListSources?.items ?? [],\n [sourcesQuery.data]\n );\n const collections = useMemo(\n () => collectionsQuery.data?.cosListCollections ?? [],\n [collectionsQuery.data]\n );\n const runs = useMemo(() => runsQuery.data?.cosListRuns?.items ?? [], [runsQuery.data]);\n const notebooks = useMemo(\n () => notebooksQuery.data?.cosListNotebooks?.items ?? [],\n [notebooksQuery.data]\n );\n const analyses = useMemo(() => analysesQuery.data?.cosListAnalyses ?? [], [analysesQuery.data]);\n const pipelines = useMemo(\n () => pipelinesQuery.data?.cosListPipelines?.items ?? [],\n [pipelinesQuery.data]\n );\n\n const pools: LineageDataPools = useMemo(\n () => ({\n datasetsById: new Map(datasets.map((item) => [item.id, item])),\n sourcesById: new Map(sources.map((item) => [item.id, item])),\n collectionsById: new Map(collections.map((item) => [item.id, item])),\n runs,\n notebooks,\n analyses,\n releases,\n pipelinesById: new Map(pipelines.map((item) => [item.id, item])),\n }),\n [datasets, sources, collections, runs, notebooks, analyses, releases, pipelines]\n );\n\n const [rootKind, setRootKind] = useState<RootKind>('dataset');\n const [selectedId, setSelectedId] = useState<string>(routeDatasetId ?? '');\n\n // Auto-select the first available root of the current kind once lists load —\n // the documented derive-state-during-render pattern (no effect required).\n const options = rootKind === 'dataset' ? datasets : releases;\n const firstOption = options[0]?.id ?? '';\n const selectionValid = options.some((item) => item.id === selectedId);\n if (!selectionValid && firstOption) {\n setSelectedId(firstOption);\n }\n const activeId = selectionValid ? selectedId : firstOption;\n\n const model = useMemo(() => {\n if (!activeId) {\n return { nodes: [], edges: [] };\n }\n return rootKind === 'dataset'\n ? buildDatasetLineage(activeId, pools)\n : buildReleaseLineage(activeId, pools);\n }, [activeId, rootKind, pools]);\n\n const primaryLoading =\n (datasetsQuery.loading && datasets.length === 0) ||\n (releasesQuery.loading && releases.length === 0);\n const primaryError = datasetsQuery.error || releasesQuery.error;\n\n const handleKindChange = (value: string) => {\n setRootKind(value as RootKind);\n setSelectedId('');\n };\n\n const activeLabel =\n rootKind === 'dataset'\n ? datasets.find((item) => item.id === activeId)?.name\n : releases.find((item) => item.id === activeId)?.title;\n\n return (\n <PageLayout\n title={tr('cosmicintersection.pages.lineage.title', 'Lineage')}\n description={tr(\n 'cosmicintersection.pages.lineage.description',\n 'Trace any result from raw observation to citable release.'\n )}\n >\n <div className=\"space-y-6\">\n {/* Root picker */}\n <div className=\"flex flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-4 sm:flex-row sm:items-end\">\n <label className=\"space-y-1 text-sm\">\n <span className=\"block font-medium text-text-primary\">\n {tr('cosmicintersection.pages.lineage.traceFrom', 'Trace from')}\n </span>\n <Select value={rootKind} onValueChange={handleKindChange}>\n <SelectTrigger\n aria-label={tr(\n 'cosmicintersection.pages.lineage.rootEntityKind',\n 'Root entity kind'\n )}\n className=\"w-full sm:w-44\"\n >\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"dataset\">\n {tr('cosmicintersection.pages.lineage.dataset', 'Dataset')}\n </SelectItem>\n <SelectItem value=\"release\">\n {tr('cosmicintersection.pages.lineage.release', 'Release')}\n </SelectItem>\n </SelectContent>\n </Select>\n </label>\n\n <label className=\"space-y-1 text-sm sm:flex-1\">\n <span className=\"block font-medium text-text-primary\">\n {rootKind === 'dataset'\n ? tr('cosmicintersection.pages.lineage.dataset', 'Dataset')\n : tr('cosmicintersection.pages.lineage.release', 'Release')}\n </span>\n <Select value={activeId} onValueChange={setSelectedId} disabled={options.length === 0}>\n <SelectTrigger\n aria-label={tr('cosmicintersection.pages.lineage.selectRoot', 'Select {{kind}}', {\n kind: rootKind,\n })}\n className=\"w-full sm:max-w-md\"\n >\n <SelectValue\n placeholder={\n options.length === 0\n ? tr(\n 'cosmicintersection.pages.lineage.noRootAvailable',\n 'No {{kind}}s available',\n { kind: rootKind }\n )\n : tr('cosmicintersection.pages.lineage.selectRoot', 'Select a {{kind}}', {\n kind: rootKind,\n })\n }\n />\n </SelectTrigger>\n <SelectContent>\n {options.map((item) => (\n <SelectItem key={item.id} value={item.id}>\n {rootKind === 'dataset'\n ? (item as (typeof datasets)[number]).name\n : (item as (typeof releases)[number]).title}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </label>\n </div>\n\n {primaryError ? (\n <ErrorState\n message={tr(\n 'cosmicintersection.pages.lineage.error',\n 'We could not load lineage data. Please try again.'\n )}\n onRetry={() => {\n void datasetsQuery.refetch();\n void releasesQuery.refetch();\n }}\n />\n ) : primaryLoading ? (\n <LoadingState\n label={tr('cosmicintersection.pages.lineage.loading', 'Loading lineage…')}\n />\n ) : datasets.length === 0 && releases.length === 0 ? (\n <EmptyState\n icon={Workflow}\n title={tr('cosmicintersection.pages.lineage.nothingToTrace', 'Nothing to trace yet.')}\n description={tr(\n 'cosmicintersection.pages.lineage.nothingToTraceDescription',\n 'Register a dataset or publish a release to build a provenance graph from raw observation to citable output.'\n )}\n action={\n <button\n type=\"button\"\n onClick={() => navigate('datasets')}\n className=\"text-sm font-medium text-text-link underline-offset-2 hover:underline\"\n >\n {tr('cosmicintersection.pages.lineage.goToDatasets', 'Go to datasets')}\n </button>\n }\n />\n ) : model.nodes.length === 0 ? (\n <EmptyState\n icon={Share2}\n title={tr(\n 'cosmicintersection.pages.lineage.selectToTrace',\n 'Select a {{kind}} to trace',\n { kind: rootKind }\n )}\n description={tr(\n 'cosmicintersection.pages.lineage.selectToTraceDescription',\n 'Choose a root above to render its provenance graph.'\n )}\n />\n ) : (\n <div className=\"space-y-4\">\n {activeLabel ? (\n <div className=\"flex items-center gap-2 text-sm text-text-secondary\">\n <Share2 className=\"size-4 text-text-tertiary\" aria-hidden=\"true\" />\n <span>\n {tr('cosmicintersection.pages.lineage.provenanceFor', 'Provenance for {{name}}', {\n name: activeLabel,\n })}\n </span>\n </div>\n ) : null}\n\n <LineageGraph model={model} mode=\"full\" onNavigate={navigate} />\n\n <p className=\"flex items-start gap-2 text-xs text-text-tertiary\">\n <Info className=\"mt-0.5 size-3.5 shrink-0\" aria-hidden=\"true\" />\n <span>\n {tr(\n 'cosmicintersection.pages.lineage.graphDisclaimer',\n 'This graph is derived live from your workspace’s cos entities. Connected runs, notebooks, analyses and releases are matched across the {{limit}} most recent records of each type; older items may not appear.',\n { limit: PAGE_LIMIT }\n )}\n </span>\n </p>\n </div>\n )}\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAMA,IAAa;AAEnB,SAAwBC,IAAc;CACpC,IAAM,EAAE,gBAAaC,EAAsB,GACrCC,IAAKC,EAAM,GAEX,EAAE,WAAWC,MAAmBC,EAAkC,GAElEC,IAAgBC,GAAoB,EAAE,YAAY;EAAE,OAAOR;EAAY,QAAQ;CAAE,EAAE,CAAC,GACpFS,IAAgBC,EAAoB,EAAE,YAAY;EAAE,OAAOV;EAAY,QAAQ;CAAE,EAAE,CAAC,GACpFW,IAAeC,GAAmB,EAAE,YAAY;EAAE,OAAOZ;EAAY,QAAQ;CAAE,EAAE,CAAC,GAClFa,IAAmBC,GAAuB,GAC1CC,IAAYC,GAAgB,EAAE,YAAY;EAAE,OAAOhB;EAAY,QAAQ;CAAE,EAAE,CAAC,GAC5EiB,IAAiBC,GAAqB,EAAE,YAAY;EAAE,OAAOlB;EAAY,QAAQ;CAAE,EAAE,CAAC,GACtFmB,IAAgBC,EAAoB,CAAC,CAAC,GACtCC,IAAiBC,EAAqB,EAAE,YAAY;EAAE,OAAOtB;EAAY,QAAQ;CAAE,EAAE,CAAC,GAEtFuB,IAAWC,QACTjB,EAAc,MAAM,iBAAiB,SAAS,CAAC,GACrD,CAACA,EAAc,IAAI,CACrB,GACMkB,IAAWD,QACTf,EAAc,MAAM,iBAAiB,SAAS,CAAC,GACrD,CAACA,EAAc,IA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C,EAAM,MAAM,WAAW,IACzB,kBAACgB,GAAD;IACE,MAAMG;IACN,OAAO3D,EACL,kDACA,8BACA,EAAE,MAAM+B,EAAS,CACnB;IACA,aAAa/B,EACX,6DACA,qDACF;GACD,CAAA,IAED,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACG+C,IACC,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAACY,GAAD;OAAQ,WAAU;OAA4B,eAAY;MAAQ,CAAA,GAClE,kBAAC,QAAD,EAAA,UACG3D,EAAG,kDAAkD,2BAA2B,EAC/E,MAAM+C,EACR,CAAC,EACG,CAAA,CACH;KACH,CAAA,IAAA;KAEJ,kBAACa,GAAD;MAAqB;MAAO,MAAK;MAAO,YAAYF;KAAW,CAAA;KAE/D,kBAAC,KAAD;MAAG,WAAU;MAAb,UAAA,CACE,kBAACG,GAAD;OAAM,WAAU;OAA2B,eAAY;MAAQ,CAAA,GAC/D,kBAAC,QAAD,EAAA,UACG7D,EACC,oDACA,kNACA,EAAE,OAAOH,EAAW,CACtB,EACI,CAAA,CACL;;IACA;GAEJ,CAAA,CAAA;;CACK,CAAA;AAEhB"}
@@ -1,2 +1 @@
1
1
  export default function NotebookDetailPage(): import('react').JSX.Element;
2
- //# sourceMappingURL=NotebookDetailPage.d.ts.map
@@ -1,23 +1,23 @@
1
- import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
2
- import { notify as t } from "../../lib/toast.js";
3
- import { useCosAnalysesQuery as n, useCosArchiveNotebookMutation as r, useCosDatasetsQuery as i, useCosNotebookQuery as a, useCosRunAnalysisMutation as o } from "../../api/cosmicApi.js";
4
- import { ActionMenu as s } from "../../components/ActionMenu.js";
5
- import { EmptyState as c } from "../../components/EmptyState.js";
6
- import { ErrorState as l } from "../../components/ErrorState.js";
7
- import { LoadingState as u } from "../../components/LoadingState.js";
8
- import { DiscussionPanel as d } from "../../components/DiscussionPanel.js";
9
- import { useFileDownloadUrl as f } from "../../components/FileUploadField.js";
10
- import { PageLayout as p } from "../../components/PageLayout.js";
11
- import { StatusBadge as m } from "../../components/StatusBadge.js";
12
- import { ReleaseDraftDialog as h } from "../../components/ReleaseDraftDialog.js";
1
+ import { useCosAnalysesQuery as e, useCosArchiveNotebookMutation as t, useCosDatasetsQuery as n, useCosNotebookQuery as r, useCosRunAnalysisMutation as i } from "../../api/cosmicApi.js";
13
2
  import "../../components/index.js";
3
+ import { useCosmicIntersection as a } from "../../context/CosmicIntersectionContext.js";
4
+ import { ActionMenu as o } from "../../components/ActionMenu.js";
5
+ import { EmptyState as s } from "../../components/EmptyState.js";
6
+ import { ErrorState as c } from "../../components/ErrorState.js";
7
+ import { LoadingState as l } from "../../components/LoadingState.js";
8
+ import { DiscussionPanel as u } from "../../components/DiscussionPanel.js";
9
+ import { useFileDownloadUrl as d } from "../../components/FileUploadField.js";
10
+ import { PageLayout as f } from "../../components/PageLayout.js";
11
+ import { StatusBadge as p } from "../../components/StatusBadge.js";
12
+ import { ReleaseDraftDialog as m } from "../../components/ReleaseDraftDialog.js";
13
+ import { notify as h } from "../../lib/toast.js";
14
14
  import { useTrackRecentItem as ee } from "../../lib/useTrackRecentItem.js";
15
15
  import { useMemo as te, useState as g } from "react";
16
16
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
17
17
  import { useParams as ne } from "react-router";
18
18
  import { Badge as b, Button as x, Dialog as S, DialogContent as C, DialogDescription as w, DialogFooter as T, DialogHeader as E, DialogTitle as D, Input as O, Label as k, Switch as A, Table as j, TableBody as M, TableCell as N, TableHead as P, TableHeader as F, TableRow as I } from "@burdenoff/fe-libs/ui";
19
19
  import { Beaker as L, Database as R, Download as z, FileCode2 as B, MessageSquare as V, Pencil as H, Play as U, Share2 as W, Sparkles as G } from "lucide-react";
20
- //#region src/cosmicintersection/pages/notebooks/NotebookDetailPage.tsx
20
+ // src/cosmicintersection/pages/notebooks/NotebookDetailPage.tsx
21
21
  function K(e) {
22
22
  if (!e) return "—";
23
23
  let t = new Date(e);
@@ -30,7 +30,7 @@ function K(e) {
30
30
  });
31
31
  }
32
32
  function q({ fileId: e, label: t }) {
33
- let { data: n, loading: r } = f(e), i = n?.getFileDownloadUrl ?? null;
33
+ let { data: n, loading: r } = d(e), i = n?.getFileDownloadUrl ?? null;
34
34
  return r ? /* @__PURE__ */ v("span", {
35
35
  className: "text-xs text-text-secondary",
36
36
  children: "Resolving link…"
@@ -48,30 +48,30 @@ function q({ fileId: e, label: t }) {
48
48
  children: ["File ", e]
49
49
  });
50
50
  }
51
- function re({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
52
- let [a, s] = g(""), [c, l] = g(""), [u, d] = g(!1), [f, { loading: p }] = o(), m = () => {
53
- s(""), l(""), d(!1);
51
+ function re({ notebookId: e, open: t, onOpenChange: n, onCompleted: r }) {
52
+ let [a, o] = g(""), [s, c] = g(""), [l, u] = g(!1), [d, { loading: f }] = i(), p = () => {
53
+ o(""), c(""), u(!1);
54
54
  };
55
55
  return /* @__PURE__ */ v(S, {
56
- open: n,
56
+ open: t,
57
57
  onOpenChange: (e) => {
58
- p || r(e);
58
+ f || n(e);
59
59
  },
60
60
  children: /* @__PURE__ */ v(C, { children: /* @__PURE__ */ y("form", {
61
- onSubmit: async (n) => {
62
- n.preventDefault();
63
- let o = a.trim();
64
- if (!o) {
65
- t.error("Title is required", "Give the analysis a descriptive title.");
61
+ onSubmit: async (t) => {
62
+ t.preventDefault();
63
+ let i = a.trim();
64
+ if (!i) {
65
+ h.error("Title is required", "Give the analysis a descriptive title.");
66
66
  return;
67
67
  }
68
- let s = await f({ variables: { input: {
68
+ let o = await d({ variables: { input: {
69
69
  notebookId: e,
70
- title: o,
71
- method: c.trim() || void 0,
72
- aiAssisted: u
70
+ title: i,
71
+ method: s.trim() || void 0,
72
+ aiAssisted: l
73
73
  } } });
74
- s.error || !s.data?.cosRunAnalysis?.id || (t.success("Analysis started", `“${o}” is now running.`), m(), r(!1), i());
74
+ !o.error && o.data?.cosRunAnalysis?.id && (h.success("Analysis started", `“${i}” is now running.`), p(), n(!1), r());
75
75
  },
76
76
  className: "space-y-4",
77
77
  children: [
@@ -84,7 +84,7 @@ function re({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
84
84
  }), /* @__PURE__ */ v(O, {
85
85
  id: "run-analysis-title",
86
86
  value: a,
87
- onChange: (e) => s(e.target.value),
87
+ onChange: (e) => o(e.target.value),
88
88
  placeholder: "e.g. Period-folding search",
89
89
  required: !0
90
90
  })]
@@ -96,8 +96,8 @@ function re({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
96
96
  children: "Method"
97
97
  }), /* @__PURE__ */ v(O, {
98
98
  id: "run-analysis-method",
99
- value: c,
100
- onChange: (e) => l(e.target.value),
99
+ value: s,
100
+ onChange: (e) => c(e.target.value),
101
101
  placeholder: "e.g. box-least-squares"
102
102
  })]
103
103
  }),
@@ -105,8 +105,8 @@ function re({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
105
105
  className: "flex items-center gap-3",
106
106
  children: [/* @__PURE__ */ v(A, {
107
107
  id: "run-analysis-ai",
108
- checked: u,
109
- onCheckedChange: (e) => d(e)
108
+ checked: l,
109
+ onCheckedChange: (e) => u(e)
110
110
  }), /* @__PURE__ */ v(k, {
111
111
  htmlFor: "run-analysis-ai",
112
112
  className: "cursor-pointer",
@@ -116,23 +116,23 @@ function re({ notebookId: e, open: n, onOpenChange: r, onCompleted: i }) {
116
116
  /* @__PURE__ */ y(T, { children: [/* @__PURE__ */ v(x, {
117
117
  type: "button",
118
118
  variant: "outline",
119
- onClick: () => r(!1),
120
- disabled: p,
119
+ onClick: () => n(!1),
120
+ disabled: f,
121
121
  children: "Cancel"
122
122
  }), /* @__PURE__ */ y(x, {
123
123
  type: "submit",
124
- disabled: p,
125
- children: [/* @__PURE__ */ v(U, { className: "size-4" }), p ? "Starting…" : "Run analysis"]
124
+ disabled: f,
125
+ children: [/* @__PURE__ */ v(U, { className: "size-4" }), f ? "Starting…" : "Run analysis"]
126
126
  })] })
127
127
  ]
128
128
  }) })
129
129
  });
130
130
  }
131
131
  function J() {
132
- let { id: o = "" } = ne(), { navigate: f } = e(), [S, C] = g(!1), [w, T] = g(!1), { data: E, loading: D, error: O, refetch: k } = a(o), { data: A, loading: z, error: J, refetch: Y } = n({ notebookId: o }), { data: X } = i({ pagination: {
132
+ let { id: i = "" } = ne(), { navigate: d } = a(), [S, C] = g(!1), [w, T] = g(!1), { data: E, loading: D, error: O, refetch: k } = r(i), { data: A, loading: z, error: J, refetch: Y } = e({ notebookId: i }), { data: X } = n({ pagination: {
133
133
  limit: 100,
134
134
  offset: 0
135
- } }), [ie] = r(), Z = E?.cosNotebook ?? null;
135
+ } }), [ie] = t(), Z = E?.cosNotebook ?? null;
136
136
  ee(Z ? {
137
137
  type: "notebook",
138
138
  id: Z.id,
@@ -147,32 +147,32 @@ function J() {
147
147
  if (!Z) return;
148
148
  let e = await ie({ variables: { id: Z.id } });
149
149
  if (e.error) throw Error(e.error.message);
150
- if (!e.data?.cosArchiveNotebook) throw t.error("Could not archive notebook", "The server did not confirm the change."), Error("Archive not confirmed");
151
- await k(), t.success("Notebook archived", `“${Z.title}” was archived.`);
150
+ if (!e.data?.cosArchiveNotebook) throw h.error("Could not archive notebook", "The server did not confirm the change."), Error("Archive not confirmed");
151
+ await k(), h.success("Notebook archived", `“${Z.title}” was archived.`);
152
152
  };
153
- if (D) return /* @__PURE__ */ v(p, {
153
+ if (D) return /* @__PURE__ */ v(f, {
154
154
  title: "Notebook",
155
155
  backPath: "notebooks",
156
- children: /* @__PURE__ */ v(u, { label: "Loading notebook…" })
156
+ children: /* @__PURE__ */ v(l, { label: "Loading notebook…" })
157
157
  });
158
- if (O) return /* @__PURE__ */ v(p, {
158
+ if (O) return /* @__PURE__ */ v(f, {
159
159
  title: "Notebook",
160
160
  backPath: "notebooks",
161
- children: /* @__PURE__ */ v(l, {
161
+ children: /* @__PURE__ */ v(c, {
162
162
  message: "We could not load this notebook. Please try again.",
163
163
  onRetry: () => void k()
164
164
  })
165
165
  });
166
- if (!Z) return /* @__PURE__ */ v(p, {
166
+ if (!Z) return /* @__PURE__ */ v(f, {
167
167
  title: "Notebook",
168
168
  backPath: "notebooks",
169
- children: /* @__PURE__ */ v(c, {
169
+ children: /* @__PURE__ */ v(s, {
170
170
  icon: B,
171
171
  title: "Notebook not found.",
172
172
  description: "This notebook may have been removed or is outside your current scope.",
173
173
  action: /* @__PURE__ */ v(x, {
174
174
  type: "button",
175
- onClick: () => f("notebooks"),
175
+ onClick: () => d("notebooks"),
176
176
  children: "Back to notebooks"
177
177
  })
178
178
  })
@@ -194,10 +194,10 @@ function J() {
194
194
  /* @__PURE__ */ y(x, {
195
195
  type: "button",
196
196
  variant: "outline",
197
- onClick: () => f(`notebooks/${Z.id}/edit`),
197
+ onClick: () => d(`notebooks/${Z.id}/edit`),
198
198
  children: [/* @__PURE__ */ v(H, { className: "size-4" }), "Edit"]
199
199
  }),
200
- /* @__PURE__ */ v(s, {
200
+ /* @__PURE__ */ v(o, {
201
201
  ariaLabel: `Actions for ${Z.title}`,
202
202
  entityName: Z.title,
203
203
  onDelete: Z.status === "ARCHIVED" ? void 0 : oe,
@@ -205,7 +205,7 @@ function J() {
205
205
  })
206
206
  ]
207
207
  });
208
- return /* @__PURE__ */ y(p, {
208
+ return /* @__PURE__ */ y(f, {
209
209
  title: Z.title,
210
210
  description: "Notebook detail",
211
211
  backPath: "notebooks",
@@ -220,7 +220,7 @@ function J() {
220
220
  /* @__PURE__ */ y("div", {
221
221
  className: "flex flex-wrap items-center gap-3",
222
222
  children: [
223
- /* @__PURE__ */ v(m, { status: Z.status }),
223
+ /* @__PURE__ */ v(p, { status: Z.status }),
224
224
  Z.runtime ? /* @__PURE__ */ y(b, {
225
225
  variant: "outline",
226
226
  children: ["Runtime: ", Z.runtime]
@@ -266,7 +266,7 @@ function J() {
266
266
  variant: "outline",
267
267
  size: "sm",
268
268
  className: "h-auto gap-1.5 px-2.5 py-1",
269
- onClick: () => f(`datasets/${e}`),
269
+ onClick: () => d(`datasets/${e}`),
270
270
  children: [/* @__PURE__ */ v(R, {
271
271
  className: "size-3.5 shrink-0",
272
272
  "aria-hidden": "true"
@@ -346,7 +346,7 @@ function J() {
346
346
  className: "text-lg font-semibold text-text-primary",
347
347
  children: "Discussion"
348
348
  })]
349
- }), /* @__PURE__ */ v(d, {
349
+ }), /* @__PURE__ */ v(u, {
350
350
  entityType: "cosmicintersection-notebook",
351
351
  entityId: Z.id,
352
352
  title: Z.title,
@@ -369,14 +369,14 @@ function J() {
369
369
  onClick: () => C(!0),
370
370
  children: [/* @__PURE__ */ v(U, { className: "size-4" }), "Run analysis"]
371
371
  })]
372
- }), z ? /* @__PURE__ */ v(u, {
372
+ }), z ? /* @__PURE__ */ v(l, {
373
373
  variant: "rows",
374
374
  rows: 3,
375
375
  label: "Loading analyses…"
376
- }) : J ? /* @__PURE__ */ v(l, {
376
+ }) : J ? /* @__PURE__ */ v(c, {
377
377
  message: "We could not load analyses for this notebook.",
378
378
  onRetry: () => void Y()
379
- }) : Q.length === 0 ? /* @__PURE__ */ v(c, {
379
+ }) : Q.length === 0 ? /* @__PURE__ */ v(s, {
380
380
  icon: L,
381
381
  title: "No analyses yet.",
382
382
  description: "Run an analysis to generate results and artifacts from this notebook.",
@@ -414,7 +414,7 @@ function J() {
414
414
  className: "text-text-secondary",
415
415
  children: "—"
416
416
  }) }),
417
- /* @__PURE__ */ v(N, { children: /* @__PURE__ */ v(m, { status: e.status }) }),
417
+ /* @__PURE__ */ v(N, { children: /* @__PURE__ */ v(p, { status: e.status }) }),
418
418
  /* @__PURE__ */ v(N, {
419
419
  className: "whitespace-nowrap text-text-secondary",
420
420
  children: K(e.startedAt)
@@ -446,7 +446,7 @@ function J() {
446
446
  className: "truncate text-xs text-text-secondary",
447
447
  children: e.method
448
448
  }) : null]
449
- }), /* @__PURE__ */ v(m, { status: e.status })]
449
+ }), /* @__PURE__ */ v(p, { status: e.status })]
450
450
  }),
451
451
  /* @__PURE__ */ y("div", {
452
452
  className: "flex flex-wrap items-center gap-2 text-xs text-text-secondary",
@@ -481,7 +481,7 @@ function J() {
481
481
  onOpenChange: C,
482
482
  onCompleted: () => void Y()
483
483
  }),
484
- /* @__PURE__ */ v(h, {
484
+ /* @__PURE__ */ v(m, {
485
485
  notebook: Z,
486
486
  open: w,
487
487
  onOpenChange: T
@@ -489,7 +489,6 @@ function J() {
489
489
  ]
490
490
  });
491
491
  }
492
- //#endregion
493
492
  export { J as default };
494
493
 
495
494
  //# sourceMappingURL=NotebookDetailPage.js.map