Spec §17: Phase 1's build notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+17
−1
docs/superpowers/specs/2026-11-17-fichas-level-up.md+17 −1
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/fichastest/ === fmt === === test === go test ./... ? amadan.net/oficina/fichas/cmd/fichas [no test files] ok amadan.net/oficina/fichas/internal/fichas 3.575s ? amadan.net/oficina/fichas/internal/fichas/icons [no test files] ok amadan.net/oficina/fichas/internal/fichas/seal 0.010s ok amadan.net/oficina/fichas/internal/fichastest 1.779s ? amadan.net/oficina/fichas/scripts/mockups [no test files] ? amadan.net/oficina/fichas/scripts/preview [no test files] ? amadan.net/oficina/fichas/scripts/writeestilo [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
diff --git a/docs/superpowers/specs/2026-11-17-fichas-level-up.md b/docs/superpowers/specs/2026-11-17-fichas-level-up.md| index 848eba2..8569a94 100644 |
| --- a/docs/superpowers/specs/2026-11-17-fichas-level-up.md |
| +++ b/docs/superpowers/specs/2026-11-17-fichas-level-up.md |
| @@ -1070,7 +1070,23 @@ Each phase after that is its own branch from `main`, with mock-ups checked again |
| Choices made while building, where this spec was silent or the build chose differently. Each is the smallest reasonable choice. A reviewer who disagrees changes the code and this list together. |
| -*None yet. Nothing is built.* |
| +### Phase 1 (`feat/level-up-phase-1`) |
| + |
| +1. **The account is at the bar's end,** as §2 says and the mock-ups draw it, not at the rail's foot; the rail's foot holds the fold. `TestTheBarEndsWithTheAccountMenu` replaces the rail-foot test. |
| +2. **The View dropdown stays in the toolbar** (density and columns, the `fichas-hide-<type>` cookie) until Phase 2's View panel replaces it. The bar has no View toggle in Phase 1; the View menu carries Table, Cards, density and the fold. |
| +3. **History is a page, with script too:** `/cards/{id}/history`, linked from the bar, the Card menu and the pane. §5.5's panel is the same content, and waits for `[estilo-float]` in Phase 2. |
| +4. **A date cell edits with the browser's own date input.** §3.4's picker (quick picks, a month grid, the zone named) is new work in `datetime.js` and is built with the calendar in Phase 3; the browser's picker is its scriptless floor anyway. |
| +5. **"No longer in this view" is not marked under the default sort** (last edited first), where every edit would move its row to the top and the mark would mean nothing. It is marked when the card stops matching the search or the filters, or the list is sorted by the field just changed. |
| +6. **A printable key opens an empty editor and lets the browser type the character into it,** rather than seeding the editor with `e.key`: composition and dead keys then work. A test cannot tell the two apart (DevTools sends the character as its own event), so `TestTheKeyboardWalk` names that one surviving mutant. |
| +7. **Popups (the Choice picker, a refusal, a conflict) are pinned to the viewport** under their cell, because the table's scrolling box would clip them. |
| +8. **A redo is undoable,** so ⌘Z after ⇧⌘Z undoes it again; an Undo's own event is only ever redone (§5.3). |
| +9. **A scriptless save comes back with a flag, never with text:** `?saved=<event>`, `?undone=<event>`, `?refused=1`, `?conflict=1`. The notice's words are Fichas' own, and its Undo form posts to the card the event is on, looked up from the event. A crafted link cannot put words on the page. |
| +10. **An edit form posted without `was.<key>`** (a client older than this form) is checked against the value as the handler loaded it. Fichas' own forms always send `was`. |
| +11. **The value window's sweep** runs from `main`, once at start and then hourly, off the boot path; a failure is logged and tried again. |
| +12. **Numbers** follow §6.8's Phase 1 rules: drawn ungrouped with the pack's decimal mark, read by the interim strict reading in `numberread.go`, with the echo and the unchanged-seed rule. Counts go through rastrillo's `{{number}}`. |
| +13. **estilo hides the brand's name in a stacked bar,** which leaves its link with no accessible name (axe-core's `link-name`). `frame.css` keeps the name for screen readers; the fix belongs in estilo. |
| +14. **The scriptless browser gate (LU9) turns page scripts off with `Emulation.setScriptExecutionDisabled`** and reads the DOM through DevTools' DOM domain only, because chromedp's visibility checks need script. |
| +15. **The phone's list of rows** shows the title, the first Choice as its pill, and the first two other values, rather than "the next two face fields": face fields are a Cards-layout setting, and the table's columns are what the reader chose to see. |
| --- |