feat(dashboard): scan status and history on the targets page #343

Merged
sharang merged 1 commits from feat/scan-run-view into main 2026-09-23 13:55:02 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 466ff01283 feat(dashboard): scan status and history on the targets page (#284)
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 7m45s
A customer could start a scan but never see whether it ran, where it was,
why it failed or which stages it left out: fetch_scan_runs was unused.

- Agent: GET /api/v1/scan-runs takes ?target_id=; GET /api/v1/targets
  adds each target's newest run as `last_scan` (one aggregation).
- Targets list: a "last scan" column (status, and the step a running
  scan is at); the findings count links to the findings list filtered to
  that target (/findings?target=<id>); starting a scan refreshes the list.
- Target details: the scan history, newest first, with start and finish
  times, new findings, the error of a failed run, and each stage that was
  not run with its reason. It refreshes every 5 s while a scan runs.
- The targets page is in German and English; target types and artifact
  kinds are shared label tables. Phase names are an exhaustive match, so
  a new phase does not compile without both translations.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 15:46:17 +02:00