The third PR of t82: the code graph becomes visible on the target page.
Stacked on #936 (PLC graph, itself on #935): the base is feat/t82-plc-graph, so only this PR's commit shows. Retarget it to main once #936 is merged, before that branch is deleted.
The card sits next to the CRA and SBOM cards, German first. It appears only when the latest completed build has declarations in it. It shows:
Bausteine (Funktionen, Typen): the nodes that aren't files;
the languages (C, C#, Structured Text, PLCopen XML, …);
one line on why it matters: "Die Bewertung der Befunde berücksichtigt, ob ein Einstiegspunkt die Stelle erreicht."
The CRA card keeps half the row when the graph card is there. Narrow screens stack the cards as before.
The card doesn't link to the graph explorer. The sidebar entry was removed in 0065c7c, and the explorer is still English and has a reload race on "Build Graph". Whether to bring it back is a separate decision.
Data:
The build run counts its file nodes and entry points while the graph is built (file_count, entry_point_count, both Option with serde(default)).
The new GET /api/v1/graph/{id}/summary reads only the latest build and loads no nodes. It is tenant-scoped like the other graph routes.
Builds stored before this change have no counts, so their targets show no card until the next scan.
Tests:
The summary rules: completed builds only, counted builds only.
The engine's counts.
On the full stack over current main: the lib tests of core, agent, graph, werkbank-exec and control-map pass, and so do dashboard server (113) and web (92).
Clippy with the CI flags is clean for core, graph, agent, and the dashboard's server and web builds.
Not seen yet: I couldn't render the page locally without the agent and Mongo behind it. I'll check the card on stage once this is deployed.
The third PR of t82: the code graph becomes visible on the target page.
**Stacked on #936** (PLC graph, itself on #935): the base is `feat/t82-plc-graph`, so only this PR's commit shows. Retarget it to `main` once #936 is merged, before that branch is deleted.
**The card** sits next to the CRA and SBOM cards, German first. It appears only when the latest completed build has declarations in it. It shows:
- **Bausteine (Funktionen, Typen)**: the nodes that aren't files;
- **Einstiegspunkte**: `main`, request handlers, interrupt handlers, PLC programs;
- the languages (C, C#, Structured Text, PLCopen XML, …);
- one line on why it matters: "Die Bewertung der Befunde berücksichtigt, ob ein Einstiegspunkt die Stelle erreicht."
The CRA card keeps half the row when the graph card is there. Narrow screens stack the cards as before.
The card **doesn't link to the graph explorer.** The sidebar entry was removed in 0065c7c, and the explorer is still English and has a reload race on "Build Graph". Whether to bring it back is a separate decision.
**Data:**
- The build run counts its file nodes and entry points while the graph is built (`file_count`, `entry_point_count`, both `Option` with `serde(default)`).
- The new `GET /api/v1/graph/{id}/summary` reads only the latest build and loads no nodes. It is tenant-scoped like the other graph routes.
- Builds stored before this change have no counts, so their targets show no card until the next scan.
**Tests:**
- The summary rules: completed builds only, counted builds only.
- The engine's counts.
- On the full stack over current main: the lib tests of core, agent, graph, werkbank-exec and control-map pass, and so do dashboard server (113) and web (92).
- Clippy with the CI flags is clean for core, graph, agent, and the dashboard's server and web builds.
**Not seen yet:** I couldn't render the page locally without the agent and Mongo behind it. I'll check the card on stage once this is deployed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
When a scan has built a code graph with declarations in it, the target
page shows a card with:
- the number of code units (functions, types, PLC blocks);
- the number of entry points;
- the languages;
- one line on why it matters: triage takes into account whether an
entry point reaches a finding.
The build run counts its file nodes and entry points once, while it is
built. The new GET /api/v1/graph/{id}/summary then reads only the latest
build and loads no nodes. A build stored before this change has no counts
and shows no card until the next scan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The third PR of t82: the code graph becomes visible on the target page.
Stacked on #936 (PLC graph, itself on #935): the base is
feat/t82-plc-graph, so only this PR's commit shows. Retarget it tomainonce #936 is merged, before that branch is deleted.The card sits next to the CRA and SBOM cards, German first. It appears only when the latest completed build has declarations in it. It shows:
main, request handlers, interrupt handlers, PLC programs;The CRA card keeps half the row when the graph card is there. Narrow screens stack the cards as before.
The card doesn't link to the graph explorer. The sidebar entry was removed in
0065c7c, and the explorer is still English and has a reload race on "Build Graph". Whether to bring it back is a separate decision.Data:
file_count,entry_point_count, bothOptionwithserde(default)).GET /api/v1/graph/{id}/summaryreads only the latest build and loads no nodes. It is tenant-scoped like the other graph routes.Tests:
Not seen yet: I couldn't render the page locally without the agent and Mongo behind it. I'll check the card on stage once this is deployed.
🤖 Generated with Claude Code
When a scan has built a code graph with declarations in it, the target page shows a card with: - the number of code units (functions, types, PLC blocks); - the number of entry points; - the languages; - one line on why it matters: triage takes into account whether an entry point reaches a finding. The build run counts its file nodes and entry points once, while it is built. The new GET /api/v1/graph/{id}/summary then reads only the latest build and loads no nodes. A build stored before this change has no counts and shows no card until the next scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>bc18e5748dto60f591f31c