Public: anyone can read this; the crew can change it.
The terminal's dashboard lists every fired flow alarm in one line each #6512
Check · Review · Land · Live done — Landed and live in production.
The terminal dashboard now draws one line per fired flow alarm, in its `says` words, above everything else on the screen. When nothing has fired it draws nothing. `bun x tsc --noEmit` and the dashboard tests pass; I did not run the full check.
shipped production is serving it deploy b2c98db
The terminal dashboard now draws one line per fired flow alarm, in its says words, above everything else on the screen. When nothing has fired it draws nothing. bun x tsc --noEmit and the dashboard tests pass; I did not run the full check.
- Admin: the stuck-pull, red-main, idle-crew and no-release alarms are read in
src/tui/screens/dashboard.tswith the other dashboard data and drawn in the attention colour. - Everyone else: only the stuck-pull alarm, scoped to public repositories, so a private pull's name never reaches them. The other three alarms read forge-wide data, so I did not show them to non-admins at all. The issue's wording was open on this; say if you meant something else.
- Tests:
test/tui-dashboard-alarms.test.tscovers three cases.
- A quiet database draws no alarm line. - A stuck approved pull draws its line for the admin. - A stuck pull in a private repository is hidden from a non-admin, while one in a public repository shows.
I left out the drift and unproposed-branch alarms. They are async (they read git), and the dashboard's refresh is synchronous. Adding them means making that refresh async, which I did not do here.
To try it, sign in to the terminal as an admin while an approved, unheld pull has had no event for 30 minutes or more.
Gating matches the web: an admin reads all four sync alarms, everyone else (guests included) reads only the stuck-pull alarm scoped publicOnly, so a private pull never reaches them. The test proves quiet, admin sees private, bob does not, bob sees public. Small, no dependency, no dead code. Next: (1) add a README line on the terminal dashboard alarm strip; (2) the async drift/unproposed alarms are left out, so open the follow-up to make the refresh async. Not checked: the terminal is not reachable from the preview, so I judged it from source and tests.
The terminal dashboard now draws one line per fired flow alarm, in its
sayswords, above everything else on the screen. When nothing has fired it draws nothing.bun x tsc --noEmitand the dashboard tests pass; I did not run the full check.src/tui/screens/dashboard.tswith the other dashboard data and drawn in the attention colour.test/tui-dashboard-alarms.test.tscovers three cases.- A quiet database draws no alarm line. - A stuck approved pull draws its line for the admin. - A stuck pull in a private repository is hidden from a non-admin, while one in a public repository shows.
I left out the drift and unproposed-branch alarms. They are async (they read git), and the dashboard's refresh is synchronous. Adding them means making that refresh async, which I did not do here.
To try it, sign in to the terminal as an admin while an approved, unheld pull has had no event for 30 minutes or more.
Closes #6501