feat: complete delta sync implementation - add allGames, update callers
- Add allRichGames method to DataProvider - Update TripCreationViewModel.loadGamesForBrowsing to use allGames (removes 90-day limit) - Update MockCloudKitService sync methods to use new delta sync signatures - Update MockAppDataProvider with renamed methods and new allGames/allRichGames - Fix all callers: ScheduleViewModel, TripCreationViewModel, SuggestedTripsGenerator, GameMatcher - Update CLAUDE.md documentation with new method names This completes the delta sync implementation: - CloudKit sync now uses modificationDate for proper delta sync - First sync fetches ALL data, subsequent syncs only fetch modified records - "By Games" mode now shows all available games (not just 90 days) - All data types (stadiums, teams, games) use consistent delta sync pattern Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -398,7 +398,7 @@ final class GameMatcher {
|
||||
let sports: Set<Sport> = sport != nil ? [sport!] : Set(Sport.allCases)
|
||||
|
||||
do {
|
||||
let allGames = try await dataProvider.fetchGames(sports: sports, startDate: startDate, endDate: endDate)
|
||||
let allGames = try await dataProvider.filterGames(sports: sports, startDate: startDate, endDate: endDate)
|
||||
|
||||
// Filter by stadium
|
||||
let games = allGames.filter { $0.stadiumId == stadium.id }
|
||||
|
||||
Reference in New Issue
Block a user