Commit Graph
341 Commits
Author SHA1 Message Date
Brent Simmons cdefbbf7e2 Call postSyncError like all the other account delegates. 2026-03-31 20:53:11 -07:00
Brent Simmons 0c2808e607 Post error notifications close to where they happen, which gives us more detail about what went wrong. 2026-03-31 18:36:23 -07:00
Brent Simmons b8cd5f564c Report more detailed error messages — create and use AccountError.detailedErrorMessage. 2026-03-31 18:06:05 -07:00
Brent Simmons 4c45c5ff7e Allow Xcode to do its housekeeping upon new version of Xcode. 2026-03-30 17:36:49 -07:00
Brent Simmons 4a2c62cc6c Make app run on iOS 17 and up. 2026-03-29 21:31:02 -07:00
Brent Simmons 8faf1490c6 Create and use Platform.deviceHasiCloudAccount. Check it before syncing things in the key-value storage. 2026-03-29 20:23:59 -07:00
Brent Simmons 3180372a57 Skip NSUbiquitousKeyValueStore things when running unit tests. 2026-03-29 14:34:28 -07:00
Brent Simmons d26cfd00c2 Fix concurrency issue. Make sure we’re on the main thread. 2026-03-29 14:27:14 -07:00
Brent Simmons 66f168db7f Sync the setting for syncing unread content. 2026-03-29 10:30:14 -07:00
Brent Simmons 4dc13f3439 Update package. 2026-03-26 11:11:26 -07:00
Brent Simmons b080e5ec54 Make test data numbers match. 2026-03-26 09:39:21 -07:00
Brent Simmons 64dd6c9643 Remove references to orphaned content records and don’t check for orphans. They will get deleted in the normal course of cleanup as not-starred content. 2026-03-25 22:06:37 -07:00
Brent Simmons 4a40cef2a6 Add deleteStaleRecords parameter — delete only if true. Right never it’s never true. We’ll get back to this. 2026-03-25 21:24:49 -07:00
Brent Simmons ca041ca717 Remove mentions of stale statuses from the UI. 2026-03-25 21:22:03 -07:00
Brent Simmons d91a6c1113 Mark articles as read if they’re newly-seen but have a pub date > 6 months ago. (For the iCloud and local accounts.) 2026-03-25 21:00:02 -07:00
Brent Simmons 2d720c86f4 Use better test data. 2026-03-25 11:39:59 -07:00
Brent Simmons 0db898a053 Change definition of stale status record to not check for article in local database. It’s stale if created six months or more ago and is not starred, period. 2026-03-25 11:39:06 -07:00
Brent Simmons a60c58a893 Link to new iCloud page instead of the old one. The new page explains the new features. 2026-03-25 11:37:45 -07:00
Brent Simmons 9f5a7add24 Count read and unread statuses/articles without also including starred. 2026-03-24 14:29:23 -07:00
Brent Simmons a7d56d0876 Enable the weekly cleanup. 2026-03-24 14:29:07 -07:00
Brent Simmons 9bcf8b2bc9 Make the first periodic clean up 6 days from first launch with this feature. 2026-03-24 14:15:25 -07:00
Brent Simmons 9b6865b473 Turn off dry-run for cleanup. 2026-03-24 14:15:09 -07:00
Brent Simmons 332774b3f5 Fix cleanup batching (400-record limit), per-batch progress reporting, cancel handling, and use 6-day cleanup interval. 2026-03-24 14:10:21 -07:00
Brent Simmons ba1e6b709a Fix several UI issues 2026-03-24 12:58:37 -07:00
Brent Simmons d9fb340624 Fix warnings about use of async where not needed. 2026-03-24 12:58:29 -07:00
Brent Simmons a7a534856d Add CloudKitCleanUpStatus.isActive. 2026-03-23 20:55:31 -07:00
Brent Simmons 1d8de2c7fb Add CloudKitCleanUpPlan, CloudKitCleanUpPhase, and CloudKitCleanUpProgress types for per-category cleanup tracking. 2026-03-23 20:45:57 -07:00
Brent Simmons d81876fa07 Do a couple small cleanups: add progress property; use consistent number formatting. 2026-03-23 20:41:28 -07:00
Brent SimmonsandClaude Opus 4.6 e027c009f9 Add per-category cleanup with progress reporting, remove dead code, fix orphan handling, use delete(recordIDs:).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:25:58 -07:00
Brent Simmons 24d02ab220 Add cleanUpCloudKit function call into the delegate to do the cleanup. 2026-03-23 20:06:16 -07:00
Brent Simmons 28bb8f7a25 Use import os rather than import os.log. 2026-03-23 11:23:15 -07:00
Brent Simmons 8ff1edd6eb Simplify compressArticleRecords to mutate CKRecords in place instead of copying into a new array. 2026-03-23 11:19:04 -07:00
Brent Simmons 9c22b8cdeb Remove unused RSCore and RSWeb imports from CloudKitArticlesZone. 2026-03-23 11:13:25 -07:00
Brent Simmons 07370980d4 Change daily to weekly in log, since it’s weekly now. 2026-03-23 11:11:09 -07:00
Brent Simmons b49ac6660a Use static JSONEncoder instead of allocating a new one every time. 2026-03-23 11:05:02 -07:00
Brent Simmons 903e9365f9 Use single matchAllPredicate instead of duplicating this code. 2026-03-23 11:03:20 -07:00
Brent Simmons b0ea8a3dc6 Create shouldDeleteContentRecord to deduplicate code. 2026-03-23 10:59:25 -07:00
Brent Simmons ba94958773 Deduplicate CloudKit status record parsing with a StatusRecordInfo.init. 2026-03-23 10:55:26 -07:00
Brent Simmons 941aeccdc9 Remove unused properties. 2026-03-23 10:52:38 -07:00
Brent Simmons 66423c5190 Remove long-obsolete migrateChangeToken and oldChangeTokenKey from CloudKitZone. 2026-03-23 10:49:48 -07:00
Brent Simmons 0dcfc92f9c Replace CloudKitSettings protocol with callback. 2026-03-23 10:46:51 -07:00
Brent Simmons 581a9125b7 Split CloudKit cleanup into incremental weekly path and unlimited cache-aware path for the stats UI. Bump incremental cleanup limit to 400. 2026-03-23 09:43:17 -07:00
Brent Simmons b9cc340e41 Switch from daily to weekly cleanup to cut down on cost of it. 2026-03-23 09:37:02 -07:00
Brent Simmons 8df4016d81 Share a cache between the CloudKit stats scan and the cleanup. Efficiency gain. 2026-03-23 08:55:28 -07:00
Brent Simmons d894ef1ee7 Use the already-scanned status records in the article content scan. Major efficiency gain during the scan. 2026-03-23 08:34:30 -07:00
Brent Simmons 481782646d Log errors and post error notifications during CloudKit scan. 2026-03-22 20:47:52 -07:00
Brent Simmons 140c2e9aa4 Allow Xcode to do its housekeeping. 2026-03-22 20:13:13 -07:00
Brent Simmons 5ea6d9639f Add a dryRun parameter to the iCloud records cleanup. 2026-03-22 20:12:07 -07:00
Brent Simmons e824c29f24 Call postSyncError in places where errors where being ignored. 2026-03-22 12:29:57 -07:00
Brent Simmons 1cdaf89263 Add fetchStats and cleanup to CloudKitArticlesZone. 2026-03-22 11:46:19 -07:00