@burdenoff/microfe-cosmicintersection 2026.1101.1 → 2026.1101.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cosmicintersection/api/tagsApi.d.ts +100 -0
  2. package/dist/cosmicintersection/api/tagsApi.d.ts.map +1 -0
  3. package/dist/cosmicintersection/api/tagsApi.js +110 -0
  4. package/dist/cosmicintersection/api/tagsApi.js.map +1 -0
  5. package/dist/cosmicintersection/components/EntityTagsField.d.ts +5 -5
  6. package/dist/cosmicintersection/components/EntityTagsField.js.map +1 -1
  7. package/dist/cosmicintersection/components/ScienceCanvas.d.ts +17 -0
  8. package/dist/cosmicintersection/components/ScienceCanvas.d.ts.map +1 -0
  9. package/dist/cosmicintersection/components/ScienceCanvas.js +791 -0
  10. package/dist/cosmicintersection/components/ScienceCanvas.js.map +1 -0
  11. package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts +27 -0
  12. package/dist/cosmicintersection/components/WorkspaceTagsPicker.d.ts.map +1 -0
  13. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +141 -0
  14. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js.map +1 -0
  15. package/dist/cosmicintersection/components/index.d.ts +3 -0
  16. package/dist/cosmicintersection/components/index.d.ts.map +1 -1
  17. package/dist/cosmicintersection/components/index.js +8 -5
  18. package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts +49 -0
  19. package/dist/cosmicintersection/hooks/useEntityTagSync.d.ts.map +1 -0
  20. package/dist/cosmicintersection/hooks/useEntityTagSync.js +86 -0
  21. package/dist/cosmicintersection/hooks/useEntityTagSync.js.map +1 -0
  22. package/dist/cosmicintersection/lib/visualization.d.ts +189 -0
  23. package/dist/cosmicintersection/lib/visualization.d.ts.map +1 -0
  24. package/dist/cosmicintersection/lib/visualization.js +298 -0
  25. package/dist/cosmicintersection/lib/visualization.js.map +1 -0
  26. package/dist/cosmicintersection/lib/visualizationSamples.d.ts +80 -0
  27. package/dist/cosmicintersection/lib/visualizationSamples.d.ts.map +1 -0
  28. package/dist/cosmicintersection/pages/analyses/AnalysesPage.d.ts.map +1 -1
  29. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +11 -11
  30. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  31. package/dist/cosmicintersection/pages/collections/CollectionFormPage.d.ts.map +1 -1
  32. package/dist/cosmicintersection/pages/collections/CollectionFormPage.js +75 -74
  33. package/dist/cosmicintersection/pages/collections/CollectionFormPage.js.map +1 -1
  34. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  35. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +115 -106
  36. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js.map +1 -1
  37. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.d.ts.map +1 -1
  38. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js +103 -101
  39. package/dist/cosmicintersection/pages/datasets/DatasetFormPage.js.map +1 -1
  40. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.d.ts.map +1 -1
  41. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js +141 -139
  42. package/dist/cosmicintersection/pages/notebooks/NotebookFormPage.js.map +1 -1
  43. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.d.ts.map +1 -1
  44. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +213 -211
  45. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  46. package/dist/cosmicintersection/pages/sources/SourceFormPage.d.ts.map +1 -1
  47. package/dist/cosmicintersection/pages/sources/SourceFormPage.js +110 -107
  48. package/dist/cosmicintersection/pages/sources/SourceFormPage.js.map +1 -1
  49. package/dist/stories/ScienceCanvas.stories.d.ts +21 -0
  50. package/dist/stories/ScienceCanvas.stories.d.ts.map +1 -0
  51. package/dist/stories/WorkspaceTagsPicker.stories.d.ts +12 -0
  52. package/dist/stories/WorkspaceTagsPicker.stories.d.ts.map +1 -0
  53. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DatasetDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/cosmicintersection/pages/datasets/DatasetDetailPage.tsx"],"names":[],"mappings":"AAkJA,MAAM,CAAC,OAAO,UAAU,iBAAiB,gCAqoBxC"}
1
+ {"version":3,"file":"DatasetDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/cosmicintersection/pages/datasets/DatasetDetailPage.tsx"],"names":[],"mappings":"AAmJA,MAAM,CAAC,OAAO,UAAU,iBAAiB,gCAspBxC"}
@@ -7,20 +7,21 @@ import { ErrorState as se } from "../../components/ErrorState.js";
7
7
  import { LoadingState as o } from "../../components/LoadingState.js";
8
8
  import { ActivityFeedPanel as ce } from "../../components/ActivityFeedPanel.js";
9
9
  import { DiscussionPanel as le } from "../../components/DiscussionPanel.js";
10
- import { EntityTagsField as ue } from "../../components/EntityTagsField.js";
10
+ import { WorkspaceTagsPicker as ue } from "../../components/WorkspaceTagsPicker.js";
11
11
  import { useFileDownloadUrl as de } from "../../components/FileUploadField.js";
12
12
  import { PageLayout as s } from "../../components/PageLayout.js";
13
13
  import { StatusBadge as c, formatEnumLabel as l } from "../../components/StatusBadge.js";
14
14
  import "../../components/index.js";
15
15
  import { useSelectedRecord as fe } from "../../lib/useSelectedRecord.js";
16
- import { LineageGraph as pe, buildDatasetLineage as me } from "../../components/LineageGraph.js";
17
- import { useMemo as he, useState as u } from "react";
18
- import { Fragment as ge, jsx as d, jsxs as f } from "react/jsx-runtime";
19
- import { useParams as _e } from "react-router";
20
- import { ArrowRight as ve, Boxes as ye, Columns3 as p, Database as be, Download as xe, GitBranch as Se, History as Ce, MessagesSquare as we, Pencil as Te, Plus as Ee, Radar as De, Share2 as Oe, TriangleAlert as m } from "lucide-react";
21
- import { Badge as h, Button as g, Checkbox as ke, Dialog as Ae, DialogContent as je, DialogDescription as Me, DialogFooter as Ne, DialogHeader as Pe, DialogTitle as Fe, Input as _, Label as v, Select as Ie, SelectContent as Le, SelectItem as Re, SelectTrigger as ze, SelectValue as Be, Table as Ve, TableBody as He, TableCell as y, TableHead as b, TableHeader as Ue, TableRow as x, Textarea as We } from "@burdenoff/fe-libs/ui";
16
+ import { useEntityTagSync as pe } from "../../hooks/useEntityTagSync.js";
17
+ import { LineageGraph as me, buildDatasetLineage as he } from "../../components/LineageGraph.js";
18
+ import { useMemo as ge, useState as u } from "react";
19
+ import { Fragment as _e, jsx as d, jsxs as f } from "react/jsx-runtime";
20
+ import { useParams as ve } from "react-router";
21
+ import { ArrowRight as ye, Boxes as be, Columns3 as p, Database as xe, Download as Se, GitBranch as Ce, History as we, MessagesSquare as Te, Pencil as Ee, Plus as De, Radar as Oe, Share2 as ke, TriangleAlert as m } from "lucide-react";
22
+ import { Badge as h, Button as g, Checkbox as Ae, Dialog as je, DialogContent as Me, DialogDescription as Ne, DialogFooter as Pe, DialogHeader as Fe, DialogTitle as Ie, Input as _, Label as v, Select as Le, SelectContent as Re, SelectItem as ze, SelectTrigger as Be, SelectValue as Ve, Table as He, TableBody as Ue, TableCell as y, TableHead as b, TableHeader as We, TableRow as x, Textarea as Ge } from "@burdenoff/fe-libs/ui";
22
23
  //#region src/cosmicintersection/pages/datasets/DatasetDetailPage.tsx
23
- var Ge = [
24
+ var Ke = [
24
25
  "STRING",
25
26
  "INTEGER",
26
27
  "FLOAT",
@@ -39,7 +40,7 @@ var Ge = [
39
40
  function C(e) {
40
41
  return S.has(e.fieldType) && !e.unit;
41
42
  }
42
- function Ke(e) {
43
+ function qe(e) {
43
44
  if (!e) return "—";
44
45
  let t = Number(e);
45
46
  if (!Number.isFinite(t) || t <= 0) return "—";
@@ -72,53 +73,53 @@ function T({ label: e, value: t }) {
72
73
  });
73
74
  }
74
75
  function E() {
75
- let { id: S = "" } = _e(), { navigate: E } = e(), { selectedId: D, select: qe } = fe("field"), O = (e) => qe(D === e ? null : e), { data: k, loading: Je, error: Ye, refetch: A } = ee(S), j = k?.cosDataset ?? null, M = de(j?.file?.id).data?.getFileDownloadUrl ?? null, [Xe, { loading: N }] = ne(), [Ze] = i(), [Qe, { loading: P }] = ae(), [$e, { loading: F }] = n(), I = r({ datasetId: S }), L = ie({ pagination: {
76
+ let { id: S = "" } = ve(), { navigate: E } = e(), { selectedId: D, select: Je } = fe("field"), O = (e) => Je(D === e ? null : e), { data: k, loading: Ye, error: Xe, refetch: A } = ee(S), j = k?.cosDataset ?? null, M = de(j?.file?.id).data?.getFileDownloadUrl ?? null, [Ze, { loading: N }] = ne(), [Qe] = i(), [$e, { loading: P }] = ae(), { syncTags: et } = pe("COSMICINTERSECTION_DATASET"), [F, I] = u(!1), [tt, { loading: L }] = n(), R = r({ datasetId: S }), z = ie({ pagination: {
76
77
  limit: 100,
77
78
  offset: 0
78
- } }), R = te({ pagination: {
79
+ } }), B = te({ pagination: {
79
80
  limit: 100,
80
81
  offset: 0
81
- } }), z = re({ pagination: {
82
+ } }), V = re({ pagination: {
82
83
  limit: 100,
83
84
  offset: 0
84
- } }), B = k?.cosDataset ?? null, V = he(() => {
85
- if (!B) return {
85
+ } }), H = k?.cosDataset ?? null, U = ge(() => {
86
+ if (!H) return {
86
87
  nodes: [],
87
88
  edges: []
88
89
  };
89
90
  let e = /* @__PURE__ */ new Map();
90
- B.source && e.set(B.source.id, B.source);
91
+ H.source && e.set(H.source.id, H.source);
91
92
  let t = /* @__PURE__ */ new Map();
92
- B.collection && t.set(B.collection.id, B.collection);
93
+ H.collection && t.set(H.collection.id, H.collection);
93
94
  let n = {
94
- datasetsById: /* @__PURE__ */ new Map([[B.id, B]]),
95
+ datasetsById: /* @__PURE__ */ new Map([[H.id, H]]),
95
96
  sourcesById: e,
96
97
  collectionsById: t,
97
- runs: (L.data?.cosListRuns?.items ?? []).filter((e) => e.datasetId === B.id),
98
- notebooks: (R.data?.cosListNotebooks?.items ?? []).filter((e) => e.datasetIds.includes(B.id)),
99
- analyses: I.data?.cosListAnalyses ?? [],
100
- releases: (z.data?.cosListReleases?.items ?? []).filter((e) => e.datasetIds.includes(B.id))
98
+ runs: (z.data?.cosListRuns?.items ?? []).filter((e) => e.datasetId === H.id),
99
+ notebooks: (B.data?.cosListNotebooks?.items ?? []).filter((e) => e.datasetIds.includes(H.id)),
100
+ analyses: R.data?.cosListAnalyses ?? [],
101
+ releases: (V.data?.cosListReleases?.items ?? []).filter((e) => e.datasetIds.includes(H.id))
101
102
  };
102
- return me(B.id, n);
103
+ return he(H.id, n);
103
104
  }, [
104
- B,
105
- L.data,
105
+ H,
106
+ z.data,
107
+ B.data,
106
108
  R.data,
107
- I.data,
108
- z.data
109
- ]), et = L.loading || R.loading || I.loading || z.loading, [H, U] = u([]), [tt, nt] = u(null), W = j ? `${j.id}:${j.updatedAt}` : null;
110
- W && W !== tt && (nt(W), U(j?.tags ?? []));
111
- let rt = j != null && (H.length !== j.tags.length || H.some((e, t) => e !== j.tags[t])), [it, at] = u(!1), [G, K] = u(""), [q, J] = u("STRING"), [Y, ot] = u(""), [st, X] = u(""), [ct, lt] = u(""), [ut, dt] = u(!0), ft = () => {
112
- K(""), J("STRING"), ot(""), X(""), lt(""), dt(!0);
109
+ V.data
110
+ ]), nt = z.loading || B.loading || R.loading || V.loading, [W, G] = u([]), [rt, it] = u(null), K = j ? `${j.id}:${j.updatedAt}` : null;
111
+ K && K !== rt && (it(K), G(j?.tags ?? []));
112
+ let at = j != null && (W.length !== j.tags.length || W.some((e, t) => e !== j.tags[t])), [ot, st] = u(!1), [q, J] = u(""), [Y, X] = u("STRING"), [ct, lt] = u(""), [ut, dt] = u(""), [ft, pt] = u(""), [mt, ht] = u(!0), gt = () => {
113
+ J(""), X("STRING"), lt(""), dt(""), pt(""), ht(!0);
113
114
  }, Z = (e) => {
114
- at(e), e || ft();
115
+ st(e), e || gt();
115
116
  };
116
- if (Je) return /* @__PURE__ */ d(s, {
117
+ if (Ye) return /* @__PURE__ */ d(s, {
117
118
  title: "Dataset",
118
119
  backPath: "datasets",
119
120
  children: /* @__PURE__ */ d(o, { label: "Loading dataset…" })
120
121
  });
121
- if (Ye) return /* @__PURE__ */ d(s, {
122
+ if (Xe) return /* @__PURE__ */ d(s, {
122
123
  title: "Dataset",
123
124
  backPath: "datasets",
124
125
  children: /* @__PURE__ */ d(se, {
@@ -130,7 +131,7 @@ function E() {
130
131
  title: "Dataset",
131
132
  backPath: "datasets",
132
133
  children: /* @__PURE__ */ d(a, {
133
- icon: be,
134
+ icon: xe,
134
135
  title: "Dataset not found.",
135
136
  description: "This dataset may have been removed or is outside your current scope.",
136
137
  action: /* @__PURE__ */ d(g, {
@@ -140,31 +141,38 @@ function E() {
140
141
  })
141
142
  })
142
143
  });
143
- let Q = [...j.schemaFields ?? []].sort((e, t) => e.position - t.position), $ = Q.filter(C).length, pt = j.status !== "AVAILABLE" && j.status !== "ARCHIVED", mt = async () => {
144
- (await Xe({ variables: { id: j.id } })).data?.cosPublishDataset && (t.success("Dataset published", `“${j.name}” is now available.`), await A());
145
- }, ht = async () => {
146
- let e = await Ze({ variables: { id: j.id } });
144
+ let Q = [...j.schemaFields ?? []].sort((e, t) => e.position - t.position), $ = Q.filter(C).length, _t = j.status !== "AVAILABLE" && j.status !== "ARCHIVED", vt = async () => {
145
+ (await Ze({ variables: { id: j.id } })).data?.cosPublishDataset && (t.success("Dataset published", `“${j.name}” is now available.`), await A());
146
+ }, yt = async () => {
147
+ let e = await Qe({ variables: { id: j.id } });
147
148
  if (e.error) throw Error(e.error.message);
148
149
  if (!e.data?.cosArchiveDataset) throw t.error("Could not archive dataset", "The server did not confirm the change."), Error("Archive not confirmed");
149
150
  t.success("Dataset archived"), E("datasets");
150
- }, gt = async () => {
151
- (await Qe({ variables: {
152
- id: j.id,
153
- input: { tags: H }
154
- } })).data?.cosUpdateDataset && (t.success("Tags updated"), await A());
155
- }, _t = async () => {
156
- if (!G.trim()) {
151
+ }, bt = async () => {
152
+ if (F) return;
153
+ let e = j.tags;
154
+ I(!0);
155
+ try {
156
+ (await $e({ variables: {
157
+ id: j.id,
158
+ input: { tags: W }
159
+ } })).data?.cosUpdateDataset && (await et(j.id, W, e) && t.success("Tags updated"), await A());
160
+ } finally {
161
+ I(!1);
162
+ }
163
+ }, xt = async () => {
164
+ if (!q.trim()) {
157
165
  t.error("Field name is required");
158
166
  return;
159
167
  }
160
- (await $e({ variables: { input: {
168
+ (await tt({ variables: { input: {
161
169
  datasetId: j.id,
162
- name: G.trim(),
163
- fieldType: q,
164
- unit: Y.trim() || void 0,
165
- description: st.trim() || void 0,
166
- provenance: ct.trim() || void 0,
167
- nullable: ut
170
+ name: q.trim(),
171
+ fieldType: Y,
172
+ unit: ct.trim() || void 0,
173
+ description: ut.trim() || void 0,
174
+ provenance: ft.trim() || void 0,
175
+ nullable: mt
168
176
  } } })).data?.cosAddSchemaField && (t.success("Schema field added"), Z(!1), await A());
169
177
  };
170
178
  return /* @__PURE__ */ f(s, {
@@ -178,18 +186,18 @@ function E() {
178
186
  type: "button",
179
187
  variant: "outline",
180
188
  onClick: () => E(`datasets/${j.id}/edit`),
181
- children: [/* @__PURE__ */ d(Te, { className: "size-4" }), "Edit"]
189
+ children: [/* @__PURE__ */ d(Ee, { className: "size-4" }), "Edit"]
182
190
  }),
183
- pt ? /* @__PURE__ */ d(g, {
191
+ _t ? /* @__PURE__ */ d(g, {
184
192
  type: "button",
185
- onClick: () => void mt(),
193
+ onClick: () => void vt(),
186
194
  disabled: N,
187
195
  children: N ? "Publishing…" : "Publish"
188
196
  }) : null,
189
197
  /* @__PURE__ */ d(oe, {
190
198
  ariaLabel: `Actions for ${j.name}`,
191
199
  entityName: j.name,
192
- onDelete: () => ht(),
200
+ onDelete: () => yt(),
193
201
  deleteLabel: "Archive dataset"
194
202
  })
195
203
  ]
@@ -209,7 +217,7 @@ function E() {
209
217
  className: "inline-flex items-center gap-1.5 rounded-full border border-border-default bg-bg-elevated px-2.5 py-0.5 text-xs font-medium",
210
218
  title: "Current dataset version",
211
219
  children: [
212
- /* @__PURE__ */ d(Se, {
220
+ /* @__PURE__ */ d(Ce, {
213
221
  className: "size-3.5 text-text-tertiary",
214
222
  "aria-hidden": "true"
215
223
  }),
@@ -234,7 +242,7 @@ function E() {
234
242
  type: "button",
235
243
  onClick: () => E(`sources/${j.source?.id}`),
236
244
  className: "inline-flex items-center gap-1.5 text-text-primary underline-offset-2 hover:underline",
237
- children: [/* @__PURE__ */ d(De, {
245
+ children: [/* @__PURE__ */ d(Oe, {
238
246
  className: "size-4 text-text-secondary",
239
247
  "aria-hidden": "true"
240
248
  }), j.source.name]
@@ -249,7 +257,7 @@ function E() {
249
257
  type: "button",
250
258
  onClick: () => E(`collections/${j.collection?.id}`),
251
259
  className: "inline-flex items-center gap-1.5 text-text-primary underline-offset-2 hover:underline",
252
- children: [/* @__PURE__ */ d(ye, {
260
+ children: [/* @__PURE__ */ d(be, {
253
261
  className: "size-4 text-text-secondary",
254
262
  "aria-hidden": "true"
255
263
  }), j.collection.name]
@@ -266,7 +274,7 @@ function E() {
266
274
  label: "Size",
267
275
  value: /* @__PURE__ */ f("span", {
268
276
  className: "tabular-nums",
269
- children: [Ke(j.sizeBytes), Number(j.rowCount) > 0 ? /* @__PURE__ */ f("span", {
277
+ children: [qe(j.sizeBytes), Number(j.rowCount) > 0 ? /* @__PURE__ */ f("span", {
270
278
  className: "text-text-secondary",
271
279
  children: [
272
280
  " ",
@@ -296,7 +304,7 @@ function E() {
296
304
  target: "_blank",
297
305
  rel: "noopener noreferrer",
298
306
  className: "inline-flex items-center gap-1.5 text-text-primary underline-offset-2 hover:underline",
299
- children: [/* @__PURE__ */ d(xe, {
307
+ children: [/* @__PURE__ */ d(Se, {
300
308
  className: "size-4",
301
309
  "aria-hidden": "true"
302
310
  }), "Download file"]
@@ -316,7 +324,7 @@ function E() {
316
324
  className: "flex items-center justify-between gap-3",
317
325
  children: [/* @__PURE__ */ f("div", {
318
326
  className: "flex items-center gap-2",
319
- children: [/* @__PURE__ */ d(Oe, {
327
+ children: [/* @__PURE__ */ d(ke, {
320
328
  className: "size-5 text-text-secondary",
321
329
  "aria-hidden": "true"
322
330
  }), /* @__PURE__ */ d("h2", {
@@ -327,16 +335,16 @@ function E() {
327
335
  type: "button",
328
336
  onClick: () => E(`lineage/${j.id}`),
329
337
  className: "inline-flex items-center gap-1 rounded-button 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",
330
- children: ["View full lineage", /* @__PURE__ */ d(ve, {
338
+ children: ["View full lineage", /* @__PURE__ */ d(ye, {
331
339
  className: "size-4",
332
340
  "aria-hidden": "true"
333
341
  })]
334
342
  })]
335
- }), et && V.nodes.length <= 1 ? /* @__PURE__ */ d(o, { label: "Building lineage…" }) : V.nodes.length <= 1 ? /* @__PURE__ */ d("div", {
343
+ }), nt && U.nodes.length <= 1 ? /* @__PURE__ */ d(o, { label: "Building lineage…" }) : U.nodes.length <= 1 ? /* @__PURE__ */ d("div", {
336
344
  className: "rounded-card border border-dashed border-border-default bg-bg-sunken p-6 text-sm text-text-secondary",
337
345
  children: "No upstream or downstream provenance is linked to this dataset yet. Connect a source, run a pipeline, attach a notebook, or publish a release to build its lineage."
338
- }) : /* @__PURE__ */ d(pe, {
339
- model: V,
346
+ }) : /* @__PURE__ */ d(me, {
347
+ model: U,
340
348
  mode: "compact",
341
349
  onNavigate: E
342
350
  })]
@@ -379,15 +387,15 @@ function E() {
379
387
  variant: "outline",
380
388
  size: "sm",
381
389
  onClick: () => Z(!0),
382
- children: [/* @__PURE__ */ d(Ee, { className: "size-4" }), "Add field"]
390
+ children: [/* @__PURE__ */ d(De, { className: "size-4" }), "Add field"]
383
391
  })]
384
392
  }), Q.length === 0 ? /* @__PURE__ */ d(a, {
385
393
  icon: p,
386
394
  title: "No schema fields yet.",
387
395
  description: "Describe the columns in this dataset so consumers know what each field means."
388
- }) : /* @__PURE__ */ f(ge, { children: [/* @__PURE__ */ d("div", {
396
+ }) : /* @__PURE__ */ f(_e, { children: [/* @__PURE__ */ d("div", {
389
397
  className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
390
- children: /* @__PURE__ */ f(Ve, { children: [/* @__PURE__ */ d(Ue, { children: /* @__PURE__ */ f(x, { children: [
398
+ children: /* @__PURE__ */ f(He, { children: [/* @__PURE__ */ d(We, { children: /* @__PURE__ */ f(x, { children: [
391
399
  /* @__PURE__ */ d(b, {
392
400
  className: "w-10 text-right",
393
401
  children: "#"
@@ -397,7 +405,7 @@ function E() {
397
405
  /* @__PURE__ */ d(b, { children: "Unit" }),
398
406
  /* @__PURE__ */ d(b, { children: "Nullable" }),
399
407
  /* @__PURE__ */ d(b, { children: "Provenance" })
400
- ] }) }), /* @__PURE__ */ d(He, { children: Q.map((e, t) => /* @__PURE__ */ f(x, {
408
+ ] }) }), /* @__PURE__ */ d(Ue, { children: Q.map((e, t) => /* @__PURE__ */ f(x, {
401
409
  "aria-selected": D === e.id,
402
410
  "data-state": D === e.id ? "selected" : void 0,
403
411
  className: D === e.id ? "bg-bg-sunken" : void 0,
@@ -506,17 +514,18 @@ function E() {
506
514
  /* @__PURE__ */ f("section", {
507
515
  className: "space-y-3 rounded-card border border-border-default bg-bg-elevated p-5",
508
516
  children: [/* @__PURE__ */ d(ue, {
509
- value: H,
510
- onChange: U,
511
- label: "Dataset tags"
512
- }), rt ? /* @__PURE__ */ d("div", {
517
+ value: W,
518
+ onChange: G,
519
+ label: "Dataset tags",
520
+ disabled: P || F
521
+ }), at ? /* @__PURE__ */ d("div", {
513
522
  className: "flex justify-end",
514
523
  children: /* @__PURE__ */ d(g, {
515
524
  type: "button",
516
525
  size: "sm",
517
- onClick: () => void gt(),
518
- disabled: P,
519
- children: P ? "Saving…" : "Save tags"
526
+ onClick: () => void bt(),
527
+ disabled: P || F,
528
+ children: P || F ? "Saving…" : "Save tags"
520
529
  })
521
530
  }) : null]
522
531
  }),
@@ -524,7 +533,7 @@ function E() {
524
533
  className: "space-y-3",
525
534
  children: [/* @__PURE__ */ f("div", {
526
535
  className: "flex items-center gap-2",
527
- children: [/* @__PURE__ */ d(Ce, {
536
+ children: [/* @__PURE__ */ d(we, {
528
537
  className: "size-5 text-text-secondary",
529
538
  "aria-hidden": "true"
530
539
  }), /* @__PURE__ */ d("h2", {
@@ -540,7 +549,7 @@ function E() {
540
549
  className: "space-y-3",
541
550
  children: [/* @__PURE__ */ f("div", {
542
551
  className: "flex items-center gap-2",
543
- children: [/* @__PURE__ */ d(we, {
552
+ children: [/* @__PURE__ */ d(Te, {
544
553
  className: "size-5 text-text-secondary",
545
554
  "aria-hidden": "true"
546
555
  }), /* @__PURE__ */ d("h2", {
@@ -555,11 +564,11 @@ function E() {
555
564
  })]
556
565
  })
557
566
  ]
558
- }), /* @__PURE__ */ d(Ae, {
559
- open: it,
567
+ }), /* @__PURE__ */ d(je, {
568
+ open: ot,
560
569
  onOpenChange: Z,
561
- children: /* @__PURE__ */ f(je, { children: [
562
- /* @__PURE__ */ f(Pe, { children: [/* @__PURE__ */ d(Fe, { children: "Add schema field" }), /* @__PURE__ */ f(Me, { children: [
570
+ children: /* @__PURE__ */ f(Me, { children: [
571
+ /* @__PURE__ */ f(Fe, { children: [/* @__PURE__ */ d(Ie, { children: "Add schema field" }), /* @__PURE__ */ f(Ne, { children: [
563
572
  "Document a column in “",
564
573
  j.name,
565
574
  "” — its type, unit and provenance."
@@ -574,8 +583,8 @@ function E() {
574
583
  children: "Name"
575
584
  }), /* @__PURE__ */ d(_, {
576
585
  id: "cos-field-name",
577
- value: G,
578
- onChange: (e) => K(e.target.value),
586
+ value: q,
587
+ onChange: (e) => J(e.target.value),
579
588
  placeholder: "e.g. right_ascension",
580
589
  required: !0
581
590
  })]
@@ -587,14 +596,14 @@ function E() {
587
596
  children: [/* @__PURE__ */ d(v, {
588
597
  htmlFor: "cos-field-type",
589
598
  children: "Type"
590
- }), /* @__PURE__ */ f(Ie, {
591
- value: q,
592
- onValueChange: (e) => J(e),
593
- children: [/* @__PURE__ */ d(ze, {
599
+ }), /* @__PURE__ */ f(Le, {
600
+ value: Y,
601
+ onValueChange: (e) => X(e),
602
+ children: [/* @__PURE__ */ d(Be, {
594
603
  id: "cos-field-type",
595
604
  "aria-label": "Field type",
596
- children: /* @__PURE__ */ d(Be, {})
597
- }), /* @__PURE__ */ d(Le, { children: Ge.map((e) => /* @__PURE__ */ d(Re, {
605
+ children: /* @__PURE__ */ d(Ve, {})
606
+ }), /* @__PURE__ */ d(Re, { children: Ke.map((e) => /* @__PURE__ */ d(ze, {
598
607
  value: e,
599
608
  children: l(e)
600
609
  }, e)) })]
@@ -606,8 +615,8 @@ function E() {
606
615
  children: "Unit"
607
616
  }), /* @__PURE__ */ d(_, {
608
617
  id: "cos-field-unit",
609
- value: Y,
610
- onChange: (e) => ot(e.target.value),
618
+ value: ct,
619
+ onChange: (e) => lt(e.target.value),
611
620
  placeholder: "e.g. deg, mag, Jy"
612
621
  })]
613
622
  })]
@@ -617,10 +626,10 @@ function E() {
617
626
  children: [/* @__PURE__ */ d(v, {
618
627
  htmlFor: "cos-field-desc",
619
628
  children: "Description"
620
- }), /* @__PURE__ */ d(We, {
629
+ }), /* @__PURE__ */ d(Ge, {
621
630
  id: "cos-field-desc",
622
- value: st,
623
- onChange: (e) => X(e.target.value),
631
+ value: ut,
632
+ onChange: (e) => dt(e.target.value),
624
633
  rows: 2
625
634
  })]
626
635
  }),
@@ -631,31 +640,31 @@ function E() {
631
640
  children: "Provenance"
632
641
  }), /* @__PURE__ */ d(_, {
633
642
  id: "cos-field-prov",
634
- value: ct,
635
- onChange: (e) => lt(e.target.value),
643
+ value: ft,
644
+ onChange: (e) => pt(e.target.value),
636
645
  placeholder: "Where this field comes from"
637
646
  })]
638
647
  }),
639
648
  /* @__PURE__ */ f("label", {
640
649
  className: "flex items-center gap-2 text-sm text-text-primary",
641
- children: [/* @__PURE__ */ d(ke, {
642
- checked: ut,
643
- onCheckedChange: (e) => dt(e === !0)
650
+ children: [/* @__PURE__ */ d(Ae, {
651
+ checked: mt,
652
+ onCheckedChange: (e) => ht(e === !0)
644
653
  }), "Nullable (may contain empty values)"]
645
654
  })
646
655
  ]
647
656
  }),
648
- /* @__PURE__ */ f(Ne, { children: [/* @__PURE__ */ d(g, {
657
+ /* @__PURE__ */ f(Pe, { children: [/* @__PURE__ */ d(g, {
649
658
  type: "button",
650
659
  variant: "outline",
651
660
  onClick: () => Z(!1),
652
- disabled: F,
661
+ disabled: L,
653
662
  children: "Cancel"
654
663
  }), /* @__PURE__ */ d(g, {
655
664
  type: "button",
656
- onClick: () => void _t(),
657
- disabled: F,
658
- children: F ? "Adding…" : "Add field"
665
+ onClick: () => void xt(),
666
+ disabled: L,
667
+ children: L ? "Adding…" : "Add field"
659
668
  })] })
660
669
  ] })
661
670
  })]