Background
The alternative text experiment is only shown to users who have completed edits using the "Add an Image" feature, or on an article with an image lacking alt text. To drive more traffic to the experiment, we should promote the "Add an image" feature.
Task
- Display new feature announcement to all users with the primary languages of es, pt, fr, and zh Wikipedia upon first open of the app
- Time box to end of the experiment (5 November 2024)
Reference
Original task: T358894: [M] New feature announcement modal for Image Recommendations iOS
Engineering Notes
- We want to create a new flag to persist as a part of the WMFImageRecommendationsDataController. Update the model to add the new flag and add a new computed property for getting and setting this flag via the data controller (you can reference the original flag computed property if needed).
- Create a new method in ExploreViewController to present this new announcement if needed. You can reference the old one here. Add a conditional within this method to confirm that dataStore.languageLinkController.appLanguage.languageCode equals one of the target wikis from this task description (es, pt, fr, and zh) before presenting.
- At the call sites (1, 2), we need to continue to call the original presentImageRecommendationsFeatureAnnouncementIfNeeded method, but if that method failed to present for any reason, call the method created in step 2.
- Test Notes
- On an account with more than 50 edits (or go into the code and change it) -
- Set language to one of the target languages ["es", "pt", "fr", "zh"]
- Fresh install
- Launch app, go to a different tab, return to explore
- See pop up for add an image
- Navigate to a different tab, return to explore
- See pop up for add an image again