Skip to content

Sync Today's 5 across devices#20

Merged
sohamM97 merged 1 commit intomainfrom
feature/sync-todays-five
Mar 2, 2026
Merged

Sync Today's 5 across devices#20
sohamM97 merged 1 commit intomainfrom
feature/sync-todays-five

Conversation

@sohamM97
Copy link
Owner

@sohamM97 sohamM97 commented Mar 2, 2026

Summary

  • Syncs Today's 5 selections via Firestore (users/{uid}/todays_five/{date})
  • Pushes on every push cycle, pulls on every pull cycle
  • OR-merges status bits (completed, worked_on, pinned) for conflict resolution
  • Fixes deleteAllLocalData to also clear todays_five_state

Test plan

  • flutter analyze — clean
  • flutter test — all pass (9 new tests for merge logic)
  • Manual: Today's 5 loads, mark done, pin, swap all work on Linux
  • Manual: debug APK on phone — todays_five documents visible in Firestore

🤖 Generated with Claude Code

Store one document per date at users/{uid}/todays_five/{date}.
Push during every push cycle, pull during every pull cycle.
Merge logic: OR-merge status bits for shared tasks, append
local-only pinned/completed tasks up to 5 slots.

Also fixes deleteAllLocalData to clear todays_five_state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sohamM97 sohamM97 merged commit 25cfba3 into main Mar 2, 2026
1 check passed
@sohamM97 sohamM97 deleted the feature/sync-todays-five branch March 2, 2026 11:30
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.

1 participant