feat: scan stage progress labels and trusted device flag - #59
Merged
Merged
Conversation
#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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #52, Closes #54