- Full skeleton: backend modules (financials per LP contract + shape), auth/health, web PWA tabs (dashboard/income/etc), mcp stub, migrations, docs (FINANCES.md + detailed MIGRATION_FROM_LP.md), CLAUDE, STANDARDS, run/scripts. - Design embodied: scope from lp.live entities/financials + surfaces/my/financials* + my/backend schema + frontend Financials* pages/tabs + docs/quinn-my/financials.md - Follows prospector extraction precedent exactly for future cutover/proxies from lp.live - Verified: structure ls, partial tsc (dep errors only), files read
2.6 KiB
2.6 KiB
Migration from LP (lilith-platform.live) to Dedicated @finances App
Date: 2026-06-29
Status: Stub skeleton created. Core extraction not yet ported.
What lives in LP today (sources to port)
codebase/@features/api/src/entities/financials/(index, repo, schema, types) + financialsMigrations (fin_ prefixed tables + alters)codebase/@features/api/src/surfaces/my/financials.ts+pending-income.ts+projects.ts(partial),tour-legs.tscodebase/@features/api/src/app/server.ts(mounts), my index.tscodebase/@features/my/backend-api/src/db/schema-financials.ts+ routes/data.ts (my specific DB)codebase/@features/my/frontend-public/src/pages/FinancialsPage.tsx+ tabs: CashFlowTab, IncomeTab, OpExTab? (purchases), PendingTab, PurchasesTab, RoiTab, SubscriptionsTab, TourLegsTab, Projects* (financial tie-ins), Dashboard mentionscodebase/@features/my/frontend-public/src/layouts/*+ routes + types/api.ts + financials-styled.ts- mcp: my/mcp-server + admin/mcp for financial tools (log session etc)
- tests: my-financials.test.ts , e2e
- docs: docs/quinn-my/financials.md (source of truth for shape + endpoints)
Also related: tour financials in quinn-my docs, pending-income handling.
What the dedicated app owns post-cutover
- Own DB + clean table names (income_sessions etc, or keep fin_ for back-compat)
- Full Nest modules: financials/ (shape, CRUD per doc), aggregates
- PWA: focused financial console (installable), replaces or augments my/FinancialsPage
- MCP: full tools for log income, update roi/savings, query cash position, project P&L etc.
- Migrations ported/adapted from LP schema
Remaining / plan (analogous to prospector phases)
- Flesh entities + repo + buildFinancialsShape port (pure + I/O)
- Controller + service full (all endpoints + validation)
- PWA views port from LP my/ pages + tabs (match shapes)
- Add tour-legs + project financial views + cross refs (via clients or HTTP to my/projects)
- MCP full parity
- Proxy in LP (quinn-api forward /my/financials or /finances to this during dual)
- Data backfill / dual-write cutover
- Remove from LP (entities, surfaces, my/ pages, mcp, tests, docs updates)
- Health + verif (dashboard shape matches LP, CRUD roundtrips, PWA install, MCP)
Proxies during transition
Extend LP my/ rewrite or add thin forwarders to FINANCES_BASE + token. Update useMyApi calls or add /finances app link at my.transquinnftw.com/finances/app .
See prospector MIGRATION_FROM_LP.md + handoffs for exact playbook. Update this as phases complete.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com