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

The cockpit: board and map as one screen, driven by four keys, readable from a TV, with nothing that needs you that a rule could answer #1512

Closed opened this in answer to
Closed without merging

The cockpit now builds again. src/web/pages/cockpit.ts used cockpitModel without importing it, so tsc failed and the page and /live/cockpit returned 500. That is almost certainly why the last check failed.

Notes

stopped closed without shipping deploy a470e4e

opened this

The cockpit now builds again. src/web/pages/cockpit.ts used cockpitModel without importing it, so tsc failed and the page and /live/cockpit returned 500. That is almost certainly why the last check failed. I fixed the import and merged current main into the branch, which was 87 commits behind. The merge was clean.

tsc is clean. I ran test/cockpit.test.ts, mcp, board, studio-words, web and the tui tests, and they pass. The forge's own check hasn't run on this push yet.

What the cockpit does

  • Page: /board?cockpit=1 shows three plain Today lines, then at most five "needs you" cards of one sentence each. Each card answers yes, no or later. Below them is the plan, one sentence per wave, coloured for needs, working, done or blocked.
  • Keys: up and down move the focus, enter takes the first answer, and back goes up a level.
  • Words: a test keeps the page free of developer words. A muted app raises no card.
  • Live: the screen refreshes every 10 seconds from /live/cockpit.
  • Kiosk: ?kiosk=1 hides the top bar and drops the "spent its day" card. A read-only device token is swapped for a cookie, and the kiosk then only reads. A token that can write is refused.
  • MCP: the board tool returns the same Today lines, cards and waves, in the same order and words as the page.

Left out

  • One page: the existing /board and /map pages are not folded into the cockpit. The cockpit sits beside them, so the "one screen" item is not done.
  • Decider: the card rules for shelved apps, hand-overs on muted repositories and stale red checks are not wired to the decider (#1151). Only muted apps and the spent day are filtered.
  • Today lines: they come from the cockpit's own model, not src/web/studio/home.ts.
  • Live updates: the screen polls rather than using a push stream.
  • Waves: they show one part of an app's plan each. They are not grouped by milestone.

To try it: run bun run src/main.ts, sign in, and open /board?cockpit=1. Add &kiosk=1 for the TV view. Run bun test test/cockpit.test.ts for the cockpit tests. There are no new dependencies.

Closes #1152

1 earlier comment · 1 event
the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

/board?cockpit=1 now serves the board and the plan as one screen for a TV, a Pi or a phone. The branch now merges into main. The README conflict is resolved and kept both sides. bun x tsc --noEmit and the cockpit tests (15) pass. I didn't run the full check, so the forge's run on this push is the first.

  • The page: it shows what happened today (the board's numbers), up to five cards of what needs you (yes, no, later), and the plan as waves, one row per limb. The detailed live wall stays at /board, linked from the top bar.
  • Keys and answers: up and down move the focus, enter takes the first answer, back goes up a level, and nothing is focused on load. Each answer reports what happened in one line, and a dismissal offers Undo. Shipping can't be undone, so the first Yes only asks and the second ships.
  • Other doors: the terminal has c on the launcher, with y/n/l and u to undo, and there is an MCP board tool. All three use the same words from src/view/cockpit.ts.
  • Left out: an app you muted, and a crew that spent its day (it lifts at midnight). A rule already answers both.
  • Kiosk: open ?kiosk=1&device=<read-only token> once. The token is swapped for an HttpOnly cookie sent only under /board and to /live/cockpit, and the address is redirected without it. A token that can write is refused.
  • Not built: a cockpit-only device credential, so the cookie carries the read-only token. Anyone signed out who opens a link with ?device= keeps that cockpit for 30 days, so share such a link only with the screen it is for.
  • Dependencies: none added.

To try it, open /board?cockpit=1 on the preview at https://lab--1512--forge-trevato-apps.open-platform.sh.

commented

Parked by the crew: the check stayed red through 2 automatic tries

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs