Repository navigation
Redesign the overview around scan status and honest limits - #11
Merged
Merged
Conversation
Previews now remembers ports whose latest capture failed, exposes
Previews.failed?/1 and broadcasts {:preview_failed, port}, so the dashboard
can say a snapshot is unavailable instead of showing a capture in progress
forever. The headless capture moves to Previews.Browser and can be swapped
through the :preview_capture setting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Replace the decorative banner with a scan status strip: scanner state, last scan time, watched range with the excluded dashboard port, and the snapshot cadence. - Distinguish the first scan in progress from an empty result. - Rebuild service cards as components: labeled HTTP status and response time, snapshot time, capturing and unavailable snapshot states, labeled process metrics, and an explanation when process details are missing. - Add a collapsible note on how discovery works and what it cannot see. - Show running versus next-start values for the dashboard port and watched range in Settings and the sidebar. - Move colors to tokens so light and dark themes share one stylesheet, and drop scanlines, blinking LEDs and filler labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installed-dashboard smoke test greps for "in range 4000–4500"; the overview subtitle uses that wording again, and a LiveView test pins it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…b23f # Conflicts: # assets/css/app.css # lib/local_web_monitorex_web/live/dashboard_live.ex # test/local_web_monitorex_web/live/dashboard_live_test.exs
The scan progress total from #12 skips the dashboard's own port, so the range caption now reports the same number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…b23f # Conflicts: # assets/css/app.css
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.
Why
The overview looked busy without saying much: a large decorative banner, scanlines and blinking LEDs on every preview, filler labels ("YOUR MACHINE, IN VIEW", "F / 01", "01 / DISCOVERED PORTS"), and a snapshot that stayed on "CAPTURING" forever when the capture failed. It also did not explain what the app cannot see.
Direction: a calm, local instrument panel for developers. Keep the dark-green rail, lime "live" accent and mono labels; spend the space on facts (scan state, timing, limits) instead of decoration.
What changed
Behavior
Previewsremembers failed captures, exposesPreviews.failed?/1and broadcasts{:preview_failed, port}. The headless capture moves toPreviews.Browserand can be swapped with the:preview_capturesetting (used by the new test).Overview
Cards (now
DashboardComponents.service_card/1)200 OK,302 Found,500 Internal Server Error) with tone by class, "answered in N ms", port tag, snapshot time chip.Settings and sidebar
PORToverrides the saved port. The watched-range form markup and validation are unchanged.Styling
:root, redefined fordata-theme="dark", replacing ~80 per-component dark overrides. Reduced-motion stops all loops.Before / after (described; captures show apps running on my machine, so they are not attached)
200; response time unlabeled.:port,200 OK · answered in 23 ms, labeled process metrics, URL + Stop.scrollWidth == 375).Verification
mix test(50 tests, 0 failures),mix format --check-formatted,mix compile --warnings-as-errors(test env; the dev build dir was held by the dev server).Coordination
The range-limits session is changing the watched-range validation and adding a scan-progress indicator. This PR leaves that form and
Monitoruntouched; the progress indicator can drop into the strip's Scanner cell.🤖 Generated with Claude Code