TableTower/ui
RobinFiredrake ff7c2023c2 Undo and redo for every Build edit
EditHistory (ui/edit_history.gd) keeps an undo and a redo stack of
whole-board snapshots per collection. Each table and group is its own
JSON string, shared with the previous snapshot when unchanged, so a step
costs about the size of the cards it changed. Collapsed flags are kept
apart: collapsing isn't a step and undo leaves it as it is. Labels come
from diffing the snapshots ("Delete table Loot", "Add pipe Loot → Gems",
"Move 3 cards", "Group Careers"), or from the caller.

Main.mark_dirty records steps: typing commits when it pauses (0.8 s) and
merges until focus moves, other edits commit at the end of the frame (a
drag is one step), and quick edits to the same card or pipe merge.
Actions in main.gd bracket their changes with _begin_edit/_end_edit.
Undo patches only the changed tables and groups in place and rebuilds
their cards, keeping view, mode, search and lit results, then flashes
what changed. Ctrl+Z, Ctrl+Shift+Z / Ctrl+Y outside text fields (Play
too), Undo/Redo buttons with step tooltips in the Build bar, and the
toast's Undo now goes through the history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 19:00:47 -06:00
..
board_layout.gd Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
board_layout.gd.uid Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
board_search.gd Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
board_search.gd.uid Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
board_view.gd Undo and redo for every Build edit 2026-11-08 19:00:47 -06:00
board_view.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
card_layer.gd Undo and redo for every Build edit 2026-11-08 19:00:47 -06:00
card_layer.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
chevron_button.gd Group cards and templates 2026-11-08 17:01:34 -06:00
chevron_button.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
choice_dialog.gd Keep long sheets from widening the tray; show sheets filled in in previews 2026-11-08 17:11:19 -06:00
choice_dialog.gd.uid Logic cards UI: choice pop-up, card kinds, Build creation and settings, tray 2026-11-08 14:07:57 -06:00
collection_switcher.gd Add app-shell UI: table settings, collection switcher, import/export, endless-loop chip 2026-11-08 12:23:21 -06:00
collection_switcher.gd.uid Add app-shell UI: table settings, collection switcher, import/export, endless-loop chip 2026-11-08 12:23:21 -06:00
details_popup.gd Router captions and hover summary, Test board run count, README branching 2026-11-08 17:55:22 -06:00
details_popup.gd.uid Play-side UI: BBCode rendering, hover details, card decks, variables, copy, ref pipes 2026-11-08 12:43:01 -06:00
die_icon.gd Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
die_icon.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
edit_history.gd Undo and redo for every Build edit 2026-11-08 19:00:47 -06:00
edit_history.gd.uid Undo and redo for every Build edit 2026-11-08 19:00:47 -06:00
group_card.gd Groups and templates: docs, export filter and screenshot flags 2026-11-08 17:08:22 -06:00
group_card.gd.uid Group cards and templates 2026-11-08 17:01:34 -06:00
group_layer.gd Group cards and templates 2026-11-08 17:01:34 -06:00
group_layer.gd.uid Group cards and templates 2026-11-08 17:01:34 -06:00
icons.gd Logic cards UI: choice pop-up, card kinds, Build creation and settings, tray 2026-11-08 14:07:57 -06:00
icons.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
io_menu.gd Test board: BoardTester class, Build-mode dialog, README section 2026-11-08 17:49:35 -06:00
io_menu.gd.uid Add app-shell UI: table settings, collection switcher, import/export, endless-loop chip 2026-11-08 12:23:21 -06:00
main.gd Undo and redo for every Build edit 2026-11-08 19:00:47 -06:00
main.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
main.tscn Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
minimap.gd Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
minimap.gd.uid Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
modal_card.gd Add app-shell UI: table settings, collection switcher, import/export, endless-loop chip 2026-11-08 12:23:21 -06:00
modal_card.gd.uid Add app-shell UI: table settings, collection switcher, import/export, endless-loop chip 2026-11-08 12:23:21 -06:00
pipe_layer.gd Merge branch 'worktree-agent-a07ea998a8853dd17' into boards-v2 2026-11-08 18:19:11 -06:00
pipe_layer.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
pipe_popover.gd Conditional pipes and router cards 2026-11-08 17:53:00 -06:00
pipe_popover.gd.uid Play-side UI: BBCode rendering, hover details, card decks, variables, copy, ref pipes 2026-11-08 12:43:01 -06:00
port_layer.gd Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
port_layer.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
result_tray.gd Router captions and hover summary, Test board run count, README branching 2026-11-08 17:55:22 -06:00
result_tray.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
rich_text.gd Logic cards UI: choice pop-up, card kinds, Build creation and settings, tray 2026-11-08 14:07:57 -06:00
rich_text.gd.uid Play-side UI: BBCode rendering, hover details, card decks, variables, copy, ref pipes 2026-11-08 12:43:01 -06:00
search_panel.gd Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
search_panel.gd.uid Big-board navigation: search, focus_table, minimap, pack, lazy cards 2026-11-08 18:16:32 -06:00
style.gd Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
style.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
table_card.gd Conditional pipes and router cards 2026-11-08 17:53:00 -06:00
table_card.gd.uid Build the pipe-board app in Godot 2026-11-08 12:05:41 -06:00
table_preview.gd Conditional pipes and router cards 2026-11-08 17:53:00 -06:00
table_preview.gd.uid Choice pop-up: minimize pill, option preview panel, reusable TablePreview 2026-11-08 16:39:56 -06:00
table_settings_dialog.gd Conditional pipes and router cards 2026-11-08 17:53:00 -06:00
table_settings_dialog.gd.uid Add app-shell UI: table settings, collection switcher, import/export, endless-loop chip 2026-11-08 12:23:21 -06:00
template_forms.gd Group cards and templates 2026-11-08 17:01:34 -06:00
template_forms.gd.uid Group cards and templates 2026-11-08 17:01:34 -06:00
template_picker.gd Group cards and templates 2026-11-08 17:01:34 -06:00
template_picker.gd.uid Group cards and templates 2026-11-08 17:01:34 -06:00
test_board_dialog.gd Router captions and hover summary, Test board run count, README branching 2026-11-08 17:55:22 -06:00
test_board_dialog.gd.uid Test board: BoardTester class, Build-mode dialog, README section 2026-11-08 17:49:35 -06:00
variables_panel.gd Logic cards UI: choice pop-up, card kinds, Build creation and settings, tray 2026-11-08 14:07:57 -06:00
variables_panel.gd.uid Play-side UI: BBCode rendering, hover details, card decks, variables, copy, ref pipes 2026-11-08 12:43:01 -06:00