Skip to content

[arenabuddy] Add automatic match sync from server on login and startup#318

Merged
gazure merged 1 commit intomainfrom
ga/arenabuddy-server-sync
Feb 28, 2026
Merged

[arenabuddy] Add automatic match sync from server on login and startup#318
gazure merged 1 commit intomainfrom
ga/arenabuddy-server-sync

Conversation

@gazure
Copy link
Owner

@gazure gazure commented Feb 28, 2026

This pull request implements automatic match synchronization from the server to the local database.

Key Changes:

  • Post-login sync: After successful authentication, the app now automatically syncs matches from the server in the background
  • Initial sync on startup: When the app launches with saved authentication, it performs an initial sync to fetch any new matches
  • New sync module: Added backend/sync.rs with sync_matches() function that compares server and local match lists, downloading missing matches with proper token refresh handling
  • Match filtering: Added filter to exclude matches with game_number ≤ 0 from the UI display
  • Logging improvements: Changed missing match details from error to debug level, and added comprehensive sync logging

The sync process fetches the server's match list, compares against local matches by ID, and downloads any missing match data. Token refresh is handled automatically during sync operations.

@gazure gazure force-pushed the ga/arenabuddy-server-sync branch from 0acb50b to 8676fb6 Compare February 28, 2026 19:31
@gazure gazure merged commit 0861e44 into main Feb 28, 2026
2 checks passed
Copy link
Owner Author

gazure commented Feb 28, 2026

Merge activity

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