@burdenoff/microfe-cosmicintersection 2026.704.1 → 2026.704.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js +31 -23
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +131 -66
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/components/ActivityFeedPanel.js +68 -0
- package/dist/cosmicintersection/components/ActivityFeedPanel.js.map +1 -0
- package/dist/cosmicintersection/components/DiscussionPanel.js +57 -0
- package/dist/cosmicintersection/components/DiscussionPanel.js.map +1 -0
- package/dist/cosmicintersection/components/index.js +5 -3
- package/dist/cosmicintersection/pages/access/AccessPage.js +24 -17
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +12 -12
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +109 -96
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +87 -61
- package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +51 -42
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +5 -3
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +172 -152
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +7 -7
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +205 -196
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +211 -161
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +113 -108
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +86 -101
- package/dist/cosmicintersection/pages/runs/RunsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +205 -0
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js.map +1 -0
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +110 -104
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionFormPage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/collections/CollectionFormPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { Input, Switch, Textarea } from '@burdenoff/fe-libs/ui';\n\nimport {
|
|
1
|
+
{"version":3,"file":"CollectionFormPage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/collections/CollectionFormPage.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { Input, Switch, Textarea } from '@burdenoff/fe-libs/ui';\n\nimport {\n useCosCollectionQuery,\n useCosCreateCollectionMutation,\n useCosUpdateCollectionMutation,\n type CosCreateCollectionInput,\n type CosUpdateCollectionInput,\n} from '../../api/cosmicApi';\nimport { EntityFormShell, EntityTagsField, LoadingState } from '../../components';\nimport { useCosmicIntersection } from '../../context/CosmicIntersectionContext';\nimport { notify } from '../../lib/toast';\n\ninterface CollectionFormState {\n name: string;\n slug: string;\n description: string;\n isPublic: boolean;\n tags: string[];\n}\n\nconst INITIAL_STATE: CollectionFormState = {\n name: '',\n slug: '',\n description: '',\n isPublic: false,\n tags: [],\n};\n\nconst fieldLabelClass = 'block space-y-1.5 text-sm';\nconst fieldSpanClass = 'font-medium text-text-primary';\n\nexport default function CollectionFormPage() {\n const { id = '' } = useParams<{ id: string }>();\n const isEdit = useMemo(() => Boolean(id), [id]);\n const { navigate } = useCosmicIntersection();\n\n const { data, loading: loadingCollection } = useCosCollectionQuery(id);\n const [createCollection, { loading: creating }] = useCosCreateCollectionMutation();\n const [updateCollection, { loading: updating }] = useCosUpdateCollectionMutation();\n\n const [form, setForm] = useState<CollectionFormState>(INITIAL_STATE);\n\n // Hydrate once the collection loads in edit mode. Derive-state-during-render\n // (keyed on the loaded id) rather than an effect, per platform lint.\n const [loadedId, setLoadedId] = useState<string | null>(null);\n if (isEdit && data?.cosCollection && loadedId !== data.cosCollection.id) {\n const collection = data.cosCollection;\n setLoadedId(collection.id);\n setForm({\n name: collection.name ?? '',\n slug: collection.slug ?? '',\n description: collection.description ?? '',\n isPublic: collection.isPublic,\n tags: collection.tags ?? [],\n });\n }\n\n const onChange = <K extends keyof CollectionFormState>(\n field: K,\n value: CollectionFormState[K]\n ) => {\n setForm((prev) => ({ ...prev, [field]: value }));\n };\n\n const saving = creating || updating;\n\n const onSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n\n if (!form.name.trim()) {\n notify.error('Name is required', 'Give this collection a recognizable name.');\n return;\n }\n\n if (isEdit) {\n const input: CosUpdateCollectionInput = {\n name: form.name.trim(),\n slug: form.slug.trim() || undefined,\n description: form.description.trim() || undefined,\n isPublic: form.isPublic,\n tags: form.tags,\n };\n const response = await updateCollection({ variables: { id, input } });\n if (response.data?.cosUpdateCollection?.id) {\n notify.success('Collection updated');\n navigate(`collections/${id}`);\n }\n return;\n }\n\n const input: CosCreateCollectionInput = {\n name: form.name.trim(),\n slug: form.slug.trim() || undefined,\n description: form.description.trim() || undefined,\n isPublic: form.isPublic,\n tags: form.tags,\n };\n const response = await createCollection({ variables: { input } });\n const created = response.data?.cosCreateCollection;\n if (created?.id) {\n notify.success('Collection created');\n navigate(`collections/${created.id}`);\n }\n };\n\n if (isEdit && loadingCollection && !data?.cosCollection) {\n return <LoadingState label=\"Loading collection…\" />;\n }\n\n return (\n <EntityFormShell\n title={isEdit ? 'Edit collection' : 'New collection'}\n description=\"Group related datasets into a shareable, themed collection.\"\n purpose=\"Collections curate datasets by mission, survey or research theme so collaborators can browse a coherent set instead of a flat list. Mark a collection public to make it discoverable across the workspace.\"\n backLabel={isEdit ? 'Back to collection' : 'Back to collections'}\n onBack={() => navigate(isEdit ? `collections/${id}` : 'collections')}\n onSubmit={(event) => void onSubmit(event)}\n submitLabel={isEdit ? 'Save collection' : 'Create collection'}\n saving={saving}\n >\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n <label className={fieldLabelClass}>\n <span className={fieldSpanClass}>Name</span>\n <Input\n value={form.name}\n onChange={(event) => onChange('name', event.target.value)}\n placeholder=\"e.g. Kepler Mission Data\"\n required\n />\n </label>\n <label className={fieldLabelClass}>\n <span className={fieldSpanClass}>Slug</span>\n <Input\n value={form.slug}\n onChange={(event) => onChange('slug', event.target.value)}\n placeholder=\"kepler-mission\"\n />\n <span className=\"text-xs text-text-secondary\">\n Optional URL-friendly identifier for sharing.\n </span>\n </label>\n </div>\n\n <label className={fieldLabelClass}>\n <span className={fieldSpanClass}>Description</span>\n <Textarea\n value={form.description}\n onChange={(event) => onChange('description', event.target.value)}\n rows={3}\n placeholder=\"What this collection groups together and who it is for.\"\n />\n </label>\n\n <div className=\"flex items-center justify-between gap-4 rounded-card border border-border-default bg-bg-sunken px-4 py-3\">\n <div>\n <p className=\"text-sm font-medium text-text-primary\">Public collection</p>\n <p className=\"text-xs text-text-secondary\">\n Make this collection discoverable across the workspace.\n </p>\n </div>\n <Switch\n checked={form.isPublic}\n onCheckedChange={(checked) => onChange('isPublic', checked)}\n aria-label=\"Public collection\"\n />\n </div>\n\n <EntityTagsField value={form.tags} onChange={(tags) => onChange('tags', tags)} disabled={saving} />\n </EntityFormShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAuBA,IAAM,IAAqC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,UAAU;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KACE,OAAO,EAAK;KACZ,WAAW,MAAU,EAAS,eAAe,EAAM,OAAO,MAAM;KAChE,MAAM;KACN,aAAY;KACZ,CAAA,CACI;;GAER,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,KAAD;KAAG,WAAU;eAAwC;KAAqB,CAAA,EAC1E,kBAAC,KAAD;KAAG,WAAU;eAA8B;KAEvC,CAAA,CACA,EAAA,CAAA,EACN,kBAAC,GAAD;KACE,SAAS,EAAK;KACd,kBAAkB,MAAY,EAAS,YAAY,EAAQ;KAC3D,cAAW;KACX,CAAA,CACE;;GAEN,kBAAC,GAAD;IAAiB,OAAO,EAAK;IAAM,WAAW,MAAS,EAAS,QAAQ,EAAK;IAAE,UAAU;IAAU,CAAA;GACnF"}
|
|
@@ -1,93 +1,102 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import n from "../../
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { notify as t } from "../../lib/toast.js";
|
|
3
|
+
import { useCosArchiveCollectionMutation as n, useCosCollectionsQuery as r } from "../../api/cosmicApi.js";
|
|
4
|
+
import i from "../../components/ActionMenu.js";
|
|
5
|
+
import a from "../../components/EmptyState.js";
|
|
6
|
+
import o from "../../components/ErrorState.js";
|
|
7
|
+
import s from "../../components/LoadingState.js";
|
|
8
|
+
import c from "../../components/PageLayout.js";
|
|
8
9
|
import "../../components/index.js";
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { FolderOpen as
|
|
11
|
-
import { Badge as
|
|
10
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
+
import { FolderOpen as d, Globe as f, Lock as p, Plus as m } from "lucide-react";
|
|
12
|
+
import { Badge as h, Button as g } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
//#region src/cosmicintersection/pages/collections/CollectionsPage.tsx
|
|
13
|
-
function
|
|
14
|
-
let { navigate:
|
|
14
|
+
function _() {
|
|
15
|
+
let { navigate: _ } = e(), { data: v, loading: y, error: b, refetch: x } = r(), [S] = n(), C = v?.cosListCollections ?? [], w = async (e) => {
|
|
16
|
+
let n = await S({ variables: { id: e.id } });
|
|
17
|
+
if (n.error) throw Error(n.error.message);
|
|
18
|
+
if (!n.data?.cosArchiveCollection) throw t.error("Could not archive collection", "The server did not confirm the change."), Error("Archive not confirmed");
|
|
19
|
+
t.success("Collection archived"), await x();
|
|
20
|
+
}, T = /* @__PURE__ */ u(g, {
|
|
15
21
|
type: "button",
|
|
16
|
-
onClick: () =>
|
|
17
|
-
children: [/* @__PURE__ */
|
|
22
|
+
onClick: () => _("collections/create"),
|
|
23
|
+
children: [/* @__PURE__ */ l(m, { className: "size-4" }), "New collection"]
|
|
18
24
|
});
|
|
19
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ l(c, {
|
|
20
26
|
title: "Collections",
|
|
21
27
|
description: "Curated groupings of datasets by mission, survey or research theme.",
|
|
22
|
-
actions:
|
|
23
|
-
children:
|
|
28
|
+
actions: T,
|
|
29
|
+
children: y ? /* @__PURE__ */ l(s, {
|
|
24
30
|
variant: "rows",
|
|
25
31
|
rows: 4,
|
|
26
32
|
label: "Loading collections…"
|
|
27
|
-
}) :
|
|
28
|
-
message:
|
|
29
|
-
onRetry: () => void
|
|
30
|
-
}) :
|
|
31
|
-
icon:
|
|
33
|
+
}) : b ? /* @__PURE__ */ l(o, {
|
|
34
|
+
message: b.message,
|
|
35
|
+
onRetry: () => void x()
|
|
36
|
+
}) : C.length === 0 ? /* @__PURE__ */ l(a, {
|
|
37
|
+
icon: d,
|
|
32
38
|
title: "No collections yet",
|
|
33
39
|
description: "Group related datasets — by mission, survey or research theme — into a shareable collection.",
|
|
34
|
-
action:
|
|
35
|
-
}) : /* @__PURE__ */
|
|
40
|
+
action: T
|
|
41
|
+
}) : /* @__PURE__ */ l("div", {
|
|
36
42
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3",
|
|
37
|
-
children:
|
|
43
|
+
children: C.map((e) => /* @__PURE__ */ u("div", {
|
|
38
44
|
role: "button",
|
|
39
45
|
tabIndex: 0,
|
|
40
46
|
"aria-label": `Open ${e.name}`,
|
|
41
|
-
onClick: () =>
|
|
47
|
+
onClick: () => _(`collections/${e.id}`),
|
|
42
48
|
onKeyDown: (t) => {
|
|
43
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
49
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), _(`collections/${e.id}`));
|
|
44
50
|
},
|
|
45
51
|
className: "flex cursor-pointer flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-5 text-left outline-none transition-colors hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
46
52
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ u("div", {
|
|
48
54
|
className: "flex items-start justify-between gap-3",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ u("div", {
|
|
50
56
|
className: "min-w-0",
|
|
51
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ l("h2", {
|
|
52
58
|
className: "truncate text-base font-semibold text-text-primary",
|
|
53
59
|
children: e.name
|
|
54
|
-
}), e.slug ? /* @__PURE__ */
|
|
60
|
+
}), e.slug ? /* @__PURE__ */ u("p", {
|
|
55
61
|
className: "mt-0.5 truncate text-xs text-text-secondary",
|
|
56
62
|
children: ["/", e.slug]
|
|
57
63
|
}) : null]
|
|
58
|
-
}), /* @__PURE__ */
|
|
64
|
+
}), /* @__PURE__ */ u("div", {
|
|
59
65
|
className: "flex shrink-0 items-center gap-2",
|
|
60
|
-
children: [e.isPublic ? /* @__PURE__ */
|
|
66
|
+
children: [e.isPublic ? /* @__PURE__ */ u(h, {
|
|
61
67
|
variant: "outline",
|
|
62
68
|
className: "gap-1 border-status-success-border bg-status-success-bg-subtle text-status-success-text",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ l(f, {
|
|
64
70
|
className: "size-3",
|
|
65
71
|
"aria-hidden": "true"
|
|
66
72
|
}), "Public"]
|
|
67
|
-
}) : /* @__PURE__ */
|
|
73
|
+
}) : /* @__PURE__ */ u(h, {
|
|
68
74
|
variant: "secondary",
|
|
69
75
|
className: "gap-1",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ l(p, {
|
|
71
77
|
className: "size-3",
|
|
72
78
|
"aria-hidden": "true"
|
|
73
79
|
}), "Private"]
|
|
74
|
-
}), /* @__PURE__ */
|
|
80
|
+
}), /* @__PURE__ */ l(i, {
|
|
75
81
|
ariaLabel: `Actions for ${e.name}`,
|
|
76
|
-
|
|
82
|
+
entityName: e.name,
|
|
83
|
+
onEdit: () => _(`collections/${e.id}/edit`),
|
|
84
|
+
onDelete: () => w(e),
|
|
85
|
+
deleteLabel: "Archive collection"
|
|
77
86
|
})]
|
|
78
87
|
})]
|
|
79
88
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ l("p", {
|
|
81
90
|
className: "line-clamp-2 min-h-[2.5rem] text-sm text-text-secondary",
|
|
82
91
|
children: e.description ?? "No description provided."
|
|
83
92
|
}),
|
|
84
|
-
e.tags.length > 0 ? /* @__PURE__ */
|
|
93
|
+
e.tags.length > 0 ? /* @__PURE__ */ u("div", {
|
|
85
94
|
className: "flex flex-wrap gap-1",
|
|
86
|
-
children: [e.tags.slice(0, 4).map((e) => /* @__PURE__ */
|
|
95
|
+
children: [e.tags.slice(0, 4).map((e) => /* @__PURE__ */ l(h, {
|
|
87
96
|
variant: "outline",
|
|
88
97
|
className: "text-xs",
|
|
89
98
|
children: e
|
|
90
|
-
}, e)), e.tags.length > 4 ? /* @__PURE__ */
|
|
99
|
+
}, e)), e.tags.length > 4 ? /* @__PURE__ */ u("span", {
|
|
91
100
|
className: "text-xs text-text-secondary",
|
|
92
101
|
children: ["+", e.tags.length - 4]
|
|
93
102
|
}) : null]
|
|
@@ -98,6 +107,6 @@ function h() {
|
|
|
98
107
|
});
|
|
99
108
|
}
|
|
100
109
|
//#endregion
|
|
101
|
-
export {
|
|
110
|
+
export { _ as default };
|
|
102
111
|
|
|
103
112
|
//# sourceMappingURL=CollectionsPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionsPage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/collections/CollectionsPage.tsx"],"sourcesContent":["import { FolderOpen, Globe, Lock, Plus } from 'lucide-react';\nimport { Badge, Button } from '@burdenoff/fe-libs/ui';\n\nimport {
|
|
1
|
+
{"version":3,"file":"CollectionsPage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/collections/CollectionsPage.tsx"],"sourcesContent":["import { FolderOpen, Globe, Lock, Plus } from 'lucide-react';\nimport { Badge, Button } from '@burdenoff/fe-libs/ui';\n\nimport {\n useCosArchiveCollectionMutation,\n useCosCollectionsQuery,\n type CosCollection,\n} from '../../api/cosmicApi';\nimport { ActionMenu, EmptyState, ErrorState, LoadingState, PageLayout } from '../../components';\nimport { useCosmicIntersection } from '../../context/CosmicIntersectionContext';\nimport { notify } from '../../lib/toast';\n\nexport default function CollectionsPage() {\n const { navigate } = useCosmicIntersection();\n const { data, loading, error, refetch } = useCosCollectionsQuery();\n const [archiveCollection] = useCosArchiveCollectionMutation();\n\n const collections = data?.cosListCollections ?? [];\n\n const handleArchive = async (collection: CosCollection) => {\n const response = await archiveCollection({ variables: { id: collection.id } });\n if (response.error) {\n throw new Error(response.error.message);\n }\n if (!response.data?.cosArchiveCollection) {\n notify.error('Could not archive collection', 'The server did not confirm the change.');\n throw new Error('Archive not confirmed');\n }\n notify.success('Collection archived');\n await refetch();\n };\n\n const newButton = (\n <Button type=\"button\" onClick={() => navigate('collections/create')}>\n <Plus className=\"size-4\" />\n New collection\n </Button>\n );\n\n const renderBody = () => {\n if (loading) {\n return <LoadingState variant=\"rows\" rows={4} label=\"Loading collections…\" />;\n }\n if (error) {\n return <ErrorState message={error.message} onRetry={() => void refetch()} />;\n }\n if (collections.length === 0) {\n return (\n <EmptyState\n icon={FolderOpen}\n title=\"No collections yet\"\n description=\"Group related datasets — by mission, survey or research theme — into a shareable collection.\"\n action={newButton}\n />\n );\n }\n\n return (\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3\">\n {collections.map((collection) => (\n <div\n key={collection.id}\n role=\"button\"\n tabIndex={0}\n aria-label={`Open ${collection.name}`}\n onClick={() => navigate(`collections/${collection.id}`)}\n onKeyDown={(event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n navigate(`collections/${collection.id}`);\n }\n }}\n className=\"flex cursor-pointer flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-5 text-left outline-none transition-colors hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-border-focus\"\n >\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"min-w-0\">\n <h2 className=\"truncate text-base font-semibold text-text-primary\">\n {collection.name}\n </h2>\n {collection.slug ? (\n <p className=\"mt-0.5 truncate text-xs text-text-secondary\">/{collection.slug}</p>\n ) : null}\n </div>\n <div className=\"flex shrink-0 items-center gap-2\">\n {collection.isPublic ? (\n <Badge\n variant=\"outline\"\n className=\"gap-1 border-status-success-border bg-status-success-bg-subtle text-status-success-text\"\n >\n <Globe className=\"size-3\" aria-hidden=\"true\" />\n Public\n </Badge>\n ) : (\n <Badge variant=\"secondary\" className=\"gap-1\">\n <Lock className=\"size-3\" aria-hidden=\"true\" />\n Private\n </Badge>\n )}\n <ActionMenu\n ariaLabel={`Actions for ${collection.name}`}\n entityName={collection.name}\n onEdit={() => navigate(`collections/${collection.id}/edit`)}\n onDelete={() => handleArchive(collection)}\n deleteLabel=\"Archive collection\"\n />\n </div>\n </div>\n\n <p className=\"line-clamp-2 min-h-[2.5rem] text-sm text-text-secondary\">\n {collection.description ?? 'No description provided.'}\n </p>\n\n {collection.tags.length > 0 ? (\n <div className=\"flex flex-wrap gap-1\">\n {collection.tags.slice(0, 4).map((tag) => (\n <Badge key={tag} variant=\"outline\" className=\"text-xs\">\n {tag}\n </Badge>\n ))}\n {collection.tags.length > 4 ? (\n <span className=\"text-xs text-text-secondary\">+{collection.tags.length - 4}</span>\n ) : null}\n </div>\n ) : null}\n </div>\n ))}\n </div>\n );\n };\n\n return (\n <PageLayout\n title=\"Collections\"\n description=\"Curated groupings of datasets by mission, survey or research theme.\"\n actions={newButton}\n >\n {renderBody()}\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAwB,IAAkB;CACxC,IAAM,EAAE,gBAAa,GAAuB,EACtC,EAAE,SAAM,YAAS,UAAO,eAAY,GAAwB,EAC5D,CAAC,KAAqB,GAAiC,EAEvD,IAAc,GAAM,sBAAsB,EAAE,EAE5C,IAAgB,OAAO,MAA8B;EACzD,IAAM,IAAW,MAAM,EAAkB,EAAE,WAAW,EAAE,IAAI,EAAW,IAAI,EAAE,CAAC;AAC9E,MAAI,EAAS,MACX,OAAU,MAAM,EAAS,MAAM,QAAQ;AAEzC,MAAI,CAAC,EAAS,MAAM,qBAElB,OADA,EAAO,MAAM,gCAAgC,yCAAyC,EAC5E,MAAM,wBAAwB;AAG1C,EADA,EAAO,QAAQ,sBAAsB,EACrC,MAAM,GAAS;IAGX,IACJ,kBAAC,GAAD;EAAQ,MAAK;EAAS,eAAe,EAAS,qBAAqB;YAAnE,CACE,kBAAC,GAAD,EAAM,WAAU,UAAW,CAAA,EAAA,iBAEpB;;AA8FX,QACE,kBAAC,GAAD;EACE,OAAM;EACN,aAAY;EACZ,SAAS;YA9FP,IACK,kBAAC,GAAD;GAAc,SAAQ;GAAO,MAAM;GAAG,OAAM;GAAyB,CAAA,GAE1E,IACK,kBAAC,GAAD;GAAY,SAAS,EAAM;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AAG,EAAE,CAAC,KAAK,MAChC,kBAAC,GAAD;OAAiB,SAAQ;OAAU,WAAU;iBAC1C;OACK,EAFI,EAEJ,CACR,EACD,EAAW,KAAK,SAAS,IACxB,kBAAC,QAAD;OAAM,WAAU;iBAAhB,CAA8C,KAAE,EAAW,KAAK,SAAS,EAAS;WAChF,KACA;UACJ;KACA;MA/DC,EAAW,GA+DZ,CACN;GACE,CAAA;EAWK,CAAA"}
|
|
@@ -214,8 +214,10 @@ function T() {
|
|
|
214
214
|
description: "Publish a release to share datasets and notebooks with a citable version."
|
|
215
215
|
}) : /* @__PURE__ */ u("ul", {
|
|
216
216
|
className: "space-y-2",
|
|
217
|
-
children: P.map((e) => /* @__PURE__ */
|
|
218
|
-
|
|
217
|
+
children: P.map((e) => /* @__PURE__ */ u("li", { children: /* @__PURE__ */ d("button", {
|
|
218
|
+
type: "button",
|
|
219
|
+
onClick: () => T("releases"),
|
|
220
|
+
className: "flex w-full items-center justify-between gap-3 rounded-card border border-border-default bg-bg-elevated px-4 py-3 text-left transition-colors hover:border-border-strong hover:bg-bg-sunken",
|
|
219
221
|
children: [/* @__PURE__ */ d("div", {
|
|
220
222
|
className: "min-w-0",
|
|
221
223
|
children: [/* @__PURE__ */ u("p", {
|
|
@@ -230,7 +232,7 @@ function T() {
|
|
|
230
232
|
]
|
|
231
233
|
})]
|
|
232
234
|
}), /* @__PURE__ */ u(l, { status: e.status })]
|
|
233
|
-
}, e.id))
|
|
235
|
+
}) }, e.id))
|
|
234
236
|
})]
|
|
235
237
|
})]
|
|
236
238
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardPage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/dashboard/DashboardPage.tsx"],"sourcesContent":["import type { LucideIcon } from 'lucide-react';\nimport {\n Boxes,\n Database,\n FileText,\n NotebookPen,\n Plus,\n Radar,\n Rocket,\n Workflow,\n} from 'lucide-react';\nimport { Button } from '@burdenoff/fe-libs/ui';\n\nimport {\n useCosDatasetsQuery,\n useCosNotebooksQuery,\n useCosPipelinesQuery,\n useCosReleasesQuery,\n useCosRunsQuery,\n useCosSourcesQuery,\n type CosConnection,\n} from '../../api/cosmicApi';\nimport { EmptyState, PageLayout, StatusBadge } from '../../components';\nimport { useCosmicIntersection } from '../../context/CosmicIntersectionContext';\n\nconst TILE_LIMIT = 50;\n\nfunction formatDateTime(raw: string | null | undefined): string {\n if (!raw) {\n return '—';\n }\n const date = new Date(raw);\n return Number.isNaN(date.getTime()) ? '—' : date.toLocaleString();\n}\n\n/** \"13\" or \"50+\" — the honest count of the page we fetched, never a fabricated total. */\nfunction connectionCount<T>(connection: CosConnection<T> | undefined): string {\n if (!connection) {\n return '—';\n }\n const loaded = connection.items.length;\n return connection.pageInfo?.hasMore ? `${loaded}+` : String(loaded);\n}\n\ninterface SummaryTileProps {\n label: string;\n count: string;\n icon: LucideIcon;\n loading: boolean;\n onClick: () => void;\n}\n\nfunction SummaryTile({ label, count, icon: Icon, loading, onClick }: SummaryTileProps) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n className=\"flex flex-col gap-2 rounded-card border border-border-default bg-bg-elevated p-4 text-left transition-colors hover:border-border-strong hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus\"\n >\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm font-medium text-text-secondary\">{label}</span>\n <Icon className=\"size-5 text-text-secondary\" aria-hidden=\"true\" />\n </div>\n <span className=\"text-2xl font-semibold tabular-nums text-text-primary\">\n {loading ? '…' : count}\n </span>\n </button>\n );\n}\n\nexport default function DashboardPage() {\n const { navigate } = useCosmicIntersection();\n\n const datasetsQuery = useCosDatasetsQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const sourcesQuery = useCosSourcesQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const pipelinesQuery = useCosPipelinesQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const runsQuery = useCosRunsQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const notebooksQuery = useCosNotebooksQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const releasesQuery = useCosReleasesQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const publishedQuery = useCosReleasesQuery({\n status: 'PUBLISHED',\n pagination: { limit: 5, offset: 0 },\n });\n\n const recentRuns = (runsQuery.data?.cosListRuns?.items ?? []).slice(0, 6);\n const publishedReleases = publishedQuery.data?.cosListReleases?.items ?? [];\n\n return (\n <PageLayout\n title=\"CosmicIntersection\"\n description=\"A federation workspace for science data — sources, datasets, pipelines, notebooks and releases in one place.\"\n actions={\n <Button type=\"button\" onClick={() => navigate('datasets/create')}>\n <Plus className=\"size-4\" />\n New dataset\n </Button>\n }\n >\n <div className=\"space-y-6\">\n {/* Summary tiles */}\n <div className=\"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6\">\n <SummaryTile\n label=\"Datasets\"\n icon={Database}\n loading={datasetsQuery.loading}\n count={connectionCount(datasetsQuery.data?.cosListDatasets)}\n onClick={() => navigate('datasets')}\n />\n <SummaryTile\n label=\"Sources\"\n icon={Radar}\n loading={sourcesQuery.loading}\n count={connectionCount(sourcesQuery.data?.cosListSources)}\n onClick={() => navigate('sources')}\n />\n <SummaryTile\n label=\"Pipelines\"\n icon={Workflow}\n loading={pipelinesQuery.loading}\n count={connectionCount(pipelinesQuery.data?.cosListPipelines)}\n onClick={() => navigate('pipelines')}\n />\n <SummaryTile\n label=\"Runs\"\n icon={Boxes}\n loading={runsQuery.loading}\n count={connectionCount(runsQuery.data?.cosListRuns)}\n onClick={() => navigate('runs')}\n />\n <SummaryTile\n label=\"Notebooks\"\n icon={NotebookPen}\n loading={notebooksQuery.loading}\n count={connectionCount(notebooksQuery.data?.cosListNotebooks)}\n onClick={() => navigate('notebooks')}\n />\n <SummaryTile\n label=\"Releases\"\n icon={FileText}\n loading={releasesQuery.loading}\n count={connectionCount(releasesQuery.data?.cosListReleases)}\n onClick={() => navigate('releases')}\n />\n </div>\n\n {/* Quick actions */}\n <div className=\"rounded-card border border-border-default bg-bg-elevated p-5\">\n <h2 className=\"text-sm font-semibold text-text-primary\">Quick actions</h2>\n <div className=\"mt-3 flex flex-wrap gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('datasets/create')}>\n <Database className=\"size-4\" />\n Register dataset\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('sources/create')}>\n <Radar className=\"size-4\" />\n Connect source\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('pipelines/create')}>\n <Workflow className=\"size-4\" />\n Create pipeline\n </Button>\n </div>\n </div>\n\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-2\">\n {/* Recent runs */}\n <section className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Recent runs</h2>\n <button\n type=\"button\"\n onClick={() => navigate('runs')}\n className=\"text-sm text-text-secondary underline-offset-2 hover:text-text-primary hover:underline\"\n >\n View all\n </button>\n </div>\n {runsQuery.loading ? (\n <div className=\"space-y-2\">\n {Array.from({ length: 3 }).map((_, index) => (\n <div key={index} className=\"h-14 animate-pulse rounded-card bg-bg-sunken\" />\n ))}\n </div>\n ) : recentRuns.length === 0 ? (\n <EmptyState\n icon={Boxes}\n title=\"No pipeline runs yet.\"\n description=\"Start a pipeline run to see execution history here.\"\n />\n ) : (\n <ul className=\"space-y-2\">\n {recentRuns.map((run) => (\n <li key={run.id}>\n <button\n type=\"button\"\n onClick={() => navigate(`runs/${run.id}`)}\n className=\"flex w-full items-center justify-between gap-3 rounded-card border border-border-default bg-bg-elevated px-4 py-3 text-left transition-colors hover:border-border-strong hover:bg-bg-sunken\"\n >\n <div className=\"min-w-0\">\n <p className=\"font-medium text-text-primary\">Run #{run.runNumber}</p>\n <p className=\"text-xs text-text-secondary\">\n {run.startedAt\n ? `Started ${formatDateTime(run.startedAt)}`\n : 'Not started'}\n </p>\n </div>\n <StatusBadge status={run.status} />\n </button>\n </li>\n ))}\n </ul>\n )}\n </section>\n\n {/* Recently published releases */}\n <section className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Recently published</h2>\n <button\n type=\"button\"\n onClick={() => navigate('releases')}\n className=\"text-sm text-text-secondary underline-offset-2 hover:text-text-primary hover:underline\"\n >\n View all\n </button>\n </div>\n {publishedQuery.loading ? (\n <div className=\"space-y-2\">\n {Array.from({ length: 3 }).map((_, index) => (\n <div key={index} className=\"h-14 animate-pulse rounded-card bg-bg-sunken\" />\n ))}\n </div>\n ) : publishedReleases.length === 0 ? (\n <EmptyState\n icon={Rocket}\n title=\"No published releases yet.\"\n description=\"Publish a release to share datasets and notebooks with a citable version.\"\n />\n ) : (\n <ul className=\"space-y-2\">\n {publishedReleases.map((release) => (\n <li\n key={release.id}\n className=\"flex items-center justify-between gap-3 rounded-card border border-border-default bg-bg-elevated px-4 py-3\"\n >\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{release.title}</p>\n <p className=\"text-xs text-text-secondary\">\n v{release.version}\n {release.publishedAt\n ? ` · Published ${formatDateTime(release.publishedAt)}`\n : ''}\n </p>\n </div>\n <StatusBadge status={release.status} />\n </li>\n ))}\n </ul>\n )}\n </section>\n </div>\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;AAyBA,IAAM,IAAa;AAEnB,SAAS,EAAe,GAAwC;AAC9D,KAAI,CAAC,EACH,QAAO;CAET,IAAM,IAAO,IAAI,KAAK,EAAI;AAC1B,QAAO,OAAO,MAAM,EAAK,SAAS,CAAC,GAAG,MAAM,EAAK,gBAAgB;;AAInE,SAAS,EAAmB,GAAkD;AAC5E,KAAI,CAAC,EACH,QAAO;CAET,IAAM,IAAS,EAAW,MAAM;AAChC,QAAO,EAAW,UAAU,UAAU,GAAG,EAAO,KAAK,OAAO,EAAO;;AAWrE,SAAS,EAAY,EAAE,UA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AA0C;QAAuB,CAAA,EAC/E,kBAAC,UAAD;QACE,MAAK;QACL,eAAe,EAAS,WAAW;QACnC,WAAU;kBACX;QAEQ,CAAA,CACL;UACL,EAAe,UACd,kBAAC,OAAD;OAAK,WAAU;iBACZ,MAAM,KAAK,EAAE,QAAQ,GAAG,CAAC,CAAC,KAAK,GAAG,MACjC,kBAAC,OAAD,EAAiB,WAAU,gDAAiD,EAAlE,EAAkE,CAC5E;OACE,CAAA,GACJ,EAAkB,WAAW,IAC/B,kBAAC,GAAD;OACE,MAAM;OACN,OAAM;OACN,aAAY;OACZ,CAAA,GAEF,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAkB,KAAK,MACtB,kBAAC,MAAD;QAEE,WAAU;kBAFZ,CAIE,kBAAC,OAAD;SAAK,WAAU;mBAAf,CACE,kBAAC,KAAD;UAAG,WAAU;oBAA0C,EAAQ;UAAU,CAAA,EACzE,kBAAC,KAAD;UAAG,WAAU;oBAAb;WAA2C;WACvC,EAAQ;WACT,EAAQ,cACL,gBAAgB,EAAe,EAAQ,YAAY,KACnD;WACF;YACA;YACN,kBAAC,GAAD,EAAa,QAAQ,EAAQ,QAAU,CAAA,CACpC;UAbE,EAAQ,GAaV,CACL;OACC,CAAA,CAEC;QACN;;IACF;;EACK,CAAA"}
|
|
1
|
+
{"version":3,"file":"DashboardPage.js","names":[],"sources":["../../../../src/cosmicintersection/pages/dashboard/DashboardPage.tsx"],"sourcesContent":["import type { LucideIcon } from 'lucide-react';\nimport {\n Boxes,\n Database,\n FileText,\n NotebookPen,\n Plus,\n Radar,\n Rocket,\n Workflow,\n} from 'lucide-react';\nimport { Button } from '@burdenoff/fe-libs/ui';\n\nimport {\n useCosDatasetsQuery,\n useCosNotebooksQuery,\n useCosPipelinesQuery,\n useCosReleasesQuery,\n useCosRunsQuery,\n useCosSourcesQuery,\n type CosConnection,\n} from '../../api/cosmicApi';\nimport { EmptyState, PageLayout, StatusBadge } from '../../components';\nimport { useCosmicIntersection } from '../../context/CosmicIntersectionContext';\n\nconst TILE_LIMIT = 50;\n\nfunction formatDateTime(raw: string | null | undefined): string {\n if (!raw) {\n return '—';\n }\n const date = new Date(raw);\n return Number.isNaN(date.getTime()) ? '—' : date.toLocaleString();\n}\n\n/** \"13\" or \"50+\" — the honest count of the page we fetched, never a fabricated total. */\nfunction connectionCount<T>(connection: CosConnection<T> | undefined): string {\n if (!connection) {\n return '—';\n }\n const loaded = connection.items.length;\n return connection.pageInfo?.hasMore ? `${loaded}+` : String(loaded);\n}\n\ninterface SummaryTileProps {\n label: string;\n count: string;\n icon: LucideIcon;\n loading: boolean;\n onClick: () => void;\n}\n\nfunction SummaryTile({ label, count, icon: Icon, loading, onClick }: SummaryTileProps) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n className=\"flex flex-col gap-2 rounded-card border border-border-default bg-bg-elevated p-4 text-left transition-colors hover:border-border-strong hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus\"\n >\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm font-medium text-text-secondary\">{label}</span>\n <Icon className=\"size-5 text-text-secondary\" aria-hidden=\"true\" />\n </div>\n <span className=\"text-2xl font-semibold tabular-nums text-text-primary\">\n {loading ? '…' : count}\n </span>\n </button>\n );\n}\n\nexport default function DashboardPage() {\n const { navigate } = useCosmicIntersection();\n\n const datasetsQuery = useCosDatasetsQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const sourcesQuery = useCosSourcesQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const pipelinesQuery = useCosPipelinesQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const runsQuery = useCosRunsQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const notebooksQuery = useCosNotebooksQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const releasesQuery = useCosReleasesQuery({ pagination: { limit: TILE_LIMIT, offset: 0 } });\n const publishedQuery = useCosReleasesQuery({\n status: 'PUBLISHED',\n pagination: { limit: 5, offset: 0 },\n });\n\n const recentRuns = (runsQuery.data?.cosListRuns?.items ?? []).slice(0, 6);\n const publishedReleases = publishedQuery.data?.cosListReleases?.items ?? [];\n\n return (\n <PageLayout\n title=\"CosmicIntersection\"\n description=\"A federation workspace for science data — sources, datasets, pipelines, notebooks and releases in one place.\"\n actions={\n <Button type=\"button\" onClick={() => navigate('datasets/create')}>\n <Plus className=\"size-4\" />\n New dataset\n </Button>\n }\n >\n <div className=\"space-y-6\">\n {/* Summary tiles */}\n <div className=\"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6\">\n <SummaryTile\n label=\"Datasets\"\n icon={Database}\n loading={datasetsQuery.loading}\n count={connectionCount(datasetsQuery.data?.cosListDatasets)}\n onClick={() => navigate('datasets')}\n />\n <SummaryTile\n label=\"Sources\"\n icon={Radar}\n loading={sourcesQuery.loading}\n count={connectionCount(sourcesQuery.data?.cosListSources)}\n onClick={() => navigate('sources')}\n />\n <SummaryTile\n label=\"Pipelines\"\n icon={Workflow}\n loading={pipelinesQuery.loading}\n count={connectionCount(pipelinesQuery.data?.cosListPipelines)}\n onClick={() => navigate('pipelines')}\n />\n <SummaryTile\n label=\"Runs\"\n icon={Boxes}\n loading={runsQuery.loading}\n count={connectionCount(runsQuery.data?.cosListRuns)}\n onClick={() => navigate('runs')}\n />\n <SummaryTile\n label=\"Notebooks\"\n icon={NotebookPen}\n loading={notebooksQuery.loading}\n count={connectionCount(notebooksQuery.data?.cosListNotebooks)}\n onClick={() => navigate('notebooks')}\n />\n <SummaryTile\n label=\"Releases\"\n icon={FileText}\n loading={releasesQuery.loading}\n count={connectionCount(releasesQuery.data?.cosListReleases)}\n onClick={() => navigate('releases')}\n />\n </div>\n\n {/* Quick actions */}\n <div className=\"rounded-card border border-border-default bg-bg-elevated p-5\">\n <h2 className=\"text-sm font-semibold text-text-primary\">Quick actions</h2>\n <div className=\"mt-3 flex flex-wrap gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('datasets/create')}>\n <Database className=\"size-4\" />\n Register dataset\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('sources/create')}>\n <Radar className=\"size-4\" />\n Connect source\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => navigate('pipelines/create')}>\n <Workflow className=\"size-4\" />\n Create pipeline\n </Button>\n </div>\n </div>\n\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-2\">\n {/* Recent runs */}\n <section className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Recent runs</h2>\n <button\n type=\"button\"\n onClick={() => navigate('runs')}\n className=\"text-sm text-text-secondary underline-offset-2 hover:text-text-primary hover:underline\"\n >\n View all\n </button>\n </div>\n {runsQuery.loading ? (\n <div className=\"space-y-2\">\n {Array.from({ length: 3 }).map((_, index) => (\n <div key={index} className=\"h-14 animate-pulse rounded-card bg-bg-sunken\" />\n ))}\n </div>\n ) : recentRuns.length === 0 ? (\n <EmptyState\n icon={Boxes}\n title=\"No pipeline runs yet.\"\n description=\"Start a pipeline run to see execution history here.\"\n />\n ) : (\n <ul className=\"space-y-2\">\n {recentRuns.map((run) => (\n <li key={run.id}>\n <button\n type=\"button\"\n onClick={() => navigate(`runs/${run.id}`)}\n className=\"flex w-full items-center justify-between gap-3 rounded-card border border-border-default bg-bg-elevated px-4 py-3 text-left transition-colors hover:border-border-strong hover:bg-bg-sunken\"\n >\n <div className=\"min-w-0\">\n <p className=\"font-medium text-text-primary\">Run #{run.runNumber}</p>\n <p className=\"text-xs text-text-secondary\">\n {run.startedAt\n ? `Started ${formatDateTime(run.startedAt)}`\n : 'Not started'}\n </p>\n </div>\n <StatusBadge status={run.status} />\n </button>\n </li>\n ))}\n </ul>\n )}\n </section>\n\n {/* Recently published releases */}\n <section className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Recently published</h2>\n <button\n type=\"button\"\n onClick={() => navigate('releases')}\n className=\"text-sm text-text-secondary underline-offset-2 hover:text-text-primary hover:underline\"\n >\n View all\n </button>\n </div>\n {publishedQuery.loading ? (\n <div className=\"space-y-2\">\n {Array.from({ length: 3 }).map((_, index) => (\n <div key={index} className=\"h-14 animate-pulse rounded-card bg-bg-sunken\" />\n ))}\n </div>\n ) : publishedReleases.length === 0 ? (\n <EmptyState\n icon={Rocket}\n title=\"No published releases yet.\"\n description=\"Publish a release to share datasets and notebooks with a citable version.\"\n />\n ) : (\n <ul className=\"space-y-2\">\n {publishedReleases.map((release) => (\n <li key={release.id}>\n <button\n type=\"button\"\n onClick={() => navigate('releases')}\n className=\"flex w-full items-center justify-between gap-3 rounded-card border border-border-default bg-bg-elevated px-4 py-3 text-left transition-colors hover:border-border-strong hover:bg-bg-sunken\"\n >\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{release.title}</p>\n <p className=\"text-xs text-text-secondary\">\n v{release.version}\n {release.publishedAt\n ? ` · Published ${formatDateTime(release.publishedAt)}`\n : ''}\n </p>\n </div>\n <StatusBadge status={release.status} />\n </button>\n </li>\n ))}\n </ul>\n )}\n </section>\n </div>\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;AAyBA,IAAM,IAAa;AAEnB,SAAS,EAAe,GAAwC;AAC9D,KAAI,CAAC,EACH,QAAO;CAET,IAAM,IAAO,IAAI,KAAK,EAAI;AAC1B,QAAO,OAAO,MAAM,EAAK,SAAS,CAAC,GAAG,MAAM,EAAK,gBAAgB;;AAInE,SAAS,EAAmB,GAAkD;AAC5E,KAAI,CAAC,EACH,QAAO;CAET,IAAM,IAAS,EAAW,MAAM;AAChC,QAAO,EAAW,UAAU,UAAU,GAAG,EAAO,KAAK,OAAO,EAAO;;AAWrE,SAAS,EAAY,EAAE,UAAO,UAAO,MAAM,GAAM,YAAS,cAA6B;AACrF,QACE,kBAAC,UAAD;EACE,MAAK;EACI;EACT,WAAU;YAHZ,CAKE,kBAAC,OAAD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