feat(dashboard): the platform's look, German throughout, and findings a customer can read #406

Merged
sharang merged 1 commits from feat/pruefwerk-ux-pass into main 2026-09-26 08:25:44 +00:00
Owner

First part (P1) of the UI/UX pass for the pilot: fixes and polish on the customer's path, found in a visual audit of every page against the last nightly run's data.

Look

  • Same look as the portal: the breakpilot.com palette the portal moved to (indigo #4F46E5, "Nacht" #0F1225 dark theme, the portal's status colours), agreed with the portal session. The same chevron "BreakPilot" wordmark and favicon, and the tab title "Prüfwerk · BreakPilot".

German throughout

  • Severity badges read Kritisch / Hoch / Mittel / Niedrig; they said HIGH and MEDIUM before.
  • Stückliste (SBOM): the navigation says "Stückliste" and the page title "Stückliste (SBOM)". The counts read "136 Komponenten" and "2 CVEs"; before, "136 package(s) found" and "2 vuln(s)".
  • What the scans check: one new component, ScanCoverage, is used by both the wizard and the target view.
    • It says what each scan checks and, when a scan cannot run, why, in the customer's words.
    • Scans switched off in this environment are folded into one line.
    • Before, the agent's English rationale and reasons were shown.
  • CRA status: the control map's English engineering notes show only in the English UI.

Findings

  • Lint paths (agent fix):
    • ruff and eslint reported absolute paths inside the per-scan work directory (/data/compliance-scanner/artifacts/work/<id>/<uuid>/app.py), which showed the server layout.
    • Worse, the path was part of the fingerprint, so every rescan re-reported the same lint findings as new, including in the new-findings email.
    • They are repo-relative now.
  • List:
    • Sorted by severity, most severe first. The agent now ranks severity for this sort; it sorted alphabetically before.
    • Each row names its target when the list covers all targets, and the tool sits under the title.
    • The CRA column shows the cra-ai-* refs and counts master-catalog controls instead of listing mc-18525 ids.
  • Detail:
    • Names the target, linked to its CRA status.
    • Shows each CRA requirement with its title.
    • Counts the catalog controls (their ids are in the tooltip).
    • Masks committed secrets on screen, for example 5f4d••••••••. The stored finding and the evidence pack keep the full value.

Fixes

  • No more flash of DAST and Pentest: the feature flags are read before the first render (a server future, like the auth check). Before, both showed as available until the handshake arrived.
  • Onboarding order: machine and device types come first (SPS / PLC, firmware, embedded Linux) and other software second, with hints in a Maschinenbauer's terms. The type cards are buttons, so they work from the keyboard.

Checks

  • cargo fmt, and clippy with the CI flags on the agent and on both dashboard feature sets.
  • Tests: dashboard server 55, dashboard web 39, agent lint 20.
  • New tests:
    • repo_relative
    • mask_secrets
    • the mapping from the agent's reasons to German text, using the exact strings the scan matrix produces

Not in this PR

P2 (a CRA-centred overview, a proper target page and the grouped CRA status) follows in separate PRs. The docs are in #405, the email wording in tenant-registry#41, and the empty-SBOM status question in #404.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

First part (P1) of the UI/UX pass for the pilot: fixes and polish on the customer's path, found in a visual audit of every page against the last nightly run's data. ## Look - **Same look as the portal:** the breakpilot.com palette the portal moved to (indigo `#4F46E5`, "Nacht" `#0F1225` dark theme, the portal's status colours), agreed with the portal session. The same chevron "BreakPilot" wordmark and favicon, and the tab title "Prüfwerk · BreakPilot". ## German throughout - **Severity badges** read Kritisch / Hoch / Mittel / Niedrig; they said HIGH and MEDIUM before. - **Stückliste (SBOM):** the navigation says "Stückliste" and the page title "Stückliste (SBOM)". The counts read "136 Komponenten" and "2 CVEs"; before, "136 package(s) found" and "2 vuln(s)". - **What the scans check:** one new component, `ScanCoverage`, is used by both the wizard and the target view. - It says what each scan checks and, when a scan cannot run, why, in the customer's words. - Scans switched off in this environment are folded into one line. - Before, the agent's English rationale and reasons were shown. - **CRA status:** the control map's English engineering notes show only in the English UI. ## Findings - **Lint paths (agent fix):** - ruff and eslint reported absolute paths inside the per-scan work directory (`/data/compliance-scanner/artifacts/work/<id>/<uuid>/app.py`), which showed the server layout. - Worse, the path was part of the fingerprint, so every rescan re-reported the same lint findings as new, including in the new-findings email. - They are repo-relative now. - **List:** - Sorted by severity, most severe first. The agent now ranks severity for this sort; it sorted alphabetically before. - Each row names its target when the list covers all targets, and the tool sits under the title. - The CRA column shows the `cra-ai-*` refs and counts master-catalog controls instead of listing `mc-18525` ids. - **Detail:** - Names the target, linked to its CRA status. - Shows each CRA requirement with its title. - Counts the catalog controls (their ids are in the tooltip). - **Masks committed secrets** on screen, for example `5f4d••••••••`. The stored finding and the evidence pack keep the full value. ## Fixes - **No more flash of DAST and Pentest:** the feature flags are read before the first render (a server future, like the auth check). Before, both showed as available until the handshake arrived. - **Onboarding order:** machine and device types come first (SPS / PLC, firmware, embedded Linux) and other software second, with hints in a Maschinenbauer's terms. The type cards are buttons, so they work from the keyboard. ## Checks - `cargo fmt`, and clippy with the CI flags on the agent and on both dashboard feature sets. - Tests: dashboard server 55, dashboard web 39, agent lint 20. - New tests: - `repo_relative` - `mask_secrets` - the mapping from the agent's reasons to German text, using the exact strings the scan matrix produces ## Not in this PR P2 (a CRA-centred overview, a proper target page and the grouped CRA status) follows in separate PRs. The docs are in #405, the email wording in tenant-registry#41, and the empty-SBOM status question in #404. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-25 22:06:04 +00:00
feat(dashboard): the platform's look, German throughout, and findings a customer can read
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 7m18s
e2b1a1c23b
Prüfwerk now looks like the BreakPilot portal it is opened from: the
breakpilot.com palette (indigo accent, "Nacht" dark theme), the chevron
wordmark and favicon.

German UI, no English left on the pilot path: severity badges, the
Stückliste (SBOM) page, the list of what a target's scans check (one shared
component for the wizard and the target), and the CRA status notes.

Findings:
- lint findings (ruff, eslint) carry repo-relative paths; the absolute
  per-scan work dir leaked the server layout and changed their fingerprint
  on every scan, so rescans re-reported them as new
- the list sorts by severity (ranked, not alphabetically), names the target
  of each finding and shows CRA refs by id, catalog controls as a count
- the detail names the target (linked to its CRA status), shows each CRA
  requirement's title, and masks committed secrets on screen

The feature flags are read before the first render, so DAST and Pentest no
longer flash as available. The onboarding wizard offers machine and device
software first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 2a10a932b0 into main 2026-09-26 08:25:44 +00:00
Sign in to join this conversation.