Migrate SPA from Vue to Solid 2 #6
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ersyne/ersa-agent!6
Loading…
Reference in a new issue
No description provided.
Delete branch "solid-2-migration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces the Vue 3 + Pinia + Vue Router SPA in
web/with Solid 2: TSXcomponents, context-provided stores and Solid Router. The served UI, routes,
responsive layouts and test coverage are preserved; no server API, wire type or
Go behavior changes.
What changed
Framework
*.vuecomponents become*.tsx(src/components/**,src/views/**);main.ts/App.vuebecomemain.tsx/App.tsx, mounted withrenderfrom
@solidjs/web.create*Store(registry)+ context hook),constructed in
StoresProvider(src/stores/index.tsx) with a per-appnotification registry (
src/stores/registry.ts). Store values are getters,changes are explicit actions.
@solidjs/router(src/router.tsx), with the unauthorized hookstill redirecting to
/login?ref=…; ordinary anchors stay full document loadsvia
explicitLinks.@vitejs/plugin-vue→@solidjs/vite-plugin;vue-tsc→tsc --noEmit(jsx: preserve,jsxImportSource: @solidjs/web).Solid-idiomatic follow-ups on top of the port
mutation; the
queueMicrotaskmount-load workarounds and the fake-DOM storeharness (
storeLoads*, ArchiveView deferral test) are gone.session.tskeeps a private synchronous commit because its actions read back what they
wrote.
repairedChoice,staleSeedRepaired) are pureinput/output functions; tests are tables over them.
errTextfor error extraction, sharedpanel.tsfor dropdownplacement (
PickerMenu,ContextRing,SlashPalette,MentionPalette),composingFieldfor IME composition in controlled inputs.MessageListcaches rendered markdown; admin lists load in one request(pagination cursors dropped).
Tooling & docs
mise run checkrunstsc --noEmit;mise run test-web-unitrunsbun --conditions=browser --conditions=development test src(needed forSolid's export conditions).
.air.tomlwatchestsxinstead ofvue; the reduce rules matchtscinstead of
vue-tsc.web/DESIGN.md,web/STYLE.mdandAGENTS.mdrewritten for the new stack.rail-drawer(phone drawer closes on navigation) and anadmin-providers edit check; the setup step now asserts the row patch writes
back to its field.
Non-web touches are comment/regex only:
internal/api/settings.go,internal/server/agents/subagent.go,internal/server/agents/reduce/rules.yaml.Testing
mise run checkmise run test-web-unitmise run test-go(needsERSA_TEST_DATABASE_URL)mise run test-web, and again withERSA_TEST_WIDTH=400for themd:breakpoints and the new drawer check
cd web && bun e2e/smoke.ts --test-lifecycleNotes
Views that need seeded sessions (Overview desk, tombstones, Archive) were still
checked by hand per
web/TESTING.md. Nothing here is meant to change user-facingbehavior — if something looks different, treat it as a port regression.