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
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.
stopped closed without shipping deploy a470e4e
1 earlier comment · 1 event
/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
con the launcher, withy/n/landuto undo, and there is an MCPboardtool. All three use the same words fromsrc/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/boardand 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.
Parked by the crew: the check stayed red through 2 automatic tries
The cockpit now builds again.
src/web/pages/cockpit.tsusedcockpitModelwithout importing it, sotscfailed and the page and/live/cockpitreturned 500. That is almost certainly why the last check failed. I fixed the import and merged currentmaininto the branch, which was 87 commits behind. The merge was clean.tscis clean. I rantest/cockpit.test.ts,mcp,board,studio-words,weband thetuitests, and they pass. The forge's own check hasn't run on this push yet.What the cockpit does
/board?cockpit=1shows 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./live/cockpit.?kiosk=1hides 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.boardtool returns the same Today lines, cards and waves, in the same order and words as the page.Left out
/boardand/mappages are not folded into the cockpit. The cockpit sits beside them, so the "one screen" item is not done.src/web/studio/home.ts.To try it: run
bun run src/main.ts, sign in, and open/board?cockpit=1. Add&kiosk=1for the TV view. Runbun test test/cockpit.test.tsfor the cockpit tests. There are no new dependencies.Closes #1152