Skip to content

feat: the dashboard's mark says what needs attention, and flips to the nut (ADR-0097) - #475

Merged
7schmiede merged 1 commit into
mainfrom
feat/attention-badge
Nov 6, 2026
Merged

7schmiede merged 1 commit into
mainfrom
feat/attention-badge

Conversation

@7schmiede

Copy link
Copy Markdown
Member

The dashboard's mark (in the top bar) and the tab's favicon carry a red or yellow dot when something needs attention. On hover the mark turns over to the nut of the nuts family, and the favicon turns with it. The flip is the same effect as in nuts-timetrack.

Review card

The owner approved points 1–4 in the conversation on 2026-11-06.

# Category Point Beats Reversing costs
1 contract The hub's event stream sends an attention event when a dashboard connects and on every change: {type, items: [{stack, lane, service, text, detail, level}]}. These are the items /hub/summary lists, read from the same board. Polling /hub/summary, or working it out in the browser, which sees only the stack on screen Low: the event is only added; an older dashboard ignores it
2 contract An attention item carries a level: error (a service, a build, a stack's start or a lane's start failed) or warn (a candidate held for promote). /hub/summary has it too; its state stays as it is. A severity guessed from the text Low: one more field
3 concept The dashboard shows a dot on the favicon and on the mark in its top bar: red for an error item or a hub that cannot be reached, otherwise yellow for a warn item, a pool request waiting for an admin, or a skill set waiting for an answer. With nothing to show there is no dot. A count in the tab title, or one colour as in the tray Low: only how it looks
4 concept The mark flips to the nut of the nuts family on hover, and the favicon flips with it. There is no motion when the user asks for reduced motion. No easter egg None

Decided by the agent alone: the nut is Lucide's nut (ISC) in the mark's green on its dark tile. The favicon is made at run time as a data: SVG; the CSP allows data: images. A newer release does not get a dot. A failed lane start or move is now in /hub/summary too, because point 2 names it; before, it was only notified. See ADR-0097.

Checked

  • cargo test -p devstack-hub, cargo clippy --workspace --all-targets -D warnings, cargo fmt --check
  • npm run typecheck, vitest (new brand.test.ts), npm run build
  • In the lane's stack against the mock hub, with headless Chromium:
    • the default mock shows a yellow dot
    • ?mock=startfailed and ?mock=hubdown show a red one
    • hovering the mark flips it and puts the nut into the favicon; leaving it turns it back
  • Not checked against a real hub with a failing service: the event comes from the same board as /hub/summary, and unit tests cover the board's change signal and the levels.

🤖 Generated with Claude Code

…e nut (ADR-0097)

The hub sends an `attention` event on its stream (the items of
/hub/summary, each with a level: error or warn; failed lane starts are now
among them). The dashboard puts a red or yellow dot on the mark in its top
bar and on the favicon; the mark turns over to the nut of the nuts family
on hover, and the favicon with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede force-pushed the feat/attention-badge branch from 4657c42 to 49613c0 Compare November 6, 2026 15:19
@7schmiede
7schmiede merged commit 912033c into main Nov 6, 2026
@7schmiede
7schmiede deleted the feat/attention-badge branch November 6, 2026 15:32
@7schmiede 7schmiede mentioned this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant