feat(desktop,doctor): live Status dashboard + receiver controls - #88
Merged
Conversation
Extract the doctor checks into @wavegrid/doctor and collect them as data, so the CLI and the desktop app report the same health from one implementation. Desktop gains a Status route (brain, connected receivers + shard coverage, device registry, sync divergence, and this laptop's checks with remedies) and receiver-only start/stop, which applies an OSC/shard/light-map change without dropping the server or the laser UI.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Summary
wavegrid doctorbecomes a live screen in the app instead of a terminal command — and the diagnostic logic moves out of the CLI so both render the same snapshot.New
@wavegrid/doctor(moved out ofpackages/cli/src/commands/doctor-checks.ts, which no longer exists): the pure checks, the two probes, and one collector that returns diagnostics as data:serverErrordistinguishesnot-running(nothing on the port) fromunauthorized/timeout/refused/not-wavegrid, which is what makes "brain down" actionable.runDoctoris now only rendering — plus the one case the collector can't express (no project to diagnose).--jsonnow emits the collector's shape.Desktop Status route.
doctor:reportadapts the snapshot in main (range/SystemStatusformatting stays out of the renderer, so no node deps cross the bridge). Layout follows the lesson from the Lights debugger: fixed-height page, two independently scrolling columns, nothing below the fold on a short window. Left = the show (brain version/layout/mode/uptime, connected receivers with shard + layout-mismatch flag, coverage gaps/overlaps, registered devices, sync divergence); right = this laptop's checks, sorted failures→warnings→passes, each with its remedy. Refreshes every 5s with a Live/Paused toggle.Receiver controls. The receiver reads its OSC target, shard, and light map at startup, so a config change previously needed a full brain restart.
brain.tsnow owns the receiver handle independently:Restart in the UI is stop+start.
BrainStatusgainsreceiverRunning.No protocol change: the report is read with the existing
system_statusrequest over an authenticated socket, exactly as the CLI already did.Link to Devin session: https://app.devin.ai/sessions/972698f89f494b86828010666a002b8f
Requested by: @pyramation