rspace-online/modules/rbooks
Jeff Emmett ef3d0ce447 feat: batch local-first migration for 10 modules (Phase 3)
Add Automerge schemas, lifecycle hooks (onInit, docSchemas), and
local-first client wrappers for all remaining PG modules:
rWork, rVote, rCal, rFiles, rCart, rBooks, rTrips, rInbox, rSplat, rFunds.

Each module now:
- Defines typed Automerge document schemas (schemas.ts)
- Registers docSchemas and onInit hook with SyncServer reference
- Moves initDB() from top-level to onInit for unified startup
- Has a client-side local-first wrapper (local-first-client.ts)

Dual-write route handlers will be wired incrementally per module
following the rNotes pattern established in Phase 2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 14:01:58 -08:00
..
components Merge branch 'dev' 2026-02-28 19:51:51 -08:00
db refactor: rename module directories to match r-prefixed module IDs 2026-02-28 19:49:26 -08:00
landing.ts refactor: rename module directories to match r-prefixed module IDs 2026-02-28 19:49:26 -08:00
local-first-client.ts feat: batch local-first migration for 10 modules (Phase 3) 2026-03-02 14:01:58 -08:00
mod.ts feat: batch local-first migration for 10 modules (Phase 3) 2026-03-02 14:01:58 -08:00
schemas.ts feat: batch local-first migration for 10 modules (Phase 3) 2026-03-02 14:01:58 -08:00