@burdenoff/microfe-semanticfed 2026.1109.10 → 2026.1109.12

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.
@@ -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 l, ArrowUpLeft as ee, Boxes as u, Columns3 as d, Database as f, FileCode2 as p, GitBranch as m, Hash as h, Layers as g, Loader2 as _, Plug as v, Ruler as y, Table2 as b, X as x } from "lucide-react";
6
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
7
- import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell";
8
- import { Badge as T, Button as E, Card as D, CardContent as O, CardHeader as k, CardTitle as A, Input as j } from "@burdenoff/fe-libs/ui";
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 M = {
11
- CONNECTOR: v,
12
- DATA_SOURCE: f,
13
- TABLE: b,
14
- ENTITY: u,
15
- DIMENSION: y,
16
- METRIC: h,
17
- COLUMN: d,
18
- MODEL: g,
19
- QUERY: p
20
- }, N = {
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
- }, P = [
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
- ], F = {
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
- }, I = [
75
+ }, ie = [
76
76
  "UPSTREAM",
77
77
  "BOTH",
78
78
  "DOWNSTREAM"
79
- ], L = [
79
+ ], P = [
80
80
  1,
81
81
  2,
82
82
  3,
83
83
  5,
84
84
  10
85
85
  ];
86
- function R(e, t, n, r) {
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 z(e) {
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 B() {
107
- let { t: u } = te(), d = (e, t, n) => a(u, e, t, n), f = r(), [p, h] = s(null), [g, v] = s("BOTH"), [y, b] = s(null), [F, z] = s(""), B = f.data, H = o(() => new Map((B?.nodes ?? []).map((e) => [e.id, e])), [B]), U = p ? H.get(p) ?? null : null, W = U ? t(U) : null, G = n(W, g, y), K = o(() => !B || !U ? null : W ? G.data ? new Set(G.data.nodes.map((e) => e.id)) : null : R(B, U.id, g, y), [
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
- U,
110
- W,
111
- G.data,
112
- g,
113
- y
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
- K
120
- ]), J = F.trim().toLowerCase(), ne = (e) => J === "" || e.label.toLowerCase().includes(J) || (e.detail ?? "").toLowerCase().includes(J), Y = o(() => {
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 B?.nodes ?? []) e[t.kind] = (e[t.kind] ?? 0) + 1;
122
+ for (let t of L?.nodes ?? []) e[t.kind] = (e[t.kind] ?? 0) + 1;
123
123
  return e;
124
- }, [B]), re = U ? q.filter((e) => e.to === U.id) : [], ie = U ? q.filter((e) => e.from === U.id) : [], X = (e) => H.get(e)?.label ?? e, Z = (e) => {
125
- let t = H.get(e);
126
- return t ? d(`semanticfed.lineage.kinds.${t.kind}`, N[t.kind]) : "";
127
- }, ae = f.isSuccess && (B?.nodes.length ?? 0) === 0, Q = [...B?.warnings ?? []], $ = !!(B?.truncated || G.data?.truncated);
128
- return /* @__PURE__ */ w("div", {
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__ */ w("div", {
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__ */ w("div", { children: [/* @__PURE__ */ C("h1", {
135
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h1", {
136
136
  className: "text-2xl font-semibold",
137
- children: d("semanticfed.lineage.title", "Lineage")
138
- }), /* @__PURE__ */ C("p", {
137
+ children: u("semanticfed.lineage.title", "Lineage")
138
+ }), /* @__PURE__ */ S("p", {
139
139
  className: "text-sm text-muted-foreground",
140
- children: d("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__ */ C("div", {
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(N).filter((e) => Y[e]).map((e) => {
145
- let t = M[e];
146
- return /* @__PURE__ */ w(T, {
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__ */ C(t, { className: "h-3 w-3" }),
151
- Y[e],
150
+ /* @__PURE__ */ S(t, { className: "h-3 w-3" }),
151
+ q[e],
152
152
  " ",
153
- d(`semanticfed.lineage.kinds.${e}`, N[e])
153
+ u(`semanticfed.lineage.kinds.${e}`, M[e])
154
154
  ]
155
155
  }, e);
156
156
  })
157
157
  })]
158
158
  }),
159
- f.isPending && /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
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__ */ C(_, { className: "h-5 w-5 animate-spin" }), d("semanticfed.lineage.loading", "Computing lineage…")]
161
+ children: [/* @__PURE__ */ S(g, { className: "h-5 w-5 animate-spin" }), u("semanticfed.lineage.loading", "Computing lineage…")]
162
162
  }) }),
163
- f.isError && /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
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__ */ C(c, { className: "h-5 w-5" }), e(f.error)]
166
+ children: [/* @__PURE__ */ S(c, { className: "h-5 w-5" }), e(d.error)]
167
167
  }) }),
168
- ae && /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
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__ */ C(m, { className: "h-5 w-5" }), d("semanticfed.lineage.empty", "No lineage yet. Connect a data source and model an entity on it; lineage appears here as soon as records exist.")]
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__ */ w(D, {
173
+ (Q.length > 0 || $) && /* @__PURE__ */ C(E, {
174
174
  "data-testid": "lineage-warnings",
175
- children: [/* @__PURE__ */ C(k, {
175
+ children: [/* @__PURE__ */ S(O, {
176
176
  className: "pb-2",
177
- children: /* @__PURE__ */ w(A, {
177
+ children: /* @__PURE__ */ C(k, {
178
178
  className: "flex items-center gap-2 text-base",
179
- children: [/* @__PURE__ */ C(c, { className: "h-4 w-4 text-destructive" }), d("semanticfed.lineage.warnings.title", "Lineage warnings")]
179
+ children: [/* @__PURE__ */ S(c, { className: "h-4 w-4 text-destructive" }), u("semanticfed.lineage.warnings.title", "Lineage warnings")]
180
180
  })
181
- }), /* @__PURE__ */ w(O, {
181
+ }), /* @__PURE__ */ C(D, {
182
182
  className: "space-y-1 text-sm",
183
- children: [$ && /* @__PURE__ */ C("p", {
183
+ children: [$ && /* @__PURE__ */ S("p", {
184
184
  className: "text-muted-foreground",
185
- children: d("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__ */ w("button", {
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 && h(e.nodeId),
190
- children: [e.nodeId ? /* @__PURE__ */ w("span", {
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
- B && B.nodes.length > 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("div", {
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__ */ C(j, {
201
- "aria-label": d("semanticfed.lineage.search", "Filter nodes"),
202
- placeholder: d("semanticfed.lineage.search", "Filter nodes"),
203
- value: F,
204
- onChange: (e) => z(e.target.value),
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__ */ C("div", {
208
+ /* @__PURE__ */ S("div", {
209
209
  className: "flex rounded-md border",
210
210
  role: "group",
211
- "aria-label": d("semanticfed.lineage.direction", "Direction"),
212
- children: I.map((e) => /* @__PURE__ */ C(E, {
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: g === e ? "default" : "ghost",
216
- onClick: () => v(e),
217
- "aria-pressed": g === e,
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" ? d("semanticfed.lineage.upstream", "Upstream") : e === "DOWNSTREAM" ? d("semanticfed.lineage.downstream", "Downstream") : d("semanticfed.lineage.both", "Both")
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__ */ w("label", {
222
+ /* @__PURE__ */ C("label", {
223
223
  className: "flex items-center gap-2 text-sm text-muted-foreground",
224
- children: [d("semanticfed.lineage.depth", "Depth"), /* @__PURE__ */ w("select", {
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: y ?? "",
227
- onChange: (e) => b(e.target.value ? Number(e.target.value) : null),
226
+ value: v ?? "",
227
+ onChange: (e) => y(e.target.value ? Number(e.target.value) : null),
228
228
  "data-testid": "lineage-depth",
229
- children: [/* @__PURE__ */ C("option", {
229
+ children: [/* @__PURE__ */ S("option", {
230
230
  value: "",
231
- children: d("semanticfed.lineage.depthAll", "All")
232
- }), L.map((e) => /* @__PURE__ */ C("option", {
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
- U && /* @__PURE__ */ w(E, {
238
+ B && /* @__PURE__ */ C(T, {
239
239
  type: "button",
240
240
  size: "sm",
241
241
  variant: "outline",
242
- onClick: () => h(null),
242
+ onClick: () => m(null),
243
243
  className: "gap-1",
244
244
  "data-testid": "lineage-clear",
245
- children: [/* @__PURE__ */ C(x, { className: "h-3 w-3" }), d("semanticfed.lineage.clear", "Clear selection")]
245
+ children: [/* @__PURE__ */ S(b, { className: "h-3 w-3" }), u("semanticfed.lineage.clear", "Clear selection")]
246
246
  })
247
247
  ]
248
- }), /* @__PURE__ */ w("div", {
248
+ }), /* @__PURE__ */ C("div", {
249
249
  className: "grid gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]",
250
- children: [/* @__PURE__ */ C("div", {
250
+ children: [/* @__PURE__ */ S("div", {
251
251
  className: "min-w-0 overflow-x-auto",
252
- children: /* @__PURE__ */ C("div", {
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: P.map((e) => {
256
- let t = B.nodes.filter((t) => e.kinds.includes(t.kind) && ne(t));
257
- return /* @__PURE__ */ w("section", {
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__ */ w("h2", {
261
+ /* @__PURE__ */ C("h2", {
262
262
  className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground",
263
263
  children: [
264
- d(`semanticfed.lineage.lanes.${e.id}`, e.label),
264
+ u(`semanticfed.lineage.lanes.${e.id}`, e.label),
265
265
  " ",
266
- /* @__PURE__ */ w("span", {
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__ */ C("p", {
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 = M[e.kind], n = e.id === p, r = K?.has(e.id) ?? !1, a = K !== null && !r;
282
- return /* @__PURE__ */ w("button", {
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: () => h(n ? null : e.id),
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__ */ w("span", {
292
+ children: [/* @__PURE__ */ C("span", {
293
293
  className: "flex items-center gap-1.5 font-medium",
294
- children: [/* @__PURE__ */ C(t, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }), /* @__PURE__ */ C("span", {
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__ */ C("span", {
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__ */ w(D, {
308
+ }), /* @__PURE__ */ C(E, {
309
309
  className: "min-w-0 self-start",
310
310
  "data-testid": "lineage-details",
311
- children: [/* @__PURE__ */ C(k, {
311
+ children: [/* @__PURE__ */ S(O, {
312
312
  className: "pb-3",
313
- children: /* @__PURE__ */ w(A, {
313
+ children: /* @__PURE__ */ C(k, {
314
314
  className: "flex items-center gap-2 text-base",
315
- children: [/* @__PURE__ */ C(m, { className: "h-4 w-4" }), U ? U.label : d("semanticfed.lineage.details.title", "Lineage details")]
315
+ children: [/* @__PURE__ */ S(p, { className: "h-4 w-4" }), B ? B.label : u("semanticfed.lineage.details.title", "Lineage details")]
316
316
  })
317
- }), /* @__PURE__ */ w(O, {
317
+ }), /* @__PURE__ */ C(D, {
318
318
  className: "space-y-4 text-sm",
319
- children: [!U && /* @__PURE__ */ C("p", {
319
+ children: [!B && /* @__PURE__ */ S("p", {
320
320
  className: "text-muted-foreground",
321
- children: d("semanticfed.lineage.details.hint", "Select a source, table, entity, field, model or query to trace its lineage.")
322
- }), U && /* @__PURE__ */ w(S, { children: [
323
- /* @__PURE__ */ w("div", {
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__ */ C(T, {
326
+ /* @__PURE__ */ S(w, {
327
327
  variant: "outline",
328
- children: d(`semanticfed.lineage.kinds.${U.kind}`, N[U.kind])
328
+ children: u(`semanticfed.lineage.kinds.${B.kind}`, M[B.kind])
329
329
  }),
330
- U.detail && /* @__PURE__ */ C("p", {
330
+ B.detail && /* @__PURE__ */ S("p", {
331
331
  className: "break-words font-mono text-xs text-muted-foreground",
332
- children: U.detail
332
+ children: B.detail
333
333
  }),
334
- U.status && /* @__PURE__ */ C("p", {
334
+ B.status && /* @__PURE__ */ S("p", {
335
335
  className: "text-xs text-muted-foreground",
336
- children: U.status
336
+ children: B.status
337
337
  })
338
338
  ]
339
339
  }),
340
- W && G.isPending && /* @__PURE__ */ w("p", {
340
+ V && H.isPending && /* @__PURE__ */ C("p", {
341
341
  className: "flex items-center gap-2 text-muted-foreground",
342
- children: [/* @__PURE__ */ C(_, { className: "h-4 w-4 animate-spin" }), d("semanticfed.lineage.tracing", "Tracing lineage…")]
342
+ children: [/* @__PURE__ */ S(g, { className: "h-4 w-4 animate-spin" }), u("semanticfed.lineage.tracing", "Tracing lineage…")]
343
343
  }),
344
- W && G.isError && /* @__PURE__ */ C("p", {
344
+ V && H.isError && /* @__PURE__ */ S("p", {
345
345
  className: "text-destructive",
346
346
  "data-testid": "lineage-record-error",
347
- children: e(G.error)
347
+ children: e(H.error)
348
348
  }),
349
- K && /* @__PURE__ */ C("p", {
349
+ U && /* @__PURE__ */ S("p", {
350
350
  className: "text-muted-foreground",
351
351
  "data-testid": "lineage-reach",
352
- children: d("semanticfed.lineage.details.reach", "{{count}} nodes in this lineage", { count: Math.max(K.size - 1, 0) })
352
+ children: u("semanticfed.lineage.details.reach", "{{count}} nodes in this lineage", { count: Math.max(U.size - 1, 0) })
353
353
  }),
354
- /* @__PURE__ */ C(V, {
355
- title: d("semanticfed.lineage.details.upstream", "Comes from"),
356
- icon: ee,
357
- edges: re,
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: h,
362
- emptyText: d("semanticfed.lineage.details.noUpstream", "Nothing upstream"),
361
+ onSelect: m,
362
+ emptyText: u("semanticfed.lineage.details.noUpstream", "Nothing upstream"),
363
363
  testId: "lineage-upstream"
364
364
  }),
365
- /* @__PURE__ */ C(V, {
366
- title: d("semanticfed.lineage.details.downstream", "Feeds into"),
367
- icon: l,
368
- edges: ie,
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: h,
373
- emptyText: d("semanticfed.lineage.details.noDownstream", "Nothing downstream"),
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 V({ title: e, icon: t, edges: n, otherEnd: r, nodeLabel: i, nodeKindLabel: a, onSelect: o, emptyText: s, testId: c }) {
384
- return /* @__PURE__ */ w("div", {
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__ */ w("h3", {
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__ */ C(t, { className: "h-3.5 w-3.5" }),
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__ */ C("p", {
398
+ n.length === 0 && /* @__PURE__ */ S("p", {
399
399
  className: "text-xs text-muted-foreground",
400
400
  children: s
401
401
  }),
402
- /* @__PURE__ */ C("ul", {
402
+ /* @__PURE__ */ S("ul", {
403
403
  className: "space-y-1.5",
404
404
  children: n.map((e) => {
405
- let t = r(e), n = z(e.observedAt);
406
- return /* @__PURE__ */ w("li", {
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__ */ C("button", {
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__ */ w("span", {
415
+ /* @__PURE__ */ C("span", {
416
416
  className: "ml-1 text-xs text-muted-foreground",
417
417
  children: [
418
418
  a(t),
419
419
  " · ",
420
- F[e.kind]
420
+ N[e.kind]
421
421
  ]
422
422
  }),
423
- e.detail && /* @__PURE__ */ C("p", {
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__ */ C("p", {
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 { B as LineagePage };
438
+ export { L as LineagePage };
439
439
 
440
440
  //# sourceMappingURL=LineagePage.js.map