feat: export and import progress #4

Merged
ryan.mcgee merged 1 commit from feat/export-import into main 2026-11-19 01:54:21 +00:00
Owner

Summary

  • Progress is stored in localStorage only, so it is lost when site data is cleared or the browser changes. Add Export and Import so users can save and restore it.

Changes

  • Export downloads dragonwilds-collection-log-YYYY-MM-DD.json with {format: "rsdclog-progress", version: 1, exported, items, quests} (item ids and quest names; view settings are not included)
  • Import reads a chosen file, validates it, then asks to replace current progress, showing both sets of counts
  • Entries this version doesn't know about are skipped and counted in the confirmation
  • Files that are not JSON, have the wrong format, an unsupported version, or missing lists are rejected with a message and change nothing
  • README documents the format and behaviour

Verification

  • node --check static/tracker.js and zola build: OK
  • Browser (zola serve): export produced the expected file; import of bad JSON, wrong-format JSON and a file with unknown entries behaved as described; cancel changed nothing; a valid file replaced progress, persisted across reload and restored the quest tick; singular/plural messages read correctly; no console errors; 390px layout OK
## Summary - Progress is stored in `localStorage` only, so it is lost when site data is cleared or the browser changes. Add Export and Import so users can save and restore it. ## Changes - Export downloads `dragonwilds-collection-log-YYYY-MM-DD.json` with `{format: "rsdclog-progress", version: 1, exported, items, quests}` (item ids and quest names; view settings are not included) - Import reads a chosen file, validates it, then asks to replace current progress, showing both sets of counts - Entries this version doesn't know about are skipped and counted in the confirmation - Files that are not JSON, have the wrong `format`, an unsupported `version`, or missing lists are rejected with a message and change nothing - README documents the format and behaviour ## Verification - `node --check static/tracker.js` and `zola build`: OK - Browser (zola serve): export produced the expected file; import of bad JSON, wrong-format JSON and a file with unknown entries behaved as described; cancel changed nothing; a valid file replaced progress, persisted across reload and restored the quest tick; singular/plural messages read correctly; no console errors; 390px layout OK
feat: export and import progress
All checks were successful
deploy / build (pull_request) Successful in 44s
d81d7dd951
- Export downloads collected items and completed quests as JSON
- Import validates the file, shows counts and replaces on confirm
- unknown entries are skipped and counted; invalid files change nothing
- document the file format in the README
ryan.mcgee deleted branch feat/export-import 2026-11-19 01:54:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
UltraVu-Studios/rsdclog!4
No description provided.