mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:21:10 +02:00
Adds a "Privatsphäre" tab to /settings (next to Sicherheit) that lists every record currently flipped to 'public' or 'unlisted' across all 15 visibility-aware tables, with one-click downgrade per record and a global "Alle auf privat zurücksetzen" kill-switch. Architecture: - `lib/data/privacy/exposed-records.ts` is the single registry of visibility-aware tables. For each: the collection name, encryption flag, title-extraction strategy, deep-link, and a dynamic-import fixer that calls the module's setVisibility (so unlisted records properly revoke their server snapshots, not just flip the field). - `PrivacySection.svelte` subscribes via Dexie liveQuery so flips from any module DetailView surface here immediately. - Kill-switch iterates the same fixers — best-effort sweep that logs failures but doesn't abort. Toast reports flipped/failed. Two error/empty states wired: - "Aktuell ist nichts öffentlich" reassures the privacy-conscious user that their footprint is zero. - Per-record "Privat" button is disabled while busy so multi-clicks don't race. Adding a new visibility-aware module: append one entry to TABLES in exposed-records.ts. The Section auto-renders it. Note: 2 unrelated svelte-check errors in stores/workbench-scenes.svelte.ts (ensureSeedScene) from a parallel session. Not introduced here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||