Commit graph

210 commits

Author SHA1 Message Date
7d7b181b71 Deck rows show copies left; Reroll this on tray steps
- A deck row with no copies left is greyed out; one partly drawn gets an
  accent tint (Play and Build) and, in Play, shows <left> / <weight>.
- Each step of the current result has a Reroll this button: that card and
  the cards after it roll again in place. Earlier keeps no copy; the old
  branch's deck draws go back.
- Tests in test_small_ui and test_fast_roll.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:33:49 -06:00
577922d15d CLAUDE.md: full test run only at the dev gate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:21:26 -06:00
cffaa8f3e3 Tests: old deck and Earlier tests follow the new behaviour
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:17:40 -06:00
9b68da43d8 Deck: plain decks weigh results by copies left; test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:16:23 -06:00
f575b58551 Decks roll like other cards; re-rolls keep their cards; a roll stopped at a question goes to Earlier
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
2026-12-01 14:15:25 -06:00
4d317bceb2 Docs: Coderstanding viewer is the hosted page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:42:49 -06:00
31bce49f4d Coderstanding app renamed to tabletarot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:38:07 -06:00
0365eb657b Release sweep script (suites, smoke, soak, hidden-screen windows); agents write spec tests; experimental push rule; shared Coderstanding data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:19:52 -06:00
64d14febf4 Major project setup: experimental/dev/main flow, release sweep mode, spec rules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:52:37 -06:00
160848f881 Sheet canvas: page starts at the left edge so boxes can go left; docs
The page was placed in the middle of the canvas, so boxes could not be
dragged left of it. Design doc: Sheets status, open items, review list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:37:39 -06:00
317cac7a78 Sheets phase E: export/import, text toolbar and Lore links, Lore library and items, phone view
- E1: Export ▾ (share file with embedded pictures, print/PDF web page,
  PNG of the tab); Import a sheet file from Sheets and New sheet.
- E2: formatting toolbar (FormatMenu) in sheet text boxes; Lore links
  ([url=lore:ID]) with hover excerpt and the details panel.
- E3: Lore Index in Play and in sheets (shared LoreList); This spread |
  My library; item sheets on Lore Entries; drag entries into lists,
  slots and notes (copy, Shift keeps linked).
- E4: phone stacked view in phone order, Stacked | Canvas switch, 44 px
  touch sizes, bottom panels; sheet CLI flags split out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:25:09 -06:00
5941733af1 Sheets phase D: sheets on spreads as linked Sheet cards
- A Sheet card can show a sheet file (sheet, prefix): first-tab preview,
  Open sheet with a way back, the spread's Play/Build in the editor.
- Rolls read and write "Use in tables" boxes as @name or @prefix_name;
  locked boxes and formulas/lists keep their values; changed boxes glow.
- A roll reaching the card shows the sheet's text (SheetText) in the
  tray; text boxes also show spread values when on the spread.
- Old template Sheet cards migrate to a sheet with one text box (not in
  Help demos). Card palette lists your sheets.
- Sheet canvas: tiled grid (smooth panning); boxes no longer overlap
  (nearest free spot, drags stop short; Alt places freely).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:52:41 -06:00
dd0323c53f Sheets phase C: every field kind, details panel, canvas panning
- 25 palette items over 23 kinds: basics, trackers (bars, ticks, clocks,
  dots, step/usage dice, ladders), formulas and dice buttons (rule
  language with sheet @names), lists (rows, mini table, chips, point pool
  that may go negative, bonds), slots, conditions, spell slots, XP,
  currency, heading, divider, picture.
- Per-kind settings in the inspector; hover excerpts and an in-app
  details panel for list entries; live redraw of dependent boxes.
- Canvas: the page stays put after edits (boxes can go anywhere), a
  screen of room past the boxes, drag-to-pan and edge scrolling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:28:04 -06:00
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
tachyonwolf
d7d7fb66ea Thread pick radius 12 screen px
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:07:11 -06:00
tachyonwolf
2c6ed11ed3 Selected lit threads glow too
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:06:55 -06:00
tachyonwolf
f90427d748 A selected thread glows in the selection colour, like a selected card
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:04:18 -06:00
tachyonwolf
3d51c8c8ba Threads pick within 8 screen px of the line at any zoom
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:03:28 -06:00
tachyonwolf
2241937eb2 Build: clicking a card's empty body selects the card
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:03:20 -06:00
tachyonwolf
258b62a44a Output dots: grab area grows to half the gap to the nearest dot (max 24 screen px)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:00:04 -06:00
tachyonwolf
54eb5d1af2 Dragged threads snap to an input dot within 24 screen px and highlight it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 08:57:42 -06:00
tachyonwolf
f87aa00795 Selecting a thread no longer highlights its source card
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 08:56:30 -06:00
tachyonwolf
0a72c2b12c Layers keep drawing outside their rect: ports and lit threads vanished for cards at negative or far coordinates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 08:53:15 -06:00
tachyonwolf
5c69acbba0 Fix dots and drops when zoomed: read control rects in world space; 10px drop reach on input dots
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 08:48:35 -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
91eb6f6b2a Add the Hunspell extension's uid file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:58:13 -06:00
39ea351571 Spellcheck: add the Godot-Hunspell libraries; clip underlines to the field
Prebuilt SpellChecker libraries for Windows, Linux and macOS from
Godot-Hunspell (MIT), approved by the user. Underlines of words scrolled
out of a narrow field no longer draw past its edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:58:10 -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
f2cd982e43 Spellcheck in Build: red underlines, suggestions, spread dictionary
Titles, result text and details (card, inspector, Lore Entries) get red
wavy lines under misspelled words; right-click gives suggestions, Add to
dictionary (saved with the spread) and Ignore (this session). Uses the
Godot-Hunspell add-on's SpellChecker when it is installed; off on Android
and when the add-on is missing. English (en_US) dictionary included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:50:14 -06:00
cc7cd0f660 Lore Index: the Book is renamed and is a tab beside the inspector
UI words only: Book -> Lore Index, Page -> Lore Entry (code keeps book and
BookPage). In Build the Inspector and the Lore Index share the dock as two
tabs (SideTabs); selecting on the spread goes back to the Inspector. In
Play the Lore Index opens alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:46:05 -06:00
48b57e284c Play shows that Build mode exists
A greyed + Card in Play's top bar explains that cards are added in Build,
offers Switch to Build and pulses the Build switch. The ☰ menu shows New
card greyed with a tip. The toast's button can now run any action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:42:29 -06:00
4a1b365985 Cards: thicker coloured header, Build move handle, green selection glow
New theme colours: Card header (themes without it get a shade between the
card face and Card shading) and Selected (default Morgan's eye glint). The
card the inspector shows glows too, so one selected card is easy to see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:39:37 -06:00
1e944fa27d Inspector: one list with the card and every result, each collapsible
Selecting a card or result on the spread opens its section and closes the
rest; sections opened by hand stay open, and a click or focus inside one
makes it the section edits go to. Only open sections build their fields.
Result sections edit the weight or range and the position; the card
section picks Weights or Ranges and Auto-sort.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:35:27 -06:00
f335faa5c5 Ranged cards: edit by Weights or Ranges, whole-row drag, auto-sort
A ranged card now stores that it is ranged, so an empty card can switch
between Plain and Ranged. Cards made ranged are edited by weight (die faces
per result; ranges follow the row order); a gap becomes an empty result.
Ranges mode keeps typed ranges, rows drag with their range, and auto-sort
(on by default) keeps rows in roll order. Old cards load as Ranges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:29:52 -06:00
91c19980f7 Skip animations setting; questions animate like pauses; pop-ups fade in
View > Skip animations makes every roll instant (Shift-click still does it
for one roll). A roll with a question now animates up to it and on after
the answer, instead of jumping to the end. Pause and question pop-ups fade
and grow in unless the roll skips animations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:25:08 -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
77d262e969 Thread inspector says where Roll it with … instead is when it's hidden
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:40:03 -06:00
de942d57ee Book: the page editor reloads after undo and redo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:39:26 -06:00
a4688c1a4b Long cards opened with show all get a Show less button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:36:54 -06:00