From d9638500ba8789cea01da238475d976e8cd93c9a Mon Sep 17 00:00:00 2001 From: RobinFiredrake Date: Sat, 14 Nov 2026 13:30:56 -0600 Subject: [PATCH] Docs: size audit batch 2 map Co-Authored-By: Claude Opus 5.5 --- docs/ARCHITECTURE.md | 5 +++++ docs/DESIGN.md | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 4588e60..ad8d5f2 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -212,6 +212,11 @@ Each original file keeps one-line delegators, so callers are unchanged. (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). +- Batch 2: `main` (tightened) and `main_groups` → `main_card_drag`; `result_tray` → `tray_controls`, + `tray_why`; `inspector` → `inspector_frame`; `table_entry` → `table_entry_io` (to/from dict); + `describe` → `describe_labels`, `describe_dice`; `table_card` → `table_card_rebuild`; + `table_card_header` → `table_card_go_button`; `table_card_rows` → `table_card_row_text`, + `table_card_odds`. No script is over 400 lines now (largest: test_board_dialog, board_view, 398). ## 4. Data and storage - **Collections:** `user://collections/.json`, format_version 2 (`{format_version, id, diff --git a/docs/DESIGN.md b/docs/DESIGN.md index 3f45ed2..5b4041e 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -124,7 +124,7 @@ that works on any theme (solid background, stronger text, thicker borders, no ef 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). +1. ~~Size audit batch 2~~ done. 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 @@ -156,9 +156,7 @@ that works on any theme (solid background, stronger text, thicker borders, no ef `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 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). +- Size audit batches 1–2 done (2026-11-14): no script over 400 lines (ARCHITECTURE §3e). - 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.