Force all users back to the default indicator icon#343
Merged
Conversation
PR #338 removed the Settings UI for picking a custom indicator icon but left the persisted PNG and the loader behind, so anyone who had chosen a custom image in a previous build was still seeing it with no way to revert. Rip out the feature end-to-end and scrub the saved blob on launch so the default cat is what everyone sees now. Removes the customIndicatorImage property, its setter/clearer, the PNG loader, and the IndicatorIconImageProcessor support + tests; the indicator view and ActivationIndicatorController shed their no-longer- needed customImage parameters. SuggestionSettingsModel's init now deletes the cotabbyCustomIndicatorImageData UserDefaults entry so the storage doesn't linger.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #338. That PR hid the Settings UI for changing the indicator icon, but anyone who had picked a custom image in a previous build still saw it at runtime, because the persisted PNG and the loader were left intact. This PR removes the feature end-to-end and scrubs the saved blob on launch so the default cat is what everyone sees from now on.
Validation
Linked issues
Refs #338.
Risk / rollout notes
cotabbyCustomIndicatorImageDataUserDefaults entry is removed on launch. Users who liked their custom icon lose it. That's the explicit intent.xcodegen generatebecause two source files were deleted (IndicatorIconImageProcessor.swiftand its test). Noproject.ymlchanges were needed.Greptile Summary
This PR completes the removal of the custom indicator icon feature by cleaning up the backend after the previous PR hid the Settings UI. It deletes
IndicatorIconImageProcessor.swiftand its tests, removes thecustomIndicatorImageproperty and all related persistence and mutation methods fromSuggestionSettingsModel, and simplifiesFieldEdgeIconIndicatorViewto always render the default cat icon.SuggestionSettingsModel.init(), removing the previously-persisted PNG blob from UserDefaults on every launch so users who had picked a custom icon are automatically reset to the default.AppDelegate,ActivationIndicatorController) are updated to drop the removedcustomImageparameter, and deadAppKitimports in the model and view are cleaned up.Confidence Score: 5/5
Safe to merge — the change is a clean, complete feature removal with no remaining references to the deleted code.
Every layer of the removed feature is addressed: the processor, its tests, the model property and methods, the view parameter, the call site in AppDelegate, and the project file. The UserDefaults migration is idempotent and runs on every launch, so no user running an older build is left with a stale blob. No logic was rewritten — only deleted — which keeps the risk surface small.
No files require special attention.
Important Files Changed
Sequence Diagram
sequenceDiagram participant App as App Launch participant SSM as SuggestionSettingsModel.init() participant UD as UserDefaults participant AD as AppDelegate participant AIC as ActivationIndicatorController participant View as FieldEdgeIconIndicatorView App->>SSM: init(configuration:userDefaults:) SSM->>UD: resolve all settings SSM->>UD: persist resolved settings SSM->>UD: removeObject(cotabbyCustomIndicatorImageData) migration Note over UD: persisted PNG blob deleted (one-way) App->>AD: focusedFieldChanged(context:) AD->>AIC: show(enabled:caretRect:inputFrameRect:) Note over AD: customImage parameter removed AIC->>View: FieldEdgeIconIndicatorView() Note over View: Always renders default cat icon View-->>AIC: dark chip + cat glyphReviews (1): Last reviewed commit: "Force all users back to the default indi..." | Re-trigger Greptile