@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.
Files changed (90) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +14 -0
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +71 -56
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
  6. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
  7. package/dist/cosmicintersection/api/databricksTransport.js +38 -0
  8. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
  9. package/dist/cosmicintersection/components/ActionMenu.js +17 -17
  10. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
  11. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
  12. package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
  13. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
  14. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
  15. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
  16. package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
  17. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
  18. package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
  19. package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
  20. package/dist/cosmicintersection/components/ErrorState.js +4 -4
  21. package/dist/cosmicintersection/components/FileUploadField.js +8 -8
  22. package/dist/cosmicintersection/components/Pagination.js +6 -6
  23. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
  24. package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
  25. package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
  26. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  27. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
  28. package/dist/cosmicintersection/components/index.js +7 -7
  29. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
  30. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
  31. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
  32. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  33. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
  34. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
  35. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
  36. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
  37. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
  38. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
  39. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
  40. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
  41. package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
  42. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
  43. package/dist/cosmicintersection/lib/databricksForm.js +31 -0
  44. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
  45. package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
  46. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
  47. package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
  48. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
  49. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
  50. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
  51. package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
  52. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
  53. package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
  54. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  55. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
  56. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  57. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
  58. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
  59. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
  60. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
  61. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
  62. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  63. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
  64. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  65. package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
  66. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
  67. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  68. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
  69. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
  70. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  71. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
  72. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  73. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
  74. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  75. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +193 -161
  76. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  77. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  78. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
  79. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  80. package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
  81. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
  82. package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
  83. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  84. package/dist/generated/wspace-operations.d.ts +243 -0
  85. package/dist/generated/wspace-operations.d.ts.map +1 -0
  86. package/dist/generated/wspace-operations.js +1472 -0
  87. package/dist/generated/wspace-operations.js.map +1 -0
  88. package/dist/generated/wspace-types.d.ts +183281 -30204
  89. package/dist/generated/wspace-types.d.ts.map +1 -1
  90. package/package.json +10 -7
@@ -0,0 +1,221 @@
1
+ import { useDatabricksQueueForm as e } from "../hooks/useDatabricksQueueForm.js";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { Button as i, Input as a, Label as o, Textarea as s } from "@burdenoff/fe-libs/ui";
4
+ //#region src/cosmicintersection/components/DatabricksQueueForm.tsx
5
+ function c({ request: c, runId: l, workspaceId: u, intentKey: d, onQueued: f, statusReady: p, canQueue: m }) {
6
+ let { connections: h, datasets: g, connectionOffset: _, datasetOffset: v, moreConnections: y, moreDatasets: b, connectionId: x, jobId: S, name: C, parameters: w, maximum: T, inputs: E, outputs: D, confirmedCost: O, busy: k, error: A, intent: j, setConnectionId: M, setJobId: N, setName: P, setParameters: F, setMaximum: I, setInputs: L, setOutputs: R, setConfirmedCost: z, loadOptions: B, submit: V, checkSavedRequest: H, resolveSavedRequest: U, startAnotherJob: W } = e({
7
+ request: c,
8
+ runId: l,
9
+ workspaceId: u,
10
+ intentKey: d,
11
+ onQueued: f,
12
+ statusReady: p,
13
+ canQueue: m
14
+ });
15
+ return /* @__PURE__ */ r("form", {
16
+ onSubmit: (e) => void V(e),
17
+ className: "space-y-4",
18
+ "aria-label": "Queue existing Databricks job",
19
+ children: [
20
+ /* @__PURE__ */ n("p", {
21
+ className: "text-sm text-text-secondary",
22
+ children: "Create an existing Custom API Key connection in Integrations first, with your AWS Databricks workspace base URL and PAT. Credentials stay in Integrations; do not paste them into this form. This queues an existing job and does not create a cluster or job."
23
+ }),
24
+ /* @__PURE__ */ n("p", {
25
+ className: "text-sm text-text-secondary",
26
+ children: "Saved request identity belongs to this tab. Inspect existing jobs before creating another request or opening another tab. Recovery confirms an existing execution or withdraws a request that has not created one; it does not cancel an existing job."
27
+ }),
28
+ m ? /* @__PURE__ */ r(t, { children: [
29
+ /* @__PURE__ */ r("div", {
30
+ className: "flex flex-wrap gap-2",
31
+ children: [/* @__PURE__ */ n(i, {
32
+ type: "button",
33
+ variant: "outline",
34
+ disabled: k,
35
+ onClick: () => void B("connections"),
36
+ children: _ ? y ? "Load more connections" : "Reload connections" : "Load available connections"
37
+ }), /* @__PURE__ */ n(i, {
38
+ type: "button",
39
+ variant: "outline",
40
+ disabled: k,
41
+ onClick: () => void B("datasets"),
42
+ children: v ? b ? "Load more datasets" : "Reload datasets" : "Load lineage datasets"
43
+ })]
44
+ }),
45
+ /* @__PURE__ */ r("div", {
46
+ className: "space-y-2",
47
+ children: [
48
+ /* @__PURE__ */ n(o, {
49
+ htmlFor: "databricks-connection",
50
+ children: "Existing Databricks connection"
51
+ }),
52
+ /* @__PURE__ */ r("select", {
53
+ id: "databricks-connection",
54
+ className: "w-full rounded-input border border-border-default bg-bg-primary p-2 text-text-primary",
55
+ value: x,
56
+ disabled: k,
57
+ onChange: (e) => M(e.target.value),
58
+ required: !0,
59
+ children: [/* @__PURE__ */ n("option", {
60
+ value: "",
61
+ children: "Choose an available connection"
62
+ }), h.map((e) => /* @__PURE__ */ n("option", {
63
+ value: e.id,
64
+ children: e.name
65
+ }, e.id))]
66
+ }),
67
+ /* @__PURE__ */ n("p", {
68
+ className: "text-xs text-text-secondary",
69
+ children: "Only active, usable Custom API Key connections in this workspace are listed. Their Databricks endpoint is validated by the service when queued."
70
+ })
71
+ ]
72
+ }),
73
+ /* @__PURE__ */ r("div", {
74
+ className: "space-y-2",
75
+ children: [/* @__PURE__ */ n(o, {
76
+ htmlFor: "databricks-job",
77
+ children: "Existing job ID"
78
+ }), /* @__PURE__ */ n(a, {
79
+ id: "databricks-job",
80
+ inputMode: "numeric",
81
+ value: S,
82
+ disabled: k,
83
+ onChange: (e) => N(e.target.value),
84
+ required: !0
85
+ })]
86
+ }),
87
+ /* @__PURE__ */ r("div", {
88
+ className: "space-y-2",
89
+ children: [/* @__PURE__ */ n(o, {
90
+ htmlFor: "databricks-name",
91
+ children: "Step name"
92
+ }), /* @__PURE__ */ n(a, {
93
+ id: "databricks-name",
94
+ maxLength: 255,
95
+ value: C,
96
+ disabled: k,
97
+ onChange: (e) => P(e.target.value),
98
+ required: !0
99
+ })]
100
+ }),
101
+ /* @__PURE__ */ r("div", {
102
+ className: "space-y-2",
103
+ children: [/* @__PURE__ */ n(o, {
104
+ htmlFor: "databricks-parameters",
105
+ children: "Nonsecret job parameters (JSON string values)"
106
+ }), /* @__PURE__ */ n(s, {
107
+ id: "databricks-parameters",
108
+ value: w,
109
+ disabled: k,
110
+ onChange: (e) => F(e.target.value)
111
+ })]
112
+ }),
113
+ /* @__PURE__ */ r("div", {
114
+ className: "space-y-2",
115
+ children: [
116
+ /* @__PURE__ */ n(o, {
117
+ htmlFor: "databricks-deadline",
118
+ children: "Monitoring deadline (seconds)"
119
+ }),
120
+ /* @__PURE__ */ n(a, {
121
+ id: "databricks-deadline",
122
+ type: "number",
123
+ min: 60,
124
+ max: 86400,
125
+ step: 1,
126
+ value: T,
127
+ disabled: k,
128
+ onChange: (e) => I(e.target.value),
129
+ required: !0
130
+ }),
131
+ /* @__PURE__ */ n("p", {
132
+ className: "text-xs text-text-secondary",
133
+ children: "Expiry requests cancellation; it does not prove that external compute stopped."
134
+ })
135
+ ]
136
+ }),
137
+ ["inputs", "outputs"].map((e) => /* @__PURE__ */ r("div", {
138
+ className: "space-y-2",
139
+ children: [/* @__PURE__ */ n(o, {
140
+ htmlFor: `databricks-${e}`,
141
+ children: e === "inputs" ? "Input datasets" : "Declared output datasets"
142
+ }), /* @__PURE__ */ n("select", {
143
+ id: `databricks-${e}`,
144
+ multiple: !0,
145
+ className: "w-full rounded-input border border-border-default bg-bg-primary p-2 text-text-primary",
146
+ value: e === "inputs" ? E : D,
147
+ disabled: k,
148
+ onChange: (t) => {
149
+ let n = Array.from(t.target.selectedOptions, (e) => e.value);
150
+ e === "inputs" ? L(n) : R(n);
151
+ },
152
+ children: g.map((e) => /* @__PURE__ */ n("option", {
153
+ value: e.id,
154
+ children: e.name
155
+ }, e.id))
156
+ })]
157
+ }, e)),
158
+ /* @__PURE__ */ n("p", {
159
+ className: "text-xs text-text-secondary",
160
+ children: "Dataset links are your declared lineage. They do not prove Unity Catalog discovery or that a job produced output."
161
+ }),
162
+ /* @__PURE__ */ r("label", {
163
+ className: "flex items-start gap-2 text-sm",
164
+ children: [/* @__PURE__ */ n("input", {
165
+ type: "checkbox",
166
+ checked: O,
167
+ disabled: k,
168
+ onChange: (e) => z(e.target.checked)
169
+ }), "I understand this job may incur charges in my Databricks account."]
170
+ })
171
+ ] }) : /* @__PURE__ */ n("p", {
172
+ className: "text-sm",
173
+ children: "Queuing requires a run in RUNNING state. Saved request recovery remains available."
174
+ }),
175
+ j ? /* @__PURE__ */ n("p", {
176
+ className: "text-sm",
177
+ children: j.confirmedExecutionId ? "The saved request has a confirmed execution." : "A request is saved. Identical-input retry keeps the same job intent; refresh status first if a response was lost."
178
+ }) : null,
179
+ A ? /* @__PURE__ */ n("p", {
180
+ role: "alert",
181
+ className: "text-sm text-status-error-text",
182
+ children: A
183
+ }) : null,
184
+ /* @__PURE__ */ r("div", {
185
+ className: "flex flex-wrap gap-2",
186
+ children: [
187
+ m ? /* @__PURE__ */ n(i, {
188
+ type: "submit",
189
+ disabled: k || !p || !O || !!j?.confirmedExecutionId,
190
+ children: k ? "Working…" : j ? "Retry same job request" : "Queue existing job"
191
+ }) : null,
192
+ /* @__PURE__ */ n(i, {
193
+ type: "button",
194
+ variant: "outline",
195
+ disabled: k,
196
+ onClick: H,
197
+ children: "Check saved request"
198
+ }),
199
+ j && !j.confirmedExecutionId ? /* @__PURE__ */ n(i, {
200
+ type: "button",
201
+ variant: "outline",
202
+ disabled: k,
203
+ onClick: () => void U(),
204
+ children: "Resolve saved request"
205
+ }) : null,
206
+ m && j?.confirmedExecutionId ? /* @__PURE__ */ n(i, {
207
+ type: "button",
208
+ variant: "outline",
209
+ disabled: k || !p,
210
+ onClick: W,
211
+ children: "Start another job"
212
+ }) : null
213
+ ]
214
+ })
215
+ ]
216
+ });
217
+ }
218
+ //#endregion
219
+ export { c as default };
220
+
221
+ //# sourceMappingURL=DatabricksQueueForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatabricksQueueForm.js","names":[],"sources":["../../../src/cosmicintersection/components/DatabricksQueueForm.tsx"],"sourcesContent":["import type { DocumentNode } from 'graphql';\nimport { Button, Input, Label, Textarea } from '@burdenoff/fe-libs/ui';\nimport { useDatabricksQueueForm } from '../hooks/useDatabricksQueueForm';\ntype Request = <T>(document: DocumentNode, variables: Record<string, unknown>) => Promise<T>;\n\nexport default function DatabricksQueueForm({\n request,\n runId,\n workspaceId,\n intentKey,\n onQueued,\n statusReady,\n canQueue,\n}: {\n request: Request;\n runId: string;\n workspaceId: string;\n intentKey: string;\n onQueued(): Promise<void>;\n statusReady: boolean;\n canQueue: boolean;\n}) {\n const {\n connections,\n datasets,\n connectionOffset,\n datasetOffset,\n moreConnections,\n moreDatasets,\n connectionId,\n jobId,\n name,\n parameters,\n maximum,\n inputs,\n outputs,\n confirmedCost,\n busy,\n error,\n intent,\n setConnectionId,\n setJobId,\n setName,\n setParameters,\n setMaximum,\n setInputs,\n setOutputs,\n setConfirmedCost,\n loadOptions,\n submit,\n checkSavedRequest,\n resolveSavedRequest,\n startAnotherJob,\n } = useDatabricksQueueForm({\n request,\n runId,\n workspaceId,\n intentKey,\n onQueued,\n statusReady,\n canQueue,\n });\n\n return (\n <form\n onSubmit={(event) => void submit(event)}\n className=\"space-y-4\"\n aria-label=\"Queue existing Databricks job\"\n >\n <p className=\"text-sm text-text-secondary\">\n Create an existing Custom API Key connection in Integrations first, with your AWS Databricks\n workspace base URL and PAT. Credentials stay in Integrations; do not paste them into this\n form. This queues an existing job and does not create a cluster or job.\n </p>\n <p className=\"text-sm text-text-secondary\">\n Saved request identity belongs to this tab. Inspect existing jobs before creating another\n request or opening another tab. Recovery confirms an existing execution or withdraws a\n request that has not created one; it does not cancel an existing job.\n </p>\n {canQueue ? (\n <>\n <div className=\"flex flex-wrap gap-2\">\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={busy}\n onClick={() => void loadOptions('connections')}\n >\n {connectionOffset\n ? moreConnections\n ? 'Load more connections'\n : 'Reload connections'\n : 'Load available connections'}\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={busy}\n onClick={() => void loadOptions('datasets')}\n >\n {datasetOffset\n ? moreDatasets\n ? 'Load more datasets'\n : 'Reload datasets'\n : 'Load lineage datasets'}\n </Button>\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"databricks-connection\">Existing Databricks connection</Label>\n <select\n id=\"databricks-connection\"\n className=\"w-full rounded-input border border-border-default bg-bg-primary p-2 text-text-primary\"\n value={connectionId}\n disabled={busy}\n onChange={(event) => setConnectionId(event.target.value)}\n required\n >\n <option value=\"\">Choose an available connection</option>\n {connections.map((item) => (\n <option key={item.id} value={item.id}>\n {item.name}\n </option>\n ))}\n </select>\n <p className=\"text-xs text-text-secondary\">\n Only active, usable Custom API Key connections in this workspace are listed. Their\n Databricks endpoint is validated by the service when queued.\n </p>\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"databricks-job\">Existing job ID</Label>\n <Input\n id=\"databricks-job\"\n inputMode=\"numeric\"\n value={jobId}\n disabled={busy}\n onChange={(event) => setJobId(event.target.value)}\n required\n />\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"databricks-name\">Step name</Label>\n <Input\n id=\"databricks-name\"\n maxLength={255}\n value={name}\n disabled={busy}\n onChange={(event) => setName(event.target.value)}\n required\n />\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"databricks-parameters\">\n Nonsecret job parameters (JSON string values)\n </Label>\n <Textarea\n id=\"databricks-parameters\"\n value={parameters}\n disabled={busy}\n onChange={(event) => setParameters(event.target.value)}\n />\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"databricks-deadline\">Monitoring deadline (seconds)</Label>\n <Input\n id=\"databricks-deadline\"\n type=\"number\"\n min={60}\n max={86400}\n step={1}\n value={maximum}\n disabled={busy}\n onChange={(event) => setMaximum(event.target.value)}\n required\n />\n <p className=\"text-xs text-text-secondary\">\n Expiry requests cancellation; it does not prove that external compute stopped.\n </p>\n </div>\n {(['inputs', 'outputs'] as const).map((kind) => (\n <div key={kind} className=\"space-y-2\">\n <Label htmlFor={`databricks-${kind}`}>\n {kind === 'inputs' ? 'Input datasets' : 'Declared output datasets'}\n </Label>\n <select\n id={`databricks-${kind}`}\n multiple\n className=\"w-full rounded-input border border-border-default bg-bg-primary p-2 text-text-primary\"\n value={kind === 'inputs' ? inputs : outputs}\n disabled={busy}\n onChange={(event) => {\n const ids = Array.from(event.target.selectedOptions, (option) => option.value);\n if (kind === 'inputs') setInputs(ids);\n else setOutputs(ids);\n }}\n >\n {datasets.map((item) => (\n <option key={item.id} value={item.id}>\n {item.name}\n </option>\n ))}\n </select>\n </div>\n ))}\n <p className=\"text-xs text-text-secondary\">\n Dataset links are your declared lineage. They do not prove Unity Catalog discovery or\n that a job produced output.\n </p>\n <label className=\"flex items-start gap-2 text-sm\">\n <input\n type=\"checkbox\"\n checked={confirmedCost}\n disabled={busy}\n onChange={(event) => setConfirmedCost(event.target.checked)}\n />\n I understand this job may incur charges in my Databricks account.\n </label>\n </>\n ) : (\n <p className=\"text-sm\">\n Queuing requires a run in RUNNING state. Saved request recovery remains available.\n </p>\n )}\n {intent ? (\n <p className=\"text-sm\">\n {intent.confirmedExecutionId\n ? 'The saved request has a confirmed execution.'\n : 'A request is saved. Identical-input retry keeps the same job intent; refresh status first if a response was lost.'}\n </p>\n ) : null}\n {error ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {error}\n </p>\n ) : null}\n <div className=\"flex flex-wrap gap-2\">\n {canQueue ? (\n <Button\n type=\"submit\"\n disabled={\n busy || !statusReady || !confirmedCost || Boolean(intent?.confirmedExecutionId)\n }\n >\n {busy ? 'Working…' : intent ? 'Retry same job request' : 'Queue existing job'}\n </Button>\n ) : null}\n <Button type=\"button\" variant=\"outline\" disabled={busy} onClick={checkSavedRequest}>\n Check saved request\n </Button>\n {intent && !intent.confirmedExecutionId ? (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={busy}\n onClick={() => void resolveSavedRequest()}\n >\n Resolve saved request\n </Button>\n ) : null}\n {canQueue && intent?.confirmedExecutionId ? (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={busy || !statusReady}\n onClick={startAnotherJob}\n >\n Start another job\n </Button>\n ) : null}\n </div>\n </form>\n );\n}\n"],"mappings":";;;;AAKA,SAAwB,EAAoB,EAC1C,YACA,UACA,gBACA,cACA,aACA,gBACA,eASC;CACD,IAAM,EACJ,gBACA,aACA,qBACA,kBACA,oBACA,iBACA,iBACA,UACA,SACA,eACA,YACA,WACA,YACA,kBACA,SACA,UACA,WACA,oBACA,aACA,YACA,kBACA,eACA,cACA,eACA,qBACA,gBACA,WACA,sBACA,wBACA,uBACE,EAAuB;EACzB;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,OACE,kBAAC,QAAD;EACE,WAAW,MAAU,KAAK,EAAO,CAAK;EACtC,WAAU;EACV,cAAW;YAHb;GAKE,kBAAC,KAAD;IAAG,WAAU;cAA8B;GAIxC,CAAA;GACH,kBAAC,KAAD;IAAG,WAAU;cAA8B;GAIxC,CAAA;GACF,IACC,kBAAA,GAAA,EAAA,UAAA;IACE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,GAAD;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AAO,uBACJ,iDACA;GACH,CAAA,IACD;GACH,IACC,kBAAC,KAAD;IAAG,MAAK;IAAQ,WAAU;cACvB;GACA,CAAA,IACD;GACJ,kBAAC,OAAD;IAAK,WAAU;cAAf;KACG,IACC,kBAAC,GAAD;MACE,MAAK;MACL,UACE,KAAQ,CAAC,KAAe,CAAC,KAAiB,EAAQ,GAAQ;gBAG3D,IAAO,aAAa,IAAS,2BAA2B;KACnD,CAAA,IACN;KACJ,kBAAC,GAAD;MAAQ,MAAK;MAAS,SAAQ;MAAU,UAAU;MAAM,SAAS;gBAAmB;KAE5E,CAAA;KACP,KAAU,CAAC,EAAO,uBACjB,kBAAC,GAAD;MACE,MAAK;MACL,SAAQ;MACR,UAAU;MACV,eAAe,KAAK,EAAoB;gBACzC;KAEO,CAAA,IACN;KACH,KAAY,GAAQ,uBACnB,kBAAC,GAAD;MACE,MAAK;MACL,SAAQ;MACR,UAAU,KAAQ,CAAC;MACnB,SAAS;gBACV;KAEO,CAAA,IACN;IACD;;EACD;;AAEV"}
@@ -0,0 +1,6 @@
1
+ export default function DatabricksRunPanel({ runId, canQueue, onRunChanged, }: {
2
+ runId: string;
3
+ canQueue: boolean;
4
+ onRunChanged(): Promise<void>;
5
+ }): import('react').JSX.Element;
6
+ //# sourceMappingURL=DatabricksRunPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatabricksRunPanel.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/components/DatabricksRunPanel.tsx"],"names":[],"mappings":"AAmKA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,KAAK,EACL,QAAQ,EACR,YAAY,GACb,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,+BAgDA"}
@@ -0,0 +1,206 @@
1
+ import { useCosmicIntersection as e } from "../context/CosmicIntersectionContext.js";
2
+ import { SafeLink as t } from "./SafeLink.js";
3
+ import { databricksIntentKey as n, safeLogsUrl as r } from "../lib/databricksPresentation.js";
4
+ import i from "./DatabricksQueueForm.js";
5
+ import { useDatabricksExecutions as a } from "../hooks/useDatabricksExecutions.js";
6
+ import { useEffect as o, useMemo as s, useState as c } from "react";
7
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ import { Button as d, Card as f, CardContent as p, CardHeader as m, CardTitle as h } from "@burdenoff/fe-libs/ui";
9
+ import { QueryClient as g, QueryClientProvider as _ } from "@tanstack/react-query";
10
+ //#region src/cosmicintersection/components/DatabricksRunPanel.tsx
11
+ var v = /* @__PURE__ */ new Set([
12
+ "QUEUED",
13
+ "SUBMITTING",
14
+ "RUNNING",
15
+ "REQUIRES_ATTENTION"
16
+ ]);
17
+ function y({ scope: e, runId: t, canQueue: n, onRunChanged: r }) {
18
+ let { items: o, hasMore: s, loading: c, executions: g, error: _, actionId: v, offset: y, setOffset: b, setError: x, refresh: C, act: w, request: T, intentKey: E } = a({
19
+ scope: e,
20
+ runId: t,
21
+ onRunChanged: r
22
+ });
23
+ return /* @__PURE__ */ u(f, { children: [/* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(h, { children: "Databricks jobs" }) }), /* @__PURE__ */ u(p, {
24
+ className: "space-y-4",
25
+ children: [
26
+ /* @__PURE__ */ l("p", {
27
+ className: "text-sm text-text-secondary",
28
+ children: "Jobs run in your Databricks workspace. Databricks usage is billed by your account. Cancelling requests a stop; a job may continue until Databricks confirms it stopped."
29
+ }),
30
+ /* @__PURE__ */ l(d, {
31
+ variant: "outline",
32
+ disabled: c || v !== null,
33
+ onClick: () => {
34
+ x(null), C().catch(() => x("Could not confirm status. Retry the status read before taking another action."));
35
+ },
36
+ children: c ? "Refreshing…" : "Refresh job status"
37
+ }),
38
+ _ ? /* @__PURE__ */ l("p", {
39
+ role: "alert",
40
+ className: "text-sm text-status-error-text",
41
+ children: _
42
+ }) : null,
43
+ g.data?.intentRecoveryUnavailable ? /* @__PURE__ */ l("p", {
44
+ role: "alert",
45
+ className: "text-sm text-status-error-text",
46
+ children: "The saved request could not be recovered. Existing jobs remain available for inspection and cancellation. Do not submit another job until its request identity is recovered."
47
+ }) : null,
48
+ g.isError ? /* @__PURE__ */ l("p", {
49
+ role: "alert",
50
+ className: "text-sm text-status-error-text",
51
+ children: "Could not confirm Databricks status. Retry the status read before taking another action."
52
+ }) : null,
53
+ !c && !o.length && !_ && !g.isError ? /* @__PURE__ */ l("p", { children: "No Databricks jobs on this page." }) : null,
54
+ /* @__PURE__ */ l("ul", {
55
+ className: "space-y-3",
56
+ "aria-label": "Databricks executions",
57
+ children: o.map((e) => /* @__PURE__ */ l(S, {
58
+ item: e,
59
+ busy: v !== null,
60
+ onCancel: () => void w(e, !1),
61
+ onResume: () => void w(e, !0)
62
+ }, e.id))
63
+ }),
64
+ /* @__PURE__ */ u("div", {
65
+ className: "flex gap-2",
66
+ "aria-label": "Databricks execution pages",
67
+ children: [/* @__PURE__ */ l(d, {
68
+ variant: "outline",
69
+ disabled: !y || c || v !== null,
70
+ onClick: () => {
71
+ x(null), b(Math.max(0, y - 10));
72
+ },
73
+ children: "Previous jobs"
74
+ }), /* @__PURE__ */ l(d, {
75
+ variant: "outline",
76
+ disabled: !s || c || v !== null,
77
+ onClick: () => {
78
+ x(null), b(y + 10);
79
+ },
80
+ children: "Next jobs"
81
+ })]
82
+ }),
83
+ /* @__PURE__ */ l(i, {
84
+ canQueue: n,
85
+ request: T,
86
+ runId: t,
87
+ workspaceId: e.workspaceId,
88
+ intentKey: E,
89
+ onQueued: C,
90
+ statusReady: g.isSuccess && !c && !g.data.intentRecoveryUnavailable && _ === null
91
+ })
92
+ ]
93
+ })] });
94
+ }
95
+ function b(e) {
96
+ let [t] = c(() => new g({ defaultOptions: { queries: {
97
+ retry: !1,
98
+ refetchOnWindowFocus: !1
99
+ } } }));
100
+ return o(() => () => {
101
+ t.cancelQueries(), t.clear();
102
+ }, [t]), /* @__PURE__ */ l(_, {
103
+ client: t,
104
+ children: /* @__PURE__ */ l(y, { ...e })
105
+ });
106
+ }
107
+ function x({ runId: t, canQueue: r, onRunChanged: i }) {
108
+ let a = e(), o = s(() => ({
109
+ apiGatewayUrl: a.apiGatewayUrl,
110
+ authToken: a.authToken,
111
+ actorId: a.currentUser?.id ?? "",
112
+ workspaceId: a.workspaceId ?? "",
113
+ tenantId: a.tenantId,
114
+ organizationId: a.organizationId,
115
+ projectId: a.projectId
116
+ }), [
117
+ a.apiGatewayUrl,
118
+ a.authToken,
119
+ a.currentUser?.id,
120
+ a.workspaceId,
121
+ a.tenantId,
122
+ a.organizationId,
123
+ a.projectId
124
+ ]), c = s(() => {
125
+ try {
126
+ return n(o, t);
127
+ } catch {
128
+ return null;
129
+ }
130
+ }, [o, t]);
131
+ return !o.actorId || !o.authToken || !o.workspaceId || !o.apiGatewayUrl ? /* @__PURE__ */ l("p", {
132
+ role: "alert",
133
+ children: "Select a workspace and sign in before opening Databricks jobs."
134
+ }) : c === null ? /* @__PURE__ */ l("p", {
135
+ role: "alert",
136
+ children: "The Databricks gateway address is unsupported. Check the app configuration."
137
+ }) : /* @__PURE__ */ l(b, {
138
+ scope: o,
139
+ runId: t,
140
+ canQueue: r,
141
+ onRunChanged: i
142
+ }, c);
143
+ }
144
+ function S({ item: e, busy: n, onCancel: i, onResume: a }) {
145
+ let o = r(e.logsUrl);
146
+ return /* @__PURE__ */ u("li", {
147
+ className: "space-y-2 rounded-card border border-border-default p-4",
148
+ children: [
149
+ /* @__PURE__ */ u("p", {
150
+ className: "font-medium",
151
+ children: [
152
+ "Job ",
153
+ e.jobId,
154
+ " · ",
155
+ e.state.replaceAll("_", " ")
156
+ ]
157
+ }),
158
+ e.state === "REQUIRES_ATTENTION" ? /* @__PURE__ */ l("p", {
159
+ className: "text-sm",
160
+ children: "Monitoring needs attention. This does not mean the external job stopped. Repair its existing connection, then resume monitoring."
161
+ }) : null,
162
+ e.cancelRequested ? /* @__PURE__ */ l("p", {
163
+ className: "text-sm",
164
+ children: "Cancellation requested; waiting for a confirmed terminal state."
165
+ }) : null,
166
+ /* @__PURE__ */ u("p", {
167
+ className: "text-sm text-text-secondary",
168
+ children: ["Deadline: ", new Date(e.deadlineAt).toLocaleString()]
169
+ }),
170
+ /* @__PURE__ */ u("p", {
171
+ className: "text-sm text-text-secondary",
172
+ children: [
173
+ "Declared lineage: ",
174
+ e.inputDatasetIds.length,
175
+ " input datasets,",
176
+ " ",
177
+ e.outputDatasetIds.length,
178
+ " output datasets."
179
+ ]
180
+ }),
181
+ o ? /* @__PURE__ */ l(t, {
182
+ href: o,
183
+ className: "underline",
184
+ children: "Open authenticated Databricks logs"
185
+ }) : null,
186
+ /* @__PURE__ */ u("div", {
187
+ className: "flex flex-wrap gap-2",
188
+ children: [v.has(e.state) && !e.cancelRequested ? /* @__PURE__ */ l(d, {
189
+ variant: "outline",
190
+ disabled: n,
191
+ onClick: i,
192
+ children: "Request cancellation"
193
+ }) : null, e.state === "REQUIRES_ATTENTION" ? /* @__PURE__ */ l(d, {
194
+ variant: "outline",
195
+ disabled: n,
196
+ onClick: a,
197
+ children: "Resume monitoring"
198
+ }) : null]
199
+ })
200
+ ]
201
+ });
202
+ }
203
+ //#endregion
204
+ export { x as default };
205
+
206
+ //# sourceMappingURL=DatabricksRunPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatabricksRunPanel.js","names":[],"sources":["../../../src/cosmicintersection/components/DatabricksRunPanel.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport { Button, Card, CardContent, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nimport type { CosDatabricksExecutionFieldsFragment } from '../../generated/wspace-operations';\nimport type { DatabricksRequestScope } from '../api/databricksTransport';\nimport { useCosmicIntersection } from '../context/CosmicIntersectionContext';\nimport { SafeLink } from './SafeLink';\nimport { databricksIntentKey, safeLogsUrl } from '../lib/databricksPresentation';\nimport DatabricksQueueForm from './DatabricksQueueForm';\nimport { useDatabricksExecutions } from '../hooks/useDatabricksExecutions';\n\ntype Execution = CosDatabricksExecutionFieldsFragment;\nconst CANCELLABLE = new Set(['QUEUED', 'SUBMITTING', 'RUNNING', 'REQUIRES_ATTENTION']);\n\nfunction CapturedRunPanel({\n scope,\n runId,\n canQueue,\n onRunChanged,\n}: {\n scope: DatabricksRequestScope;\n runId: string;\n canQueue: boolean;\n onRunChanged(): Promise<void>;\n}) {\n const {\n items,\n hasMore,\n loading,\n executions,\n error,\n actionId,\n offset,\n setOffset,\n setError,\n refresh,\n act,\n request,\n intentKey,\n } = useDatabricksExecutions({ scope, runId, onRunChanged });\n\n return (\n <Card>\n <CardHeader>\n <CardTitle>Databricks jobs</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <p className=\"text-sm text-text-secondary\">\n Jobs run in your Databricks workspace. Databricks usage is billed by your account.\n Cancelling requests a stop; a job may continue until Databricks confirms it stopped.\n </p>\n <Button\n variant=\"outline\"\n disabled={loading || actionId !== null}\n onClick={() => {\n setError(null);\n void refresh().catch(() =>\n setError(\n 'Could not confirm status. Retry the status read before taking another action.'\n )\n );\n }}\n >\n {loading ? 'Refreshing…' : 'Refresh job status'}\n </Button>\n {error ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {error}\n </p>\n ) : null}\n {executions.data?.intentRecoveryUnavailable ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n The saved request could not be recovered. Existing jobs remain available for inspection\n and cancellation. Do not submit another job until its request identity is recovered.\n </p>\n ) : null}\n {executions.isError ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n Could not confirm Databricks status. Retry the status read before taking another action.\n </p>\n ) : null}\n {!loading && !items.length && !error && !executions.isError ? (\n <p>No Databricks jobs on this page.</p>\n ) : null}\n <ul className=\"space-y-3\" aria-label=\"Databricks executions\">\n {items.map((item) => (\n <ExecutionCard\n key={item.id}\n item={item}\n busy={actionId !== null}\n onCancel={() => void act(item, false)}\n onResume={() => void act(item, true)}\n />\n ))}\n </ul>\n <div className=\"flex gap-2\" aria-label=\"Databricks execution pages\">\n <Button\n variant=\"outline\"\n disabled={!offset || loading || actionId !== null}\n onClick={() => {\n setError(null);\n setOffset(Math.max(0, offset - 10));\n }}\n >\n Previous jobs\n </Button>\n <Button\n variant=\"outline\"\n disabled={!hasMore || loading || actionId !== null}\n onClick={() => {\n setError(null);\n setOffset(offset + 10);\n }}\n >\n Next jobs\n </Button>\n </div>\n <DatabricksQueueForm\n canQueue={canQueue}\n request={request}\n runId={runId}\n workspaceId={scope.workspaceId}\n intentKey={intentKey}\n onQueued={refresh}\n statusReady={\n executions.isSuccess &&\n !loading &&\n !executions.data.intentRecoveryUnavailable &&\n error === null\n }\n />\n </CardContent>\n </Card>\n );\n}\n\nfunction ScopedRunPanel(props: {\n scope: DatabricksRequestScope;\n runId: string;\n canQueue: boolean;\n onRunChanged(): Promise<void>;\n}) {\n const [client] = useState(\n () =>\n new QueryClient({\n defaultOptions: { queries: { retry: false, refetchOnWindowFocus: false } },\n })\n );\n useEffect(\n () => () => {\n void client.cancelQueries();\n client.clear();\n },\n [client]\n );\n return (\n <QueryClientProvider client={client}>\n <CapturedRunPanel {...props} />\n </QueryClientProvider>\n );\n}\n\nexport default function DatabricksRunPanel({\n runId,\n canQueue,\n onRunChanged,\n}: {\n runId: string;\n canQueue: boolean;\n onRunChanged(): Promise<void>;\n}) {\n const context = useCosmicIntersection();\n const scope = useMemo(\n () => ({\n apiGatewayUrl: context.apiGatewayUrl,\n authToken: context.authToken,\n actorId: context.currentUser?.id ?? '',\n workspaceId: context.workspaceId ?? '',\n tenantId: context.tenantId,\n organizationId: context.organizationId,\n projectId: context.projectId,\n }),\n [\n context.apiGatewayUrl,\n context.authToken,\n context.currentUser?.id,\n context.workspaceId,\n context.tenantId,\n context.organizationId,\n context.projectId,\n ]\n );\n const intentKey = useMemo(() => {\n try {\n return databricksIntentKey(scope, runId);\n } catch {\n return null;\n }\n }, [scope, runId]);\n if (!scope.actorId || !scope.authToken || !scope.workspaceId || !scope.apiGatewayUrl) {\n return <p role=\"alert\">Select a workspace and sign in before opening Databricks jobs.</p>;\n }\n if (intentKey === null) {\n return (\n <p role=\"alert\">\n The Databricks gateway address is unsupported. Check the app configuration.\n </p>\n );\n }\n return (\n <ScopedRunPanel\n key={intentKey}\n scope={scope}\n runId={runId}\n canQueue={canQueue}\n onRunChanged={onRunChanged}\n />\n );\n}\n\nfunction ExecutionCard({\n item,\n busy,\n onCancel,\n onResume,\n}: {\n item: Execution;\n busy: boolean;\n onCancel(): void;\n onResume(): void;\n}) {\n const logsUrl = safeLogsUrl(item.logsUrl);\n return (\n <li className=\"space-y-2 rounded-card border border-border-default p-4\">\n <p className=\"font-medium\">\n Job {item.jobId} · {item.state.replaceAll('_', ' ')}\n </p>\n {item.state === 'REQUIRES_ATTENTION' ? (\n <p className=\"text-sm\">\n Monitoring needs attention. This does not mean the external job stopped. Repair its\n existing connection, then resume monitoring.\n </p>\n ) : null}\n {item.cancelRequested ? (\n <p className=\"text-sm\">Cancellation requested; waiting for a confirmed terminal state.</p>\n ) : null}\n <p className=\"text-sm text-text-secondary\">\n Deadline: {new Date(item.deadlineAt).toLocaleString()}\n </p>\n <p className=\"text-sm text-text-secondary\">\n Declared lineage: {item.inputDatasetIds.length} input datasets,{' '}\n {item.outputDatasetIds.length} output datasets.\n </p>\n {logsUrl ? (\n <SafeLink href={logsUrl} className=\"underline\">\n Open authenticated Databricks logs\n </SafeLink>\n ) : null}\n <div className=\"flex flex-wrap gap-2\">\n {CANCELLABLE.has(item.state) && !item.cancelRequested ? (\n <Button variant=\"outline\" disabled={busy} onClick={onCancel}>\n Request cancellation\n </Button>\n ) : null}\n {item.state === 'REQUIRES_ATTENTION' ? (\n <Button variant=\"outline\" disabled={busy} onClick={onResume}>\n Resume monitoring\n </Button>\n ) : null}\n </div>\n </li>\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,IAAM,oBAAc,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7 +1,7 @@
1
1
  import { useTr as e } from "../../shared/hooks/useTr.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { ArrowLeft as r, Save as i } from "lucide-react";
4
- import { Button as a } from "@burdenoff/fe-libs/ui";
3
+ import { Button as r } from "@burdenoff/fe-libs/ui";
4
+ import { ArrowLeft as i, Save as a } from "lucide-react";
5
5
  //#region src/cosmicintersection/components/EntityFormShell.tsx
6
6
  function o({ title: o, description: s, purpose: c, backLabel: l, onBack: u, onSubmit: d, submitLabel: f, savingLabel: p, saving: m = !1, submitDisabled: h = !1, children: g }) {
7
7
  let _ = e(), v = p ?? _("cosmicintersection.common.saving", "Saving…");
@@ -9,12 +9,12 @@ function o({ title: o, description: s, purpose: c, backLabel: l, onBack: u, onSu
9
9
  className: "space-y-6 p-6",
10
10
  children: [
11
11
  /* @__PURE__ */ n("div", { children: [
12
- /* @__PURE__ */ n(a, {
12
+ /* @__PURE__ */ n(r, {
13
13
  type: "button",
14
14
  variant: "ghost",
15
15
  size: "sm",
16
16
  onClick: u,
17
- children: [/* @__PURE__ */ t(r, { className: "size-4" }), l]
17
+ children: [/* @__PURE__ */ t(i, { className: "size-4" }), l]
18
18
  }),
19
19
  /* @__PURE__ */ t("h1", {
20
20
  className: "mt-3 text-2xl font-bold text-text-primary",
@@ -36,16 +36,16 @@ function o({ title: o, description: s, purpose: c, backLabel: l, onBack: u, onSu
36
36
  className: "space-y-4",
37
37
  children: [g, /* @__PURE__ */ n("div", {
38
38
  className: "flex justify-end gap-3",
39
- children: [/* @__PURE__ */ t(a, {
39
+ children: [/* @__PURE__ */ t(r, {
40
40
  type: "button",
41
41
  variant: "outline",
42
42
  onClick: u,
43
43
  disabled: m,
44
44
  children: _("cosmicintersection.common.cancel", "Cancel")
45
- }), /* @__PURE__ */ n(a, {
45
+ }), /* @__PURE__ */ n(r, {
46
46
  type: "submit",
47
47
  disabled: m || h,
48
- children: [/* @__PURE__ */ t(i, { className: "size-4" }), m ? v : f]
48
+ children: [/* @__PURE__ */ t(a, { className: "size-4" }), m ? v : f]
49
49
  })]
50
50
  })]
51
51
  })
@@ -1,7 +1,7 @@
1
1
  import { useState as e } from "react";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { Plus as r, Tag as i, X as a } from "lucide-react";
4
- import { Badge as o, Button as s, Input as c } from "@burdenoff/fe-libs/ui";
3
+ import { Badge as r, Button as i, Input as a } from "@burdenoff/fe-libs/ui";
4
+ import { Plus as o, Tag as s, X as c } from "lucide-react";
5
5
  //#region src/cosmicintersection/components/EntityTagsField.tsx
6
6
  function l({ value: l, onChange: u, label: d = "Tags", placeholder: f = "Add a tag and press Enter", disabled: p = !1, className: m }) {
7
7
  let [h, g] = e(""), _ = () => {
@@ -15,7 +15,7 @@ function l({ value: l, onChange: u, label: d = "Tags", placeholder: f = "Add a t
15
15
  children: [
16
16
  /* @__PURE__ */ n("div", {
17
17
  className: "flex items-center gap-2 text-sm font-medium text-text-primary",
18
- children: [/* @__PURE__ */ t(i, {
18
+ children: [/* @__PURE__ */ t(s, {
19
19
  className: "size-4 text-text-secondary",
20
20
  "aria-hidden": "true"
21
21
  }), /* @__PURE__ */ t("span", { children: d })]
@@ -27,7 +27,7 @@ function l({ value: l, onChange: u, label: d = "Tags", placeholder: f = "Add a t
27
27
  children: l.length === 0 ? /* @__PURE__ */ t("span", {
28
28
  className: "text-sm text-text-secondary",
29
29
  children: "No tags yet."
30
- }) : l.map((e) => /* @__PURE__ */ n(o, {
30
+ }) : l.map((e) => /* @__PURE__ */ n(r, {
31
31
  variant: "secondary",
32
32
  className: "gap-1.5",
33
33
  role: "listitem",
@@ -40,7 +40,7 @@ function l({ value: l, onChange: u, label: d = "Tags", placeholder: f = "Add a t
40
40
  disabled: p,
41
41
  "aria-label": `Remove ${e}`,
42
42
  className: "rounded-full text-text-secondary transition-colors hover:text-text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-focus disabled:opacity-50",
43
- children: /* @__PURE__ */ t(a, {
43
+ children: /* @__PURE__ */ t(c, {
44
44
  className: "size-3",
45
45
  "aria-hidden": "true"
46
46
  })
@@ -49,7 +49,7 @@ function l({ value: l, onChange: u, label: d = "Tags", placeholder: f = "Add a t
49
49
  }),
50
50
  /* @__PURE__ */ n("div", {
51
51
  className: "flex items-center gap-2",
52
- children: [/* @__PURE__ */ t(c, {
52
+ children: [/* @__PURE__ */ t(a, {
53
53
  value: h,
54
54
  onChange: (e) => g(e.target.value),
55
55
  placeholder: f,
@@ -59,13 +59,13 @@ function l({ value: l, onChange: u, label: d = "Tags", placeholder: f = "Add a t
59
59
  onKeyDown: (e) => {
60
60
  e.key === "Enter" && (e.preventDefault(), _());
61
61
  }
62
- }), /* @__PURE__ */ n(s, {
62
+ }), /* @__PURE__ */ n(i, {
63
63
  type: "button",
64
64
  variant: "outline",
65
65
  size: "sm",
66
66
  onClick: _,
67
67
  disabled: p || !h.trim(),
68
- children: [/* @__PURE__ */ t(r, { className: "size-4" }), "Add"]
68
+ children: [/* @__PURE__ */ t(o, { className: "size-4" }), "Add"]
69
69
  })]
70
70
  })
71
71
  ]
@@ -1,7 +1,7 @@
1
1
  import { useTr as e } from "../../shared/hooks/useTr.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { AlertTriangle as r } from "lucide-react";
4
- import { Button as i } from "@burdenoff/fe-libs/ui";
3
+ import { Button as r } from "@burdenoff/fe-libs/ui";
4
+ import { AlertTriangle as i } from "lucide-react";
5
5
  //#region src/cosmicintersection/components/ErrorState.tsx
6
6
  function a({ title: a, message: o, onRetry: s, retryLabel: c, className: l }) {
7
7
  let u = e(), d = a ?? u("cosmicintersection.common.error", "Something went wrong"), f = o ?? u("cosmicintersection.common.errorDescription", "We could not load this data. Please try again."), p = c ?? u("cosmicintersection.common.retry", "Retry");
@@ -11,7 +11,7 @@ function a({ title: a, message: o, onRetry: s, retryLabel: c, className: l }) {
11
11
  children: [
12
12
  /* @__PURE__ */ t("div", {
13
13
  className: "flex size-12 items-center justify-center rounded-full bg-status-error-bg text-status-error-text",
14
- children: /* @__PURE__ */ t(r, {
14
+ children: /* @__PURE__ */ t(i, {
15
15
  className: "size-6",
16
16
  "aria-hidden": "true"
17
17
  })
@@ -26,7 +26,7 @@ function a({ title: a, message: o, onRetry: s, retryLabel: c, className: l }) {
26
26
  children: f
27
27
  })]
28
28
  }),
29
- s ? /* @__PURE__ */ t(i, {
29
+ s ? /* @__PURE__ */ t(r, {
30
30
  type: "button",
31
31
  variant: "outline",
32
32
  size: "sm",