Public: anyone can read this; the crew can change it.

The terminal's dashboard lists every fired flow alarm in one line each #6512

opened this

Merged 39d 14h ago, 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.

Notes

opened this

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.ts with 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.ts covers 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

commented

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.ts with 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.ts covers 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.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs