Skip to content

feat(sync): include star and block flags in backup - #9

Merged
Tomlord1122 merged 1 commit into
Cometline:masterfrom
tomtom-bot7:feat/sync-star-block-flags
Sep 4, 2026
Merged

Tomlord1122 merged 1 commit into
Cometline:masterfrom
tomtom-bot7:feat/sync-star-block-flags

Conversation

@tomtom-bot7

Copy link
Copy Markdown
Contributor

Summary

  • Backup export is now v1.3 and includes problemFlags (neet_id, starred, blocked) for any starred or blocked problems.
  • Import restores those flags when problemFlags is present (clears then reapplies). Older v1.2 backups without the field leave local flags alone.
  • Auto-sync also runs after star/block toggles (same as after a review).

Test plan

  • Star and block a few problems; export progress JSON and confirm problemFlags lists them.
  • On another/fresh profile (or after clearing flags), import that file and confirm stars/blocks return.
  • Import an older v1.2 backup without problemFlags and confirm existing local stars/blocks are unchanged.
  • With auto-sync enabled, toggle a star and confirm the export file updates.

Export problemFlags (starred/blocked) in v1.3 backups, restore them on import, and auto-export after star/block toggles when sync is enabled.
@Tomlord1122
Tomlord1122 merged commit 2eb7527 into Cometline:master Sep 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants