Repository navigation
Conversation
sortedLanguages consulted only the depth-tier EXTENSIONS table, so languages indexed by the generic tier (rust, c, …) dropped out of the set: a Rust repo with a few website .js files was labeled javascript. Fall through to genericLangOf, the same fallback the build banner already applies. Fixes trailhq#762
🌱 graft blast radius1 area changed → 4 areas can be affected. 4 dependent symbols, depth 2. flowchart TB
A0(("Tool Invocation<br/>1 symbol"))
A1(("CLI Interface<br/>1 symbol"))
A2(("Workspace Federation<br/>1 symbol"))
A3(("Hub Onboarding<br/>1 symbol"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0,A1,A2,A3 reached;
Who knows this code — 4 people across 5 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 4 dependent symbols, grouped by areaTool Invocation — 1 symbol in 1 file
CLI Interface — 1 symbol in 1 file
Workspace Federation — 1 symbol in 1 file
Hub Onboarding — 1 symbol in 1 file
Test signal per changed area — 1 ✗Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
5 test suites also reference this code5 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
Fixes #762.
Problem
sortedLanguages()(the language list behindrepo map's header line and the per-directorylanguagesentries) consults onlylanguageLabelOf()— the hand-written depth-tier extension table (.ts/.js/.py/.go/…). Languages indexed by the generic tree-sitter tier are registered ingraph/generic.tsand never consulted, so on a Cargo workspace with a small embedded website every.rslabel came back null and the header read… · javascriptfor a Rust codebase.Fix
The same fallthrough the build banner already applies (
graph/build.ts):Two lines in
sortedLanguages; both the header totals and the per-directory rows pick it up, since they share the function. No rebuild needed — the label is computed from the graph at query time, as the report notes.Tests
Regression in
test/graph-map.test.ts: a graph withsrc/lib.rs+static/app.jsreports["javascript", "rust"]intotals.languagesand the rendered header containsrust. Before the fix onlyjavascriptappeared. Full suite: 4549 tests, the only delta is the new test — the six failures present on cleanmain(49d36b7) are unchanged and pre-date this branch.