@burdenoff/microfe-semanticfed 2026.1109.9 → 2026.1109.11
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/index.js +3 -3
- package/dist/semanticfed/pages/DashboardPage.d.ts +1 -0
- package/dist/semanticfed/pages/DashboardPage.js +124 -223
- package/dist/semanticfed/pages/DashboardPage.js.map +1 -1
- package/dist/semanticfed/pages/LineagePage.js +154 -154
- package/dist/semanticfed/pages/LineagePage.js.map +1 -1
- package/dist/semanticfed/pages/MonitoringPage.js +23 -23
- package/dist/semanticfed/pages/OntologyPage.js +22 -22
- package/dist/semanticfed/pages/QueryConsolePage.js +40 -40
- package/dist/semanticfed/pages/QueryConsolePage.js.map +1 -1
- package/dist/semanticfed/pages/RegistryPage.js +16 -16
- package/package.json +3 -2
|
@@ -2,22 +2,22 @@ import { lineageErrorMessage as e, lineageRootFor as t, useSemRecordLineage as n
|
|
|
2
2
|
import { cn as i } from "../utils/cn.js";
|
|
3
3
|
import { translateWithFallback as a } from "../utils/i18n.js";
|
|
4
4
|
import { useMemo as o, useState as s } from "react";
|
|
5
|
-
import { AlertTriangle as c, ArrowDownRight as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { AlertTriangle as c, ArrowDownRight as ee, ArrowUpLeft as te, Boxes as l, Columns3 as u, Database as d, FileCode2 as f, GitBranch as p, Hash as m, Layers as h, Loader2 as g, Plug as _, Ruler as v, Table2 as y, X as b } from "lucide-react";
|
|
6
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
7
|
+
import { Badge as w, Button as T, Card as E, CardContent as D, CardHeader as O, CardTitle as k, Input as A } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { useI18n as ne } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
9
9
|
// src/semanticfed/pages/LineagePage.tsx
|
|
10
|
-
var
|
|
11
|
-
CONNECTOR:
|
|
12
|
-
DATA_SOURCE:
|
|
13
|
-
TABLE:
|
|
14
|
-
ENTITY:
|
|
15
|
-
DIMENSION:
|
|
16
|
-
METRIC:
|
|
17
|
-
COLUMN:
|
|
18
|
-
MODEL:
|
|
19
|
-
QUERY:
|
|
20
|
-
},
|
|
10
|
+
var j = {
|
|
11
|
+
CONNECTOR: _,
|
|
12
|
+
DATA_SOURCE: d,
|
|
13
|
+
TABLE: y,
|
|
14
|
+
ENTITY: l,
|
|
15
|
+
DIMENSION: v,
|
|
16
|
+
METRIC: m,
|
|
17
|
+
COLUMN: u,
|
|
18
|
+
MODEL: h,
|
|
19
|
+
QUERY: f
|
|
20
|
+
}, M = {
|
|
21
21
|
CONNECTOR: "Connector",
|
|
22
22
|
DATA_SOURCE: "Data source",
|
|
23
23
|
TABLE: "Table",
|
|
@@ -27,7 +27,7 @@ var M = {
|
|
|
27
27
|
COLUMN: "Column",
|
|
28
28
|
MODEL: "Model",
|
|
29
29
|
QUERY: "Query"
|
|
30
|
-
},
|
|
30
|
+
}, re = [
|
|
31
31
|
{
|
|
32
32
|
id: "sources",
|
|
33
33
|
label: "Sources",
|
|
@@ -62,7 +62,7 @@ var M = {
|
|
|
62
62
|
label: "Queries",
|
|
63
63
|
kinds: ["QUERY"]
|
|
64
64
|
}
|
|
65
|
-
],
|
|
65
|
+
], N = {
|
|
66
66
|
PROVIDES: "provides",
|
|
67
67
|
HOSTS: "hosts",
|
|
68
68
|
MAPS_TO: "maps to",
|
|
@@ -72,18 +72,18 @@ var M = {
|
|
|
72
72
|
SERVES: "serves",
|
|
73
73
|
READ_BY: "read by",
|
|
74
74
|
EXECUTED_ON: "executed on"
|
|
75
|
-
},
|
|
75
|
+
}, ie = [
|
|
76
76
|
"UPSTREAM",
|
|
77
77
|
"BOTH",
|
|
78
78
|
"DOWNSTREAM"
|
|
79
|
-
],
|
|
79
|
+
], P = [
|
|
80
80
|
1,
|
|
81
81
|
2,
|
|
82
82
|
3,
|
|
83
83
|
5,
|
|
84
84
|
10
|
|
85
85
|
];
|
|
86
|
-
function
|
|
86
|
+
function F(e, t, n, r) {
|
|
87
87
|
let i = /* @__PURE__ */ new Set([t]), a = new Set(e.nodes.filter((e) => e.kind === "MODEL").map((e) => e.id)), o = (n) => {
|
|
88
88
|
let o = /* @__PURE__ */ new Set([t]), s = 0;
|
|
89
89
|
for (; o.size > 0 && (r === null || s < r);) {
|
|
@@ -98,172 +98,172 @@ function R(e, t, n, r) {
|
|
|
98
98
|
};
|
|
99
99
|
return n !== "DOWNSTREAM" && o(!1), n !== "UPSTREAM" && o(!0), i;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function I(e) {
|
|
102
102
|
if (!e) return null;
|
|
103
103
|
let t = new Date(e);
|
|
104
104
|
return Number.isNaN(t.getTime()) ? null : t.toLocaleString();
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
let { t:
|
|
106
|
+
function L() {
|
|
107
|
+
let { t: l } = ne(), u = (e, t, n) => a(l, e, t, n), d = r(), [f, m] = s(null), [h, _] = s("BOTH"), [v, y] = s(null), [N, I] = s(""), L = d.data, z = o(() => new Map((L?.nodes ?? []).map((e) => [e.id, e])), [L]), B = f ? z.get(f) ?? null : null, V = B ? t(B) : null, H = n(V, h, v), U = o(() => !L || !B ? null : V ? H.data ? new Set(H.data.nodes.map((e) => e.id)) : null : F(L, B.id, h, v), [
|
|
108
|
+
L,
|
|
108
109
|
B,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
]), q = o(() => U ? W ? G.data?.edges ?? [] : !B || !K ? [] : B.edges.filter((e) => K.has(e.from) && K.has(e.to)) : [], [
|
|
115
|
-
U,
|
|
116
|
-
W,
|
|
117
|
-
G.data,
|
|
110
|
+
V,
|
|
111
|
+
H.data,
|
|
112
|
+
h,
|
|
113
|
+
v
|
|
114
|
+
]), W = o(() => B ? V ? H.data?.edges ?? [] : !L || !U ? [] : L.edges.filter((e) => U.has(e.from) && U.has(e.to)) : [], [
|
|
118
115
|
B,
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
V,
|
|
117
|
+
H.data,
|
|
118
|
+
L,
|
|
119
|
+
U
|
|
120
|
+
]), G = N.trim().toLowerCase(), K = (e) => G === "" || e.label.toLowerCase().includes(G) || (e.detail ?? "").toLowerCase().includes(G), q = o(() => {
|
|
121
121
|
let e = {};
|
|
122
|
-
for (let t of
|
|
122
|
+
for (let t of L?.nodes ?? []) e[t.kind] = (e[t.kind] ?? 0) + 1;
|
|
123
123
|
return e;
|
|
124
|
-
}, [
|
|
125
|
-
let t =
|
|
126
|
-
return t ?
|
|
127
|
-
}, ae =
|
|
128
|
-
return /* @__PURE__ */
|
|
124
|
+
}, [L]), J = B ? W.filter((e) => e.to === B.id) : [], Y = B ? W.filter((e) => e.from === B.id) : [], X = (e) => z.get(e)?.label ?? e, Z = (e) => {
|
|
125
|
+
let t = z.get(e);
|
|
126
|
+
return t ? u(`semanticfed.lineage.kinds.${t.kind}`, M[t.kind]) : "";
|
|
127
|
+
}, ae = d.isSuccess && (L?.nodes.length ?? 0) === 0, Q = [...L?.warnings ?? []], $ = !!(L?.truncated || H.data?.truncated);
|
|
128
|
+
return /* @__PURE__ */ C("div", {
|
|
129
129
|
className: "space-y-6 p-4 sm:p-6",
|
|
130
130
|
"data-testid": "semanticfed-lineage-page",
|
|
131
131
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ C("div", {
|
|
133
133
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
134
134
|
"data-tour": "semanticfed-lineage-header",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h1", {
|
|
136
136
|
className: "text-2xl font-semibold",
|
|
137
|
-
children:
|
|
138
|
-
}), /* @__PURE__ */
|
|
137
|
+
children: u("semanticfed.lineage.title", "Lineage")
|
|
138
|
+
}), /* @__PURE__ */ S("p", {
|
|
139
139
|
className: "text-sm text-muted-foreground",
|
|
140
|
-
children:
|
|
141
|
-
})] }), /* @__PURE__ */
|
|
140
|
+
children: u("semanticfed.lineage.description", "End-to-end lineage from connectors and data sources through tables, entities and fields to the models and saved queries that use them. Select anything to trace where its data comes from and what depends on it.")
|
|
141
|
+
})] }), /* @__PURE__ */ S("div", {
|
|
142
142
|
className: "flex flex-wrap gap-2",
|
|
143
143
|
"data-testid": "lineage-counts",
|
|
144
|
-
children: Object.keys(
|
|
145
|
-
let t =
|
|
146
|
-
return /* @__PURE__ */ w
|
|
144
|
+
children: Object.keys(M).filter((e) => q[e]).map((e) => {
|
|
145
|
+
let t = j[e];
|
|
146
|
+
return /* @__PURE__ */ C(w, {
|
|
147
147
|
variant: "outline",
|
|
148
148
|
className: "gap-1",
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
|
|
150
|
+
/* @__PURE__ */ S(t, { className: "h-3 w-3" }),
|
|
151
|
+
q[e],
|
|
152
152
|
" ",
|
|
153
|
-
|
|
153
|
+
u(`semanticfed.lineage.kinds.${e}`, M[e])
|
|
154
154
|
]
|
|
155
155
|
}, e);
|
|
156
156
|
})
|
|
157
157
|
})]
|
|
158
158
|
}),
|
|
159
|
-
|
|
159
|
+
d.isPending && /* @__PURE__ */ S(E, { children: /* @__PURE__ */ C(D, {
|
|
160
160
|
className: "flex items-center gap-3 p-6 text-sm text-muted-foreground",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ S(g, { className: "h-5 w-5 animate-spin" }), u("semanticfed.lineage.loading", "Computing lineage…")]
|
|
162
162
|
}) }),
|
|
163
|
-
|
|
163
|
+
d.isError && /* @__PURE__ */ S(E, { children: /* @__PURE__ */ C(D, {
|
|
164
164
|
className: "flex items-center gap-3 p-6 text-sm text-destructive",
|
|
165
165
|
"data-testid": "lineage-error",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ S(c, { className: "h-5 w-5" }), e(d.error)]
|
|
167
167
|
}) }),
|
|
168
|
-
ae && /* @__PURE__ */
|
|
168
|
+
ae && /* @__PURE__ */ S(E, { children: /* @__PURE__ */ C(D, {
|
|
169
169
|
className: "flex items-center gap-3 p-6 text-sm text-muted-foreground",
|
|
170
170
|
"data-testid": "lineage-empty",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ S(p, { className: "h-5 w-5" }), u("semanticfed.lineage.empty", "No lineage yet. Connect a data source and model an entity on it; lineage appears here as soon as records exist.")]
|
|
172
172
|
}) }),
|
|
173
|
-
(Q.length > 0 || $) && /* @__PURE__ */
|
|
173
|
+
(Q.length > 0 || $) && /* @__PURE__ */ C(E, {
|
|
174
174
|
"data-testid": "lineage-warnings",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
175
|
+
children: [/* @__PURE__ */ S(O, {
|
|
176
176
|
className: "pb-2",
|
|
177
|
-
children: /* @__PURE__ */
|
|
177
|
+
children: /* @__PURE__ */ C(k, {
|
|
178
178
|
className: "flex items-center gap-2 text-base",
|
|
179
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ S(c, { className: "h-4 w-4 text-destructive" }), u("semanticfed.lineage.warnings.title", "Lineage warnings")]
|
|
180
180
|
})
|
|
181
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ C(D, {
|
|
182
182
|
className: "space-y-1 text-sm",
|
|
183
|
-
children: [$ && /* @__PURE__ */
|
|
183
|
+
children: [$ && /* @__PURE__ */ S("p", {
|
|
184
184
|
className: "text-muted-foreground",
|
|
185
|
-
children:
|
|
186
|
-
}), Q.slice(0, 20).map((e, t) => /* @__PURE__ */
|
|
185
|
+
children: u("semanticfed.lineage.warnings.truncated", "This workspace is larger than one lineage pass reads, so the graph is partial.")
|
|
186
|
+
}), Q.slice(0, 20).map((e, t) => /* @__PURE__ */ C("button", {
|
|
187
187
|
type: "button",
|
|
188
188
|
className: "block text-left text-muted-foreground hover:text-foreground",
|
|
189
|
-
onClick: () => e.nodeId &&
|
|
190
|
-
children: [e.nodeId ? /* @__PURE__ */
|
|
189
|
+
onClick: () => e.nodeId && m(e.nodeId),
|
|
190
|
+
children: [e.nodeId ? /* @__PURE__ */ C("span", {
|
|
191
191
|
className: "font-medium",
|
|
192
192
|
children: [X(e.nodeId), ": "]
|
|
193
193
|
}) : null, e.message]
|
|
194
194
|
}, `${e.nodeId ?? "graph"}-${t}`))]
|
|
195
195
|
})]
|
|
196
196
|
}),
|
|
197
|
-
|
|
197
|
+
L && L.nodes.length > 0 && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
198
198
|
className: "flex flex-wrap items-center gap-2",
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
"aria-label":
|
|
202
|
-
placeholder:
|
|
203
|
-
value:
|
|
204
|
-
onChange: (e) =>
|
|
200
|
+
/* @__PURE__ */ S(A, {
|
|
201
|
+
"aria-label": u("semanticfed.lineage.search", "Filter nodes"),
|
|
202
|
+
placeholder: u("semanticfed.lineage.search", "Filter nodes"),
|
|
203
|
+
value: N,
|
|
204
|
+
onChange: (e) => I(e.target.value),
|
|
205
205
|
className: "w-full sm:w-64",
|
|
206
206
|
"data-testid": "lineage-search"
|
|
207
207
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ S("div", {
|
|
209
209
|
className: "flex rounded-md border",
|
|
210
210
|
role: "group",
|
|
211
|
-
"aria-label":
|
|
212
|
-
children:
|
|
211
|
+
"aria-label": u("semanticfed.lineage.direction", "Direction"),
|
|
212
|
+
children: ie.map((e) => /* @__PURE__ */ S(T, {
|
|
213
213
|
type: "button",
|
|
214
214
|
size: "sm",
|
|
215
|
-
variant:
|
|
216
|
-
onClick: () =>
|
|
217
|
-
"aria-pressed":
|
|
215
|
+
variant: h === e ? "default" : "ghost",
|
|
216
|
+
onClick: () => _(e),
|
|
217
|
+
"aria-pressed": h === e,
|
|
218
218
|
"data-testid": `lineage-direction-${e}`,
|
|
219
|
-
children: e === "UPSTREAM" ?
|
|
219
|
+
children: e === "UPSTREAM" ? u("semanticfed.lineage.upstream", "Upstream") : e === "DOWNSTREAM" ? u("semanticfed.lineage.downstream", "Downstream") : u("semanticfed.lineage.both", "Both")
|
|
220
220
|
}, e))
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ C("label", {
|
|
223
223
|
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
224
|
-
children: [
|
|
224
|
+
children: [u("semanticfed.lineage.depth", "Depth"), /* @__PURE__ */ C("select", {
|
|
225
225
|
className: "rounded border bg-background p-1.5 text-sm text-foreground",
|
|
226
|
-
value:
|
|
227
|
-
onChange: (e) =>
|
|
226
|
+
value: v ?? "",
|
|
227
|
+
onChange: (e) => y(e.target.value ? Number(e.target.value) : null),
|
|
228
228
|
"data-testid": "lineage-depth",
|
|
229
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ S("option", {
|
|
230
230
|
value: "",
|
|
231
|
-
children:
|
|
232
|
-
}),
|
|
231
|
+
children: u("semanticfed.lineage.depthAll", "All")
|
|
232
|
+
}), P.map((e) => /* @__PURE__ */ S("option", {
|
|
233
233
|
value: e,
|
|
234
234
|
children: e
|
|
235
235
|
}, e))]
|
|
236
236
|
})]
|
|
237
237
|
}),
|
|
238
|
-
|
|
238
|
+
B && /* @__PURE__ */ C(T, {
|
|
239
239
|
type: "button",
|
|
240
240
|
size: "sm",
|
|
241
241
|
variant: "outline",
|
|
242
|
-
onClick: () =>
|
|
242
|
+
onClick: () => m(null),
|
|
243
243
|
className: "gap-1",
|
|
244
244
|
"data-testid": "lineage-clear",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
245
|
+
children: [/* @__PURE__ */ S(b, { className: "h-3 w-3" }), u("semanticfed.lineage.clear", "Clear selection")]
|
|
246
246
|
})
|
|
247
247
|
]
|
|
248
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ C("div", {
|
|
249
249
|
className: "grid gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ S("div", {
|
|
251
251
|
className: "min-w-0 overflow-x-auto",
|
|
252
|
-
children: /* @__PURE__ */
|
|
252
|
+
children: /* @__PURE__ */ S("div", {
|
|
253
253
|
className: "grid min-w-0 grid-cols-1 gap-3 md:min-w-[60rem] md:grid-cols-6",
|
|
254
254
|
"data-testid": "lineage-lanes",
|
|
255
|
-
children:
|
|
256
|
-
let t =
|
|
257
|
-
return /* @__PURE__ */
|
|
255
|
+
children: re.map((e) => {
|
|
256
|
+
let t = L.nodes.filter((t) => e.kinds.includes(t.kind) && K(t));
|
|
257
|
+
return /* @__PURE__ */ C("section", {
|
|
258
258
|
className: "min-w-0 space-y-2",
|
|
259
259
|
"data-testid": `lineage-lane-${e.id}`,
|
|
260
260
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ C("h2", {
|
|
262
262
|
className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
263
263
|
children: [
|
|
264
|
-
|
|
264
|
+
u(`semanticfed.lineage.lanes.${e.id}`, e.label),
|
|
265
265
|
" ",
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ C("span", {
|
|
267
267
|
className: "font-normal",
|
|
268
268
|
children: [
|
|
269
269
|
"(",
|
|
@@ -273,15 +273,15 @@ function B() {
|
|
|
273
273
|
})
|
|
274
274
|
]
|
|
275
275
|
}),
|
|
276
|
-
t.length === 0 && /* @__PURE__ */
|
|
276
|
+
t.length === 0 && /* @__PURE__ */ S("p", {
|
|
277
277
|
className: "text-xs text-muted-foreground",
|
|
278
278
|
children: "—"
|
|
279
279
|
}),
|
|
280
280
|
t.map((e) => {
|
|
281
|
-
let t =
|
|
282
|
-
return /* @__PURE__ */
|
|
281
|
+
let t = j[e.kind], n = e.id === f, r = U?.has(e.id) ?? !1, a = U !== null && !r;
|
|
282
|
+
return /* @__PURE__ */ C("button", {
|
|
283
283
|
type: "button",
|
|
284
|
-
onClick: () =>
|
|
284
|
+
onClick: () => m(n ? null : e.id),
|
|
285
285
|
"aria-pressed": n,
|
|
286
286
|
title: e.detail ?? e.label,
|
|
287
287
|
"data-testid": "lineage-node",
|
|
@@ -289,13 +289,13 @@ function B() {
|
|
|
289
289
|
"data-node-kind": e.kind,
|
|
290
290
|
"data-in-lineage": r ? "true" : "false",
|
|
291
291
|
className: i("w-full rounded-md border bg-card p-2 text-left text-sm transition-colors hover:bg-accent", n && "border-primary ring-2 ring-primary", r && !n && "border-primary bg-accent", a && "opacity-40"),
|
|
292
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ C("span", {
|
|
293
293
|
className: "flex items-center gap-1.5 font-medium",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ S(t, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }), /* @__PURE__ */ S("span", {
|
|
295
295
|
className: "truncate",
|
|
296
296
|
children: e.label
|
|
297
297
|
})]
|
|
298
|
-
}), (e.detail || e.status) && /* @__PURE__ */
|
|
298
|
+
}), (e.detail || e.status) && /* @__PURE__ */ S("span", {
|
|
299
299
|
className: "mt-0.5 block truncate text-xs text-muted-foreground",
|
|
300
300
|
children: [e.status, e.detail].filter(Boolean).join(" · ")
|
|
301
301
|
})]
|
|
@@ -305,72 +305,72 @@ function B() {
|
|
|
305
305
|
}, e.id);
|
|
306
306
|
})
|
|
307
307
|
})
|
|
308
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ C(E, {
|
|
309
309
|
className: "min-w-0 self-start",
|
|
310
310
|
"data-testid": "lineage-details",
|
|
311
|
-
children: [/* @__PURE__ */
|
|
311
|
+
children: [/* @__PURE__ */ S(O, {
|
|
312
312
|
className: "pb-3",
|
|
313
|
-
children: /* @__PURE__ */
|
|
313
|
+
children: /* @__PURE__ */ C(k, {
|
|
314
314
|
className: "flex items-center gap-2 text-base",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ S(p, { className: "h-4 w-4" }), B ? B.label : u("semanticfed.lineage.details.title", "Lineage details")]
|
|
316
316
|
})
|
|
317
|
-
}), /* @__PURE__ */
|
|
317
|
+
}), /* @__PURE__ */ C(D, {
|
|
318
318
|
className: "space-y-4 text-sm",
|
|
319
|
-
children: [!
|
|
319
|
+
children: [!B && /* @__PURE__ */ S("p", {
|
|
320
320
|
className: "text-muted-foreground",
|
|
321
|
-
children:
|
|
322
|
-
}),
|
|
323
|
-
/* @__PURE__ */
|
|
321
|
+
children: u("semanticfed.lineage.details.hint", "Select a source, table, entity, field, model or query to trace its lineage.")
|
|
322
|
+
}), B && /* @__PURE__ */ C(x, { children: [
|
|
323
|
+
/* @__PURE__ */ C("div", {
|
|
324
324
|
className: "space-y-1",
|
|
325
325
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ S(w, {
|
|
327
327
|
variant: "outline",
|
|
328
|
-
children:
|
|
328
|
+
children: u(`semanticfed.lineage.kinds.${B.kind}`, M[B.kind])
|
|
329
329
|
}),
|
|
330
|
-
|
|
330
|
+
B.detail && /* @__PURE__ */ S("p", {
|
|
331
331
|
className: "break-words font-mono text-xs text-muted-foreground",
|
|
332
|
-
children:
|
|
332
|
+
children: B.detail
|
|
333
333
|
}),
|
|
334
|
-
|
|
334
|
+
B.status && /* @__PURE__ */ S("p", {
|
|
335
335
|
className: "text-xs text-muted-foreground",
|
|
336
|
-
children:
|
|
336
|
+
children: B.status
|
|
337
337
|
})
|
|
338
338
|
]
|
|
339
339
|
}),
|
|
340
|
-
|
|
340
|
+
V && H.isPending && /* @__PURE__ */ C("p", {
|
|
341
341
|
className: "flex items-center gap-2 text-muted-foreground",
|
|
342
|
-
children: [/* @__PURE__ */
|
|
342
|
+
children: [/* @__PURE__ */ S(g, { className: "h-4 w-4 animate-spin" }), u("semanticfed.lineage.tracing", "Tracing lineage…")]
|
|
343
343
|
}),
|
|
344
|
-
|
|
344
|
+
V && H.isError && /* @__PURE__ */ S("p", {
|
|
345
345
|
className: "text-destructive",
|
|
346
346
|
"data-testid": "lineage-record-error",
|
|
347
|
-
children: e(
|
|
347
|
+
children: e(H.error)
|
|
348
348
|
}),
|
|
349
|
-
|
|
349
|
+
U && /* @__PURE__ */ S("p", {
|
|
350
350
|
className: "text-muted-foreground",
|
|
351
351
|
"data-testid": "lineage-reach",
|
|
352
|
-
children:
|
|
352
|
+
children: u("semanticfed.lineage.details.reach", "{{count}} nodes in this lineage", { count: Math.max(U.size - 1, 0) })
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
title:
|
|
356
|
-
icon:
|
|
357
|
-
edges:
|
|
354
|
+
/* @__PURE__ */ S(R, {
|
|
355
|
+
title: u("semanticfed.lineage.details.upstream", "Comes from"),
|
|
356
|
+
icon: te,
|
|
357
|
+
edges: J,
|
|
358
358
|
otherEnd: (e) => e.from,
|
|
359
359
|
nodeLabel: X,
|
|
360
360
|
nodeKindLabel: Z,
|
|
361
|
-
onSelect:
|
|
362
|
-
emptyText:
|
|
361
|
+
onSelect: m,
|
|
362
|
+
emptyText: u("semanticfed.lineage.details.noUpstream", "Nothing upstream"),
|
|
363
363
|
testId: "lineage-upstream"
|
|
364
364
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
366
|
-
title:
|
|
367
|
-
icon:
|
|
368
|
-
edges:
|
|
365
|
+
/* @__PURE__ */ S(R, {
|
|
366
|
+
title: u("semanticfed.lineage.details.downstream", "Feeds into"),
|
|
367
|
+
icon: ee,
|
|
368
|
+
edges: Y,
|
|
369
369
|
otherEnd: (e) => e.to,
|
|
370
370
|
nodeLabel: X,
|
|
371
371
|
nodeKindLabel: Z,
|
|
372
|
-
onSelect:
|
|
373
|
-
emptyText:
|
|
372
|
+
onSelect: m,
|
|
373
|
+
emptyText: u("semanticfed.lineage.details.noDownstream", "Nothing downstream"),
|
|
374
374
|
testId: "lineage-downstream"
|
|
375
375
|
})
|
|
376
376
|
] })]
|
|
@@ -380,51 +380,51 @@ function B() {
|
|
|
380
380
|
]
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return /* @__PURE__ */
|
|
383
|
+
function R({ title: e, icon: t, edges: n, otherEnd: r, nodeLabel: i, nodeKindLabel: a, onSelect: o, emptyText: s, testId: c }) {
|
|
384
|
+
return /* @__PURE__ */ C("div", {
|
|
385
385
|
className: "space-y-2",
|
|
386
386
|
"data-testid": c,
|
|
387
387
|
children: [
|
|
388
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ C("h3", {
|
|
389
389
|
className: "flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",
|
|
390
390
|
children: [
|
|
391
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ S(t, { className: "h-3.5 w-3.5" }),
|
|
392
392
|
e,
|
|
393
393
|
" (",
|
|
394
394
|
n.length,
|
|
395
395
|
")"
|
|
396
396
|
]
|
|
397
397
|
}),
|
|
398
|
-
n.length === 0 && /* @__PURE__ */
|
|
398
|
+
n.length === 0 && /* @__PURE__ */ S("p", {
|
|
399
399
|
className: "text-xs text-muted-foreground",
|
|
400
400
|
children: s
|
|
401
401
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ S("ul", {
|
|
403
403
|
className: "space-y-1.5",
|
|
404
404
|
children: n.map((e) => {
|
|
405
|
-
let t = r(e), n =
|
|
406
|
-
return /* @__PURE__ */
|
|
405
|
+
let t = r(e), n = I(e.observedAt);
|
|
406
|
+
return /* @__PURE__ */ C("li", {
|
|
407
407
|
className: "rounded border p-2",
|
|
408
408
|
children: [
|
|
409
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ S("button", {
|
|
410
410
|
type: "button",
|
|
411
411
|
className: "font-medium hover:underline",
|
|
412
412
|
onClick: () => o(t),
|
|
413
413
|
children: i(t)
|
|
414
414
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ C("span", {
|
|
416
416
|
className: "ml-1 text-xs text-muted-foreground",
|
|
417
417
|
children: [
|
|
418
418
|
a(t),
|
|
419
419
|
" · ",
|
|
420
|
-
|
|
420
|
+
N[e.kind]
|
|
421
421
|
]
|
|
422
422
|
}),
|
|
423
|
-
e.detail && /* @__PURE__ */
|
|
423
|
+
e.detail && /* @__PURE__ */ S("p", {
|
|
424
424
|
className: "mt-0.5 break-words font-mono text-xs text-muted-foreground",
|
|
425
425
|
children: e.detail
|
|
426
426
|
}),
|
|
427
|
-
n && /* @__PURE__ */
|
|
427
|
+
n && /* @__PURE__ */ S("p", {
|
|
428
428
|
className: "mt-0.5 text-xs text-muted-foreground",
|
|
429
429
|
children: n
|
|
430
430
|
})
|
|
@@ -435,6 +435,6 @@ function V({ title: e, icon: t, edges: n, otherEnd: r, nodeLabel: i, nodeKindLab
|
|
|
435
435
|
]
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
export {
|
|
438
|
+
export { L as LineagePage };
|
|
439
439
|
|
|
440
440
|
//# sourceMappingURL=LineagePage.js.map
|