Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/modernization/260.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A separate pre-existing coordinator history issue remains for the final batch: o

Checked entries are migrated in this tree. Keep #260 open until the complete group has merged and its exact upstream CI/Vercel result and public deployment have been verified. No legacy component is deliberately retained without a follow-up.

- [ ] `src/lib/components/editor/Editor.svelte`
- [x] `src/lib/components/editor/Editor.svelte`
- [x] `src/lib/components/editor/EditorAbove.svelte`
- [x] `src/lib/components/editor/EditorCharge.svelte`
- [x] `src/lib/components/editor/EditorControls.svelte`
Expand Down Expand Up @@ -66,8 +66,12 @@ Checked entries are migrated in this tree. Keep #260 open until the complete gro
- [x] `src/lib/components/editor/Positions.svelte`
- [x] `src/lib/components/editor/Switch.svelte`

## Final batch
## Final batch: editor coordinator

Editor.svelte remains. Preserve initialization order, menu/COA synchronization and normalization, and fix the consecutive-edit history boundary described above. Verify undo/redo after uninterrupted sequences as well as individual edit/undo/redo cycles, JSON/shared-link reload, viewer/editor transitions and FMG synchronization.
`Editor.svelte` uses runes with explicit reroll, external-history restoration and menu-commit boundaries. History published by the editor does not re-enter restoration. Imported/legacy defaults are normalized synchronously in the existing entry; the next fresh edit always adds a new step. Rerolls are keyed by the gallery history id so unrelated shared-store changes (rotation, path selection and overlays) cannot reset history. Menu normalization uses a detached copy, and artwork passed to the SVG renderer remains plain data.

The first three batches migrate **28 of 29 components, with Editor.svelte remaining**. Verify each merged batch before marking it complete on #260. Use fixtures for claims and Discord; parent #237 remains open for its other follow-ups.
Three new cases in `test:editor-geometry` fail on the unchanged `fddc0c8` baseline and pass here: uninterrupted shadow edits with undo/redo and replacement branches, consecutive edits across layers, and legacy-entry normalization followed by fresh edits. All eleven previous geometry cases pass on both trees. Nine representative exports have identical metadata and PNG bytes; SVGs match after normalizing only random shield/division/inscription instance IDs.

Validation: 211 service/browser tests, strict application/service-worker checks (0 errors, the existing 92 accessibility warnings), credential-free Vercel build, three deployment-output tests and one production update/offline test pass. Targeted coordinator ESLint and formatting checks pass. Existing suites cover JSON/shared links, viewer/gallery transitions, reroll/rollback, exports and FMG synchronization.

All **29 of 29 editor components** are migrated in this tree. Keep #260 open until this batch is merged and the exact upstream CI/Vercel result and public deployment are verified. Parent #237 still tracks #261, #262 and #264.
Loading
Loading