Repository navigation
Description
Follow-up to #237 after #253 and #254, based on the verified sveltekit merge 6684236. Work against sveltekit, which serves the Vercel application; master is the legacy Rollup application.
The components under src/lib/components/editor/** remain in supported Svelte 5 legacy mode after #254. They form one behavioral group because their bindings, store updates and history creation must remain consistent.
Scope and acceptance:
- Migrate editor components in coherent, reviewable batches, tracking remaining components in this directory.
- Preserve control bindings, selected layers, drag/edit behavior, store contracts and history boundaries. Avoid a simultaneous global store/state-model redesign.
- Preserve name/shield/tincture/charge/ordinary/path/inscription controls, imported custom assets, and viewer/editor transitions.
- Verify edits create the expected undo steps; undo/redo, JSON import, shared URLs and reload preserve the same artwork and text. Run FMG synchronization race/cancellation tests against the already migrated CoaSync.
- Verify SVG/PNG/JPEG downloads and metadata, and compare representative rendering before/after. Leave the SSR rendering components to their separate follow-up.
References: editor components, edit/share/reload regressions, import/history regressions, FMG regressions.
Keep this as a separate reviewable change. Run the relevant regressions, strict application/service-worker checks and the credential-free Vercel build. After merge, verify the upstream commit's CI/Vercel result and public deployment before closing. Use fixtures for claims and Discord; do not mutate production claims or send Discord messages during verification.
Editor batch 1 verified after #272 — 2026-11-06
PR #272 merged into sveltekit at b38df06. The exact merge commit’s CI passes all 193 tests (99 service/security, 90 browser, 3 deployment-output and 1 production update/offline case), strict application/service-worker checks and the credential-free Vercel build. Vercel reports a successful deployment.
The public domain’s HTML, service worker and all 12 referenced hashed entry assets match that deployment. Public browser checks pass for name/zoom/Restore, shared URL/reload, inscription text/font/style, stroke/stacking/division, stripe defaults, charge placement/layering, field type/size and clone/reorder/remove across all three layer types, including undo/redo and collapsed-section preservation. Shared controls/navigation, saved French menus, offline loading and denied-storage handling also pass without browser errors. Live SVG API checks pass for explicit artwork, palette/size overrides and numeric-seed generation. Public browser checks block external and non-GET/HEAD requests; no production claims or Discord messages were changed.
Before merge, the nine editor cases also passed on the unchanged baseline. Six representative artworks had identical metadata and PNG bytes, with SVG equality after normalizing only random instance IDs. The migration uses explicit object setters for inscription/stroke bindings to preserve notifications across the legacy parent boundary without runtime warning suppressions.
#260 remains open: 13/29 editor components are migrated, with 16 remaining. Next: nine preview/selection components, then six geometry/overlay components and the editor coordinator. Parent #237 remains open for this work, #261 and dependency follow-ups #262/#264.
Component checklist
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 -
src/lib/components/editor/EditorAbove.svelte -
src/lib/components/editor/EditorCharge.svelte -
src/lib/components/editor/EditorControls.svelte -
src/lib/components/editor/EditorDivided.svelte -
src/lib/components/editor/EditorDivision.svelte -
src/lib/components/editor/EditorField.svelte -
src/lib/components/editor/EditorGeneral.svelte -
src/lib/components/editor/EditorInscription.svelte -
src/lib/components/editor/EditorItem.svelte -
src/lib/components/editor/EditorLayered.svelte -
src/lib/components/editor/EditorLine.svelte -
src/lib/components/editor/EditorOrdinary.svelte -
src/lib/components/editor/EditorOutside.svelte -
src/lib/components/editor/EditorPath.svelte -
src/lib/components/editor/EditorPattern.svelte -
src/lib/components/editor/EditorPosition.svelte -
src/lib/components/editor/EditorRestore.svelte -
src/lib/components/editor/EditorShadow.svelte -
src/lib/components/editor/EditorShield.svelte -
src/lib/components/editor/EditorShift.svelte -
src/lib/components/editor/EditorSize.svelte -
src/lib/components/editor/EditorStriped.svelte -
src/lib/components/editor/EditorStroke.svelte -
src/lib/components/editor/EditorTincture.svelte -
src/lib/components/editor/EditorType.svelte -
src/lib/components/editor/Grid.svelte -
src/lib/components/editor/Positions.svelte -
src/lib/components/editor/Switch.svelte
Editor batch 2 verified after #273 — 2026-11-06
PR #273 merged into sveltekit at 8b6fd9e, with the same tree as the tested PR head. The exact merge commit’s CI passes all 201 tests (99 service/security, 98 browser, 3 deployment-output and 1 production update/offline case), strict application/service-worker checks and the credential-free Vercel build. Vercel reports a successful deployment.
The public domain’s HTML, service worker and all 12 referenced hashed entry assets match that deployment. All eight public selection cases pass: shield search/category selection and reload; division/ordinary/line and nested field edits; pattern/semy selection; translated charge search; palette edit/restore; custom vector/raster selection, deletion and reload; and active-search updates, with undo/redo checks. Shared controls/navigation, saved French menus, offline loading and denied-storage handling pass without browser errors. Live SVG API checks pass for explicit artwork, palette/size overrides and numeric-seed generation. Public checks block external and non-GET/HEAD requests; no production claims were changed or Discord messages sent.
Seven behavior-preservation cases pass on the unchanged baseline. The eighth reproduces a prior bug where changing preview inputs replaced filtered results with the full category while the search text stayed in place; the derived lists now keep search results synchronized with preview inputs and translations. Six representative exports retain identical metadata and PNG bytes, with SVG equality after normalizing only random instance IDs.
#260 remains open: 22/29 editor components are migrated, with 7 remaining. Next are EditorPath, EditorPosition, EditorShadow, EditorShift, Grid and Positions, followed by Editor.svelte. Parent #237 remains open for those components, #261 and dependency follow-ups #262/#264.
Editor batch 3 verified after #274 — 2026-11-06
PR #274 merged into sveltekit at fddc0c8, with the same tree as the tested PR head. The exact merge commit’s CI passes all 212 tests (99 service/security, 109 browser, 3 deployment-output and 1 production update/offline case), strict application/service-worker checks and the credential-free Vercel build. Vercel reports a successful deployment.
The public domain’s HTML, service worker and all 12 referenced hashed entry assets match that deployment. All eleven public geometry cases pass: numeric transforms and grid persistence; placement/orientation and overlay cleanup; line/curve/custom path edits; shadow values/toggle undo; ordinary/charge canvas movement, resizing and rotation; and inscription/endpoint dragging with selection, snapping, undo/redo and listener cleanup. Shared controls/navigation, saved French menus, offline loading and denied-storage handling also pass. The first shared-controls probe hit ERR_ADDRESS_UNREACHABLE on initial navigation; its retry passed. Live SVG API checks pass for explicit artwork, palette/size overrides and numeric-seed generation. Public checks block external and non-GET/HEAD requests; no production claims were changed or Discord messages sent.
Ten focused cases pass on the unchanged baseline. The eleventh reproduces the old shadow-toggle bug there: undo could remove a shadow and the control’s stale local checkbox state would immediately recreate it. The bound toggle fixes that. Nine representative exports retain identical metadata and PNG bytes, with SVG equality after normalizing only random instance IDs.
#260 remains open: 28/29 components are migrated; only Editor.svelte remains. That final batch must also resolve a separate pre-existing consecutive-edit history issue: open an inscription without a shadow, enable its shadow, then change X from 1 to 3 without intervening undo/redo. The second edit changes the artwork but leaves the history index at 1 instead of adding index 2. This reproduces on both the pre-batch baseline and this branch, even after a frame settles. Add uninterrupted edit-sequence coverage and separate restoration/normalization from fresh edits before closing #260. Parent #237 remains open for this work, #261 and dependency follow-ups #262/#264.
Final editor batch verified after #275 — 2026-11-20
PR #275 merged into sveltekit at f72fb1e, with exactly the tested PR tree. The upstream CI passes all 215 tests (211 service/browser and 4 production/deployment tests), strict application/service-worker checks and the credential-free Vercel build. Vercel reports a successful deployment.
Public HTML, service worker and all 12 referenced hashed entry assets match that deployment. Isolated public-browser checks pass enabling an inscription shadow then changing X without intervening undo/redo, both separate undo/redo steps, shared URL and reload, without page errors. Public SVG/PNG/JPEG/JPG requests succeed. Browser verification allowed only same-origin GET/HEAD requests; no production claims were changed or Discord messages sent.
All 29/29 editor components use runes. Three new regressions fail on unchanged fddc0c8 and pass here: uninterrupted shadow edits with replacement history branches, consecutive edits across layers, and restored legacy defaults followed by fresh edits. The existing eleven geometry cases pass on both trees. Nine representative exports preserve identical metadata and PNG bytes, with SVG equality after normalizing only random instance IDs. Strict checks retain the existing 92 accessibility warnings; coordinator ESLint and formatting pass.
#260 is complete after this verification. #237 remains open for #261, #262 and #264. Draft #276 prepares the separate master cutover, and FMG #2036 prepares the link/origin update. Hosting configuration and proposed follow-up acceptance remain release gates; neither draft changes production hosting. The existing Pages deployment stays available for old FMG sessions and browser-local saved resources.
Activity