feat(ui): add "Export all" and "Import all" buttons for moving hosts
CI / Typecheck, test, feed (push) Successful in 13s
CI / Build site (push) Successful in 8s
CI / Container image (push) Successful in 31s

This commit is contained in:
Lucas Winther committed 2026-09-17 10:20:07 +02:00
1 parent b36047d218
commit b73c253de2
4 files changed
+111 -82

No files matched your search

+8
View File
@@ -606,6 +606,14 @@ simply has no `daily` key, which is not an error. Losing a user's marks to a bad
deliberately one-directional. A file whose `format` is unrecognised is refused outright rather than
partly applied.
A standard **Export** produces a progress backup containing progress, daily checklists, ignored
events, and custom games/events without `prefs`, so that importing progress onto another device
leaves that device's region, theme, and game order intact. **Export all** includes `prefs` alongside
progress in the export JSON. Standard **Import** merges progress and custom content while ignoring
`prefs`. **Import all** merges progress and custom content and also restores all preferences
(`region`, `hiddenGames`, `gameOrder`, `theme`, `view`, etc.) via `restorePrefsValue`, falling back
to defaults for any fields omitted by older exports — designed specifically for moving hosts.
## Schema versioning
`/api/events` responses carry `{ schemaVersion: 1, generatedAt, events: [...], sources: [...] }`.