Skip to content

feat: scan stage progress labels and trusted device flag - #59

Merged
reloadfast merged 1 commit into
mainfrom
feat/improvements-52-54
Feb 28, 2026
Merged

reloadfast merged 1 commit into
mainfrom
feat/improvements-52-54

Conversation

@reloadfast

Copy link
Copy Markdown
Owner

Closes #52, Closes #54

#52 — Scan stage progress labels:
- Scan model gains current_stage (nullable String)
- scan_runner writes 'scanning' before orchestrate_scan() and
  'analysing' after _persist_result(); both committed for live polling
- ScanOut schema + _scan_to_out() include current_stage
- Scan type updated in frontend
- ScanBanner now shows human-readable stage label (Scanning network…
  / Analysing risks…), elapsed timer (useElapsed hook), scanId
- DashboardPage passes current_stage + started_at to ScanBanner
- Test: GET /api/scans always includes current_stage field

#54 — Trusted device flag:
- Device model gains trusted: Boolean (default=False, server_default='0')
- DeviceOut schema + _device_to_out() include trusted field
- PATCH /api/devices/{id}/trusted endpoint toggles flag (body: {trusted: bool})
- run_checks() skips all checks for trusted devices and clears existing risks
- Device type gains trusted: boolean in frontend
- DeviceDetailPage: 'Mark as trusted' / 'Untrust device' toggle button,
  🛡 Trusted badge when trusted, calls PATCH then refetches
- DevicesPage: 🛡 icon next to IP on trusted devices (tooltip)
- Tests: trusted device → no risks generated; PATCH endpoint roundtrip;
  404 on unknown device

Closes #52
Closes #54

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@reloadfast
reloadfast merged commit 7f94459 into main Feb 28, 2026
5 checks passed
@reloadfast
reloadfast deleted the feat/improvements-52-54 branch February 28, 2026 22:40
@reloadfast
reloadfast restored the feat/improvements-52-54 branch March 26, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: mark device as trusted to suppress known-device risks feat: scan stage progress labels in UI

1 participant