mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-30 13:08:48 -06:00
Each of the eleven right-hand panels (Comments, Bookmarks, Pages, Fields, Layers, Attachments, Signatures, Accessibility, Tags, Search, Compare) opens on one synthetic document, and its AccessKit tree is compared with a text file in crates/ui-egui/tests/snapshots/. Text rather than pixels: the same on every platform and GPU, not an asset under AGENTS.md §1, and readable in a diff. Positions are left out, so a moved widget is not a change but an added, removed or renamed one is. UPDATE_SNAPSHOTS=1 rewrites the files. An exhaustive match over RightPanel stops the file compiling when a panel is added without a snapshot. Seen failing: renaming the Signatures panel's "Validate all" button fails signatures_panel alone, showing both trees. Stable under TZ=UTC, America/Los_Angeles and Asia/Tokyo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>