@burdenoff/microfe-cosmicintersection 2026.1108.1 → 2026.1109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cosmicintersection/api/cosmicApi.d.ts +14 -0
- package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
- package/dist/cosmicintersection/api/cosmicApi.js +71 -56
- package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
- package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
- package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
- package/dist/cosmicintersection/api/databricksTransport.js +38 -0
- package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
- package/dist/cosmicintersection/components/ActionMenu.js +17 -17
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
- package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
- package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
- package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
- package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
- package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
- package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
- package/dist/cosmicintersection/components/ErrorState.js +4 -4
- package/dist/cosmicintersection/components/FileUploadField.js +8 -8
- package/dist/cosmicintersection/components/Pagination.js +6 -6
- package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
- package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
- package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
- package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
- package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
- package/dist/cosmicintersection/components/index.js +7 -7
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
- package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
- package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
- package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
- package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
- package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
- package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/databricksForm.js +31 -0
- package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
- package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
- package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
- package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
- package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
- package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
- package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
- package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
- package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
- package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
- package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
- package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
- package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
- package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
- package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
- package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
- package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
- package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
- package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
- package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
- package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js +193 -161
- package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
- package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
- package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
- package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +243 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +1472 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +183281 -30204
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/package.json +10 -7
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { useCosmicIntersection as e } from "../../context/CosmicIntersectionContext.js";
|
|
2
2
|
import { notify as t } from "../../lib/toast.js";
|
|
3
|
-
import { useCosArchiveDatasetMutation as n, useCosCollectionsQuery as r, useCosDatasetsQuery as i, useCosPublishDatasetMutation as
|
|
4
|
-
import { useTr as
|
|
5
|
-
import { ActionMenu as
|
|
6
|
-
import { EmptyState as
|
|
7
|
-
import { ErrorState as
|
|
8
|
-
import { LoadingState as
|
|
3
|
+
import { useCosArchiveDatasetMutation as n, useCosCollectionsQuery as r, useCosDatasetsQuery as i, useCosPublishDatasetMutation as a, useCosSourcesQuery as ee } from "../../api/cosmicApi.js";
|
|
4
|
+
import { useTr as te } from "../../../shared/hooks/useTr.js";
|
|
5
|
+
import { ActionMenu as o } from "../../components/ActionMenu.js";
|
|
6
|
+
import { EmptyState as ne } from "../../components/EmptyState.js";
|
|
7
|
+
import { ErrorState as re } from "../../components/ErrorState.js";
|
|
8
|
+
import { LoadingState as ie } from "../../components/LoadingState.js";
|
|
9
9
|
import { PageLayout as s } from "../../components/PageLayout.js";
|
|
10
|
-
import { Pagination as c, usePagination as
|
|
11
|
-
import { StatusBadge as
|
|
10
|
+
import { Pagination as c, usePagination as l } from "../../components/Pagination.js";
|
|
11
|
+
import { StatusBadge as u, formatEnumLabel as d } from "../../components/StatusBadge.js";
|
|
12
12
|
import "../../components/index.js";
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { useMemo as f, useState as p } from "react";
|
|
14
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
15
|
+
import { Badge as _, Button as v, Select as y, SelectContent as b, SelectItem as x, SelectTrigger as S, SelectValue as C, Table as ae, TableBody as oe, TableCell as w, TableHead as T, TableHeader as se, TableRow as E } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { Compass as D, Database as ce, Plus as O } from "lucide-react";
|
|
17
17
|
//#region src/cosmicintersection/pages/datasets/DatasetsPage.tsx
|
|
18
18
|
var le = [
|
|
19
19
|
"DRAFT",
|
|
@@ -21,13 +21,13 @@ var le = [
|
|
|
21
21
|
"AVAILABLE",
|
|
22
22
|
"DEPRECATED",
|
|
23
23
|
"ARCHIVED"
|
|
24
|
-
],
|
|
24
|
+
], ue = [
|
|
25
25
|
"PUBLIC",
|
|
26
26
|
"WORKSPACE",
|
|
27
27
|
"RESTRICTED",
|
|
28
28
|
"EMBARGOED"
|
|
29
|
-
],
|
|
30
|
-
function
|
|
29
|
+
], k = "__all__", de = 200;
|
|
30
|
+
function A(e) {
|
|
31
31
|
if (!e) return "—";
|
|
32
32
|
let t = Number(e);
|
|
33
33
|
if (!Number.isFinite(t) || t <= 0) return "—";
|
|
@@ -42,348 +42,348 @@ function j(e) {
|
|
|
42
42
|
for (; r >= 1024 && i < n.length - 1;) r /= 1024, i += 1;
|
|
43
43
|
return `${r >= 10 || i === 0 ? Math.round(r) : r.toFixed(1)} ${n[i]}`;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function j(e) {
|
|
46
46
|
if (!e) return "—";
|
|
47
47
|
let t = new Date(e);
|
|
48
48
|
return Number.isNaN(t.getTime()) ? "—" : t.toLocaleDateString();
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
let { navigate:
|
|
50
|
+
function M() {
|
|
51
|
+
let { navigate: M } = e(), N = te(), [P, F] = p(k), [I, L] = p(k), [R, z] = p(k), [B, V] = p(k), [H, fe] = p(k), U = l({
|
|
52
52
|
pageSize: 20,
|
|
53
|
-
resetKey: `${
|
|
54
|
-
}), { data:
|
|
55
|
-
status:
|
|
56
|
-
sourceId:
|
|
57
|
-
collectionId:
|
|
58
|
-
format:
|
|
59
|
-
accessLevel:
|
|
53
|
+
resetKey: `${P}|${I}|${R}|${B}|${H}`
|
|
54
|
+
}), { data: W, loading: G, error: pe, refetch: K } = i({
|
|
55
|
+
status: P === k ? void 0 : P,
|
|
56
|
+
sourceId: I === k ? void 0 : I,
|
|
57
|
+
collectionId: R === k ? void 0 : R,
|
|
58
|
+
format: B === k ? void 0 : B,
|
|
59
|
+
accessLevel: H === k ? void 0 : H,
|
|
60
60
|
pagination: {
|
|
61
|
-
limit:
|
|
62
|
-
offset:
|
|
61
|
+
limit: U.limit,
|
|
62
|
+
offset: U.offset
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), me = ee({ pagination: {
|
|
65
65
|
limit: 100,
|
|
66
66
|
offset: 0
|
|
67
|
-
} }),
|
|
68
|
-
limit:
|
|
67
|
+
} }), he = r(), q = i({ pagination: {
|
|
68
|
+
limit: de,
|
|
69
69
|
offset: 0
|
|
70
|
-
} }), [
|
|
70
|
+
} }), [ge] = a(), [_e] = n(), J = f(() => W?.cosListDatasets?.items ?? [], [W]), ve = W?.cosListDatasets?.pageInfo, ye = me.data?.cosListSources?.items ?? [], Y = he.data?.cosListCollections ?? [], X = f(() => {
|
|
71
71
|
let e = /* @__PURE__ */ new Set();
|
|
72
|
-
for (let t of
|
|
72
|
+
for (let t of q.data?.cosListDatasets?.items ?? []) t.format && e.add(t.format);
|
|
73
73
|
return [...e].sort((e, t) => e.localeCompare(t));
|
|
74
|
-
}, [
|
|
75
|
-
(await
|
|
74
|
+
}, [q.data]), Z = P === k && I === k && R === k && B === k && H === k, Q = async (e) => {
|
|
75
|
+
(await ge({ variables: { id: e.id } })).data?.cosPublishDataset && (t.success(N("cosmicintersection.pages.datasets.publishSuccess", "Dataset published"), N("cosmicintersection.pages.datasets.publishSuccessDescription", "“{{name}}” is now available.", { name: e.name })), await K());
|
|
76
76
|
}, $ = async (e) => {
|
|
77
|
-
let n = await
|
|
77
|
+
let n = await _e({ variables: { id: e.id } });
|
|
78
78
|
if (n.error) throw Error(n.error.message);
|
|
79
|
-
if (!n.data?.cosArchiveDataset) throw t.error(
|
|
80
|
-
t.success(
|
|
79
|
+
if (!n.data?.cosArchiveDataset) throw t.error(N("cosmicintersection.pages.datasets.archiveError", "Could not archive dataset"), N("cosmicintersection.pages.datasets.archiveErrorDescription", "The server did not confirm the change.")), Error("Archive not confirmed");
|
|
80
|
+
t.success(N("cosmicintersection.pages.datasets.archiveSuccess", "Dataset archived")), await K();
|
|
81
81
|
};
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
title:
|
|
84
|
-
description:
|
|
85
|
-
actions: /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ h(s, {
|
|
83
|
+
title: N("cosmicintersection.pages.datasets.title", "Datasets"),
|
|
84
|
+
description: N("cosmicintersection.pages.datasets.description", "Federated science datasets — catalog, schema, lineage and access, all from live data."),
|
|
85
|
+
actions: /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g(v, {
|
|
86
86
|
type: "button",
|
|
87
87
|
variant: "outline",
|
|
88
|
-
onClick: () =>
|
|
89
|
-
children: [/* @__PURE__ */
|
|
90
|
-
}), /* @__PURE__ */
|
|
88
|
+
onClick: () => M("discovery"),
|
|
89
|
+
children: [/* @__PURE__ */ h(D, { className: "size-4" }), N("nav.discover", "Discover")]
|
|
90
|
+
}), /* @__PURE__ */ g(v, {
|
|
91
91
|
type: "button",
|
|
92
|
-
onClick: () =>
|
|
93
|
-
children: [/* @__PURE__ */
|
|
92
|
+
onClick: () => M("datasets/create"),
|
|
93
|
+
children: [/* @__PURE__ */ h(O, { className: "size-4" }), N("cosmicintersection.pages.datasets.create", "New dataset")]
|
|
94
94
|
})] }),
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ g("div", {
|
|
96
96
|
className: "space-y-4",
|
|
97
|
-
children: [/* @__PURE__ */
|
|
97
|
+
children: [/* @__PURE__ */ g("div", {
|
|
98
98
|
className: "flex flex-wrap items-end gap-3",
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ g("label", {
|
|
101
101
|
className: "space-y-1 text-sm",
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ h("span", {
|
|
103
103
|
className: "block font-medium text-text-primary",
|
|
104
|
-
children:
|
|
105
|
-
}), /* @__PURE__ */
|
|
106
|
-
value:
|
|
107
|
-
onValueChange:
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
-
"aria-label":
|
|
104
|
+
children: N("cosmicintersection.common.status", "Status")
|
|
105
|
+
}), /* @__PURE__ */ g(y, {
|
|
106
|
+
value: P,
|
|
107
|
+
onValueChange: F,
|
|
108
|
+
children: [/* @__PURE__ */ h(S, {
|
|
109
|
+
"aria-label": N("cosmicintersection.common.filterByStatus", "Filter by status"),
|
|
110
110
|
className: "w-44",
|
|
111
|
-
children: /* @__PURE__ */
|
|
112
|
-
}), /* @__PURE__ */
|
|
113
|
-
value:
|
|
114
|
-
children:
|
|
115
|
-
}), le.map((e) => /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ h(C, {})
|
|
112
|
+
}), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
|
|
113
|
+
value: k,
|
|
114
|
+
children: N("cosmicintersection.common.allStatuses", "All statuses")
|
|
115
|
+
}), le.map((e) => /* @__PURE__ */ h(x, {
|
|
116
116
|
value: e,
|
|
117
|
-
children:
|
|
117
|
+
children: d(e)
|
|
118
118
|
}, e))] })]
|
|
119
119
|
})]
|
|
120
120
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ g("label", {
|
|
122
122
|
className: "space-y-1 text-sm",
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ h("span", {
|
|
124
124
|
className: "block font-medium text-text-primary",
|
|
125
|
-
children:
|
|
126
|
-
}), /* @__PURE__ */
|
|
127
|
-
value:
|
|
128
|
-
onValueChange:
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
-
"aria-label":
|
|
125
|
+
children: N("cosmicintersection.common.source", "Source")
|
|
126
|
+
}), /* @__PURE__ */ g(y, {
|
|
127
|
+
value: I,
|
|
128
|
+
onValueChange: L,
|
|
129
|
+
children: [/* @__PURE__ */ h(S, {
|
|
130
|
+
"aria-label": N("cosmicintersection.common.filterBySource", "Filter by source"),
|
|
131
131
|
className: "w-48",
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
}), /* @__PURE__ */
|
|
134
|
-
value:
|
|
135
|
-
children:
|
|
136
|
-
}),
|
|
132
|
+
children: /* @__PURE__ */ h(C, {})
|
|
133
|
+
}), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
|
|
134
|
+
value: k,
|
|
135
|
+
children: N("cosmicintersection.common.allSources", "All sources")
|
|
136
|
+
}), ye.map((e) => /* @__PURE__ */ h(x, {
|
|
137
137
|
value: e.id,
|
|
138
138
|
children: e.name
|
|
139
139
|
}, e.id))] })]
|
|
140
140
|
})]
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ g("label", {
|
|
143
143
|
className: "space-y-1 text-sm",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ h("span", {
|
|
145
145
|
className: "block font-medium text-text-primary",
|
|
146
|
-
children:
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
-
value:
|
|
149
|
-
onValueChange:
|
|
150
|
-
children: [/* @__PURE__ */
|
|
151
|
-
"aria-label":
|
|
146
|
+
children: N("cosmicintersection.common.collection", "Collection")
|
|
147
|
+
}), /* @__PURE__ */ g(y, {
|
|
148
|
+
value: R,
|
|
149
|
+
onValueChange: z,
|
|
150
|
+
children: [/* @__PURE__ */ h(S, {
|
|
151
|
+
"aria-label": N("cosmicintersection.common.filterByCollection", "Filter by collection"),
|
|
152
152
|
className: "w-48",
|
|
153
|
-
children: /* @__PURE__ */
|
|
154
|
-
}), /* @__PURE__ */
|
|
155
|
-
value:
|
|
156
|
-
children:
|
|
157
|
-
}),
|
|
153
|
+
children: /* @__PURE__ */ h(C, {})
|
|
154
|
+
}), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
|
|
155
|
+
value: k,
|
|
156
|
+
children: N("cosmicintersection.common.allCollections", "All collections")
|
|
157
|
+
}), Y.map((e) => /* @__PURE__ */ h(x, {
|
|
158
158
|
value: e.id,
|
|
159
159
|
children: e.name
|
|
160
160
|
}, e.id))] })]
|
|
161
161
|
})]
|
|
162
162
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ g("label", {
|
|
164
164
|
className: "space-y-1 text-sm",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
165
|
+
children: [/* @__PURE__ */ h("span", {
|
|
166
166
|
className: "block font-medium text-text-primary",
|
|
167
|
-
children:
|
|
168
|
-
}), /* @__PURE__ */
|
|
169
|
-
value:
|
|
170
|
-
onValueChange:
|
|
167
|
+
children: N("cosmicintersection.common.format", "Format")
|
|
168
|
+
}), /* @__PURE__ */ g(y, {
|
|
169
|
+
value: B,
|
|
170
|
+
onValueChange: V,
|
|
171
171
|
disabled: X.length === 0,
|
|
172
|
-
children: [/* @__PURE__ */
|
|
173
|
-
"aria-label":
|
|
172
|
+
children: [/* @__PURE__ */ h(S, {
|
|
173
|
+
"aria-label": N("cosmicintersection.common.filterByFormat", "Filter by format"),
|
|
174
174
|
className: "w-40",
|
|
175
|
-
children: /* @__PURE__ */
|
|
176
|
-
}), /* @__PURE__ */
|
|
177
|
-
value:
|
|
178
|
-
children:
|
|
179
|
-
}), X.map((e) => /* @__PURE__ */
|
|
175
|
+
children: /* @__PURE__ */ h(C, {})
|
|
176
|
+
}), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
|
|
177
|
+
value: k,
|
|
178
|
+
children: N("cosmicintersection.common.allFormats", "All formats")
|
|
179
|
+
}), X.map((e) => /* @__PURE__ */ h(x, {
|
|
180
180
|
value: e,
|
|
181
181
|
children: e
|
|
182
182
|
}, e))] })]
|
|
183
183
|
})]
|
|
184
184
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ g("label", {
|
|
186
186
|
className: "space-y-1 text-sm",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ h("span", {
|
|
188
188
|
className: "block font-medium text-text-primary",
|
|
189
|
-
children:
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
value:
|
|
192
|
-
onValueChange:
|
|
193
|
-
children: [/* @__PURE__ */
|
|
194
|
-
"aria-label":
|
|
189
|
+
children: N("cosmicintersection.common.access", "Access")
|
|
190
|
+
}), /* @__PURE__ */ g(y, {
|
|
191
|
+
value: H,
|
|
192
|
+
onValueChange: fe,
|
|
193
|
+
children: [/* @__PURE__ */ h(S, {
|
|
194
|
+
"aria-label": N("cosmicintersection.common.filterByAccess", "Filter by access level"),
|
|
195
195
|
className: "w-44",
|
|
196
|
-
children: /* @__PURE__ */
|
|
197
|
-
}), /* @__PURE__ */
|
|
198
|
-
value:
|
|
199
|
-
children:
|
|
200
|
-
}),
|
|
196
|
+
children: /* @__PURE__ */ h(C, {})
|
|
197
|
+
}), /* @__PURE__ */ g(b, { children: [/* @__PURE__ */ h(x, {
|
|
198
|
+
value: k,
|
|
199
|
+
children: N("cosmicintersection.common.allAccessLevels", "All access levels")
|
|
200
|
+
}), ue.map((e) => /* @__PURE__ */ h(x, {
|
|
201
201
|
value: e,
|
|
202
|
-
children:
|
|
202
|
+
children: d(e)
|
|
203
203
|
}, e))] })]
|
|
204
204
|
})]
|
|
205
205
|
})
|
|
206
206
|
]
|
|
207
|
-
}),
|
|
207
|
+
}), G ? /* @__PURE__ */ h(ie, {
|
|
208
208
|
variant: "rows",
|
|
209
209
|
rows: 6,
|
|
210
|
-
label:
|
|
211
|
-
}) :
|
|
212
|
-
message:
|
|
213
|
-
onRetry: () => void
|
|
214
|
-
}) :
|
|
215
|
-
icon:
|
|
216
|
-
title: Z ?
|
|
217
|
-
description: Z ?
|
|
218
|
-
action: Z ? /* @__PURE__ */
|
|
210
|
+
label: N("cosmicintersection.pages.datasets.loading", "Loading datasets…")
|
|
211
|
+
}) : pe ? /* @__PURE__ */ h(re, {
|
|
212
|
+
message: N("cosmicintersection.pages.datasets.error", "We could not load datasets. Please try again."),
|
|
213
|
+
onRetry: () => void K()
|
|
214
|
+
}) : J.length === 0 ? /* @__PURE__ */ h(ne, {
|
|
215
|
+
icon: ce,
|
|
216
|
+
title: Z ? N("cosmicintersection.pages.datasets.emptyTitle", "No datasets yet.") : N("cosmicintersection.pages.datasets.emptyFilterTitle", "No datasets match these filters."),
|
|
217
|
+
description: Z ? N("cosmicintersection.pages.datasets.emptyDescription", "Register your first dataset to start federating science data across sources.") : N("cosmicintersection.pages.datasets.emptyFilterDescription", "Try a different status, source, collection, format or access level."),
|
|
218
|
+
action: Z ? /* @__PURE__ */ g(v, {
|
|
219
219
|
type: "button",
|
|
220
|
-
onClick: () =>
|
|
221
|
-
children: [/* @__PURE__ */
|
|
220
|
+
onClick: () => M("datasets/create"),
|
|
221
|
+
children: [/* @__PURE__ */ h(O, { className: "size-4" }), N("cosmicintersection.pages.datasets.create", "New dataset")]
|
|
222
222
|
}) : void 0
|
|
223
|
-
}) : /* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
223
|
+
}) : /* @__PURE__ */ g(m, { children: [
|
|
224
|
+
/* @__PURE__ */ h("div", {
|
|
225
225
|
className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */
|
|
226
|
+
children: /* @__PURE__ */ g(ae, { children: [/* @__PURE__ */ h(se, { children: /* @__PURE__ */ g(E, { children: [
|
|
227
|
+
/* @__PURE__ */ h(T, { children: N("cosmicintersection.common.name", "Name") }),
|
|
228
|
+
/* @__PURE__ */ h(T, { children: N("cosmicintersection.common.status", "Status") }),
|
|
229
|
+
/* @__PURE__ */ h(T, { children: N("cosmicintersection.common.access", "Access") }),
|
|
230
|
+
/* @__PURE__ */ h(T, { children: N("cosmicintersection.common.format", "Format") }),
|
|
231
|
+
/* @__PURE__ */ h(T, {
|
|
232
232
|
className: "text-right",
|
|
233
|
-
children:
|
|
233
|
+
children: N("cosmicintersection.common.size", "Size")
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ h(T, { children: N("cosmicintersection.common.tags", "Tags") }),
|
|
236
|
+
/* @__PURE__ */ h(T, { children: N("cosmicintersection.common.updated", "Updated") }),
|
|
237
|
+
/* @__PURE__ */ h(T, {
|
|
238
238
|
className: "text-right",
|
|
239
|
-
children:
|
|
239
|
+
children: N("cosmicintersection.common.actions", "Actions")
|
|
240
240
|
})
|
|
241
|
-
] }) }), /* @__PURE__ */
|
|
241
|
+
] }) }), /* @__PURE__ */ h(oe, { children: J.map((e) => /* @__PURE__ */ g(E, {
|
|
242
242
|
className: "cursor-pointer",
|
|
243
|
-
onClick: () =>
|
|
243
|
+
onClick: () => M(`datasets/${e.id}`),
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ g(w, { children: [/* @__PURE__ */ h("span", {
|
|
246
246
|
className: "font-medium text-text-primary",
|
|
247
247
|
children: e.name
|
|
248
|
-
}), e.description ? /* @__PURE__ */
|
|
248
|
+
}), e.description ? /* @__PURE__ */ h("p", {
|
|
249
249
|
className: "mt-0.5 line-clamp-1 max-w-xs text-xs text-text-secondary",
|
|
250
250
|
children: e.description
|
|
251
251
|
}) : null] }),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ h(w, { children: /* @__PURE__ */ h(u, { status: e.status }) }),
|
|
253
|
+
/* @__PURE__ */ h(w, { children: /* @__PURE__ */ h("span", {
|
|
254
254
|
className: "text-sm text-text-secondary",
|
|
255
|
-
children:
|
|
255
|
+
children: d(e.accessLevel)
|
|
256
256
|
}) }),
|
|
257
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ h(w, { children: /* @__PURE__ */ h("span", {
|
|
258
258
|
className: "text-sm text-text-secondary",
|
|
259
259
|
children: e.format || "—"
|
|
260
260
|
}) }),
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ h(w, {
|
|
262
262
|
className: "text-right text-sm tabular-nums text-text-secondary",
|
|
263
|
-
children:
|
|
263
|
+
children: A(e.sizeBytes)
|
|
264
264
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ h(w, { children: /* @__PURE__ */ h("div", {
|
|
266
266
|
className: "flex max-w-[12rem] flex-wrap gap-1",
|
|
267
|
-
children: e.tags.length === 0 ? /* @__PURE__ */
|
|
267
|
+
children: e.tags.length === 0 ? /* @__PURE__ */ h("span", {
|
|
268
268
|
className: "text-xs text-text-secondary",
|
|
269
269
|
children: "—"
|
|
270
|
-
}) : /* @__PURE__ */
|
|
270
|
+
}) : /* @__PURE__ */ g(m, { children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */ h(_, {
|
|
271
271
|
variant: "secondary",
|
|
272
272
|
children: e
|
|
273
|
-
}, e)), e.tags.length > 2 ? /* @__PURE__ */
|
|
273
|
+
}, e)), e.tags.length > 2 ? /* @__PURE__ */ g(_, {
|
|
274
274
|
variant: "secondary",
|
|
275
275
|
children: ["+", e.tags.length - 2]
|
|
276
276
|
}) : null] })
|
|
277
277
|
}) }),
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ h(w, {
|
|
279
279
|
className: "whitespace-nowrap text-sm text-text-secondary",
|
|
280
|
-
children:
|
|
280
|
+
children: j(e.updatedAt)
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ h(w, {
|
|
283
283
|
className: "text-right",
|
|
284
|
-
children: /* @__PURE__ */
|
|
285
|
-
ariaLabel:
|
|
284
|
+
children: /* @__PURE__ */ h(o, {
|
|
285
|
+
ariaLabel: N("cosmicintersection.common.actionsFor", "Actions for {{name}}", { name: e.name }),
|
|
286
286
|
entityName: e.name,
|
|
287
|
-
onView: () =>
|
|
288
|
-
onEdit: () =>
|
|
287
|
+
onView: () => M(`datasets/${e.id}`),
|
|
288
|
+
onEdit: () => M(`datasets/${e.id}/edit`),
|
|
289
289
|
extraItems: e.status === "AVAILABLE" || e.status === "ARCHIVED" ? [] : [{
|
|
290
290
|
key: "publish",
|
|
291
|
-
label:
|
|
291
|
+
label: N("cosmicintersection.common.publish", "Publish"),
|
|
292
292
|
onSelect: () => void Q(e)
|
|
293
293
|
}],
|
|
294
294
|
onDelete: () => $(e),
|
|
295
|
-
deleteLabel:
|
|
295
|
+
deleteLabel: N("cosmicintersection.pages.datasets.archive", "Archive dataset")
|
|
296
296
|
})
|
|
297
297
|
})
|
|
298
298
|
]
|
|
299
299
|
}, e.id)) })] })
|
|
300
300
|
}),
|
|
301
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ h("ul", {
|
|
302
302
|
className: "space-y-3 md:hidden",
|
|
303
|
-
children:
|
|
303
|
+
children: J.map((e) => /* @__PURE__ */ h("li", { children: /* @__PURE__ */ g("div", {
|
|
304
304
|
role: "button",
|
|
305
305
|
tabIndex: 0,
|
|
306
|
-
"aria-label":
|
|
307
|
-
onClick: () =>
|
|
306
|
+
"aria-label": N("cosmicintersection.common.open", "Open {{name}}", { name: e.name }),
|
|
307
|
+
onClick: () => M(`datasets/${e.id}`),
|
|
308
308
|
onKeyDown: (t) => {
|
|
309
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
309
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), M(`datasets/${e.id}`));
|
|
310
310
|
},
|
|
311
311
|
className: "flex flex-col gap-3 rounded-card border border-border-default bg-bg-elevated p-4 outline-none transition-colors hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
312
312
|
children: [
|
|
313
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ g("div", {
|
|
314
314
|
className: "flex items-start justify-between gap-3",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ g("div", {
|
|
316
316
|
className: "min-w-0",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ h("p", {
|
|
318
318
|
className: "font-medium text-text-primary",
|
|
319
319
|
children: e.name
|
|
320
|
-
}), e.description ? /* @__PURE__ */
|
|
320
|
+
}), e.description ? /* @__PURE__ */ h("p", {
|
|
321
321
|
className: "mt-0.5 line-clamp-2 text-xs text-text-secondary",
|
|
322
322
|
children: e.description
|
|
323
323
|
}) : null]
|
|
324
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ h("div", {
|
|
325
325
|
onClick: (e) => e.stopPropagation(),
|
|
326
|
-
children: /* @__PURE__ */
|
|
327
|
-
ariaLabel:
|
|
326
|
+
children: /* @__PURE__ */ h(o, {
|
|
327
|
+
ariaLabel: N("cosmicintersection.common.actionsFor", "Actions for {{name}}", { name: e.name }),
|
|
328
328
|
entityName: e.name,
|
|
329
|
-
onView: () =>
|
|
330
|
-
onEdit: () =>
|
|
329
|
+
onView: () => M(`datasets/${e.id}`),
|
|
330
|
+
onEdit: () => M(`datasets/${e.id}/edit`),
|
|
331
331
|
extraItems: e.status === "AVAILABLE" || e.status === "ARCHIVED" ? [] : [{
|
|
332
332
|
key: "publish",
|
|
333
|
-
label:
|
|
333
|
+
label: N("cosmicintersection.common.publish", "Publish"),
|
|
334
334
|
onSelect: () => void Q(e)
|
|
335
335
|
}],
|
|
336
336
|
onDelete: () => $(e),
|
|
337
|
-
deleteLabel:
|
|
337
|
+
deleteLabel: N("cosmicintersection.pages.datasets.archive", "Archive dataset")
|
|
338
338
|
})
|
|
339
339
|
})]
|
|
340
340
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ g("div", {
|
|
342
342
|
className: "flex flex-wrap items-center gap-1.5",
|
|
343
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ h(u, { status: e.status }), /* @__PURE__ */ h(u, { status: e.accessLevel })]
|
|
344
344
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ g("dl", {
|
|
346
346
|
className: "grid grid-cols-2 gap-x-4 gap-y-1 text-xs",
|
|
347
347
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ g("div", {
|
|
349
349
|
className: "flex justify-between gap-2",
|
|
350
|
-
children: [/* @__PURE__ */
|
|
350
|
+
children: [/* @__PURE__ */ h("dt", {
|
|
351
351
|
className: "text-text-secondary",
|
|
352
|
-
children:
|
|
353
|
-
}), /* @__PURE__ */
|
|
352
|
+
children: N("cosmicintersection.common.format", "Format")
|
|
353
|
+
}), /* @__PURE__ */ h("dd", {
|
|
354
354
|
className: "text-text-primary",
|
|
355
355
|
children: e.format || "—"
|
|
356
356
|
})]
|
|
357
357
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ g("div", {
|
|
359
359
|
className: "flex justify-between gap-2",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
360
|
+
children: [/* @__PURE__ */ h("dt", {
|
|
361
361
|
className: "text-text-secondary",
|
|
362
|
-
children:
|
|
363
|
-
}), /* @__PURE__ */
|
|
362
|
+
children: N("cosmicintersection.common.size", "Size")
|
|
363
|
+
}), /* @__PURE__ */ h("dd", {
|
|
364
364
|
className: "tabular-nums text-text-primary",
|
|
365
|
-
children:
|
|
365
|
+
children: A(e.sizeBytes)
|
|
366
366
|
})]
|
|
367
367
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ g("div", {
|
|
369
369
|
className: "flex justify-between gap-2",
|
|
370
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ h("dt", {
|
|
371
371
|
className: "text-text-secondary",
|
|
372
|
-
children:
|
|
373
|
-
}), /* @__PURE__ */
|
|
372
|
+
children: N("cosmicintersection.common.updated", "Updated")
|
|
373
|
+
}), /* @__PURE__ */ h("dd", {
|
|
374
374
|
className: "text-text-primary",
|
|
375
|
-
children:
|
|
375
|
+
children: j(e.updatedAt)
|
|
376
376
|
})]
|
|
377
377
|
})
|
|
378
378
|
]
|
|
379
379
|
}),
|
|
380
|
-
e.tags.length > 0 ? /* @__PURE__ */
|
|
380
|
+
e.tags.length > 0 ? /* @__PURE__ */ g("div", {
|
|
381
381
|
className: "flex flex-wrap gap-1",
|
|
382
|
-
children: [e.tags.slice(0, 4).map((e) => /* @__PURE__ */
|
|
382
|
+
children: [e.tags.slice(0, 4).map((e) => /* @__PURE__ */ h(_, {
|
|
383
383
|
variant: "secondary",
|
|
384
384
|
className: "text-xs",
|
|
385
385
|
children: e
|
|
386
|
-
}, e)), e.tags.length > 4 ? /* @__PURE__ */
|
|
386
|
+
}, e)), e.tags.length > 4 ? /* @__PURE__ */ g("span", {
|
|
387
387
|
className: "text-xs text-text-secondary",
|
|
388
388
|
children: ["+", e.tags.length - 4]
|
|
389
389
|
}) : null]
|
|
@@ -391,21 +391,21 @@ function N() {
|
|
|
391
391
|
]
|
|
392
392
|
}) }, e.id))
|
|
393
393
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
offset:
|
|
396
|
-
limit:
|
|
397
|
-
loadedCount:
|
|
398
|
-
hasMore: !!
|
|
399
|
-
onPrev:
|
|
400
|
-
onNext:
|
|
401
|
-
itemLabel:
|
|
402
|
-
loading:
|
|
394
|
+
/* @__PURE__ */ h(c, {
|
|
395
|
+
offset: U.offset,
|
|
396
|
+
limit: U.limit,
|
|
397
|
+
loadedCount: J.length,
|
|
398
|
+
hasMore: !!ve?.hasMore,
|
|
399
|
+
onPrev: U.prevPage,
|
|
400
|
+
onNext: U.nextPage,
|
|
401
|
+
itemLabel: N("cosmicintersection.pages.datasets.itemLabel", "datasets"),
|
|
402
|
+
loading: G
|
|
403
403
|
})
|
|
404
404
|
] })]
|
|
405
405
|
})
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
//#endregion
|
|
409
|
-
export {
|
|
409
|
+
export { M as default };
|
|
410
410
|
|
|
411
411
|
//# sourceMappingURL=DatasetsPage.js.map
|