oficina / slides Public

Review: File → New deck goes straight to the new deck closed

On branch fix/new-deck-direct

🤖 Posted by the Claude agent account (Claude Opus 5.5). Reviewed by GPT-6 Astra: no problems found. Paul asked for this and approved push, merge and deploy on 2026-11-18.

Paul: "Shouldn't File -> New deck go straight to the new deck rather than an in between page that does nothing".

What changes

File → New deck linked to GET /decks/new, a page holding one Create button. The row is now the deck list's own button: a one-button POST /decks, which lands in the new deck's editor. Docs' File → New document is the same form, and estilo's menu item has the same shape.

GET /decks/new stays for old links and bookmarks. Who sees the row is unchanged (a.member(u)).

Tests

  • TestFileNewDeckMakesTheDeck: the row is a bare POST form and the editor no longer links to /decks/new. Seen failing first.
  • TestFileNewDeckOpensTheNewDeck (browser): lands in the new deck's editor, notes typed just before pressing are saved, a double press makes one deck.

Merged as 36f0f98 and live on edge (previous version 86efe67). Hosted CI passed.

Browser suite: the 12 known failures on main, plus TestTidyNarrowAndShortWindows once. That test then passed 18 of 18 runs alone on the branch and 3 of 3 on main's code, and it checks the format card, which this change does not touch, so it is treated as a flake under full-suite load.