@burdenoff/microfe-semanticfed 2026.1031.5 → 2026.1031.6

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.
@@ -84,19 +84,19 @@ var M = {
84
84
  10
85
85
  ];
86
86
  function R(e, t, n, r) {
87
- let i = new Set([t]), a = (n) => {
88
- let a = [t], o = 0;
89
- for (; a.length > 0 && (r === null || o < r);) {
90
- let t = [];
91
- for (let r of e.edges) {
92
- if (r.kind === "JOINS") continue;
93
- let [e, o] = n ? [r.from, r.to] : [r.to, r.from];
94
- a.includes(e) && !i.has(o) && (i.add(o), t.push(o));
87
+ let i = new Set([t]), a = new Set(e.nodes.filter((e) => e.kind === "MODEL").map((e) => e.id)), o = (n) => {
88
+ let o = new Set([t]), s = 0;
89
+ for (; o.size > 0 && (r === null || s < r);) {
90
+ let r = /* @__PURE__ */ new Set();
91
+ for (let s of e.edges) {
92
+ if (s.kind === "JOINS") continue;
93
+ let [e, c] = n ? [s.from, s.to] : [s.to, s.from];
94
+ e !== t && a.has(e) || o.has(e) && !i.has(c) && (i.add(c), r.add(c));
95
95
  }
96
- a = t, o += 1;
96
+ o = r, s += 1;
97
97
  }
98
98
  };
99
- return n !== "DOWNSTREAM" && a(!1), n !== "UPSTREAM" && a(!0), i;
99
+ return n !== "DOWNSTREAM" && o(!1), n !== "UPSTREAM" && o(!0), i;
100
100
  }
101
101
  function z(e) {
102
102
  if (!e) return null;
@@ -1 +1 @@
1
- {"version":3,"file":"LineagePage.js","names":[],"sources":["../../../src/semanticfed/pages/LineagePage.tsx"],"sourcesContent":["/**\n * Lineage page (BOFF-4279) — end-to-end lineage of the workspace's semantic\n * layer, read from the `semLineage` API.\n *\n * The workspace graph is laid out in lanes in the direction data flows\n * (sources → tables → entities → fields → models → queries). Selecting a node\n * asks the API for that record's upstream / downstream lineage and highlights\n * it; tables and unregistered columns (which have no SemanticFed record to\n * start a traversal from) are traced over the workspace graph instead.\n */\nimport { useMemo, useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Badge,\n Button,\n Card,\n CardContent,\n CardHeader,\n CardTitle,\n Input,\n} from '@burdenoff/fe-libs/ui';\nimport {\n AlertTriangle,\n ArrowDownRight,\n ArrowUpLeft,\n Boxes,\n Columns3,\n Database,\n FileCode2,\n GitBranch,\n Hash,\n Layers,\n Loader2,\n Plug,\n Ruler,\n Table2,\n X,\n} from 'lucide-react';\nimport type { LucideIcon } from 'lucide-react';\n\nimport {\n type SemLineageDirection,\n type SemLineageEdge,\n type SemLineageGraph,\n type SemLineageNode,\n type SemLineageNodeKind,\n lineageErrorMessage,\n lineageRootFor,\n useSemRecordLineage,\n useSemWorkspaceLineage,\n} from '../hooks/useLineage';\nimport { cn } from '../utils/cn';\nimport { translateWithFallback } from '../utils/i18n';\n\nconst KIND_ICON: Record<SemLineageNodeKind, LucideIcon> = {\n CONNECTOR: Plug,\n DATA_SOURCE: Database,\n TABLE: Table2,\n ENTITY: Boxes,\n DIMENSION: Ruler,\n METRIC: Hash,\n COLUMN: Columns3,\n MODEL: Layers,\n QUERY: FileCode2,\n};\n\nconst KIND_LABEL: Record<SemLineageNodeKind, string> = {\n CONNECTOR: 'Connector',\n DATA_SOURCE: 'Data source',\n TABLE: 'Table',\n ENTITY: 'Entity',\n DIMENSION: 'Dimension',\n METRIC: 'Metric',\n COLUMN: 'Column',\n MODEL: 'Model',\n QUERY: 'Query',\n};\n\ninterface Lane {\n id: string;\n label: string;\n kinds: SemLineageNodeKind[];\n}\n\n/** Lanes in the direction data flows. */\nconst LANES: Lane[] = [\n { id: 'sources', label: 'Sources', kinds: ['CONNECTOR', 'DATA_SOURCE'] },\n { id: 'tables', label: 'Tables', kinds: ['TABLE'] },\n { id: 'entities', label: 'Entities', kinds: ['ENTITY'] },\n { id: 'fields', label: 'Fields', kinds: ['DIMENSION', 'METRIC', 'COLUMN'] },\n { id: 'models', label: 'Models', kinds: ['MODEL'] },\n { id: 'queries', label: 'Queries', kinds: ['QUERY'] },\n];\n\nconst EDGE_LABEL: Record<SemLineageEdge['kind'], string> = {\n PROVIDES: 'provides',\n HOSTS: 'hosts',\n MAPS_TO: 'maps to',\n DEFINES: 'defines',\n MEMBER_OF: 'member of',\n JOINS: 'joins',\n SERVES: 'serves',\n READ_BY: 'read by',\n EXECUTED_ON: 'executed on',\n};\n\nconst DIRECTIONS: SemLineageDirection[] = ['UPSTREAM', 'BOTH', 'DOWNSTREAM'];\nconst DEPTH_OPTIONS = [1, 2, 3, 5, 10] as const;\n\n/**\n * Upstream / downstream reach of a node over a graph that is already loaded,\n * for node kinds the API cannot start from. JOINS edges are context, not data\n * flow, so they are shown but not followed (matching the service).\n */\nfunction traceLocally(\n graph: SemLineageGraph,\n rootId: string,\n direction: SemLineageDirection,\n depth: number | null\n): Set<string> {\n const reached = new Set<string>([rootId]);\n const walk = (forward: boolean) => {\n let frontier = [rootId];\n let hops = 0;\n while (frontier.length > 0 && (depth === null || hops < depth)) {\n const next: string[] = [];\n for (const edge of graph.edges) {\n if (edge.kind === 'JOINS') continue;\n const [from, to] = forward ? [edge.from, edge.to] : [edge.to, edge.from];\n if (frontier.includes(from) && !reached.has(to)) {\n reached.add(to);\n next.push(to);\n }\n }\n frontier = next;\n hops += 1;\n }\n };\n if (direction !== 'DOWNSTREAM') walk(false);\n if (direction !== 'UPSTREAM') walk(true);\n return reached;\n}\n\nfunction formatObservedAt(value: string | null): string | null {\n if (!value) return null;\n const date = new Date(value);\n return Number.isNaN(date.getTime()) ? null : date.toLocaleString();\n}\n\nexport function LineagePage() {\n const { t } = useI18n();\n const tx = (key: string, fallback: string, params?: Record<string, string | number>) =>\n translateWithFallback(t, key, fallback, params);\n\n const workspace = useSemWorkspaceLineage();\n const [selectedId, setSelectedId] = useState<string | null>(null);\n const [direction, setDirection] = useState<SemLineageDirection>('BOTH');\n const [depth, setDepth] = useState<number | null>(null);\n const [search, setSearch] = useState('');\n\n const graph = workspace.data;\n const nodesById = useMemo(\n () => new Map((graph?.nodes ?? []).map((node) => [node.id, node] as const)),\n [graph]\n );\n const selected = selectedId ? (nodesById.get(selectedId) ?? null) : null;\n const root = selected ? lineageRootFor(selected) : null;\n const record = useSemRecordLineage(root, direction, depth);\n\n // The node ids in the selected node's lineage: from the API for records,\n // traced over the workspace graph for tables and columns.\n const highlighted = useMemo<Set<string> | null>(() => {\n if (!graph || !selected) return null;\n if (root) return record.data ? new Set(record.data.nodes.map((n) => n.id)) : null;\n return traceLocally(graph, selected.id, direction, depth);\n }, [graph, selected, root, record.data, direction, depth]);\n\n const lineageEdges = useMemo<SemLineageEdge[]>(() => {\n if (!selected) return [];\n if (root) return record.data?.edges ?? [];\n if (!graph || !highlighted) return [];\n return graph.edges.filter((e) => highlighted.has(e.from) && highlighted.has(e.to));\n }, [selected, root, record.data, graph, highlighted]);\n\n const query = search.trim().toLowerCase();\n const matches = (node: SemLineageNode) =>\n query === '' ||\n node.label.toLowerCase().includes(query) ||\n (node.detail ?? '').toLowerCase().includes(query);\n\n const counts = useMemo(() => {\n const byKind: Partial<Record<SemLineageNodeKind, number>> = {};\n for (const node of graph?.nodes ?? []) byKind[node.kind] = (byKind[node.kind] ?? 0) + 1;\n return byKind;\n }, [graph]);\n\n const upstreamEdges = selected ? lineageEdges.filter((e) => e.to === selected.id) : [];\n const downstreamEdges = selected ? lineageEdges.filter((e) => e.from === selected.id) : [];\n const nodeLabel = (id: string) => nodesById.get(id)?.label ?? id;\n const nodeKindLabel = (id: string) => {\n const node = nodesById.get(id);\n return node ? tx(`semanticfed.lineage.kinds.${node.kind}`, KIND_LABEL[node.kind]) : '';\n };\n\n const isEmpty = workspace.isSuccess && (graph?.nodes.length ?? 0) === 0;\n const warnings = [...(graph?.warnings ?? [])];\n const truncated = Boolean(graph?.truncated || record.data?.truncated);\n\n return (\n <div className=\"space-y-6 p-4 sm:p-6\" data-testid=\"semanticfed-lineage-page\">\n <div\n className=\"flex flex-wrap items-center justify-between gap-3\"\n data-tour=\"semanticfed-lineage-header\"\n >\n <div>\n <h1 className=\"text-2xl font-semibold\">{tx('semanticfed.lineage.title', 'Lineage')}</h1>\n <p className=\"text-sm text-muted-foreground\">\n {tx(\n 'semanticfed.lineage.description',\n '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.'\n )}\n </p>\n </div>\n <div className=\"flex flex-wrap gap-2\" data-testid=\"lineage-counts\">\n {(Object.keys(KIND_LABEL) as SemLineageNodeKind[])\n .filter((kind) => counts[kind])\n .map((kind) => {\n const Icon = KIND_ICON[kind];\n return (\n <Badge key={kind} variant=\"outline\" className=\"gap-1\">\n <Icon className=\"h-3 w-3\" />\n {counts[kind]} {tx(`semanticfed.lineage.kinds.${kind}`, KIND_LABEL[kind])}\n </Badge>\n );\n })}\n </div>\n </div>\n\n {workspace.isPending && (\n <Card>\n <CardContent className=\"flex items-center gap-3 p-6 text-sm text-muted-foreground\">\n <Loader2 className=\"h-5 w-5 animate-spin\" />\n {tx('semanticfed.lineage.loading', 'Computing lineage…')}\n </CardContent>\n </Card>\n )}\n\n {workspace.isError && (\n <Card>\n <CardContent\n className=\"flex items-center gap-3 p-6 text-sm text-destructive\"\n data-testid=\"lineage-error\"\n >\n <AlertTriangle className=\"h-5 w-5\" />\n {lineageErrorMessage(workspace.error)}\n </CardContent>\n </Card>\n )}\n\n {isEmpty && (\n <Card>\n <CardContent\n className=\"flex items-center gap-3 p-6 text-sm text-muted-foreground\"\n data-testid=\"lineage-empty\"\n >\n <GitBranch className=\"h-5 w-5\" />\n {tx(\n 'semanticfed.lineage.empty',\n 'No lineage yet. Connect a data source and model an entity on it; lineage appears here as soon as records exist.'\n )}\n </CardContent>\n </Card>\n )}\n\n {(warnings.length > 0 || truncated) && (\n <Card data-testid=\"lineage-warnings\">\n <CardHeader className=\"pb-2\">\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <AlertTriangle className=\"h-4 w-4 text-destructive\" />\n {tx('semanticfed.lineage.warnings.title', 'Lineage warnings')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-1 text-sm\">\n {truncated && (\n <p className=\"text-muted-foreground\">\n {tx(\n 'semanticfed.lineage.warnings.truncated',\n 'This workspace is larger than one lineage pass reads, so the graph is partial.'\n )}\n </p>\n )}\n {warnings.slice(0, 20).map((warning, index) => (\n <button\n key={`${warning.nodeId ?? 'graph'}-${index}`}\n type=\"button\"\n className=\"block text-left text-muted-foreground hover:text-foreground\"\n onClick={() => warning.nodeId && setSelectedId(warning.nodeId)}\n >\n {warning.nodeId ? (\n <span className=\"font-medium\">{nodeLabel(warning.nodeId)}: </span>\n ) : null}\n {warning.message}\n </button>\n ))}\n </CardContent>\n </Card>\n )}\n\n {graph && graph.nodes.length > 0 && (\n <>\n <div className=\"flex flex-wrap items-center gap-2\">\n <Input\n aria-label={tx('semanticfed.lineage.search', 'Filter nodes')}\n placeholder={tx('semanticfed.lineage.search', 'Filter nodes')}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n className=\"w-full sm:w-64\"\n data-testid=\"lineage-search\"\n />\n <div\n className=\"flex rounded-md border\"\n role=\"group\"\n aria-label={tx('semanticfed.lineage.direction', 'Direction')}\n >\n {DIRECTIONS.map((d) => (\n <Button\n key={d}\n type=\"button\"\n size=\"sm\"\n variant={direction === d ? 'default' : 'ghost'}\n onClick={() => setDirection(d)}\n aria-pressed={direction === d}\n data-testid={`lineage-direction-${d}`}\n >\n {d === 'UPSTREAM'\n ? tx('semanticfed.lineage.upstream', 'Upstream')\n : d === 'DOWNSTREAM'\n ? tx('semanticfed.lineage.downstream', 'Downstream')\n : tx('semanticfed.lineage.both', 'Both')}\n </Button>\n ))}\n </div>\n <label className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n {tx('semanticfed.lineage.depth', 'Depth')}\n <select\n className=\"rounded border bg-background p-1.5 text-sm text-foreground\"\n value={depth ?? ''}\n onChange={(e) => setDepth(e.target.value ? Number(e.target.value) : null)}\n data-testid=\"lineage-depth\"\n >\n <option value=\"\">{tx('semanticfed.lineage.depthAll', 'All')}</option>\n {DEPTH_OPTIONS.map((d) => (\n <option key={d} value={d}>\n {d}\n </option>\n ))}\n </select>\n </label>\n {selected && (\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n onClick={() => setSelectedId(null)}\n className=\"gap-1\"\n data-testid=\"lineage-clear\"\n >\n <X className=\"h-3 w-3\" />\n {tx('semanticfed.lineage.clear', 'Clear selection')}\n </Button>\n )}\n </div>\n\n <div className=\"grid gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]\">\n <div className=\"min-w-0 overflow-x-auto\">\n <div\n className=\"grid min-w-0 grid-cols-1 gap-3 md:min-w-[60rem] md:grid-cols-6\"\n data-testid=\"lineage-lanes\"\n >\n {LANES.map((lane) => {\n const laneNodes = graph.nodes.filter(\n (node) => lane.kinds.includes(node.kind) && matches(node)\n );\n return (\n <section\n key={lane.id}\n className=\"min-w-0 space-y-2\"\n data-testid={`lineage-lane-${lane.id}`}\n >\n <h2 className=\"text-xs font-semibold uppercase tracking-wide text-muted-foreground\">\n {tx(`semanticfed.lineage.lanes.${lane.id}`, lane.label)}{' '}\n <span className=\"font-normal\">({laneNodes.length})</span>\n </h2>\n {laneNodes.length === 0 && <p className=\"text-xs text-muted-foreground\">—</p>}\n {laneNodes.map((node) => {\n const Icon = KIND_ICON[node.kind];\n const isSelected = node.id === selectedId;\n const inLineage = highlighted?.has(node.id) ?? false;\n const dimmed = highlighted !== null && !inLineage;\n return (\n <button\n key={node.id}\n type=\"button\"\n onClick={() => setSelectedId(isSelected ? null : node.id)}\n aria-pressed={isSelected}\n title={node.detail ?? node.label}\n data-testid=\"lineage-node\"\n data-node-id={node.id}\n data-node-kind={node.kind}\n data-in-lineage={inLineage ? 'true' : 'false'}\n className={cn(\n 'w-full rounded-md border bg-card p-2 text-left text-sm transition-colors hover:bg-accent',\n isSelected && 'border-primary ring-2 ring-primary',\n inLineage && !isSelected && 'border-primary bg-accent',\n dimmed && 'opacity-40'\n )}\n >\n <span className=\"flex items-center gap-1.5 font-medium\">\n <Icon className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\" />\n <span className=\"truncate\">{node.label}</span>\n </span>\n {(node.detail || node.status) && (\n <span className=\"mt-0.5 block truncate text-xs text-muted-foreground\">\n {[node.status, node.detail].filter(Boolean).join(' · ')}\n </span>\n )}\n </button>\n );\n })}\n </section>\n );\n })}\n </div>\n </div>\n\n <Card className=\"min-w-0 self-start\" data-testid=\"lineage-details\">\n <CardHeader className=\"pb-3\">\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <GitBranch className=\"h-4 w-4\" />\n {selected\n ? selected.label\n : tx('semanticfed.lineage.details.title', 'Lineage details')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4 text-sm\">\n {!selected && (\n <p className=\"text-muted-foreground\">\n {tx(\n 'semanticfed.lineage.details.hint',\n 'Select a source, table, entity, field, model or query to trace its lineage.'\n )}\n </p>\n )}\n {selected && (\n <>\n <div className=\"space-y-1\">\n <Badge variant=\"outline\">\n {tx(\n `semanticfed.lineage.kinds.${selected.kind}`,\n KIND_LABEL[selected.kind]\n )}\n </Badge>\n {selected.detail && (\n <p className=\"break-words font-mono text-xs text-muted-foreground\">\n {selected.detail}\n </p>\n )}\n {selected.status && (\n <p className=\"text-xs text-muted-foreground\">{selected.status}</p>\n )}\n </div>\n {root && record.isPending && (\n <p className=\"flex items-center gap-2 text-muted-foreground\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n {tx('semanticfed.lineage.tracing', 'Tracing lineage…')}\n </p>\n )}\n {root && record.isError && (\n <p className=\"text-destructive\" data-testid=\"lineage-record-error\">\n {lineageErrorMessage(record.error)}\n </p>\n )}\n {highlighted && (\n <p className=\"text-muted-foreground\" data-testid=\"lineage-reach\">\n {tx(\n 'semanticfed.lineage.details.reach',\n '{{count}} nodes in this lineage',\n { count: Math.max(highlighted.size - 1, 0) }\n )}\n </p>\n )}\n <EdgeList\n title={tx('semanticfed.lineage.details.upstream', 'Comes from')}\n icon={ArrowUpLeft}\n edges={upstreamEdges}\n otherEnd={(e) => e.from}\n nodeLabel={nodeLabel}\n nodeKindLabel={nodeKindLabel}\n onSelect={setSelectedId}\n emptyText={tx('semanticfed.lineage.details.noUpstream', 'Nothing upstream')}\n testId=\"lineage-upstream\"\n />\n <EdgeList\n title={tx('semanticfed.lineage.details.downstream', 'Feeds into')}\n icon={ArrowDownRight}\n edges={downstreamEdges}\n otherEnd={(e) => e.to}\n nodeLabel={nodeLabel}\n nodeKindLabel={nodeKindLabel}\n onSelect={setSelectedId}\n emptyText={tx(\n 'semanticfed.lineage.details.noDownstream',\n 'Nothing downstream'\n )}\n testId=\"lineage-downstream\"\n />\n </>\n )}\n </CardContent>\n </Card>\n </div>\n </>\n )}\n </div>\n );\n}\n\ninterface EdgeListProps {\n title: string;\n icon: LucideIcon;\n edges: SemLineageEdge[];\n otherEnd: (edge: SemLineageEdge) => string;\n nodeLabel: (id: string) => string;\n nodeKindLabel: (id: string) => string;\n onSelect: (id: string) => void;\n emptyText: string;\n testId: string;\n}\n\nfunction EdgeList({\n title,\n icon: Icon,\n edges,\n otherEnd,\n nodeLabel,\n nodeKindLabel,\n onSelect,\n emptyText,\n testId,\n}: EdgeListProps) {\n return (\n <div className=\"space-y-2\" data-testid={testId}>\n <h3 className=\"flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\">\n <Icon className=\"h-3.5 w-3.5\" />\n {title} ({edges.length})\n </h3>\n {edges.length === 0 && <p className=\"text-xs text-muted-foreground\">{emptyText}</p>}\n <ul className=\"space-y-1.5\">\n {edges.map((edge) => {\n const other = otherEnd(edge);\n const observed = formatObservedAt(edge.observedAt);\n return (\n <li key={edge.id} className=\"rounded border p-2\">\n <button\n type=\"button\"\n className=\"font-medium hover:underline\"\n onClick={() => onSelect(other)}\n >\n {nodeLabel(other)}\n </button>\n <span className=\"ml-1 text-xs text-muted-foreground\">\n {nodeKindLabel(other)} · {EDGE_LABEL[edge.kind]}\n </span>\n {edge.detail && (\n <p className=\"mt-0.5 break-words font-mono text-xs text-muted-foreground\">\n {edge.detail}\n </p>\n )}\n {observed && <p className=\"mt-0.5 text-xs text-muted-foreground\">{observed}</p>}\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAsDA,IAAM,IAAoD;CACxD,WAAW;CACX,aAAa;CACb,OAAO;CACP,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,OAAO;CACP,OAAO;CACR,EAEK,IAAiD;CACrD,WAAW;CACX,aAAa;CACb,OAAO;CACP,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,OAAO;CACP,OAAO;CACR,EASK,IAAgB;CACpB;EAAE,IAAI;EAAW,OAAO;EAAW,OAAO,CAAC,aAAa,cAAc;EAAE;CACxE;EAAE,IAAI;EAAU,OAAO;EAAU,OAAO,CAAC,QAAQ;EAAE;CACnD;EAAE,IAAI;EAAY,OAAO;EAAY,OAAO,CAAC,SAAS;EAAE;CACxD;EAAE,IAAI;EAAU,OAAO;EAAU,OAAO;GAAC;GAAa;GAAU;GAAS;EAAE;CAC3E;EAAE,IAAI;EAAU,OAAO;EAAU,OAAO,CAAC,QAAQ;EAAE;CACnD;EAAE,IAAI;EAAW,OAAO;EAAW,OAAO,CAAC,QAAQ;EAAE;CACtD,EAEK,IAAqD;CACzD,UAAU;CACV,OAAO;CACP,SAAS;CACT,SAAS;CACT,WAAW;CACX,OAAO;CACP,QAAQ;CACR,SAAS;CACT,aAAa;CACd,EAEK,IAAoC;CAAC;CAAY;CAAQ;CAAa,EACtE,IAAgB;CAAC;CAAG;CAAG;CAAG;CAAG;CAAG;AAOtC,SAAS,EACP,GACA,GACA,GACA,GACa;CACb,IAAM,IAAU,IAAI,IAAY,CAAC,EAAO,CAAC,EACnC,KAAQ,MAAqB;EACjC,IAAI,IAAW,CAAC,EAAO,EACnB,IAAO;AACX,SAAO,EAAS,SAAS,M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K,WAAW;AAClD,YACE,kBAAC,MAAD;MAAkB,WAAU;gBAA5B;OACE,kBAAC,UAAD;QACE,MAAK;QACL,WAAU;QACV,eAAe,EAAS,EAAM;kBAE7B,EAAU,EAAM;QACV,CAAA;OACT,kBAAC,QAAD;QAAM,WAAU;kBAAhB;SACG,EAAc,EAAM;SAAC;SAAI,EAAW,EAAK;SACrC;;OACN,EAAK,UACJ,kBAAC,KAAD;QAAG,WAAU;kBACV,EAAK;QACJ,CAAA;OAEL,KAAY,kBAAC,KAAD;QAAG,WAAU;kBAAwC;QAAa,CAAA;OAC5E;QAjBI,EAAK,GAiBT;MAEP;IACC,CAAA;GACD"}
1
+ {"version":3,"file":"LineagePage.js","names":[],"sources":["../../../src/semanticfed/pages/LineagePage.tsx"],"sourcesContent":["/**\n * Lineage page (BOFF-4279) — end-to-end lineage of the workspace's semantic\n * layer, read from the `semLineage` API.\n *\n * The workspace graph is laid out in lanes in the direction data flows\n * (sources → tables → entities → fields → models → queries). Selecting a node\n * asks the API for that record's upstream / downstream lineage and highlights\n * it; tables and unregistered columns (which have no SemanticFed record to\n * start a traversal from) are traced over the workspace graph instead.\n */\nimport { useMemo, useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport {\n Badge,\n Button,\n Card,\n CardContent,\n CardHeader,\n CardTitle,\n Input,\n} from '@burdenoff/fe-libs/ui';\nimport {\n AlertTriangle,\n ArrowDownRight,\n ArrowUpLeft,\n Boxes,\n Columns3,\n Database,\n FileCode2,\n GitBranch,\n Hash,\n Layers,\n Loader2,\n Plug,\n Ruler,\n Table2,\n X,\n} from 'lucide-react';\nimport type { LucideIcon } from 'lucide-react';\n\nimport {\n type SemLineageDirection,\n type SemLineageEdge,\n type SemLineageGraph,\n type SemLineageNode,\n type SemLineageNodeKind,\n lineageErrorMessage,\n lineageRootFor,\n useSemRecordLineage,\n useSemWorkspaceLineage,\n} from '../hooks/useLineage';\nimport { cn } from '../utils/cn';\nimport { translateWithFallback } from '../utils/i18n';\n\nconst KIND_ICON: Record<SemLineageNodeKind, LucideIcon> = {\n CONNECTOR: Plug,\n DATA_SOURCE: Database,\n TABLE: Table2,\n ENTITY: Boxes,\n DIMENSION: Ruler,\n METRIC: Hash,\n COLUMN: Columns3,\n MODEL: Layers,\n QUERY: FileCode2,\n};\n\nconst KIND_LABEL: Record<SemLineageNodeKind, string> = {\n CONNECTOR: 'Connector',\n DATA_SOURCE: 'Data source',\n TABLE: 'Table',\n ENTITY: 'Entity',\n DIMENSION: 'Dimension',\n METRIC: 'Metric',\n COLUMN: 'Column',\n MODEL: 'Model',\n QUERY: 'Query',\n};\n\ninterface Lane {\n id: string;\n label: string;\n kinds: SemLineageNodeKind[];\n}\n\n/** Lanes in the direction data flows. */\nconst LANES: Lane[] = [\n { id: 'sources', label: 'Sources', kinds: ['CONNECTOR', 'DATA_SOURCE'] },\n { id: 'tables', label: 'Tables', kinds: ['TABLE'] },\n { id: 'entities', label: 'Entities', kinds: ['ENTITY'] },\n { id: 'fields', label: 'Fields', kinds: ['DIMENSION', 'METRIC', 'COLUMN'] },\n { id: 'models', label: 'Models', kinds: ['MODEL'] },\n { id: 'queries', label: 'Queries', kinds: ['QUERY'] },\n];\n\nconst EDGE_LABEL: Record<SemLineageEdge['kind'], string> = {\n PROVIDES: 'provides',\n HOSTS: 'hosts',\n MAPS_TO: 'maps to',\n DEFINES: 'defines',\n MEMBER_OF: 'member of',\n JOINS: 'joins',\n SERVES: 'serves',\n READ_BY: 'read by',\n EXECUTED_ON: 'executed on',\n};\n\nconst DIRECTIONS: SemLineageDirection[] = ['UPSTREAM', 'BOTH', 'DOWNSTREAM'];\nconst DEPTH_OPTIONS = [1, 2, 3, 5, 10] as const;\n\n/**\n * Upstream / downstream reach of a node over a graph that is already loaded,\n * for node kinds the API cannot start from. Mirrors the service's traversal:\n * JOINS edges are context, not data flow, so they are never followed, and a\n * model reached along the way is included but not expanded (otherwise one\n * entity would pull in every other entity and query of its model).\n */\nfunction traceLocally(\n graph: SemLineageGraph,\n rootId: string,\n direction: SemLineageDirection,\n depth: number | null\n): Set<string> {\n const reached = new Set<string>([rootId]);\n const models = new Set(graph.nodes.filter((n) => n.kind === 'MODEL').map((n) => n.id));\n const walk = (forward: boolean) => {\n let frontier = new Set([rootId]);\n let hops = 0;\n while (frontier.size > 0 && (depth === null || hops < depth)) {\n const next = new Set<string>();\n for (const edge of graph.edges) {\n if (edge.kind === 'JOINS') continue;\n const [from, to] = forward ? [edge.from, edge.to] : [edge.to, edge.from];\n if (from !== rootId && models.has(from)) continue;\n if (frontier.has(from) && !reached.has(to)) {\n reached.add(to);\n next.add(to);\n }\n }\n frontier = next;\n hops += 1;\n }\n };\n if (direction !== 'DOWNSTREAM') walk(false);\n if (direction !== 'UPSTREAM') walk(true);\n return reached;\n}\n\nfunction formatObservedAt(value: string | null): string | null {\n if (!value) return null;\n const date = new Date(value);\n return Number.isNaN(date.getTime()) ? null : date.toLocaleString();\n}\n\nexport function LineagePage() {\n const { t } = useI18n();\n const tx = (key: string, fallback: string, params?: Record<string, string | number>) =>\n translateWithFallback(t, key, fallback, params);\n\n const workspace = useSemWorkspaceLineage();\n const [selectedId, setSelectedId] = useState<string | null>(null);\n const [direction, setDirection] = useState<SemLineageDirection>('BOTH');\n const [depth, setDepth] = useState<number | null>(null);\n const [search, setSearch] = useState('');\n\n const graph = workspace.data;\n const nodesById = useMemo(\n () => new Map((graph?.nodes ?? []).map((node) => [node.id, node] as const)),\n [graph]\n );\n const selected = selectedId ? (nodesById.get(selectedId) ?? null) : null;\n const root = selected ? lineageRootFor(selected) : null;\n const record = useSemRecordLineage(root, direction, depth);\n\n // The node ids in the selected node's lineage: from the API for records,\n // traced over the workspace graph for tables and columns.\n const highlighted = useMemo<Set<string> | null>(() => {\n if (!graph || !selected) return null;\n if (root) return record.data ? new Set(record.data.nodes.map((n) => n.id)) : null;\n return traceLocally(graph, selected.id, direction, depth);\n }, [graph, selected, root, record.data, direction, depth]);\n\n const lineageEdges = useMemo<SemLineageEdge[]>(() => {\n if (!selected) return [];\n if (root) return record.data?.edges ?? [];\n if (!graph || !highlighted) return [];\n return graph.edges.filter((e) => highlighted.has(e.from) && highlighted.has(e.to));\n }, [selected, root, record.data, graph, highlighted]);\n\n const query = search.trim().toLowerCase();\n const matches = (node: SemLineageNode) =>\n query === '' ||\n node.label.toLowerCase().includes(query) ||\n (node.detail ?? '').toLowerCase().includes(query);\n\n const counts = useMemo(() => {\n const byKind: Partial<Record<SemLineageNodeKind, number>> = {};\n for (const node of graph?.nodes ?? []) byKind[node.kind] = (byKind[node.kind] ?? 0) + 1;\n return byKind;\n }, [graph]);\n\n const upstreamEdges = selected ? lineageEdges.filter((e) => e.to === selected.id) : [];\n const downstreamEdges = selected ? lineageEdges.filter((e) => e.from === selected.id) : [];\n const nodeLabel = (id: string) => nodesById.get(id)?.label ?? id;\n const nodeKindLabel = (id: string) => {\n const node = nodesById.get(id);\n return node ? tx(`semanticfed.lineage.kinds.${node.kind}`, KIND_LABEL[node.kind]) : '';\n };\n\n const isEmpty = workspace.isSuccess && (graph?.nodes.length ?? 0) === 0;\n const warnings = [...(graph?.warnings ?? [])];\n const truncated = Boolean(graph?.truncated || record.data?.truncated);\n\n return (\n <div className=\"space-y-6 p-4 sm:p-6\" data-testid=\"semanticfed-lineage-page\">\n <div\n className=\"flex flex-wrap items-center justify-between gap-3\"\n data-tour=\"semanticfed-lineage-header\"\n >\n <div>\n <h1 className=\"text-2xl font-semibold\">{tx('semanticfed.lineage.title', 'Lineage')}</h1>\n <p className=\"text-sm text-muted-foreground\">\n {tx(\n 'semanticfed.lineage.description',\n '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.'\n )}\n </p>\n </div>\n <div className=\"flex flex-wrap gap-2\" data-testid=\"lineage-counts\">\n {(Object.keys(KIND_LABEL) as SemLineageNodeKind[])\n .filter((kind) => counts[kind])\n .map((kind) => {\n const Icon = KIND_ICON[kind];\n return (\n <Badge key={kind} variant=\"outline\" className=\"gap-1\">\n <Icon className=\"h-3 w-3\" />\n {counts[kind]} {tx(`semanticfed.lineage.kinds.${kind}`, KIND_LABEL[kind])}\n </Badge>\n );\n })}\n </div>\n </div>\n\n {workspace.isPending && (\n <Card>\n <CardContent className=\"flex items-center gap-3 p-6 text-sm text-muted-foreground\">\n <Loader2 className=\"h-5 w-5 animate-spin\" />\n {tx('semanticfed.lineage.loading', 'Computing lineage…')}\n </CardContent>\n </Card>\n )}\n\n {workspace.isError && (\n <Card>\n <CardContent\n className=\"flex items-center gap-3 p-6 text-sm text-destructive\"\n data-testid=\"lineage-error\"\n >\n <AlertTriangle className=\"h-5 w-5\" />\n {lineageErrorMessage(workspace.error)}\n </CardContent>\n </Card>\n )}\n\n {isEmpty && (\n <Card>\n <CardContent\n className=\"flex items-center gap-3 p-6 text-sm text-muted-foreground\"\n data-testid=\"lineage-empty\"\n >\n <GitBranch className=\"h-5 w-5\" />\n {tx(\n 'semanticfed.lineage.empty',\n 'No lineage yet. Connect a data source and model an entity on it; lineage appears here as soon as records exist.'\n )}\n </CardContent>\n </Card>\n )}\n\n {(warnings.length > 0 || truncated) && (\n <Card data-testid=\"lineage-warnings\">\n <CardHeader className=\"pb-2\">\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <AlertTriangle className=\"h-4 w-4 text-destructive\" />\n {tx('semanticfed.lineage.warnings.title', 'Lineage warnings')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-1 text-sm\">\n {truncated && (\n <p className=\"text-muted-foreground\">\n {tx(\n 'semanticfed.lineage.warnings.truncated',\n 'This workspace is larger than one lineage pass reads, so the graph is partial.'\n )}\n </p>\n )}\n {warnings.slice(0, 20).map((warning, index) => (\n <button\n key={`${warning.nodeId ?? 'graph'}-${index}`}\n type=\"button\"\n className=\"block text-left text-muted-foreground hover:text-foreground\"\n onClick={() => warning.nodeId && setSelectedId(warning.nodeId)}\n >\n {warning.nodeId ? (\n <span className=\"font-medium\">{nodeLabel(warning.nodeId)}: </span>\n ) : null}\n {warning.message}\n </button>\n ))}\n </CardContent>\n </Card>\n )}\n\n {graph && graph.nodes.length > 0 && (\n <>\n <div className=\"flex flex-wrap items-center gap-2\">\n <Input\n aria-label={tx('semanticfed.lineage.search', 'Filter nodes')}\n placeholder={tx('semanticfed.lineage.search', 'Filter nodes')}\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n className=\"w-full sm:w-64\"\n data-testid=\"lineage-search\"\n />\n <div\n className=\"flex rounded-md border\"\n role=\"group\"\n aria-label={tx('semanticfed.lineage.direction', 'Direction')}\n >\n {DIRECTIONS.map((d) => (\n <Button\n key={d}\n type=\"button\"\n size=\"sm\"\n variant={direction === d ? 'default' : 'ghost'}\n onClick={() => setDirection(d)}\n aria-pressed={direction === d}\n data-testid={`lineage-direction-${d}`}\n >\n {d === 'UPSTREAM'\n ? tx('semanticfed.lineage.upstream', 'Upstream')\n : d === 'DOWNSTREAM'\n ? tx('semanticfed.lineage.downstream', 'Downstream')\n : tx('semanticfed.lineage.both', 'Both')}\n </Button>\n ))}\n </div>\n <label className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n {tx('semanticfed.lineage.depth', 'Depth')}\n <select\n className=\"rounded border bg-background p-1.5 text-sm text-foreground\"\n value={depth ?? ''}\n onChange={(e) => setDepth(e.target.value ? Number(e.target.value) : null)}\n data-testid=\"lineage-depth\"\n >\n <option value=\"\">{tx('semanticfed.lineage.depthAll', 'All')}</option>\n {DEPTH_OPTIONS.map((d) => (\n <option key={d} value={d}>\n {d}\n </option>\n ))}\n </select>\n </label>\n {selected && (\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n onClick={() => setSelectedId(null)}\n className=\"gap-1\"\n data-testid=\"lineage-clear\"\n >\n <X className=\"h-3 w-3\" />\n {tx('semanticfed.lineage.clear', 'Clear selection')}\n </Button>\n )}\n </div>\n\n <div className=\"grid gap-4 xl:grid-cols-[minmax(0,1fr)_22rem]\">\n <div className=\"min-w-0 overflow-x-auto\">\n <div\n className=\"grid min-w-0 grid-cols-1 gap-3 md:min-w-[60rem] md:grid-cols-6\"\n data-testid=\"lineage-lanes\"\n >\n {LANES.map((lane) => {\n const laneNodes = graph.nodes.filter(\n (node) => lane.kinds.includes(node.kind) && matches(node)\n );\n return (\n <section\n key={lane.id}\n className=\"min-w-0 space-y-2\"\n data-testid={`lineage-lane-${lane.id}`}\n >\n <h2 className=\"text-xs font-semibold uppercase tracking-wide text-muted-foreground\">\n {tx(`semanticfed.lineage.lanes.${lane.id}`, lane.label)}{' '}\n <span className=\"font-normal\">({laneNodes.length})</span>\n </h2>\n {laneNodes.length === 0 && <p className=\"text-xs text-muted-foreground\">—</p>}\n {laneNodes.map((node) => {\n const Icon = KIND_ICON[node.kind];\n const isSelected = node.id === selectedId;\n const inLineage = highlighted?.has(node.id) ?? false;\n const dimmed = highlighted !== null && !inLineage;\n return (\n <button\n key={node.id}\n type=\"button\"\n onClick={() => setSelectedId(isSelected ? null : node.id)}\n aria-pressed={isSelected}\n title={node.detail ?? node.label}\n data-testid=\"lineage-node\"\n data-node-id={node.id}\n data-node-kind={node.kind}\n data-in-lineage={inLineage ? 'true' : 'false'}\n className={cn(\n 'w-full rounded-md border bg-card p-2 text-left text-sm transition-colors hover:bg-accent',\n isSelected && 'border-primary ring-2 ring-primary',\n inLineage && !isSelected && 'border-primary bg-accent',\n dimmed && 'opacity-40'\n )}\n >\n <span className=\"flex items-center gap-1.5 font-medium\">\n <Icon className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\" />\n <span className=\"truncate\">{node.label}</span>\n </span>\n {(node.detail || node.status) && (\n <span className=\"mt-0.5 block truncate text-xs text-muted-foreground\">\n {[node.status, node.detail].filter(Boolean).join(' · ')}\n </span>\n )}\n </button>\n );\n })}\n </section>\n );\n })}\n </div>\n </div>\n\n <Card className=\"min-w-0 self-start\" data-testid=\"lineage-details\">\n <CardHeader className=\"pb-3\">\n <CardTitle className=\"flex items-center gap-2 text-base\">\n <GitBranch className=\"h-4 w-4\" />\n {selected\n ? selected.label\n : tx('semanticfed.lineage.details.title', 'Lineage details')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4 text-sm\">\n {!selected && (\n <p className=\"text-muted-foreground\">\n {tx(\n 'semanticfed.lineage.details.hint',\n 'Select a source, table, entity, field, model or query to trace its lineage.'\n )}\n </p>\n )}\n {selected && (\n <>\n <div className=\"space-y-1\">\n <Badge variant=\"outline\">\n {tx(\n `semanticfed.lineage.kinds.${selected.kind}`,\n KIND_LABEL[selected.kind]\n )}\n </Badge>\n {selected.detail && (\n <p className=\"break-words font-mono text-xs text-muted-foreground\">\n {selected.detail}\n </p>\n )}\n {selected.status && (\n <p className=\"text-xs text-muted-foreground\">{selected.status}</p>\n )}\n </div>\n {root && record.isPending && (\n <p className=\"flex items-center gap-2 text-muted-foreground\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n {tx('semanticfed.lineage.tracing', 'Tracing lineage…')}\n </p>\n )}\n {root && record.isError && (\n <p className=\"text-destructive\" data-testid=\"lineage-record-error\">\n {lineageErrorMessage(record.error)}\n </p>\n )}\n {highlighted && (\n <p className=\"text-muted-foreground\" data-testid=\"lineage-reach\">\n {tx(\n 'semanticfed.lineage.details.reach',\n '{{count}} nodes in this lineage',\n { count: Math.max(highlighted.size - 1, 0) }\n )}\n </p>\n )}\n <EdgeList\n title={tx('semanticfed.lineage.details.upstream', 'Comes from')}\n icon={ArrowUpLeft}\n edges={upstreamEdges}\n otherEnd={(e) => e.from}\n nodeLabel={nodeLabel}\n nodeKindLabel={nodeKindLabel}\n onSelect={setSelectedId}\n emptyText={tx('semanticfed.lineage.details.noUpstream', 'Nothing upstream')}\n testId=\"lineage-upstream\"\n />\n <EdgeList\n title={tx('semanticfed.lineage.details.downstream', 'Feeds into')}\n icon={ArrowDownRight}\n edges={downstreamEdges}\n otherEnd={(e) => e.to}\n nodeLabel={nodeLabel}\n nodeKindLabel={nodeKindLabel}\n onSelect={setSelectedId}\n emptyText={tx(\n 'semanticfed.lineage.details.noDownstream',\n 'Nothing downstream'\n )}\n testId=\"lineage-downstream\"\n />\n </>\n )}\n </CardContent>\n </Card>\n </div>\n </>\n )}\n </div>\n );\n}\n\ninterface EdgeListProps {\n title: string;\n icon: LucideIcon;\n edges: SemLineageEdge[];\n otherEnd: (edge: SemLineageEdge) => string;\n nodeLabel: (id: string) => string;\n nodeKindLabel: (id: string) => string;\n onSelect: (id: string) => void;\n emptyText: string;\n testId: string;\n}\n\nfunction EdgeList({\n title,\n icon: Icon,\n edges,\n otherEnd,\n nodeLabel,\n nodeKindLabel,\n onSelect,\n emptyText,\n testId,\n}: EdgeListProps) {\n return (\n <div className=\"space-y-2\" data-testid={testId}>\n <h3 className=\"flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\">\n <Icon className=\"h-3.5 w-3.5\" />\n {title} ({edges.length})\n </h3>\n {edges.length === 0 && <p className=\"text-xs text-muted-foreground\">{emptyText}</p>}\n <ul className=\"space-y-1.5\">\n {edges.map((edge) => {\n const other = otherEnd(edge);\n const observed = formatObservedAt(edge.observedAt);\n return (\n <li key={edge.id} className=\"rounded border p-2\">\n <button\n type=\"button\"\n className=\"font-medium hover:underline\"\n onClick={() => onSelect(other)}\n >\n {nodeLabel(other)}\n </button>\n <span className=\"ml-1 text-xs text-muted-foreground\">\n {nodeKindLabel(other)} · {EDGE_LABEL[edge.kind]}\n </span>\n {edge.detail && (\n <p className=\"mt-0.5 break-words font-mono text-xs text-muted-foreground\">\n {edge.detail}\n </p>\n )}\n {observed && <p className=\"mt-0.5 text-xs text-muted-foreground\">{observed}</p>}\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAsDA,IAAM,IAAoD;CACxD,WAAW;CACX,aAAa;CACb,OAAO;CACP,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,OAAO;CACP,OAAO;CACR,EAEK,IAAiD;CACrD,WAAW;CACX,aA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C;SAAI,EAAW,EAAK;SACrC;;OACN,EAAK,UACJ,kBAAC,KAAD;QAAG,WAAU;kBACV,EAAK;QACJ,CAAA;OAEL,KAAY,kBAAC,KAAD;QAAG,WAAU;kBAAwC;QAAa,CAAA;OAC5E;QAjBI,EAAK,GAiBT;MAEP;IACC,CAAA;GACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-semanticfed",
3
- "version": "2026.1031.5",
3
+ "version": "2026.1031.6",
4
4
  "description": "Burdenoff SemanticFed Microfrontend",
5
5
  "type": "module",
6
6
  "files": [