Repository navigation
Description
Remaining work split into focused issues — 2026-11-05
The framework/compiler upgrades in #253 and #254 are merged and verified on the public Vercel deployment. This issue now serves as the parent checklist for the remaining modernization work; implement and close each follow-up separately. The deployment review under #238 still refers here.
Dependencies and retained patches
- Modernize the raster browser/converter stack and retire its workaround patch #255 — Modernize the raster browser/converter stack and retire its workaround patch (merged in Replace patched SVG converters with a matched Puppeteer raster stack #263; upstream CI and public deployment verified)
- Remediate shared deepmerge and localization dependency advisories #256 — Remediate shared deepmerge and localization dependency advisories (mitigation merged in Mitigate shared deepmerge poisoning and update localization esbuild #265; upstream CI/public deployment verified; upstream cleanup in Replace temporary deepmerge patch and localization esbuild override with upstream fixes #264)
- Replace temporary deepmerge patch and localization esbuild override with upstream fixes #264 — Replace the temporary deepmerge patch/pin and localization esbuild override with supported upstream fixes
- Remediate glob/minimatch advisories in build and lint dependencies #257 — Remediate glob/minimatch advisories in build and lint dependencies (merged in Remediate glob and minimatch in build and lint dependencies #266; upstream CI and public deployment verified)
- Complete BiDi/Zod remediation with a compatible server browser release #262 — Complete BiDi/Zod remediation with a compatible server browser release (residual advisory from Modernize the raster browser/converter stack and retire its workaround patch #255; CDP is explicitly selected)
- Remove the path-data-polyfill SSR guard patch when an equivalent fix is verified #258 — Remove the path-data-polyfill SSR guard patch (merged in Load SVG path polyfill only during client startup #267; upstream CI and public deployment verified)
Incremental component migration
- Migrate shared and navigation UI components to Svelte 5 runes in small batches #259 — Migrate shared and navigation UI components to Svelte 5 runes in small batches (all 49 components migrated in Migrate the Vercel application to SvelteKit 3 #254 and Migrate shared controls and window handlers to Svelte runes #268–Complete shared/navigation runes migration and dialog cleanup #271; exact-merge CI and public deployment verified)
- Migrate editor components to Svelte 5 runes while preserving edit history #260 — Migrate editor components to Svelte 5 runes while preserving edit history (29/29 migrated in Migrate bound editor controls to Svelte 5 runes #272–Preserve consecutive undo steps and finish editor runes migration #275; consecutive-edit history fixed; exact-merge CI and public deployment verified)
- Migrate SVG rendering components to Svelte 5 runes with API/browser parity #261 — Migrate SVG rendering components to Svelte 5 runes with API/browser parity
Remaining dependency advisory work is tracked in #262 and #264; coordinate shared lockfile/framework changes between these groups. #258 completed the browser/SSR cleanup. The converter and polyfill patches are retired; patch-package remains required for the shared deepmerge guard (#264). The component groups #259–#261 are maintainability work in supported Svelte 5 legacy components, not prerequisites for the dependency fixes; keep shared store contracts so each group can land independently. Within each component group, use small batches and track the remaining components.
The 31-advisory count is a snapshot from #254, not an individual issue's acceptance target: findings can propagate through multiple packages. Re-audit each group and record any remaining exposure and concrete follow-up. Parent completion requires all scoped work above to be resolved or explicitly moved to an agreed follow-up; merging one group does not close this parent.
Original review scope and verification history
The Vercel application already uses SvelteKit/Vite, with Svelte 4, Vite 5, and a server-rendering path using the Svelte 4 component render API. Modernization should build on that application while retaining existing editor/API behavior.
This is a follow-up to the existing all-in-one migration in #161, not a second proposal to introduce SvelteKit.
Suggested sequence and acceptance criteria:
- Establish image/editor regression coverage and a useful type-check/CI baseline first.
- Choose mutually compatible maintained versions of Svelte, SvelteKit, Vite/plugins, the Vercel adapter, and Node; document the supported runtime.
- Upgrade in small reviewable changes, migrating Svelte components incrementally and adapting the server renderer deliberately.
- Review Chromium/Puppeteer/converter compatibility and the two patch-package patches; remove patches only when equivalent behavior is verified upstream.
- Validate editor behavior, custom SVGs, API SVG/PNG/JPEG output, downloads/metadata, FMG synchronization, Discord interactions, service-worker updates, and a Vercel-compatible build.
- Preserve separate deployment and framework-upgrade review boundaries so regressions are attributable.
Official migration guidance: https://svelte.dev/docs/svelte/v5-migration-guide
Reviewed on the sveltekit branch at 4ee52f0 (Vercel application). Findings were checked locally; no production claims were modified.
Source references:
Post-merge verification for #254 — 2026-11-05
PR #254 is merged into sveltekit at 6684236. The full upstream validation run passes, including 122 regressions, strict application/service-worker type checks and the credential-free Vercel build. Vercel reports success at https://armoria-74voym1op-azgaars-projects.vercel.app. Public-domain HTML matches that deployment after removing its feedback script, and all 12 referenced hashed entry assets match exactly.
Read-only live checks pass for procedural numeric-seed SVG output, explicit COA/palette SVG output, and real 200×200 PNG/JPEG output with SVG pixel parity and changed palette pixels. An isolated browser passes editor load, name editing, address updates and keyboard undo/redo without uncaught errors. Non-GET/HEAD requests were blocked; no claims or Discord messages were modified.
This verifies the SvelteKit 3.1.1 / adapter-vercel 7.0.2 migration, maintained lint toolchain, first runes component migration and stable development dependency optimization. #237 remains open for the documented browser/converter and other dependency advisory remediation, retained patch review, and further incremental component migration. The audit remains at 31 advisories (3 low, 15 moderate, 13 high). The review remains at 15/16 completed issues. This completes deployment verification for #254, not the entire modernization task.
Post-merge verification for #263 — 2026-11-05
PR #263 is merged into sveltekit at 132245b. The complete upstream CI run passes: 133 regressions, strict application/service-worker checks, the credential-free Vercel build and production update/offline test. Vercel reports a successful deployment at https://armoria-g7z9xpgwa-azgaars-projects.vercel.app. Public-domain HTML matches that deployment after removing its feedback script, and all 12 referenced hashed entry assets match exactly.
Read-only live checks pass for procedural SVG generation, explicit-COA SVG with palette overrides, and real 200×200 PNG/JPEG/JPG images with SVG pixel parity and changed palette pixels. An isolated browser passes editor load, name editing, address updates and keyboard undo/redo without uncaught errors. Non-GET/HEAD browser requests were blocked; no production claims or Discord messages were modified.
#255 is complete following this verification: the direct CDP rasterizer, supported Puppeteer 25.11 / Chromium 153 pairing, converter removal and patch retirement are deployed and verified. #262 remains open for the recorded BiDi/Zod residual advisory; the audit remains at 22 findings (3 low, 15 moderate, 4 high), with the four high entries propagating from one Zod advisory through the unused BiDi path. Other scoped work remains under #256–#261. Parent #237 remains open; this does not complete all modernization work.
Post-merge verification for #265 — 2026-11-06
PR #265 merged into sveltekit at 3377bcb. The complete upstream CI run passes, including all 143 service/security/browser/production regressions, strict application/service-worker checks and the credential-free Vercel build. Vercel reports a successful deployment.
The public site's HTML, service worker and all 12 referenced hashed entry assets match that deployment (excluding the preview feedback script). Read-only live checks pass for explicit-COA SVG dimensions/palette and procedural numeric-seed SVG output. An isolated browser verifies saved regional French in the gallery, switching to German and preserving it in the editor, switching back to French, reload persistence, offline editor artwork and French translations, and recovery from malformed/denied storage to the browser's German preference. No uncaught browser errors occurred. The test accepts the public site's expected leave-page confirmation; all observed requests were GET/HEAD. No production claims were changed and no Discord messages were sent.
This completes #256's bounded mitigation: both deepmerge consumers use the shared guard, and localization's old esbuild dependency is removed. The audit is not clean: 21 findings remain (4 low, 13 moderate, 4 high), including version-based deepmerge findings despite the local patch. Supported upstream replacement of the merge patch/pin and temporary esbuild override remains tracked in #264. Independent build/lint and BiDi/Zod work remains in #257 and #262. Keep patch-package while the shared merge guard or the independent #258 polyfill patch remains. Parent #237 stays open.
Post-merge verification for #266 — 2026-11-06
PR #266 merged into sveltekit at 23a383a. Its tree matches the tested PR head. The complete upstream CI run passes, including all 156 regressions, strict application/service-worker checks, the credential-free Vercel build, deployment-output checks and production update/offline behavior. Vercel reports a successful deployment.
The public site's HTML, service worker and all 12 referenced hashed entry assets match that deployment (excluding the preview feedback script). Read-only live checks pass for procedural numeric-seed SVG, explicit-COA SVG dimensions/palette, and 200×200 PNG/JPEG/JPG with SVG center-pixel parity and changed palette pixels. Charged/patterned artwork includes the traced lighthouse SVG and renders as a 200×200 PNG. Editor loading, name editing, address updates and undo/redo pass without uncaught browser errors.
A final isolated browser run also passes saved French/German switching, persistence into the editor, offline French translations/artwork, and malformed/denied storage recovery. External analytics and non-GET/HEAD requests were blocked in that final run. No production claims were changed and no Discord messages were sent.
#257 is complete: NFT 1.11.1 and the tested scoped glob 14.0.4/minimatch 11.0.5 overrides remove both advisory paths. Before/after tracing evidence records unchanged routes, Node 24 function settings, endpoint inventories and every traced dependency/asset byte; Discord remains separate from image/claims dependencies. The existing 139 lint diagnostics and 24 formatting failures are unchanged and were not folded into this dependency work.
The audit snapshot is 9 affected package entries (5 low, 0 moderate, 4 high), down from 21. No glob/minimatch finding remains. The remaining entries propagate from deepmerge (#264) and BiDi/Zod (#262); the audit is not clean. Remove scoped overrides when the parent packages adopt compatible patched ranges, retaining the compatibility/tracing regressions. Parent #237 remains open for its other scoped work.
Post-merge verification for #267 — 2026-11-06
PR #267 merged into sveltekit at 1a77683. Its tree matches the tested PR head. The exact merge commit’s upstream CI passes, including all 158 regressions, strict application/service-worker checks, the credential-free Vercel build and production/offline checks. Vercel reports a successful deployment.
The public site’s HTML, service worker and all 12 referenced hashed entry assets match that deployment (excluding the preview feedback script). Live SVG checks pass for a numeric seed, explicit COA, dimensions and palette override. An isolated browser with native getPathData/setPathData removed on every load verifies first-render compony borders, built-in eagle artwork, inscription line-to-curve editing, charge position editing, address updates and undo/redo. SVG downloads preserve the border dashes and edited paths/positions; PNG and JPEG downloads decode with dimensions matching the exported SVG. Offline reload restores the edited artwork and the same border without uncaught browser errors. External and non-GET/HEAD browser requests were blocked. No production claims were changed and no Discord messages were sent.
#258 is complete: the unmodified polyfill initializes in the client startup hook and is absent from all server functions. Its dependency/lockfile are unchanged. The only remaining package patch is the independent deepmerge guard tracked in #264, so patch-package remains required. Parent #237 stays open for #262, #264 and the three component migration groups.
Batch 1 verified after #268 — 2026-11-06
PR #268 merged into sveltekit at 2547d9b. Its tree matches the tested PR head. The exact upstream merge’s CI passes all 162 regressions, strict application/service-worker checks, the credential-free Vercel build and production/offline checks. Vercel reports a successful deployment.
The public site’s HTML, service worker and all 12 referenced hashed entry assets match that deployment (excluding the preview feedback script). Isolated browser checks pass storage recovery and notice dismissal, lock removal, numeric restore, color input, paired range/number controls, responsive nested menus, editor and gallery reroll/rollback, shortcut exclusions for input/select/textarea, About open/close, the production leave-page confirmation, saved French menus and offline gallery, and denied-storage recovery. There were no uncaught browser errors. External and non-GET/HEAD browser requests were blocked; no production claims were changed and no Discord messages were sent. Read-only SVG API checks also pass for numeric seed, explicit COA, dimensions and palette override.
This verifies the 12-component batch: Message, StorageNotice, WindowEvents, Navbar, five reusable header controls and three shared inputs. CoaSync was already migrated in #254, so 13 of 49 scoped components are migrated, with 36 remaining. #259 and parent #237 remain open. Next: the header menu actions and saved-option menus, including Other’s remaining slot and the installation lifecycle. The checked-in migration checklist records the scope and following batches.
Batch 2 verified after #269 — 2026-11-06
PR #269 merged into sveltekit at 9ae63c2. Its tree matches tested PR head 3f3973d. The exact merge commit’s CI passes all 168 tests, strict application/service-worker checks, the credential-free Vercel build and production/offline checks. Vercel reports a successful deployment.
The public site’s HTML, service worker and all 12 referenced hashed entry assets match that deployment, excluding the preview feedback script. Isolated public-browser checks pass menu-driven shield edits, undo/redo availability and replacement history branches, saved gradient/damasking/gallery options and locks after reload, compact Other-menu upload/information/color dialogs, Back retaining edited gallery artwork, and editor/gallery JSON downloads matching the shared artwork. Synthetic install events verify one-shot prompts, the older-choice race and appinstalled cleanup without performing an installation; unmount/remount listener cleanup is covered by CI. The shared-control regression also passes storage recovery/dismissal, locks, numeric/color/range controls, responsive menus, shortcuts, reroll/rollback, About, leave-page confirmation, saved French menus, offline gallery and denied-storage recovery. No uncaught browser errors occurred. External and non-GET/HEAD browser requests were blocked. Read-only SVG API checks pass numeric seed, explicit COA, dimensions and palette override. No production claims were changed and no Discord messages were sent.
All 24 header-menu and saved-option components are now migrated, bringing #259 to 37 of 49 components, with 12 remaining, including the previously migrated CoaSync. The checked-in checklist records the remaining scope. Next: the page shell, gallery/viewer and animated previews, followed by upload/custom-resource/information views. #259 and parent #237 remain open.
Batch 3 verified after #270 — 2026-11-06
PR #270 merged into sveltekit at 1741286. Its tree matches tested PR head 47cab04. The exact merge commit’s CI passes all 175 tests, strict application/service-worker checks, the credential-free Vercel build and production/offline verification. Vercel reports a successful deployment.
The public site’s HTML, service worker and all 12 referenced hashed entry assets match that deployment, excluding the preview feedback script. Isolated public-browser checks pass gallery expansion/shrinking and restoration of hidden artwork, single-card regeneration without changing siblings, whole-gallery reroll/rollback, nonfirst-card editor history and Back, seeded editor initialization/reroll/rollback, and per-card PNG downloads with the selected artwork’s metadata and expected dimensions. Seeded and explicit viewers retain their dimensions, editable links preserve parameters, and noedit prevents opening an edit window. Animated About artwork retains narrow/short-viewport sizing and remount behavior. Shared-control checks also pass storage recovery/dismissal, locks and inputs, responsive menus and shortcuts, saved French menus, offline gallery, leave-page confirmation and denied-storage recovery. No uncaught browser errors occurred. External and non-GET/HEAD browser requests were blocked. Read-only SVG API checks pass numeric seed, explicit COA, dimensions and palette override. No production claims were changed and no Discord messages were sent.
The page shell, Gallery, Viewer and AnimatedCOA complete this four-component batch. #259 now has 41 of 49 components migrated, with 8 remaining: UploadJSON, UploadRaster, UploadVector, Fonts, Tinctures, About, License and LicenseList. The checked-in checklist records that remaining upload/custom-resource/information scope. #259 and parent #237 remain open.
Final batch verified after #271 — 2026-11-06
PR #271 merged into sveltekit at 622a609. Its tree matches tested PR head 97f1bc5. The exact merge commit’s CI passes all 184 tests, strict application/service-worker checks, the credential-free Vercel build and production/offline verification. The PR CI also passes. Vercel reports a successful deployment.
The public site’s HTML, service worker and all 12 referenced hashed entry assets match that deployment, excluding the preview feedback script. Isolated public-browser checks pass invalid JSON recovery and valid import/undo; sanitized vector previews, direct markup and transform editing, and license selection; raster geometry, embedded-image saving and license binding; upload/local-font persistence across reload and font defaults restoration; tincture add/save/reload/remove and Restore without relocking; and About/License open/close. Deferred browser fixtures verify web-font metadata capture and closed-dialog completion guards, plus aborting pending JSON/vector/raster reads so they cannot alter reopened dialogs. Shared-control checks pass storage recovery/dismissal, locks and inputs, responsive menus and shortcuts, saved French menus, offline gallery, leave-page confirmation and denied-storage recovery. No uncaught browser errors occurred. External and non-GET/HEAD browser requests were blocked; all saved resources used an isolated browser context. Read-only SVG API checks pass numeric seed, explicit COA, dimensions and palette override. No production claims were changed and no Discord messages were sent.
Compiler metadata confirms all 49 of 49 scoped components use runes mode, with no retained legacy components in #259. The final checklist is complete. This batch also fixes pending file/font work escaping its dialog lifetime: six lifecycle regressions fail on the unchanged batch-3 baseline and pass here, while three resource-compatibility cases pass on both. Strict checks retain the same 92 accessibility warnings. Targeted lint findings fall from 28 to 11 pre-existing @html diagnostics, with no new diagnostics or suppressions; sanitization and escaped-attribution security regressions pass.
#259 is complete and can be closed following this verification. Parent #237 remains open for dependency follow-ups #262/#264 and the separate editor and SVG-rendering migrations #260/#261.
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.
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
[-]Upgrade Svelte and the Vercel toolchain incrementally after restoring validation[/-][+]Track remaining dependency and Svelte component modernization[/+]