mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-11-03 04:00:39 +00:00
QR code layer (Phase A): - New `qr` layer type. Add QR button alongside Image / Text / Color / Shape in every layer panel. Spawns 1:1 with a placeholder URL. - Controls: data textarea, error-correction level (L/M/Q/H), quiet zone, module + background colors, transparent-background toggle. - Renders as crisp SVG on the editor and all five preview surfaces (dark modules merged into one path); canvas/PDF/JPEG export draws it cell-by-cell. Round-trips through JSON and Nostr publish/fork; old clients skip the unknown type. Works with drag / resize / rotate / opacity / aspect-lock / clip / clipboard / undo-redo. Combined-wrap layer panel: - In cover mode with Artwork mode "One combined wrap image", the layer panel collapses the separate Back / Spine / Front panels into a single "Cover trim area" panel — the wrap is one open canvas, so the sub-regions aren't meaningful. The combined panel still lists any pre-existing back/spine/front layers via a matchKeys set so they aren't orphaned from the UI. Profile modal close fix: - closeProfilePage used history.back(), which navigated the browser out of the app entirely when the profile was cold-loaded from a shared /u/<npub> link (that entry being first in the tab's history). Switched to history.replaceState to "/" — cleans the URL in place without navigating or firing popstate. Matches how closeNostrPreview already handles the /share/ URL. Docs: - Add TODO.md tracking deferred work: QR Phase B/C, IMDb-import removal, profile-page polish, edit-flow polish, and the unbuilt badges / collections / zap-gated / NWC-zaps features. - Remove docs/UNDO_REDO_FEATURE.md and docs/QR_CODE_LAYER_FEATURE.md (shipped) and docs/TMDB_AUTOFILL_FEATURE.md (declined). - README: document QR layers, undo/redo, fit-to-view + zoom toolbar, and the off-canvas veil; refresh the schema and docs references. Co-Authored-By: Claude Opus 4.7 <[email protected]>