@burdenoff/microfe-cosmicintersection 2026.1108.2 → 2026.1109.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/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.js +213 -213
- 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
|
@@ -3,16 +3,16 @@ import { useCosCollectionsQuery as t, useCosDatasetsQuery as n, useCosSemanticSe
|
|
|
3
3
|
import { useTr as ee } from "../../../shared/hooks/useTr.js";
|
|
4
4
|
import { EmptyState as te } from "../../components/EmptyState.js";
|
|
5
5
|
import { ErrorState as a } from "../../components/ErrorState.js";
|
|
6
|
-
import { LoadingState as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { PageLayout as
|
|
9
|
-
import { StatusBadge as
|
|
6
|
+
import { LoadingState as ne } from "../../components/LoadingState.js";
|
|
7
|
+
import { cn as re } from "../../utils/cn.js";
|
|
8
|
+
import { PageLayout as ie } from "../../components/PageLayout.js";
|
|
9
|
+
import { StatusBadge as o, formatEnumLabel as s } from "../../components/StatusBadge.js";
|
|
10
10
|
import "../../components/index.js";
|
|
11
|
-
import { FacetPanel as
|
|
12
|
-
import { useEffect as
|
|
13
|
-
import { jsx as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { FacetPanel as ae } from "../../components/FacetPanel.js";
|
|
12
|
+
import { useEffect as oe, useMemo as c, useState as l } from "react";
|
|
13
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
14
|
+
import { Badge as f, Button as p, Input as m, Select as se, SelectContent as ce, SelectItem as le, SelectTrigger as ue, SelectValue as de } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
import { ArrowUpDown as h, Database as g, FileText as _, Rows3 as fe, Search as v, SlidersHorizontal as pe, Sparkles as y, Table as me, X as b } from "lucide-react";
|
|
16
16
|
//#region src/cosmicintersection/pages/discovery/DiscoveryPage.tsx
|
|
17
17
|
var x = 200, he = 300, ge = [
|
|
18
18
|
"PUBLIC",
|
|
@@ -45,8 +45,8 @@ function ve(e) {
|
|
|
45
45
|
return Number.isFinite(t) && t > 0 ? `${t.toLocaleString()} rows` : "no rows";
|
|
46
46
|
}
|
|
47
47
|
function C() {
|
|
48
|
-
let { navigate: C } = e(), w = ee(), [T, E] =
|
|
49
|
-
|
|
48
|
+
let { navigate: C } = e(), w = ee(), [T, E] = l(""), [D, ye] = l(""), [O, k] = l({}), [A, j] = l("relevance"), [M, N] = l(!1), [P, F] = l(""), [I, L] = l(""), [be, R] = r();
|
|
49
|
+
oe(() => {
|
|
50
50
|
let e = window.setTimeout(() => ye(T.trim()), he);
|
|
51
51
|
return () => window.clearTimeout(e);
|
|
52
52
|
}, [T]);
|
|
@@ -59,15 +59,15 @@ function C() {
|
|
|
59
59
|
}), B = i({ pagination: {
|
|
60
60
|
limit: x,
|
|
61
61
|
offset: 0
|
|
62
|
-
} }), V = t(), H =
|
|
62
|
+
} }), V = t(), H = c(() => z.data?.cosListDatasets?.items ?? [], [z.data]), xe = !!z.data?.cosListDatasets?.pageInfo?.hasMore, U = c(() => B.data?.cosListSources?.items ?? [], [B.data]), W = c(() => V.data?.cosListCollections ?? [], [V.data]), G = c(() => {
|
|
63
63
|
let e = /* @__PURE__ */ new Map();
|
|
64
64
|
for (let t of U) e.set(t.id, t.type);
|
|
65
65
|
return e;
|
|
66
|
-
}, [U]), K =
|
|
66
|
+
}, [U]), K = c(() => {
|
|
67
67
|
let e = /* @__PURE__ */ new Map();
|
|
68
68
|
for (let t of W) e.set(t.id, t.name);
|
|
69
69
|
return e;
|
|
70
|
-
}, [W]), q =
|
|
70
|
+
}, [W]), q = c(() => {
|
|
71
71
|
let e = O.instrument ?? [], t = O.access ?? [], n = O.format ?? [], r = O.mission ?? [];
|
|
72
72
|
return {
|
|
73
73
|
instrument: (t) => {
|
|
@@ -79,7 +79,7 @@ function C() {
|
|
|
79
79
|
format: (e) => n.length === 0 || (e.format ? n.includes(e.format) : !1),
|
|
80
80
|
mission: (e) => r.length === 0 || (e.collectionId ? r.includes(e.collectionId) : !1)
|
|
81
81
|
};
|
|
82
|
-
}, [O, G]), J =
|
|
82
|
+
}, [O, G]), J = c(() => (e, t) => {
|
|
83
83
|
let n = 0;
|
|
84
84
|
for (let r of H) {
|
|
85
85
|
let i = !0;
|
|
@@ -90,7 +90,7 @@ function C() {
|
|
|
90
90
|
i && t(r) && (n += 1);
|
|
91
91
|
}
|
|
92
92
|
return n;
|
|
93
|
-
}, [H, q]), Se =
|
|
93
|
+
}, [H, q]), Se = c(() => {
|
|
94
94
|
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
95
95
|
for (let r of H) {
|
|
96
96
|
let i = r.sourceId ? G.get(r.sourceId) : void 0;
|
|
@@ -102,7 +102,7 @@ function C() {
|
|
|
102
102
|
label: "Instrument",
|
|
103
103
|
options: [...e].map((e) => ({
|
|
104
104
|
value: e,
|
|
105
|
-
label:
|
|
105
|
+
label: s(e),
|
|
106
106
|
count: J("instrument", (t) => t.sourceId ? G.get(t.sourceId) === e : !1)
|
|
107
107
|
})).sort((e, t) => t.count - e.count || e.label.localeCompare(t.label))
|
|
108
108
|
},
|
|
@@ -111,7 +111,7 @@ function C() {
|
|
|
111
111
|
label: "Access",
|
|
112
112
|
options: ge.map((e) => ({
|
|
113
113
|
value: e,
|
|
114
|
-
label:
|
|
114
|
+
label: s(e),
|
|
115
115
|
count: J("access", (t) => t.accessLevel === e)
|
|
116
116
|
}))
|
|
117
117
|
},
|
|
@@ -139,7 +139,7 @@ function C() {
|
|
|
139
139
|
G,
|
|
140
140
|
K,
|
|
141
141
|
J
|
|
142
|
-
]), Y =
|
|
142
|
+
]), Y = c(() => {
|
|
143
143
|
let e = [...H.filter((e) => q.instrument(e) && q.access(e) && q.format(e) && q.mission(e))];
|
|
144
144
|
switch (A) {
|
|
145
145
|
case "name":
|
|
@@ -182,32 +182,32 @@ function C() {
|
|
|
182
182
|
case "NOTEBOOK": return `notebooks/${e.id}`;
|
|
183
183
|
default: return null;
|
|
184
184
|
}
|
|
185
|
-
}, Te = z.loading && H.length === 0, Ee = z.error, De = /* @__PURE__ */
|
|
185
|
+
}, Te = z.loading && H.length === 0, Ee = z.error, De = /* @__PURE__ */ u(ae, {
|
|
186
186
|
groups: Se,
|
|
187
187
|
selected: O,
|
|
188
188
|
onToggle: Ce,
|
|
189
189
|
onClear: Z
|
|
190
190
|
});
|
|
191
|
-
return /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ u(ie, {
|
|
192
192
|
title: w("cosmicintersection.pages.discovery.title", "Discovery"),
|
|
193
193
|
description: w("cosmicintersection.pages.discovery.description", "Search and facet the federated science catalog — full-text across datasets, refined by instrument, access, format and mission."),
|
|
194
|
-
actions: /* @__PURE__ */
|
|
194
|
+
actions: /* @__PURE__ */ d(p, {
|
|
195
195
|
type: "button",
|
|
196
196
|
variant: "outline",
|
|
197
197
|
onClick: () => C("datasets"),
|
|
198
|
-
children: [/* @__PURE__ */
|
|
198
|
+
children: [/* @__PURE__ */ u(me, { className: "size-4" }), w("cosmicintersection.pages.discovery.tableView", "Table view")]
|
|
199
199
|
}),
|
|
200
|
-
children: /* @__PURE__ */
|
|
200
|
+
children: /* @__PURE__ */ d("div", {
|
|
201
201
|
className: "space-y-5",
|
|
202
202
|
children: [
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ d("div", {
|
|
204
204
|
className: "relative",
|
|
205
205
|
children: [
|
|
206
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ u(v, {
|
|
207
207
|
className: "pointer-events-none absolute left-4 top-1/2 size-5 -translate-y-1/2 text-text-secondary",
|
|
208
208
|
"aria-hidden": "true"
|
|
209
209
|
}),
|
|
210
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ u(m, {
|
|
211
211
|
type: "search",
|
|
212
212
|
value: T,
|
|
213
213
|
onChange: (e) => E(e.target.value),
|
|
@@ -215,24 +215,24 @@ function C() {
|
|
|
215
215
|
"aria-label": w("cosmicintersection.pages.discovery.searchAriaLabel", "Search datasets"),
|
|
216
216
|
className: "h-12 rounded-card pl-12 pr-11 text-base"
|
|
217
217
|
}),
|
|
218
|
-
T ? /* @__PURE__ */
|
|
218
|
+
T ? /* @__PURE__ */ u("button", {
|
|
219
219
|
type: "button",
|
|
220
220
|
onClick: () => E(""),
|
|
221
221
|
"aria-label": w("cosmicintersection.pages.discovery.clearSearch", "Clear search"),
|
|
222
222
|
className: "absolute right-3 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-full text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
|
|
223
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ u(b, { className: "size-4" })
|
|
224
224
|
}) : null
|
|
225
225
|
]
|
|
226
226
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ d("div", {
|
|
228
228
|
className: "flex flex-col gap-2 sm:flex-row",
|
|
229
229
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ d("div", {
|
|
231
231
|
className: "relative flex-1",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ u(y, {
|
|
233
233
|
className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
|
|
234
234
|
"aria-hidden": "true"
|
|
235
|
-
}), /* @__PURE__ */
|
|
235
|
+
}), /* @__PURE__ */ u(m, {
|
|
236
236
|
type: "search",
|
|
237
237
|
value: P,
|
|
238
238
|
onChange: (e) => F(e.target.value),
|
|
@@ -244,34 +244,34 @@ function C() {
|
|
|
244
244
|
className: "rounded-card pl-9"
|
|
245
245
|
})]
|
|
246
246
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ d(p, {
|
|
248
248
|
type: "button",
|
|
249
249
|
variant: "outline",
|
|
250
250
|
onClick: Q,
|
|
251
251
|
disabled: R.loading,
|
|
252
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ u(y, { className: "size-4" }), R.loading ? w("cosmicintersection.pages.discovery.semanticSearching", "Searching…") : w("cosmicintersection.pages.discovery.semanticSearchAction", "Semantic search")]
|
|
253
253
|
}),
|
|
254
|
-
I ? /* @__PURE__ */
|
|
254
|
+
I ? /* @__PURE__ */ d(p, {
|
|
255
255
|
type: "button",
|
|
256
256
|
variant: "ghost",
|
|
257
257
|
onClick: $,
|
|
258
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ u(b, { className: "size-4" }), w("cosmicintersection.pages.discovery.clearSemantic", "Clear")]
|
|
259
259
|
}) : null
|
|
260
260
|
]
|
|
261
261
|
}),
|
|
262
|
-
R.error ? /* @__PURE__ */
|
|
262
|
+
R.error ? /* @__PURE__ */ u(a, {
|
|
263
263
|
message: w("cosmicintersection.pages.discovery.semanticError", "We could not run that semantic search. Please try again."),
|
|
264
264
|
onRetry: Q
|
|
265
265
|
}) : null,
|
|
266
|
-
R.data?.cosSemanticSearch && I ? /* @__PURE__ */
|
|
266
|
+
R.data?.cosSemanticSearch && I ? /* @__PURE__ */ d("section", {
|
|
267
267
|
className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-4",
|
|
268
268
|
children: [
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ d("div", {
|
|
270
270
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ u("h2", {
|
|
272
272
|
className: "text-sm font-semibold text-text-primary",
|
|
273
273
|
children: w("cosmicintersection.pages.discovery.semanticResultsTitle", "Semantic results for “{{query}}”", { query: I })
|
|
274
|
-
}), /* @__PURE__ */
|
|
274
|
+
}), /* @__PURE__ */ d("span", {
|
|
275
275
|
className: "text-xs text-text-tertiary",
|
|
276
276
|
children: [
|
|
277
277
|
R.data.cosSemanticSearch.total,
|
|
@@ -283,56 +283,56 @@ function C() {
|
|
|
283
283
|
]
|
|
284
284
|
})]
|
|
285
285
|
}),
|
|
286
|
-
R.data.cosSemanticSearch.expandedTerms.length > 0 ? /* @__PURE__ */
|
|
286
|
+
R.data.cosSemanticSearch.expandedTerms.length > 0 ? /* @__PURE__ */ u("p", {
|
|
287
287
|
className: "text-xs text-text-tertiary",
|
|
288
288
|
children: w("cosmicintersection.pages.discovery.semanticExpanded", "Also searched: {{terms}}", { terms: R.data.cosSemanticSearch.expandedTerms.join(", ") })
|
|
289
289
|
}) : null,
|
|
290
|
-
R.data.cosSemanticSearch.hits.length === 0 ? /* @__PURE__ */
|
|
290
|
+
R.data.cosSemanticSearch.hits.length === 0 ? /* @__PURE__ */ u("p", {
|
|
291
291
|
className: "text-sm text-text-secondary",
|
|
292
292
|
children: w("cosmicintersection.pages.discovery.semanticNoHits", "Nothing in the catalog matched that question. Embargoed datasets never appear without an active grant.")
|
|
293
|
-
}) : /* @__PURE__ */
|
|
293
|
+
}) : /* @__PURE__ */ u("ul", {
|
|
294
294
|
className: "space-y-2",
|
|
295
295
|
children: R.data.cosSemanticSearch.hits.map((e) => {
|
|
296
296
|
let t = we(e);
|
|
297
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ d("li", {
|
|
298
298
|
className: "rounded-card border border-border-default bg-bg-sunken p-3",
|
|
299
299
|
children: [
|
|
300
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ d("div", {
|
|
301
301
|
className: "flex flex-wrap items-center gap-2",
|
|
302
302
|
children: [
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ u(f, {
|
|
304
304
|
variant: "secondary",
|
|
305
305
|
className: "text-xs",
|
|
306
|
-
children:
|
|
306
|
+
children: s(e.entityType)
|
|
307
307
|
}),
|
|
308
|
-
t ? /* @__PURE__ */
|
|
308
|
+
t ? /* @__PURE__ */ u("button", {
|
|
309
309
|
type: "button",
|
|
310
310
|
onClick: () => C(t),
|
|
311
311
|
className: "text-left text-sm font-medium text-text-link underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus",
|
|
312
312
|
children: e.title
|
|
313
|
-
}) : /* @__PURE__ */
|
|
313
|
+
}) : /* @__PURE__ */ u("span", {
|
|
314
314
|
className: "text-sm font-medium text-text-primary",
|
|
315
315
|
children: e.title
|
|
316
316
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ u("span", {
|
|
318
318
|
className: "text-xs tabular-nums text-text-tertiary",
|
|
319
319
|
children: w("cosmicintersection.pages.discovery.semanticScore", "score {{score}}", { score: e.score.toFixed(2) })
|
|
320
320
|
})
|
|
321
321
|
]
|
|
322
322
|
}),
|
|
323
|
-
e.snippet ? /* @__PURE__ */
|
|
323
|
+
e.snippet ? /* @__PURE__ */ u("p", {
|
|
324
324
|
className: "mt-1 line-clamp-2 text-sm text-text-secondary",
|
|
325
325
|
children: e.snippet
|
|
326
326
|
}) : null,
|
|
327
|
-
e.evidence.length > 0 ? /* @__PURE__ */
|
|
327
|
+
e.evidence.length > 0 ? /* @__PURE__ */ u("ul", {
|
|
328
328
|
className: "mt-2 space-y-0.5",
|
|
329
|
-
children: e.evidence.slice(0, 3).map((e, t) => /* @__PURE__ */
|
|
329
|
+
children: e.evidence.slice(0, 3).map((e, t) => /* @__PURE__ */ d("li", {
|
|
330
330
|
className: "text-xs text-text-tertiary",
|
|
331
331
|
children: [
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ d("span", {
|
|
333
333
|
className: "font-medium text-text-secondary",
|
|
334
334
|
children: [
|
|
335
|
-
|
|
335
|
+
s(e.kind),
|
|
336
336
|
e.label ? ` · ${e.label}` : "",
|
|
337
337
|
":"
|
|
338
338
|
]
|
|
@@ -342,7 +342,7 @@ function C() {
|
|
|
342
342
|
]
|
|
343
343
|
}, t))
|
|
344
344
|
}) : null,
|
|
345
|
-
e.lineage.length > 0 ? /* @__PURE__ */
|
|
345
|
+
e.lineage.length > 0 ? /* @__PURE__ */ d("p", {
|
|
346
346
|
className: "mt-1 text-xs text-text-tertiary",
|
|
347
347
|
children: [
|
|
348
348
|
w("cosmicintersection.pages.discovery.semanticLineage", "Lineage"),
|
|
@@ -357,128 +357,128 @@ function C() {
|
|
|
357
357
|
})
|
|
358
358
|
]
|
|
359
359
|
}) : null,
|
|
360
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ u("div", {
|
|
361
361
|
className: "flex items-center justify-between gap-3 lg:hidden",
|
|
362
|
-
children: /* @__PURE__ */
|
|
362
|
+
children: /* @__PURE__ */ d(p, {
|
|
363
363
|
type: "button",
|
|
364
364
|
variant: "outline",
|
|
365
365
|
onClick: () => N((e) => !e),
|
|
366
366
|
"aria-expanded": M,
|
|
367
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ u(pe, { className: "size-4" }), X > 0 ? w("cosmicintersection.pages.discovery.filtersWithCount", "Filters ({{count}})", { count: X }) : w("cosmicintersection.pages.discovery.filters", "Filters")]
|
|
368
368
|
})
|
|
369
369
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ d("div", {
|
|
371
371
|
className: "flex flex-col gap-6 lg:flex-row",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
373
|
-
className:
|
|
374
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: [/* @__PURE__ */ u("aside", {
|
|
373
|
+
className: re("shrink-0 lg:block lg:w-60 lg:border-r lg:border-border-seam lg:pr-6", M ? "block" : "hidden"),
|
|
374
|
+
children: /* @__PURE__ */ u("div", {
|
|
375
375
|
className: "lg:sticky lg:top-0",
|
|
376
376
|
children: De
|
|
377
377
|
})
|
|
378
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ d("div", {
|
|
379
379
|
className: "min-w-0 flex-1 space-y-4",
|
|
380
380
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ d("div", {
|
|
382
382
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ d("div", {
|
|
384
384
|
className: "flex items-baseline gap-2",
|
|
385
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ u("span", {
|
|
386
386
|
className: "text-lg font-semibold tabular-nums text-text-primary",
|
|
387
387
|
children: Y.length
|
|
388
|
-
}), /* @__PURE__ */
|
|
388
|
+
}), /* @__PURE__ */ d("span", {
|
|
389
389
|
className: "text-sm text-text-secondary",
|
|
390
390
|
children: [Y.length === 1 ? w("cosmicintersection.pages.discovery.resultCountSingular", "dataset") : w("cosmicintersection.pages.discovery.resultCountPlural", "datasets"), D ? ` ${w("cosmicintersection.pages.discovery.matching", "matching “{{q}}”", { q: D })}` : ""]
|
|
391
391
|
})]
|
|
392
|
-
}), /* @__PURE__ */
|
|
392
|
+
}), /* @__PURE__ */ d("label", {
|
|
393
393
|
className: "flex items-center gap-2 text-sm",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ u(h, {
|
|
395
395
|
className: "size-4 text-text-secondary",
|
|
396
396
|
"aria-hidden": "true"
|
|
397
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ d(se, {
|
|
398
398
|
value: A,
|
|
399
399
|
onValueChange: (e) => j(e),
|
|
400
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ u(ue, {
|
|
401
401
|
"aria-label": w("cosmicintersection.pages.discovery.sortResults", "Sort results"),
|
|
402
402
|
className: "w-48",
|
|
403
|
-
children: /* @__PURE__ */
|
|
404
|
-
}), /* @__PURE__ */
|
|
403
|
+
children: /* @__PURE__ */ u(de, {})
|
|
404
|
+
}), /* @__PURE__ */ u(ce, { children: Object.keys(S).map((e) => /* @__PURE__ */ u(le, {
|
|
405
405
|
value: e,
|
|
406
406
|
children: S[e]
|
|
407
407
|
}, e)) })]
|
|
408
408
|
})]
|
|
409
409
|
})]
|
|
410
410
|
}),
|
|
411
|
-
xe ? /* @__PURE__ */
|
|
411
|
+
xe ? /* @__PURE__ */ u("p", {
|
|
412
412
|
className: "rounded-card border border-border-default bg-bg-sunken px-3 py-2 text-xs text-text-secondary",
|
|
413
413
|
children: w("cosmicintersection.pages.discovery.poolLimitNotice", "Showing facets and results for the first {{limit}} matches. Refine your search to narrow the set.", { limit: x })
|
|
414
414
|
}) : null,
|
|
415
|
-
Te ? /* @__PURE__ */
|
|
415
|
+
Te ? /* @__PURE__ */ u(ne, {
|
|
416
416
|
variant: "rows",
|
|
417
417
|
rows: 6,
|
|
418
418
|
label: w("cosmicintersection.pages.discovery.loading", "Searching the catalog…")
|
|
419
|
-
}) : Ee ? /* @__PURE__ */
|
|
419
|
+
}) : Ee ? /* @__PURE__ */ u(a, {
|
|
420
420
|
message: w("cosmicintersection.pages.discovery.error", "We could not run that search. Please try again."),
|
|
421
421
|
onRetry: () => void z.refetch()
|
|
422
|
-
}) : Y.length === 0 ? /* @__PURE__ */
|
|
423
|
-
icon:
|
|
422
|
+
}) : Y.length === 0 ? /* @__PURE__ */ u(te, {
|
|
423
|
+
icon: v,
|
|
424
424
|
title: D || X > 0 ? w("cosmicintersection.pages.discovery.noDatasetsMatch", "No datasets match") : w("cosmicintersection.pages.discovery.startExploring", "Start exploring"),
|
|
425
425
|
description: D || X > 0 ? w("cosmicintersection.pages.discovery.noDatasetsMatchDescription", "Try a broader search term or clear some facets.") : w("cosmicintersection.pages.discovery.startExploringDescription", "Search by name, description or tag, or pick a facet to browse the catalog."),
|
|
426
|
-
action: X > 0 ? /* @__PURE__ */ p
|
|
426
|
+
action: X > 0 ? /* @__PURE__ */ u(p, {
|
|
427
427
|
type: "button",
|
|
428
428
|
variant: "outline",
|
|
429
429
|
onClick: Z,
|
|
430
430
|
children: w("cosmicintersection.pages.discovery.clearFilters", "Clear filters")
|
|
431
431
|
}) : void 0
|
|
432
|
-
}) : /* @__PURE__ */
|
|
432
|
+
}) : /* @__PURE__ */ u("div", {
|
|
433
433
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3",
|
|
434
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
434
|
+
children: Y.map((e) => /* @__PURE__ */ d("button", {
|
|
435
435
|
type: "button",
|
|
436
436
|
onClick: () => C(`datasets/${e.id}`),
|
|
437
437
|
className: "group flex flex-col overflow-hidden rounded-card border border-border-default bg-bg-elevated text-left outline-none transition-colors hover:border-border-strong hover:bg-bg-sunken focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ u("div", { className: "h-1 w-full bg-gradient-to-r from-accent-blue via-accent-purple to-accent-teal" }), /* @__PURE__ */ d("div", {
|
|
439
439
|
className: "flex flex-1 flex-col gap-3 p-4",
|
|
440
440
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ u("h3", {
|
|
442
442
|
className: "line-clamp-2 text-sm font-semibold text-text-primary",
|
|
443
443
|
children: e.name
|
|
444
444
|
}),
|
|
445
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ d("div", {
|
|
446
446
|
className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-secondary",
|
|
447
447
|
children: [
|
|
448
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ d("span", {
|
|
449
449
|
className: "inline-flex items-center gap-1",
|
|
450
|
-
children: [/* @__PURE__ */
|
|
450
|
+
children: [/* @__PURE__ */ u(_, {
|
|
451
451
|
className: "size-3.5",
|
|
452
452
|
"aria-hidden": "true"
|
|
453
453
|
}), e.format || "No format"]
|
|
454
454
|
}),
|
|
455
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ d("span", {
|
|
456
456
|
className: "inline-flex items-center gap-1",
|
|
457
|
-
children: [/* @__PURE__ */
|
|
457
|
+
children: [/* @__PURE__ */ u(g, {
|
|
458
458
|
className: "size-3.5",
|
|
459
459
|
"aria-hidden": "true"
|
|
460
460
|
}), _e(e.sizeBytes)]
|
|
461
461
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ d("span", {
|
|
463
463
|
className: "inline-flex items-center gap-1",
|
|
464
|
-
children: [/* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ u(fe, {
|
|
465
465
|
className: "size-3.5",
|
|
466
466
|
"aria-hidden": "true"
|
|
467
467
|
}), ve(e.rowCount)]
|
|
468
468
|
})
|
|
469
469
|
]
|
|
470
470
|
}),
|
|
471
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ d("div", {
|
|
472
472
|
className: "flex flex-wrap items-center gap-1.5",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
473
|
+
children: [/* @__PURE__ */ u(o, { status: e.status }), /* @__PURE__ */ u(o, { status: e.accessLevel })]
|
|
474
474
|
}),
|
|
475
|
-
e.tags.length > 0 ? /* @__PURE__ */
|
|
475
|
+
e.tags.length > 0 ? /* @__PURE__ */ d("div", {
|
|
476
476
|
className: "mt-auto flex flex-wrap gap-1 pt-1",
|
|
477
|
-
children: [e.tags.slice(0, 3).map((e) => /* @__PURE__ */
|
|
477
|
+
children: [e.tags.slice(0, 3).map((e) => /* @__PURE__ */ u(f, {
|
|
478
478
|
variant: "secondary",
|
|
479
479
|
className: "text-xs",
|
|
480
480
|
children: e
|
|
481
|
-
}, e)), e.tags.length > 3 ? /* @__PURE__ */
|
|
481
|
+
}, e)), e.tags.length > 3 ? /* @__PURE__ */ d("span", {
|
|
482
482
|
className: "text-xs text-text-secondary",
|
|
483
483
|
children: ["+", e.tags.length - 3]
|
|
484
484
|
}) : null]
|