Docs: playtest findings (2026-11-14), size audit batch 1 map, Morgan bug fixed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RobinFiredrake 2026-11-14 13:21:35 -06:00
parent 63929a9fc2
commit dba3f6514e
2 changed files with 57 additions and 22 deletions

View file

@ -195,9 +195,24 @@ Format spec: `docs/THEMES.md`. Built-in themes: `themes/<id>/theme.gd` (`const D
Keep File importer so its text is exported).
- **Background:** `ui/board_backdrop.gd` (gradient, scene, tile; old dots/stars).
- **Sound:** `ui/sound_board.gd` (`Main.sound`; roll / card_turn / thread / click / ambient;
View ▾ → Sound levels; setting `sound_volume`).
☰ / right-click menu → Sound levels, not in the top bar's View ▾; setting `sound_volume`).
- **Generators:** `tools/theme_art/` (SVG art), `tools/theme_sounds/` (OGG), `tools/theme_defs/`.
## 3e. Size audit batch 1 (2026-11-14): helpers split out
Each original file keeps one-line delegators, so callers are unchanged.
- `inspector_card` → `inspector_choice`, `inspector_router`, `inspector_collection` (Ledger section);
`group_card` → `group_card_compact` (the collapsed group card).
- `main_cli` → `main_cli_build` (group/template/inspector flags), `main_cli_perf` (`--perf`);
`pipe_layer` → `pipe_batch` (unlit thread canvas items), `pipe_geometry` (curve maths);
`main_rolling` → `main_rolling_seed` (session start), `main_rolling_copy` (copy as text).
- `expr` → `expr_rewriter` (user syntax → Godot Expression); `builder` → `rule_tokens` (tokenizer,
shared with Expr), `builder_values` (`known_values`); `board_tester` → `board_checks`
(static checks), `board_report_text`.
- `roll_table` → `roll_table_factory` (`create`), more in `roll_table_io`; `roller` → `roll_nodes`
(stop/attach/why/log), `roll_live` (starting values, live displays), more in `roll_pipes` and
`roll_choice`; `tower_board` → `board_groups` (nesting, membership), `board_file_io` (migrate,
atomic write).
## 4. Data and storage
- **Collections:** `user://collections/<id>.json`, format_version 2 (`{format_version, id,
name, tables, groups?}`). On Linux that's `~/.local/share/godot/app_userdata/TableTower/`.

View file

@ -1,7 +1,7 @@
# Table Tarot (repo: TableTower) — Status and Plan
**Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-11 (theme files, 18 new
built-in themes, Morgan Fortuna; merged to `main` and pushed)
**Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-14 (full hand playtest done;
size audit batch 1 on branch `size-audit`)
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 (§3b lists the 2026-11-10 modules), storage, known gaps.
@ -74,8 +74,7 @@ Card, Result, Change, Reset, Dice wording rules: `docs/HISTORY.md` §6 "Terminol
- The Collection card kind is called **Ledger** in the UI "for the time being". The spread
switcher's tooltip says "Spreads".
- Reroll rule settled by the thread option "Roll again if it comes up".
- **Hand testing:** the user tests by hand as they go but hasn't done a full pass; a comprehensive
playtest with a checklist is planned (they'll do it later; offer a checklist when asked).
- **Hand testing:** full pass done 2026-11-14 (see §4 "Playtest findings").
- **Theme tiers 1–2 built and merged to `main` (2026-11-11):** theme folders,
Morgan recolouring by role, background scene + tile, frame sets (3-stop gradient map), picture
@ -83,14 +82,15 @@ Card, Result, Change, Reset, Dice wording rules: `docs/HISTORY.md` §6 "Terminol
themes from the mockup (Vaporwave … Terminal) with stand-in art and synthesised sounds; 10 new OFL
fonts. `--theme=<id>` CLI flag. Then (same day) Web 1.0 + the 8 suggested themes (Case File, Eldritch
Archive, Comic Panel, Brass & Gears, Chrome Street, Star Chart, Cartographer, Storybook): 18 new
built-ins in all, 20 bundled-font additions. Placeholder list: Theme Art Guide, "Placeholder art". Not hand-tested yet. Map: ARCHITECTURE §3d; format: THEMES.md.
built-ins in all, 20 bundled-font additions. Placeholder list: Theme Art Guide, "Placeholder art". Hand-tested 2026-11-14. Map: ARCHITECTURE §3d; format: THEMES.md.
Known gaps vs mockup: corner ornaments show on all four corners; no card drop shadows; Terminal
has no scanlines. `pipe_layer.gd` is now 456 lines (size audit).
**Next, likely:** fix the Morgan colour bug (§4 "Theme editor"); then the user may ask for the
theme editor's live preview and file pickers, or the Web 1.0 slots (panel picture, button style).
Older items: the user's hand test of Stage II and the new column options; the roll hitch (§4); a
size audit (§4: `pipe_layer.gd` is now 456 lines); a hand-testing checklist.
**2026-11-14: the user did the full hand playtest** (all 20 themes, every feature). Findings and
the proposed order are in §4 "Playtest findings"; the user is reviewing that order. Size audit
batch 1 (the 10 files over 450 lines) is done on branch `size-audit` (ARCHITECTURE §3e), tests
pass; not merged yet. Placeholder *writing* (help topics, demos, sample spread, templates) was
added to the Theme Art Guide's checklist.
## 3b. Theme slots plan (2026-11-11, user-approved order)
Mockups: "Morgan's Wardrobe" artifact (https://claude.ai/code/artifact/136b4ce8-1ef7-47ca-a39a-a75eb34d64b7):
@ -116,29 +116,49 @@ that works on any theme (solid background, stronger text, thicker borders, no ef
- Repo privacy on Forgejo: needs Niles/sock's username and a token from the user.
**Theme editor (user, 2026-11-11)**
- **Bug, open (next to fix):** in the user's real app, changing Morgan's colours in View ▾ → Theme…,
pressing "Use theme" and saving the copy (the "Save theme" box did appear) left the top-left
Morgan unchanged. The copy WAS saved (user://themes/ written 15:10:09; the user deleted it
after). Automated runs of the same path (tests/scratch harness: dialog swatch → _use → Save
button) recolour fine, so suspect something only the real reload hits: e.g. `Main._ready`/top bar
reading a different theme dict than `ThemeStore.current`, the MascotArt cache, or the editor
(Godot editor run vs. Keep File import of `fortune_teller_logo.svg`). Next step: a real windowed
run that saves (no --sample, so ask the user first; it writes to their user://), with a print of
`ThemeStore.current.mascot_colors` in `MainTopBar._logo`. Morgan only shows in the top bar.
- **Morgan colour bug: fixed** (user confirmed 2026-11-14 with a fully custom theme).
- **Later:** a live preview of Morgan (and the theme) in the editor.
- **Later:** file pickers in the editor for a theme's pictures (tile, scene, frame, thread,
mascot) and sounds; today a user theme can only name files by editing its JSON.
- **Mockup only:** Web 1.0 theme (marble tile, wood panels, bevelled window cards) in the
Wardrobe; it needs two new slots, a panel tile and a button style (nine-patch). Not started.
**Playtest findings (2026-11-14), proposed order; the user may reorder**
1. Size audit batch 2 (files at 400–432 lines, list below).
2. Data bugs: Ledger entries live only in local state (`state.json` variables), so copies,
exports and imports lose them, and the spread can't add entries: store them on the card.
JSON import drops group `color`. Making a group over open groups steals their cards (leaves
empty groups); nesting works only with collapsed groups. "Add to list": can't pick an
existing value, only numbers, needs "unless already there" vs "every time, in order".
Rerolls apply to all columns (make per-column, all-columns optional).
3. Roll hitch: shows on both Perilous Void copies. The spread is big (152 cards, 1,184 results,
119 threads; "New World" walks 54 cards, plus the 3–5× lifeform repeat). Profile Roller vs UI.
4. Themes: frame corners jump on resize and float off the bottom (10 themes; one shared bug);
Terminal edges and group corners flicker when zoomed out; group corners too hard to see in
most themes (make bigger, outlined; one fixed default colour across themes; full colour
picker; mark collapsed groups); Cartographer chosen-result text glitchy; Tarot List view hover
unreadable; Gothic/Cartographer title fonts; red patch in Gothic's background.
5. Roll features: "costs to roll" on any rolling card (threads pause to ask); pause as a pop-up
that waits between card animations; batch rolls into history with one sound; a result
history; visible in-between rolls for roll again/rerolls; "roll N different results, then
pick"; "move the result up/down N rows" on standard tables (pick by weight, then shift,
clamp); "only if" on roll results (reuse `show_if`); no animation when rolling from List view.
6. UI: sound slider (default = Quiet) also in View ▾; hide Delete for built-in themes; Delete
key + "Are you sure?" + a "Confirm delete" setting; BBCode buttons and right-click formatting
(wave, tornado, shake, rainbow, pulse, fade + custom RichTextEffects such as glow, sparkle);
folders in the spread switcher and a useful tooltip; collapse button on expanded large cards;
Book editor refresh after undo; hint where "Roll it with … instead" is hidden (ranged targets
only); call diagram exports "Export as diagram" (only JSON is a full save).
7. Bigger: spreads calling other spreads (not built).
**Known, not urgent**
- `export_presets.cfg` (and `project.godot`) hold the user's uncommitted edits. The Windows preset's
`include_filter` now matches Linux (help + templates; verified by a real Windows export
2026-11-11) but is still uncommitted with their edits; ask before committing. Both presets also
pack `tests/` (could add `tests/*` to the exclude filter).
- Over ~400 lines: inspector_card (593), board_tester (505), main_cli, builder (499), expr (520),
roller, tower_board, group_card, main_rolling (426), describe (408), inspector (407). A size
audit is due. (roll_table was split: RollTableIO.)
- Over ~400 lines after batch 1: main (418), result_tray (414), table_entry (410), describe (408),
table_card_header (407), inspector (407), main_groups (404); near it: test_board_dialog,
board_view, table_card, table_card_rows (392–398).
- Small ideas from the Perilous Void spread: an empty list shows blank in a sheet (no "none"
default); a value change that should apply when a later value is rolled (Shattered lowers
atmosphere after Gas/Life were already decided) has no clean form.