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.
Requirements
Create collective slide
- Display if we do not have a donation stored for the user
- "Donate" in top left corner launches donation flow similar to other slides
- "Done" and "Finish" should dismiss and show the survey (survey will be done as a part of T376319)
- Link in text "Learn more about what we do" launches in-app webview with donation button (will be done in a different subtask)
Create personalized slide
- Display if we do have a locally stored donation for the user
- "Finish" and "Done" should lead to the survey (survey will be done as a part of T376319)
- Link in text "Learn more about what we do" launches in-app webview. (will be done in a different subtask)
- Nice-to-have: remove donation button from this version
Engineering Notes
- Allow the slide UI component to display links in the body text. It may just be a matter of passing in markup (see Apple pay form fine print code). Ensure link uses correct link blue color for theming.
- Upon app resume method, create persisted slide object for personalized donate slide. Set slide data count value of local donation history count. Set evaluated = true, set display = true if count > 0.
- When we create the view models before presenting slides (see T376044), fetch the persisted model from previous bullet point. Insert the personalized slide if display = true, otherwise insert the collective slide.
- Upon tapping "Finish", ensure year in review is dismissed. Ensure survey is still presented properly.
