Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 3.81 KB

S7-CHECKLIST.md

File metadata and controls

15 lines (11 loc) · 3.81 KB

Seam S7 — Non-Colonizing Boundary & tanstack.com Port Checklist

Seam S7 tests Class #3 (existing-app — Existing app adds CMS later): inside a running TanStack Start host application, the CMS extends the existing schema and database, reuses the host's auth/session, and mounts its admin inside the host's route tree without taking over the app shell.

tanstack.com is the flagship dogfood instance of Class #3. Because tanstack.com lives in its own repository (TanStack/tanstack.com), this checklist records the S7 acceptance gates that both the starters/existing-app starter and the tanstack.com port must pass.

S7 Acceptance Checklist

# Gate Requirement Verification in starters/existing-app tanstack.com Port Status
1 Existing routes resolve unchanged Mounting createRoutes(definition, { public: false }), with admin.basePath from the definition, does not shadow or rewrite the host application's existing routes (/, /dashboard, /login, library doc routes). Verified by tests/seam.test.ts: host routes remain mounted at root while CMS admin mounts under /cms-admin. Pending live cutover in TanStack/tanstack.com
2 Existing sessions stay logged in defineCms({ auth: { getUser } }) reads the host application's existing session cookie/token rather than forcing a separate CMS login flow or user table. Verified by tests/seam.test.ts: host session header/cookie authenticates CMS ops without a separate login round-trip. Pending live cutover in TanStack/tanstack.com
3 Coexisting database & migrations CMS tables live alongside the host application's own tables in the same database without clobbering host tables or failing on existing host schema migrations. Verified by tests/seam.test.ts: host application table (host_accounts) and CMS storage coexist in the same SQLite database file. Pending live cutover in TanStack/tanstack.com
4 URL & redirect preservation (port sub-seam) Legacy URLs resolve via resolveRedirect() / the redirects collection so external links and search rankings survive cutover. Verified by tests/seam.test.ts: legacy paths resolve 301/308 redirects through handleRedirect(). Pending live cutover in TanStack/tanstack.com
5 Clean removal Unmounting the CMS routes and config leaves the host application's routes, auth, and tables intact and operational. Verified by tests/seam.test.ts: host tables and routes operate independently of CMS initialization. Pending live cutover in TanStack/tanstack.com