Delete the saved-domains feature and the retired audit prototypes !15

merged merged by cmc on 2026-10-24 06:10 UTC · krz/domain-dig:delete-saved-domains into main

Discussion

cmc

Closes A8 under D8.

SavedDomainsView had no entry point anywhere in the app, so the bookmark button in ContentView wrote to a list the user could never open — write-only from their side. Recent searches already cover "I looked at this" and tracking covers "I care about this".

Removed across seven files: the button, isCurrentDomainSaved, toggleSavedDomain, removeSavedDomains, the view, the field in AppSettingsSnapshot, the field in the CloudKit app-settings record, the legacy-backup decode path, two lifecycle counts, and the merge rule in CloudSyncMerge.

AppSettingsSnapshot.savedDomains was non-optional, so dropping it keeps older backups and existing remote records decodable — an unknown key is ignored.

What a user loses: the button disappears, and anyone who had bookmarked domains keeps an orphaned savedDomains array in UserDefaults that nothing reads. Nothing observable, since the list had no screen.

That is now the second orphaned key from these deletions, after usageCredits.ledger from !11. Both clear on a data reset, and W5's store migration is the right place to purge them rather than bumping the schema version twice for housekeeping.

Also deletes AuditMode.swift and AuditModeView.swift — 336 lines of retired prototype kept in the tree and excluded from target membership — and their membershipExceptions entries, which would otherwise name files that no longer exist.

156 tests, 0 failures on iOS 18.6 and iOS 27.0.