feat(dashboard): an overview built around where each target stands on the CRA #407

Merged
sharang merged 1 commits from feat/pruefwerk-overview into main 2026-09-26 08:35:36 +00:00
Owner

P2, part 1 of the UI/UX pass. Stacked on #406: merge that first; this PR's base then moves to main.

The overview showed generic tiles: every finding ever stored, a tickets count, a severity chart. It now answers what a Maschinenbauer asks first: where does each product stand against the CRA, and what do I do next?

Dashboard

  • Figures strip:

    • Prüfobjekte;
    • Offene Befunde, with critical and high called out;
    • Komponenten in der Stückliste;
    • Bekannte Schwachstellen (CVE).

    Each tile links onward.

  • CRA-Stand je Prüfobjekt:

    • One bar per target over the 40 Annex I requirements, in the order nicht erfüllt / nicht bewertet / kein Verstoß gefunden / nicht im Code prüfbar.
    • Each row shows the violated count and the last scan's age ("vor 2 Std.").
    • The most violated targets come first; eight are shown, with a link to the rest.
    • A target's name opens its CRA status.
  • Als Nächstes: the six most severe open findings, with their target and Fundstelle.

  • AI chat and MCP sections: unchanged, and still hidden in source_only.

  • Shared pieces:

    • CraBar, a shared component drawing the status in the same order and colours everywhere; the target page and CRA page will reuse it.
    • format_ago, which writes relative time in German and English.

Agent

  • GET /api/v1/compliance/summary: every target's CRA counts plus component and CVE totals in one call.
    • Up to 4 targets are evaluated at a time.
    • A target too large to evaluate is listed with counts: null instead of failing the summary.
  • /api/v1/stats/overview:
    • The finding counts now cover only findings still needing action (open, bewertet, zu prüfen). Resolved findings, false positives, accepted risks and ignored findings no longer count as risk. On the nightly data: 99 open instead of 175 stored.
    • They come from one aggregation instead of five separate counts.

Checks

  • fmt, and clippy with the CI flags on the agent and on both dashboard feature sets.
  • Tests: dashboard 57 + 41, agent lib 454.
  • The Mongo integration test evidence now checks that the summary's counts match the per-target CRA view.
  • New tests: format_ago and the summary row's JSON.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

P2, part 1 of the UI/UX pass. **Stacked on #406**: merge that first; this PR's base then moves to main. The overview showed generic tiles: every finding ever stored, a tickets count, a severity chart. It now answers what a Maschinenbauer asks first: *where does each product stand against the CRA, and what do I do next?* ## Dashboard - **Figures strip:** - Prüfobjekte; - Offene Befunde, with critical and high called out; - Komponenten in der Stückliste; - Bekannte Schwachstellen (CVE). Each tile links onward. - **CRA-Stand je Prüfobjekt:** - One bar per target over the 40 Annex I requirements, in the order nicht erfüllt / nicht bewertet / kein Verstoß gefunden / nicht im Code prüfbar. - Each row shows the violated count and the last scan's age ("vor 2 Std."). - The most violated targets come first; eight are shown, with a link to the rest. - A target's name opens its CRA status. - **Als Nächstes:** the six most severe open findings, with their target and Fundstelle. - **AI chat and MCP sections:** unchanged, and still hidden in `source_only`. - **Shared pieces:** - `CraBar`, a shared component drawing the status in the same order and colours everywhere; the target page and CRA page will reuse it. - `format_ago`, which writes relative time in German and English. ## Agent - **`GET /api/v1/compliance/summary`:** every target's CRA counts plus component and CVE totals in one call. - Up to 4 targets are evaluated at a time. - A target too large to evaluate is listed with `counts: null` instead of failing the summary. - **`/api/v1/stats/overview`:** - The finding counts now cover only findings still needing action (open, bewertet, zu prüfen). Resolved findings, false positives, accepted risks and ignored findings no longer count as risk. On the nightly data: 99 open instead of 175 stored. - They come from one aggregation instead of five separate counts. ## Checks - fmt, and clippy with the CI flags on the agent and on both dashboard feature sets. - Tests: dashboard 57 + 41, agent lib 454. - The Mongo integration test `evidence` now checks that the summary's counts match the per-target CRA view. - New tests: `format_ago` and the summary row's JSON. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang changed target branch from feat/pruefwerk-ux-pass to main 2026-09-26 08:25:51 +00:00
sharang added 1 commit 2026-09-26 08:25:51 +00:00
feat(dashboard): an overview built around where each target stands on the CRA
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
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 9m21s
21b49dcd3b
The overview answered with generic tiles (all findings ever, tickets, a
severity chart). It now answers what a Maschinenbauer asks first:
- a figures strip: targets, open findings (critical and high called out),
  components in the Stückliste, known vulnerabilities; each links onward;
- CRA status by target: one bar per target over the 40 Annex I
  requirements, the violated count and the last scan's age, the most
  violated first;
- "Als Nächstes": the most severe open findings, with target and location.

Agent:
- GET /api/v1/compliance/summary returns every target's CRA counts in one
  call (4 targets evaluated at a time; one too large to evaluate is listed
  without counts instead of failing the summary).
- The overview counts only open findings (open, triaged, needs review) and
  in one aggregation instead of five counts over every finding ever stored.

A shared CraBar component draws the status in the same order and colours
wherever it appears; format_ago writes "vor 2 Std." / "2 h ago".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang force-pushed feat/pruefwerk-overview from e75f58339c to 21b49dcd3b 2026-09-26 08:25:52 +00:00 Compare
sharang merged commit 6ab3390db3 into main 2026-09-26 08:35:36 +00:00
Sign in to join this conversation.