Repository navigation
Add mass dashboard, a live terminal view of the organization - #272
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
|
Listing it for cancel spread it to the replay picker and the search box, where it either clashed with quit or changed what ctrl+c does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On an org busy with stash writes, the poll's high-water mark lagged behind them, so a full read still said it was cut short. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR now includes #275–#290; the description covers all of it. Since the last review here:
The #290 nit about @claude please review. |
|
Claude finished @coryodaniel's task in 25s —— View job Re-review of
|
Items already use · inside themselves, so the gap between events was hard to find. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @coryodaniel's task in 15s —— View job Re-review of
|
Moves the SDK to its main branch, where #59 merged. Stash entries now carry their scope, so mass alpha stash get --output json includes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @coryodaniel's task in 2m 38s —— View job Re-review of
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @coryodaniel's task in 2m 26s —— View job Re-review of
|
mass dashboard(aliasesdash,constellation) opens Massdriver Constellation, a full-screen, live view of the organization. It's built on the runtime and application queries and on the instance alarm, deployment, upgrade and dependency fields in the v2 API. The guide is massdriver-cloud/docs#304.This PR now includes the work from #275, #276, #277, #278, #279, #280, #281, #282, #284, #285, #286, #289 and #290.
Focus
An organization can have hundreds of projects, so the dashboard reads one neighborhood rather than everything.
The center. 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: ...}}).Neighbors are:
Past the edge. Environments past the edge show 🔭. Ids it asks for that don't come back show as no access.
Moving the focus.
enter, becomes the focus, and nodes glide to their new places./matches what is in view first. If nothing matches, it reads a directory of environment ids and names once and searches that.Everything else follows the view:
--watch.Runtime and application lists stay org-wide.
Tabs
↑Nmarks available upgrades.b a c g s): blast radius, instance dots, cost sizing, grouping by project, producers on top.cshows a deployment's config: the message, the bundle version, and a diff of its params against the last completed provision. Values that look secret are masked.yapproves it.xrejects it, with an optional reason. The API'srejectDeploymenttakes no message, so the reason goes in the deployment's stash underreview/rejectionafter the reject.Themes, palettes and rendering
--themepicks how the map is drawn, andvcycles through them:constellation: a force layout with braille rings and curved links.metro: stations on a band per project, producers to the left.radar: the focus at the center of a sweeping scope, with each environment on the ring as many hops out as it is.plain: environments listed by project, one line each, with only the facts that apply and nothing moving. Environments you can't see sit under "More".--palettepicksnight,rainorblueprint, andpcycles through them. Red, orange and yellow keep their meaning in every palette.--render blocksdraws solid blocks instead of braille, for terminals such as Ghostty.Live
--events(default 5s). Events of thestash*types are left off.--flashes wordsshows the event name instead, and--flashes offkeeps only the ripple.r, and after an approve or deploy. Also on these audit events: an instance or connection created, deleted or moved in view, or any remote reference or environment default.--refreshtick (default 30s). The status read (dashboardEnvironmentStatus) covers each instance's status, version, upgrade, alarms and latest deployments. It's merged into the snapshot, so nothing on the map moves.treplays 5 minutes to 24 hours of the audit log onto the map. Space pauses, and[and]change the speed.--watchjumps to each alarm that starts firing, locks onto it under a banner, rings the terminal and sends an OSC 9 notification. When the alarm clears, the view goes back to where it was.ffollows a deployment's logs in a wider side panel.Deployments.StreamLogsand falls back to polling. It keeps 500 lines and drops repeats.shift+↑/shift+↓,homeandendscroll, and new lines don't move what you're reading.oopens the selection in the web app.Acting
n/Npick an instance.yapproves its waiting deployment, andddeploys it again with its current params.cto see the config first. Any key other thanyorentercancels.--read-onlyturns off approving, rejecting and deploying.Stash, widgets and annotations
--stashinterval (default 3s) instead.md/v1/health,md/v1/usage,md/v1/traffic,md/v1/bannerandmd/v1/links, with the UI's thresholds.● degraded,▮▮▮▮▮▮▮▮▯▯ 82/100 % CPUor40/s · ✕7 · 180ms, after the key's emoji (🩺 📊 📈 📣 🔗). The key name appears only when there's nothing else to show.Viewer.Getis checked once per session. For anyone else, a classified 403 stops further calls for the session.httpandhttpslinks are clickable.Incidents
wopens the write-up inside the dashboard, rendered with Glamour in the palette's colors.eedits the raw markdown, andescgoes back to the rendered view.ctrl+ssavesincident-<instance>-<alarm>-<YYYYMMDD-HHMM>.mdand its.jsonrecording with mode 0600.--playback <file>replays a recording offline, with no profile and no API calls.eon the map saves it as an SVG in the current theme and palette.Tutorial
--tutorialwalks through 18 steps on a made-up organization, offline. Each step locks onto what it explains under a caption: rings, alarms, deploys, sparks, forks, blast radius, upgrades, banners, notes, out of view, no access, flashes, the ticker, the side panel and the keys.Key bindings
Keys can be rebound in
$XDG_CONFIG_HOME/massdriver/dashboard.yaml, else~/.config/massdriver/dashboard.yaml, or in a file named with--keys:?legend and the tutorial show the bound keys.Piped output
When stdout is not a terminal, the command prints the environments, firing alarms and runtimes in view as tables.
Layout
cmd/dashboard.gois wiring only. The logic lives ininternal/commands/dashboardand reads through a narrowAPIinterface over the SDK's GraphQL transport and its audit log, stash, deployments and viewer services. It needs massdriver-sdk-go v0.7.0 and #288's move to its streams; merge #288 first.🤖 Generated with Claude Code