Background
The Apps team plans to explore if a personalized Wikipedia Year in Review feature that displays insights about a user's reading history, editing history, and donation history is engaging for App users, and inspires them to make a donation to the Wikimedia Foundation. Users can clear their reading history in the app, but we will also allow users to turn off and clear their Year in Review.
Requirements
- Add toggle into Settings called "Year in Review" that is automatically on. It can be added below "Explore feed" within Settings. Use SF symbol: timelapse. Reference for toggle → iOS Date & Time.
- If the toggle is turned off by the user:
- The toggle should remain in the app for target markets even when Year in Review feature has been disabled from the Config, so that for next year we can use the toggle as an "opt-out" mechanism
- Change "Hide this feature" from intro slide T376071 to "Learn more", and point to safari view, in users's language of https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/iOS/Personalized_Wikipedia_Year_in_Review/How_your_data_is_used, so users can find instructions on how to clear their Year in Review
Designs
Engineering Notes
- Update intro slide copy from "hide this feature" to "Learn more"
- Kick user out to Safari when when "Learn more" is tapped. (Note: in YiR coordinator, we can call navigationController.navigate(to: {url}, useSafari: true))
- Create new user defaults flag in WMFYearInReviewDataController (similar to how hasPresentedYiRSurvey works) for whether user is hiding feature or not
- Reference this flag in all the "should` WMFYearInReviewDataController methods (data population, entry point showing, feature announcement showing). Exit early if flag is turned on.
- Add toggle row in Settings, update user defaults flag when toggle pressed
- When toggle is turned on: Call a new YiR method that "clears out" their reports. Fetch all YiR report core data objects, clear out each slide's "data" field, and set each slide's evaluated = false and display = false.






