Repository navigation
Add mass dashboard, a live terminal view of the organization - #272
coryodaniel wants to merge 36 commits into
Conversation
Shows environments as a constellation linked by the resources they share, with firing alarms, blast radius, deployments in flight, available upgrades, and spend. Runtimes, Alarms, and Upgrades tabs cover runtime adoption, what is firing, and what can upgrade. A ticker follows the audit log and lights up where things happen, and a replay plays a chosen window of it back onto the map. Piped output prints the same data as tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 12s —— View job Review of
|
A burst of events between polls no longer loses all but the newest 50, and a replay says when its window held more than it can play. A replay cancelled while loading can no longer take the answer meant for the one that replaced it. Firing counts use the instance's count rather than the first page of alarms, reads stop when the dashboard closes, and the three reads run at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Fixed in 05eaf7a:
Comments. I removed the doc comments on unexported helpers that only restated the code. The ones left explain why: Not changed:
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 23s —— View job Re-review of
|
The footer says when more events arrived between polls than one poll reads, and the side panel counts firing alarms beyond the first page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Fixed in aaae7dc and 7e41571:
@claude please review. |
|
Claude finished @coryodaniel's task in 54s —— View job Re-review of
|
An event is stamped before the transaction that writes it commits, so it can land behind events a poll has already read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. The review covered aaae7dc. 7e41571 had already changed item 3 of my earlier reply. Fixed in the latest push:
Not changed: @claude please review. |
|
Claude finished @coryodaniel's task in 58s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Both nits are fixed in the latest push:
@claude please review. |
|
Claude finished @coryodaniel's task in 40s —— View job Re-review of
|
|
Thanks. Leaving the duplicated wording: one copy is styled for the panel and the other is plain for pipes, and a shared helper for two lines of text would add more than it saves. |
Widgets set through md/ stash keys show where they belong: health colors an instance, usage draws a bar, traffic paces the sparks on the links an instance sends on and labels them, a banner flags an environment, and header links appear in the side panel. A server without widgets leaves them out. With --watch, an alarm that starts firing takes the view to its environment, locks on, shows its blast radius under a banner, and rings the terminal with a desktop notification. When it clears the view goes back where it was, unless someone moved it. A running plan no longer counts as a deploy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @coryodaniel's task in 1m 30s —— View job Review of
|
Widget reads ran on a context the parallel reads had already cancelled, so no widget ever showed against a real server. Widget batches now run four at a time and keep the ones that succeed. Text from the platform has its control characters stripped before it reaches the terminal, and only http and https links are clickable. --watch now opens an incident only when an instance's firing count rises, and resolves one only when the list shows every alarm of its instance, so an alarm moving on or off the first page opens or closes nothing. The view goes back to where it was before the first incident, and a move during the resolved banner keeps it where it was moved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, these were real. Fixed in eb5a4b9:
Not changed: @claude please review. |
|
Claude finished @coryodaniel's task in 1m 27s —— View job Re-review of
|
…dents Bundle names and versions are publisher text, so they lose control characters too, and so does a bidirectional override in any platform text. A second rise on an instance whose alarms are past the first page updates its open incident instead of opening another. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. All four are fixed in the latest push:
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 6s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. All three are fixed in the latest push:
@claude please review. |
|
Claude finished @coryodaniel's task in 44s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 26s —— View job Re-review of
|
|
No changes for e2436f3:
|
Navigating the constellation jumped: the layout recentred at once, before the new read arrived, then reshuffled from scratch when it did. Each layout now starts from the last one and eases there from where the nodes are on screen, redrawing at 60fps while anything moves. A read the focus moved past is cancelled, and only the latest read keeps a refresh timer, so stepping around no longer stacks up refresh loops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 2m 0s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in ac9b6f8:
No change:
@claude please review. |
|
Claude finished @coryodaniel's task in 19s —— View job Re-review of
|
|
No changes for ac9b6f8:
|
The dashboard read every stash in view every few seconds whether anything changed or not. It now reads them once and streams each key as it is set, one subscription per environment in view, and polls only when it cannot stream. Well-known keys move to their versioned names. The SDK is pinned to massdriver-sdk-go#59 until it is released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 2m 5s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 2b525ab:
No change:
@claude please review. |
|
Claude finished @coryodaniel's task in 33s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 8bd7cb6:
No change:
@claude please review. |
|
Claude finished @coryodaniel's task in 26s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 5a38cb5:
No change:
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 10s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 04fcd85: the test now checks that the read after the refocus failed before it clears the failure. A test-only change, so I'm not asking for another review. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 18s —— View job Review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 2142c53:
No change:
Test and doc changes only, so I'm not asking for another review. |
mass dashboard(aliasesdash,constellation) opens a full-screen, live view of the organization, built on the runtime and application queries and the instance alarm, deployment, upgrade, and dependency fields in the v2 API.Focus
An organization can have hundreds of projects, so the dashboard reads one neighborhood, not everything. It centers on the environment
--envnames, or else the environment of the most recent deployment. It reads that environment and its neighbors, out to--depthhops (default 1), ring by ring withenvironments(filter: {id: {in: ...}}).resources { remoteReferences, environmentDefaults }), and the environment it was forked from.enter, becomes the focus, and nodes glide from their old places to their new ones. A search being typed, or a selection that--watchmakes, does not move the focus./matches what is in view first, then falls back to a directory of environment ids and names, read once, to move the focus anywhere in the organization.--watch, which sees alarms only in view. Runtime and application lists stay org-wide.Tabs
↑Nmarks available upgrades. Selecting an environment shows its instances, alarms, deployments, neighbors, and blast radius, which lights up downstream environments by hop. Toggles: blast radius, instance dots, cost sizing, grouping by project, producers on top./searches.Live
--events, default 5s). New events flash their environment, and deployment events re-read the organization. Polling the audit log works with API keys; the org-level subscription carries no deployment events and per-environment subscriptions require a personal access token.treplays a window of the audit log, 5 minutes to 24 hours, onto the map at a speed that finishes in under a minute.oopens the selection in the web app.--refresh(default 30s) re-reads the organization.Stash, widgets, and annotations
The dashboard follows the stash as a feed, through the SDK's
Stashservice. It reads every project, environment, component, and instance scope in view once, in batches of up to 200, four at a time. Then it streams each key as it is set or deleted, one subscription for each environment in view, moved as the view moves. Each refresh reads the whole stash again to catch what a dropped stream missed, and a read that races a streamed event keeps the event.--stashinterval (default 3s). A dropped stream resubscribes at once, then backs off up to a minute, and polls meanwhile.md/keys the way the Massdriver UI draws them: the versioned well-known keysmd/v1/health,md/v1/usage,md/v1/traffic(rate, errors, p95 latency, and stale after 10 minutes),md/v1/banner, andmd/v1/links. The unversionedmd/healthkeys no longer draw widgets. The thresholds match the UI: usage turns amber at 80% and red at 95%, a few errors are amber, and ten or more are red.project,environment,component,instance,source, anddestinationstash bindings as the UI. Markdown is reduced to text, and images are dropped. Notes show on the environment, the project, the instances, and the links in the side panel.?says why notes are missing.httpandhttpslinks are clickable.Incidents
--watchtakes the view to each alarm that starts firing between reads. It locks on to the environment and shows the blast radius under a banner that counts up. It rings the terminal and sends an OSC 9 desktop notification.escputs the banner away. When the alarm clears, the banner shows how long it lasted, and the view goes back to the tab and selection it had, unless someone moved it. Alarm, deployment, and stash events in the audit log trigger a re-read, so the view reacts within one event poll.When stdout is not a terminal, the command prints environments, firing alarms, and runtimes as tables.
Themes and palettes
--themepicks how the map is drawn, andvswitches between themes:constellation: a force layout with braille rings and curved links.metro: stations on a band per project, producers to the left, with links drawn as box-drawing track and sparks running along it.radar: the focus at the center of a sweeping scope, each environment on the ring as many hops out as it is, and blips that light as the sweep passes.--palettepicks the colors and backdrop:night(starfield),rain(falling streams), orblueprint(drafting grid). Red, orange, and yellow keep their meaning in every palette.A banner from the stash runs across the top of the map: the selected environment's, or else the most urgent banner in view.
Layout
cmd/dashboard.gois wiring only. Logic lives ininternal/commands/dashboard, which reads through a narrowAPIinterface over the SDK's GraphQL transport, audit log, and stash services. Before merging,go.modmoves from the massdriver-sdk-go#59 pseudo-version to its release.🤖 Generated with Claude Code