DESIGN.md: plan status after steps 7-9; suggested audits

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RobinFiredrake 2026-11-10 19:15:28 -06:00
parent ef1dc846d1
commit 61395fa573

View file

@ -1,6 +1,6 @@
# Table Tarot (repo: TableTower) — Status and Plan # Table Tarot (repo: TableTower) — Status and Plan
**Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-10 (plan steps 1–6 done on `tarot`) **Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-10 (plan steps 1–9 done on `tarot`)
The short page to read at the start of every session. Everything else is read only when needed: The short page to read at the start of every session. Everything else is read only when needed:
- `docs/ARCHITECTURE.md`: feature summary, file map, key implementation facts, data/storage, known gaps. - `docs/ARCHITECTURE.md`: feature summary, file map, key implementation facts, data/storage, known gaps.
@ -57,24 +57,34 @@ Work is on branch `tarot` (not merged yet). Done items say so; details in `git l
Other formats submenu, plain Test spread hints. Other formats submenu, plain Test spread hints.
6. **Deck mode: done.** Faded drawn results, inspector Deck mode section, Wait for Shuffle with 6. **Deck mode: done.** Faded drawn results, inspector Deck mode section, Wait for Shuffle with
an Empty result (`deck_empty_text`), Shuffle all decks. an Empty result (`deck_empty_text`), Shuffle all decks.
7. **Nested groups**, then **List view** (folders = groups; reorder; own search; thread icons with 7. **Nested groups, List view, phone layout: done.** `TableGroup.parent` nests groups
tooltips), then the **mobile layout** (List view default; Android export template download OK'd; (`TowerBoard.tables_in/groups_in/hidden_by`); `ListView` + `ListTree` + `ListOrder` (folders =
two-finger pan, long-press menus). groups, drag to reorder/move, own search, thread counts with tooltips); `MobileLayout`
8. **Book and Pages.** Library of reusable results (name, BBCode text, details, tags, image), (`--mobile` to try) and `TouchInput` (long press = right-click, two-finger pan/pinch).
searchable, with an editor; drag a Page onto a table slot. Pages are **linked** (edit once, Android export templates installed (checksum verified). **Not done:** the Android SDK
updates everywhere; "unlink"). Same linking mechanism as linked templates. Stored in the spread (build-tools, platform-tools) isn't installed, so no APK yet: ask the user before downloading;
file so exports keep them. Closable; open from top bar or background right-click. no Android preset in `export_presets.cfg` (the user has uncommitted edits there).
9. **Roll features.** "Roll N times, then: keep all / add / highest / lowest / let me choose" 8. **Book and Pages: done.** `BookPage` in the spread file (`"book"`), `TableEntry.page` links a
(one feature; "keep all" from a card = batches). **Pause**: a thread can wait; the paused roll result (edit the page → every copy changes; editing the result's own text unlinks). `BookPanel`
is set aside as a "Continue ▸" chip in the tray. **Costs** on choice options (greyed out with + `PageEditor`; drop a page on a result or a card (handled on drag end, since text fields eat
a reason when unaffordable). **Adjust later rolls**: plain builder over values/modifiers for drops). Undo covers the Book. **Not done:** images on pages (step 11).
"next roll on X gets +3 / at least Medium / results below X become Y" (engine already can). 9. **Roll features: done.** `RollCombine` (thread "then": keep all / add / highest / lowest /
let me choose; Roller.OP_COMBINE), `BatchRoll` (Roll several times…), pause (`pipe_pause`,
Roller.OP_PAUSE, `RollPauses` chips with set-aside and Continue), `RollCosts` (option costs,
greyed out when unaffordable), roll floor/ceiling (`roll_floor`, `roll_ceiling`: "adjust later
rolls"). Open question for the user: should a "reroll" result that comes up during its own
reroll be ignored and rolled again (common table rule)? Not implemented.
10. **Sheets**: easier building, export as Text / Markdown / HTML (no PDF). 10. **Sheets**: easier building, export as Text / Markdown / HTML (no PDF).
11. **Images** in details/tables, embedded in the spread file (downscaled, size-capped); imported 11. **Images** in details/tables, embedded in the spread file (downscaled, size-capped); imported
BBCode may only use embedded images. BBCode may only use embedded images.
12. **Help**: document major features, hotkey cheat sheet, per-topic "Try a demo" spreads that open 12. **Help**: document major features, hotkey cheat sheet, per-topic "Try a demo" spreads that open
unsaved and don't appear in the spread list. unsaved and don't appear in the spread list.
**Suggested size audit (files grew past ~400 lines):** inspector.gd (789; split the thread box,
cost row and Book line into helpers), choice_dialog (698), main.gd (664), table_card (629),
edit_history (609), describe (~760). **Suggested test audit:** 35 suites repeat the same
boilerplate (_init/_frames/_check); a shared base would cut lines and tokens.
**Still open from before:** repo privacy on Forgejo (waiting on the user: Niles/sock's username + **Still open from before:** repo privacy on Forgejo (waiting on the user: Niles/sock's username +
token); hands-on playtest; size audit of `core/describe.gd` (731 lines) and the other files over token); hands-on playtest; size audit of `core/describe.gd` (731 lines) and the other files over
~530 lines (list in ARCHITECTURE.md §3); known gaps in ARCHITECTURE.md §7. ~530 lines (list in ARCHITECTURE.md §3); known gaps in ARCHITECTURE.md §7.