diff --git a/docs/DESIGN.md b/docs/DESIGN.md index 680b35f..2c890c7 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -1,6 +1,6 @@ # 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–9 done on `tarot`) +**Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-10 (plan steps 1–12 done on `tarot`, not merged) 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. @@ -74,15 +74,23 @@ Work is on branch `tarot` (not merged yet). Done items say so; details in `git l 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). -11. **Images** in details/tables, embedded in the spread file (downscaled, size-capped); imported - BBCode may only use embedded images. -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. +10. **Sheets: done.** Sheet inspector "+ Add a line for" a value; tray Copy ▾ → Save as a file + (Text / Markdown / HTML, `SheetExport`). +11. **Pictures: done.** `TableEntry.image`, `BookPage.image`, stored as WebP base64 in the spread + (`BoardImages`, ≤512 px, only used ones saved); thumbnail on rows, picture in the details pop-up. + Not inline in BBCode (Godot's labels can't load outside images). JSON import/export now passes + every new key (it used to drop unknown keys; round-trip test in test_book). +12. **Help: done.** New topics, shortcut cheat sheet, `[demo]key[/demo]` links → `DemoSpreads` + + `DemoMode` (unsaved, unlisted; Keep a copy / Back). + +**Next, for the user to decide:** merge `tarot` into `main`; hands-on playtest of everything above +(nothing was tried by hand, only tests and screenshots); Android SDK download for an APK; extra +OFL fonts for the theme font choice; a new UI name for the Collection card kind; the reroll rule +question in step 9; thread string art when drawn. **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 +edit_history (609), describe (~760). **Suggested test audit:** 36 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 +