Repository navigation
Draw stash values on the ticker as their widgets - #284
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 36s —— View job Review of #284: Draw stash values on the ticker as their widgetsThe change is clean and follows the layering rules in CLAUDE.md. What I checked
Suggestions (none blocking)
Overall this looks good to merge, with the optional cleanups above. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # internal/commands/dashboard/api.go # internal/commands/dashboard/stash.go # internal/commands/dashboard/stash_test.go
|
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 44s —— View job Review of #284: Draw stash values on the ticker as their widgets
The code follows the layering and test rules in CLAUDE.md. Widgets are cell-clipped and escape-stripped, and the tests cover thresholds, clipping and escapes. One correction to the earlier review and a few findings follow. Correction to the previous reviewIt said every line starts with its key. That is wrong, and so is the PR description ("Every line still starts with its key, so a widget pinned to any key says which key changed"). After c03f98b the key is left off unless there is nothing else to show:
Suggestion: update the PR description to match. The emoji ( Findings
None of these block the merge. I'd fix the description (above) and finding 2 before merging. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and keep prefixed lines in budget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in 0eb6158, with #282 merged in:
No change:
@claude please review. |
|
Claude finished @coryodaniel's task in 1m 44s —— View job Review of #284: Draw stash values on the ticker as their widgets
All six points from the last round are addressed in 0eb6158:
I found nothing blocking. These are all minor:
Good to merge from my side. Point 2 is the one I'd consider fixing first. |
|
Folded into #272. |
Stacked on #282.
The live ticker draws a stash change the way the Massdriver UI draws its widget, instead of
key = {json}:md/v1/health● degraded, green for healthy/ok/up, amber for degraded/warning/recovering, red for down/failed/errormd/v1/usage▮▮▮▮▮▮▮▮▯▯ 82/100 % CPU, amber from 80% and red from 95%md/v1/traffic40/s · ✕7 · 180ms, with errors amber from 1 to 9 and red from 10md/v1/banner⚑ Load test until 5pmin its level's colormd/v1/links🔗 Grafana, runbooks.example.com: http(s) links only, at most 8, a link without a label named by its hostThe thresholds, levels and link rules follow the UI's
shared/annotations(widgetViews.js,canvasWidgets.js,traffic.test.js). The key is left off: the emoji (🩺 📊 📈 📣 🔗) and the widget say what changed, and the key shows only when the value has nothing to show, as for a deleted key. Only keys a widget draws, well-known or pinned, reach the ticker or rise over the map. A script's other keys stay quiet. Lines, including the scope prefix for non-environment scopes, are cleaned of control characters and clipped to 60 cells.Graph.StashEventnow takes the annotations and the stash, which it needs to resolve a pinned widget's other inputs.EventgainsWidget, the colored line.Detailstays plain text for write-ups and replays.🤖 Generated with Claude Code