feat(dashboard): findings show where and what, and saves wait #345

Merged
sharang merged 1 commits from feat/findings-pages into main 2026-09-23 14:11:32 +00:00
Owner

Part of the pilot P0 (#338), item E (findings). Stacked on #344 (→ #343 → #342).

What

  • List:
    • the location column reads Core/Src/comms.c:20;
    • scan types and statuses are shown in words (DE/EN);
    • an empty result says so.
  • Type filter bug: the "Secrets" option sent secret_detection, but findings store secretdetection (ScanType is rename_all = "lowercase"), so it matched nothing. The options are now built from ScanType using the stored names, which adds firmware, PLC control logic, ICS, DAST and others. Status options likewise.
  • Detail page:
    • a new Fundstelle / Location card: file:line (also without a snippet), scanner, rule id, CRA Annex I refs;
    • the current status is highlighted and disabled;
    • a status change re-reads the finding after the save (before, it restarted immediately and raced the PATCH) and shows "saved" or the refusal;
    • feedback saves on change (leaving the field) instead of one PATCH per keystroke.
  • Saves report failure:
    • update_finding_status, bulk_update_finding_status and update_finding_feedback now check the response (agent_client::ok_or_error);
    • the bulk bar keeps the selection and shows a toast when a save fails.

Verification

  • Unit tests: location(), and wire names (secretdetection, plccontrollogic, false_positive). 38 dashboard lib tests pass.
  • clippy with the CI flags (server, web); fmt.
  • Not yet seen in a browser.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Part of the pilot P0 (#338), item E (findings). **Stacked on #344** (→ #343 → #342). ## What - **List:** - the location column reads `Core/Src/comms.c:20`; - scan types and statuses are shown in words (DE/EN); - an empty result says so. - **Type filter bug:** the "Secrets" option sent `secret_detection`, but findings store `secretdetection` (`ScanType` is `rename_all = "lowercase"`), so it matched nothing. The options are now built from `ScanType` using the stored names, which adds firmware, PLC control logic, ICS, DAST and others. Status options likewise. - **Detail page:** - a new *Fundstelle / Location* card: file:line (also without a snippet), scanner, rule id, CRA Annex I refs; - the current status is highlighted and disabled; - a status change re-reads the finding **after** the save (before, it restarted immediately and raced the PATCH) and shows "saved" or the refusal; - feedback saves on `change` (leaving the field) instead of one PATCH per keystroke. - **Saves report failure:** - `update_finding_status`, `bulk_update_finding_status` and `update_finding_feedback` now check the response (`agent_client::ok_or_error`); - the bulk bar keeps the selection and shows a toast when a save fails. ## Verification - Unit tests: `location()`, and wire names (`secretdetection`, `plccontrollogic`, `false_positive`). 38 dashboard lib tests pass. - clippy with the CI flags (`server`, `web`); fmt. - Not yet seen in a browser. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang changed target branch from feat/onboarding-flow to main 2026-09-23 14:03:54 +00:00
sharang added 1 commit 2026-09-23 14:03:54 +00:00
feat(dashboard): findings show where and what, and saves wait
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 7m9s
48b815a708
- The findings list shows file:line, scan types and statuses in words,
  and says so when a filter matches nothing.
- The type filter is built from ScanType and sends the stored names: the
  "Secrets" option sent `secret_detection`, which matches nothing stored
  (`secretdetection`). Firmware, PLC, ICS and DAST findings are now
  filterable too.
- The detail page has a location card (file:line even without a snippet,
  scanner, rule id, CRA Annex I refs), marks the current status, re-reads
  only after a status change is saved, and shows "saved" or why saving
  failed. Feedback saves when the field is left, not on every keystroke.
- Status and feedback saves report the agent's refusal (ok_or_error);
  the bulk status bar keeps the selection when a save fails.
- Both pages in German and English.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang force-pushed feat/findings-pages from b0b4524647 to 48b815a708 2026-09-23 14:03:54 +00:00 Compare
sharang merged commit 8386032565 into main 2026-09-23 14:11:32 +00:00
Sign in to join this conversation.