managarten/apps
Till JS a3a472ce39 feat(manacore): Phase 7 — unified sync manager for multi-app DB
Create sync infrastructure for the single-DB multi-app architecture:

sync.ts — Unified Sync Manager:
- One sync channel per appId (todo, calendar, contacts, etc.)
- Push: collects _pendingChanges tagged with appId → POST /sync/{appId}/push
- Pull: fetches server delta per collection → applies field-level LWW
- WebSocket: connects to /sync/{appId}/ws for real-time push notifications
- Online/offline handling with automatic reconnect
- Uses SYNC_APP_MAP from database.ts for table→appId routing

change-tracker.ts — Write tracking helper:
- trackChange(): records writes to _pendingChanges with auto-appId lookup
- trackFieldUpdate(): field-level LWW tracking for partial updates
- trackDelete(): soft-delete tracking

The _pendingChanges table now includes appId as an indexed field,
and _syncMeta uses compound key [appId+collection] for per-app cursors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 21:21:01 +02:00
..
bauntown feat(bauntown): restore from archive, register in monorepo 2026-03-30 01:02:21 +02:00
calc feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
calendar style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
cards feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
chat feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
citycorners feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
clock feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
contacts style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
context feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
docs refactor: rename ManaDeck to Cards across entire monorepo 2026-04-01 11:45:21 +02:00
guides style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
inventar style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
manacore feat(manacore): Phase 7 — unified sync manager for multi-app DB 2026-04-01 21:21:01 +02:00
manavoxel feat(manavoxel): clean up dead code, add portal keys, fix triggers, implement gold economy 2026-04-01 21:04:25 +02:00
matrix feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
memoro fix(memoro): unify error responses, add offline page, align i18n defaults 2026-04-01 16:39:11 +02:00
moodlit style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
mukke feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
news refactor(apps): automated SVG-to-Phosphor migration across all apps 2026-03-31 12:35:17 +02:00
nutriphi fix(prerender): suppress favicon.png 404 during prerender in skilltree and nutriphi 2026-03-31 18:11:53 +02:00
photos style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
picture feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
planta style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
playground refactor(apps): automated SVG-to-Phosphor migration across all apps 2026-03-31 12:35:17 +02:00
presi feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
questions style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
reader feat(reader): restore from archive, register in monorepo 2026-03-30 00:56:57 +02:00
skilltree feat(shared-auth-ui): add GuestRegistrationNudge + complete feature texts + improve seed data 2026-04-01 12:16:55 +02:00
storage feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
times style: add shared-auth-ui as Tailwind @source across 11 web apps 2026-04-01 15:43:21 +02:00
todo fix(todo): persist labelIds on task creation and merge metadata on label update 2026-04-01 21:03:56 +02:00
traces chore: remove all NestJS backend references, replace with Hono/Bun 2026-03-31 16:52:25 +02:00
uload feat: add Cmd+K spotlight actions to all 23 apps 2026-04-01 12:11:34 +02:00
wisekeep refactor(apps): automated SVG-to-Phosphor migration across all apps 2026-03-31 12:35:17 +02:00
zitare feat(shared-auth-ui): add GuestRegistrationNudge + complete feature texts + improve seed data 2026-04-01 12:16:55 +02:00