You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model: add nameSpans and bodySpan to Node for bidirectional navigation #20
Node.span is a single source location (crates/flowscope-core/src/types/response.rs:121-170). Graph↔text navigation needs every occurrence of a name in SQL, plus (for CTEs) the separate span of the CTE body.
Proposal
Add nameSpans: Vec<Span> to Node — byte ranges of every occurrence of the node's name in the original SQL.
Add bodySpan: Option<Span> — only populated for NodeType::Cte (the parenthesized subquery body after AS).
Populate in analyzer/transform.rs during graph construction; keep span as the primary/declaration location.
Mirror in packages/core/src/types.ts.
Acceptance
Tests in crates/flowscope-core/tests/lineage_engine.rs assert name-occurrence counts for table, CTE, and column nodes across representative fixtures.
For WITH a AS (SELECT …) SELECT a.x FROM a the CTE node reports 3 nameSpans and 1 bodySpan.
Prerequisite for the graph↔text navigation issues.
Activity
Add name_spans and body_span to Node for bidirectional navigation
Add name_spans and body_span to Node for graph↔text navigation (#30)
Wire graph→text navigation: cycle node occurrences in the SQL editor
Wire graph→text navigation: cycle node occurrences in the SQL editor (#…
Add text→graph navigation: reveal node at cursor (#24)
fix(lineage): resolve reveal target to visible graph node + suppress …