managarten/apps
Till JS adb1649005 refactor(mana/web): architecture cleanup — liveQuery migration, dead types, seed registry
Four architectural improvements that reduce boilerplate, eliminate
dead code, document the frozen schema boundary, and centralize the
guest data seeding that was previously defined but never called.

1. Migrate remaining 10 modules to useLiveQueryWithDefault
   music (5), moodlit (2), places (2), storage (2), calc (2),
   planta (5), photos (3), contacts (1), inventory (4) — 26 hooks
   total. Each queries.ts now imports useLiveQueryWithDefault from
   @mana/local-store/svelte instead of raw liveQuery from dexie.
   Call sites that used manual $effect + subscribe() boilerplate
   replaced with $derived(ctx.value). Files touched: 10 queries.ts
   + 5 route/component call sites (contacts, places, photos,
   inventory, calc).

2. Remove dead Memoro Tag interface
   memoro/types.ts had a local Tag type (with isPinned, sortOrder)
   that diverged from the @mana/shared-tags Tag. No file imported
   it after the earlier migration — removed the interface and added
   a comment directing future readers to @mana/shared-tags.

3. Document frozen schema boundary in database.ts
   Updated the v1 comment to explicitly state it's frozen and
   explain why (Dexie only runs upgrades when the version number
   bumps). Lists the current additive versions: v2=body, v3=who,
   v4=news. News tables were already correctly extracted to v4 by
   concurrent work.

4. Centralize guest seed registry
   Created lib/data/seed-registry.ts that imports GUEST_SEED
   constants from 13 modules (habits, body, dreams, moodlit,
   contacts, calendar, chat, cards, skilltree, todo, notes, times,
   planta) and provides a single seedAllGuestData() function.
   Wired into manaStore.initialize() in local-store.ts so seeds
   actually get inserted on first visit. Previously every module
   defined and re-exported seed data but nothing ever consumed it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 18:01:02 +02:00
..
api feat(who): add character dossier system for staged fact disclosure 2026-04-10 17:40:16 +02:00
calc/packages/shared chore: delete 25 web-archived directories, remove stale stubs, clean workspace config 2026-04-03 13:03:49 +02:00
calendar refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
cards chore: complete ManaCore → Mana rename (docs, go modules, plists, images) 2026-04-07 12:26:10 +02:00
chat refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
citycorners chore: complete ManaCore → Mana rename (docs, go modules, plists, images) 2026-04-07 12:26:10 +02:00
contacts refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
context chore(workspace): remove redundant nested lockfiles + workspace.yaml 2026-04-09 11:57:11 +02:00
docs docs: Phase 9 documentation roundup — close encryption-shaped doc gaps 2026-04-08 11:47:59 +02:00
guides refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
inventory refactor(mana): rename inventar → inventory across the codebase 2026-04-09 15:50:24 +02:00
mana refactor(mana/web): architecture cleanup — liveQuery migration, dead types, seed registry 2026-04-10 18:01:02 +02:00
manavoxel chore(workspace): unify vitest to ^4.1.2 across all packages 2026-04-07 13:58:29 +02:00
memoro chore: remove abandoned per-product workspace artifacts 2026-04-09 11:56:51 +02:00
moodlit refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
mukke feat: rename ManaCore to Mana across entire codebase 2026-04-05 20:00:13 +02:00
news refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
nutriphi refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
photos chore: complete ManaCore → Mana rename (docs, go modules, plists, images) 2026-04-07 12:26:10 +02:00
picture refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
planta chore(planta): remove orphan apps/planta/packages/shared 2026-04-09 14:06:11 +02:00
presi refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
questions refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
skilltree chore: delete 25 web-archived directories, remove stale stubs, clean workspace config 2026-04-03 13:03:49 +02:00
storage refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
times chore: complete ManaCore → Mana rename (docs, go modules, plists, images) 2026-04-07 12:26:10 +02:00
todo refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
traces refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
uload refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
zitare/packages/content chore: delete 25 web-archived directories, remove stale stubs, clean workspace config 2026-04-03 13:03:49 +02:00