Palette rows: numbers, people, settings, actions

The palette finds, on a repository's page, #123 (one row, "Go to #123", built in the browser from the page's own path; issues and pulls share one number space and each address redirects to the other kind, so it never dead-ends on a kind). For signed-in viewers it also carries people, more settings pages and actions: "Tell the crew", and, for each app the viewer may write (eight at most, among the repositories the palette lists), "Redeploy <owner/name>" and, while it runs, "Stop <owner/name>" (appActionRows, #11926). Those rows post the app's own /app/production/redeploy and /stop routes, so the server's gate and same-origin check decide; the palette only asks once first. A title is found by the forge's own search behind the palette, not by a local list: no issue or pull rides in the page.

Filtered on the server before the list exists (src/web/palette_rows.ts, paletteIndex in src/web/layout.ts): here (the page's repository, for #N) is sent only when it is public or the viewer may direct its crew; the rest are for a signed-in viewer only. An action row (a: 1) is something that sends rather than goes: the first tap or Enter arms it ("Tap or press Enter again to confirm", announced through a polite live region and aria-description), the second runs it. Navigation rows, the map and New app among them, never ask.

Terminal: the palette itself is a web surface, but its app actions have their door. On an app's deploys screen (src/tui/screens/deploys.ts) a writer presses D to redeploy production and S to stop it, each after a one-line confirm, through the same redeployEnv and stopEnv; a stopped production offers only D, a reader neither. That is the terminal side of "Redeploy" and "Stop" here, gated the same way.

The cap of eight apps: two rows an app, so at most sixteen rows, about one screen of the list; the page lists thirty repositories and a palette is a short list, not a table.

Tests: test/palette-rows.test.ts.

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

Keyboard shortcuts

Docs