feat(dashboard): the code graph's card on the target page (t82) #937

Merged
sharang merged 1 commits from feat/t82-graph-card into main 2026-11-07 10:24:14 +00:00
Owner

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

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)
sharang changed target branch from feat/t82-plc-graph to main 2026-11-07 09:44:46 +00:00
sharang added 1 commit 2026-11-07 10:05:39 +00:00
feat(dashboard): the code graph's card on the target page (t82)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m2s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 18m21s
60f591f31c
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>
sharang force-pushed feat/t82-graph-card from bc18e5748d to 60f591f31c 2026-11-07 10:05:39 +00:00 Compare
sharang merged commit c1a70b025c into main 2026-11-07 10:24:14 +00:00
Sign in to join this conversation.