Commit graph

64 commits

Author SHA1 Message Date
2661744b06 Sheets phase B: main menu, Sheets list, sheet editor
- Main menu (Spreads, Sheets, Settings, Quit) on the theme background,
  with recent spreads and sheets; logo or ☰ returns to it.
- Sheets: data model, store, templates, snapshot undo; New sheet dialog
  (blank or a template); editor with folder tabs, snap-grid canvas on the
  spread background, field palette, inspector, Play/Build, status strip.
- Field kinds: Number, Text box (BBCode, live {@name}), Heading.
- PaletteList shared by the card and field palettes; shared top bar brand.
- Keys go to the screen that shows; theme reloads keep the screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:53:56 -06:00
16b34c40f6 Card palette: left dock Cards | List, search, click or drag to add
- CardCatalog: one list of card kinds for the palette, right-click New card
  and new-card names; Dice table and Deck are their own items.
- LeftDock holds the palette and List view in the shared dock tab style.
- Play greys the palette under a Switch to Build notice (replaces the
  greyed + Card button); + Card menu removed; Card palette button in Build.
- Templates dropped from the palette land where they are let go.
- Phones: + opens the palette full screen.
- docs/SHEETS.md: the Sheets and unified editor plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:58:56 -06:00
7ea2bbf3a8 Speed: lazy format menus, one-call dashed threads, kept inspector sections, queued card rebuilds
Profiling showed the delays come from Godot's own calls, not GDScript:
- Right-click format menus are made on the first right-click, not for
  every text field at build time.
- Dashed reference threads draw all their dashes in one call.
- Inspector rebuilds keep the closed sections and only remake open ones.
- Card rows are styled before they join the card.
- A Play/Build switch rebuilds cards in view at once and the rest a few
  per frame (CardRefreshQueue); threads redraw only now and then meanwhile.

Adds tests/perf_actions.gd, a timing tool for everyday actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:20:31 -06:00
d41a6e40aa Tests: 15 s budget, shared Godot workers; a freed Main cancels its roll
tools/run_tests.sh stops every run at 15 s and lists what was not run.
Suites are nodes run by tests/run_suites.gd, several per Godot process;
TestBase no longer compiles the app (AppTestBase does). Audit: fewer
repeats and less setup; 51 suites in about 12 s (was 45 s).

Fix a crash when a roll was still animating as its Main was freed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:19:30 -06:00
1735ed09fd Card threads, Morgan's welcome, and typing/scroll/wheel papercuts
- Card threads: a port on each card's bottom edge. Plain runs after any
  result (once the result's own threads finish); Otherwise runs only when
  no thread of the result ran. Saved as card_threads (LOGIC.md 3g).
- Typing on long cards no longer rebuilds the inspector or the card per
  key (~175 ms -> ~7 ms). Timing tool: tests/perf_typing.gd.
- "+ Add result" scrolls to the new row and focuses it.
- Mouse wheel zooms; Shift+wheel pans sideways; scrolling lists keep it.
- "SPREAD" caption over the switcher; Morgan's first-run welcome.
- docs/MECHANICS.md: checklist of table mechanics for planning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:41:13 -06:00
c09cb98e8f Docs: which export preset packs tests/
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:25:31 -06:00
3e104ee0f0 Exports include the Hunspell dictionaries; commit the user's preset edits
Both presets' include_filter gains addons/hunspell/dictionaries/* so
spellcheck works in exported builds. The file also carries the user's
earlier preset edits (Windows preset matching Linux).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:25:24 -06:00
0905fb4e00 Docs: Build UX round merged; Hunspell libraries in place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:58:23 -06:00
bf031f857c Docs: Build UX round status and module map
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:50:39 -06:00
fe0f52180b DESIGN.md: spread folders round 2 hand-tested by the user
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:20:59 -06:00
07d96a68f8 Spread folders: pick from a list, nesting, keep empty folders, Recent
- Move to folder is a submenu of existing folders (+ No folder, New folder…);
  typed names match existing folders without regard to case.
- Folders nest ("Traveller/Worlds"); each folder has New spread here… and
  Rename folder….
- When the last spread leaves a folder, ask Keep / Remove it; kept empty
  folders have Remove folder.
- Recent spreads at the top of the switcher.
- List view's "folders" are called groups in the UI (+ Group).
- TestBase gets the shared _wipe helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:19:47 -06:00
f6b1f644f0 DESIGN.md: playtest fixes merged and pushed; spread links untested
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:31:55 -06:00
168a326002 Docs: playtest plan done; module map for the new files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:45:22 -06:00
2ed91e7acd Spreads can roll cards from other spreads: [[Spread::Card]]
A result's text can name a card in another spread, as "[[Treasure::Loot]]".
It rolls there (its own threads and references resolve in that spread)
and its changes apply to this spread's values. The inspector has
"+ Roll a card from another spread…" to pick one. Links show as
"Treasure › Loot" chips; nodes from there are marked so this spread's
cards aren't lit for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:45:01 -06:00
a2f0d3a016 DESIGN.md: interface items done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:40:23 -06:00
323e033d88 DESIGN.md: roll features done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:25:21 -06:00
1162f9150d DESIGN.md: theme fixes done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:00:01 -06:00
c341790d1a Roll timing tool (tests/perf_roll.gd, outside the suite)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:48:08 -06:00
ac85122541 Roll speed: skip restyling unchanged rows and cells, reuse Earlier rows
On the Perilous Void spread a fast roll's screen update took 3.4 s (the
roll logic itself ~3 ms). Every relight restyled every row and column
cell, and the Earlier tab rebuilt every history row. Now about 240 ms,
and it no longer grows with each roll.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:47:03 -06:00
3aeb98c2fd Add to list: lists made there are lists, the result's text is the item, Allow repeats
Making a new value from an Add to list row made a number, which the list
picker then hid and which couldn't hold words. Now it makes a list. The
item starts as the result's own text. List cards get Allow repeats (add
every time, in order); off keeps adding only new items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:40:20 -06:00
edb49fce27 Ledger entries are saved on the card and editable on the spread
The entries were only saved values of the spread, so copies, exports and
imports lost them. Now a Ledger card lists its entries (name and starting
value) in the spread file; current values stay saved values. Build mode
edits them on the card too. Older spreads take in the entries made on the
card when they open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:36:03 -06:00
d9638500ba Docs: size audit batch 2 map
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:30:56 -06:00
dba3f6514e Docs: playtest findings (2026-11-14), size audit batch 1 map, Morgan bug fixed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:21:35 -06:00
5592c3d134 DESIGN.md: Morgan colour bug details, status and next steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:48:41 -06:00
3d0ba9c6b8 Nine more built-in themes: Web 1.0 and the eight suggested (Case File, Eldritch Archive, Comic Panel, Brass & Gears, Chrome Street, Star Chart, Cartographer, Storybook)
Generated stand-in art and sounds, ten more OFL fonts, PNG tiles in the theme generator; untrack __pycache__.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:40:10 -06:00
7c6c5a4b3b DESIGN.md: Morgan colour bug report, editor preview and file pickers for later, Web 1.0 mockup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:22:02 -06:00
61a548902f Theme tiers 1-2: theme folders, mascot recolour, background scene and tile, frame sets, picture threads, sounds; nine new built-in themes
- ThemeAssets loads a theme's files; FrameSet + GradientMap (3-stop) generalise the card frame;
  ThreadStrip draws threads from a picture; BoardBackdrop draws scene and tile; MascotArt
  recolours Morgan by role (logo SVG now uses the Keep File importer); SoundBoard plays
  roll / card turn / thread / click / ambient with View > Sound levels.
- Vaporwave, Synthwave, Cozy Autumn, Rustic, Woodsy, Sky Blue, Frutiger Aero, Gothic, Terminal:
  generated art (tools/theme_art), sounds (tools/theme_sounds), settings (tools/theme_defs).
- Ten OFL fonts; --theme=<id> flag; docs/THEMES.md format spec; test_theme_assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:05:40 -06:00
d491224949 Mascot named Morgan Fortuna; inner_line layer fixes see-through beak lines; theme tier plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 14:47:45 -06:00
c009021ac3 Descriptive names rule; first fix in TableCardHeader._make_go_button
DESIGN.md §5: no one- or two-letter names (loop counters and math
coordinates excepted); old names are fixed when the code is touched.
Rename b -> go_button and rn/rh/rp -> normal_style/hover_style/
pressed_style. Also note where Coderstanding is now installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:18:54 -06:00
baaffbdf31 DESIGN.md: roll hitch noted; Stage II features merged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:52:47 -06:00
66c9df1f2d DESIGN.md: Perilous Void Stage II built; the new book-table features
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:17:28 -06:00
200edfd67e Book tables: columns as one phrase, roll twice and combine, results saved into lists, one-option picks answer themselves
- column_join: a card with columns reads as one phrase ("Ash Canyons"), which threads save
- TableEntry.repeat: a result that rolls its column again N times and combines them
- Saving a result into a declared list value adds an item (RollContext.save_result)
- A pick with only one available option picks it without asking
- Lint, why facts, inspector controls, tests, LOGIC.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:06:55 -06:00
050a64014d Spread switcher tooltip says Spreads; DESIGN.md: 2026-11-11 status
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:41:30 -06:00
3cba805ec4 UI: the Collection card kind is now called Ledger
Code names and JSON keys stay "collection".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:39:07 -06:00
16ad73adfb Group marks: member cards' top-right corner in the group's colour
Groups get an optional colour (Colour menu on the group); uncoloured
groups use the theme token GROUP. The group frame's border matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:36:13 -06:00
37f32076be Docs: fonts, deck reveal, entry handles, open items
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:23:42 -06:00
fe883cbeda DESIGN.md: book tables merged; next steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:36:12 -06:00
764811b858 Docs: book-tables status, history §12, size-audit list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:27:39 -06:00
a97709128c Docs: scales, columns, thread dice and rerolls (LOGIC §3e, §3f, §5.4; ARCHITECTURE §3c)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:18:49 -06:00
650e24e9b7 Docs: DESIGN.md as a current-state page; 2026-11-10 history and module map
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:36:02 -06:00
99f4d21911 DESIGN.md: merged to main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:15:27 -06:00
c97a87d9c9 DESIGN.md: audits done; remaining size candidates; TestBase
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:57:08 -06:00
4a4dc62c3d DESIGN.md: all twelve plan steps done on tarot; decisions waiting on the user
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:25:06 -06:00
61395fa573 DESIGN.md: plan status after steps 7-9; suggested audits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:15:28 -06:00
1199fafcf9 DESIGN.md: plan status after steps 1-6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:43:31 -06:00
0c9ab1aa71 Slim DESIGN.md to a status page; add parallel test runner
DESIGN.md (read every session) keeps status, names and the agreed plan;
architecture and history move to ARCHITECTURE.md and HISTORY.md, read on
demand. tools/run_tests.sh runs the suites in parallel and fails on SCRIPT
ERROR as well as on a missing PASS line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:03:10 -06:00
97305889b9 Let ranged results pipe into several cards (fan-out)
Dropping a pipe from a range on a ranged table replaced the range's
existing pipe. Ranges now add pipes like weighted results do, so one
result can feed several tables in one roll. DESIGN.md records the
change and the decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:22:56 -06:00
85ec548425 DESIGN.md: record the UI pass merge commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:36:43 -06:00
8f16d337cf UI pass: striped rows, View/Help menus, zoom control, card ⋯ menu, fuller sample
- Striped result rows (parchment tint, on by default, `striped_rows` setting).
- Top bar: View ▾ (Plain words / Rule text, Collapse/Expand all, Striped rows,
  Minimap) and a "− 90% ▾ +" zoom control replace the Plain|Text switch,
  Collapse all, −/Fit/+ and Map. Arrange ▾ folds into Board ▾; Search is an icon.
- Help ▾ and F1 open a Help window; the 17 topics live in help/topics.txt.
- Build cards get a ⋯ menu (settings, template, collapse, delete) instead of
  the gear and footer Delete, sharing Style.overflow_button with group cards.
  Row × buttons show only on hover, focus or selection.
- Sample: Luck value card, Make Camp (pick card) and Search the Ruins
  (1d6 + Luck, with results only a modifier reaches).
- New test suite test_top_bar; Canvas/GraphML round-trip tests compare plain
  tables only, since logic keys are JSON-only.
- DESIGN.md: open items, including the Card Mode UI redesign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:36:38 -06:00
540f995e2b DESIGN.md: open items after the roll-modifier merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:01:21 -06:00