Background
This year we would like to offer logged-in users their top read articles for Year in Review.
Requirements
- User must be logged-in
- This slide is agnostic of primary language
- User should see the top 5 articles they visited most frequently
- Use placeholder image until contractor provides new image
- [Added Oct 14] Only show this slide if the user has a minimum of 1 article that they have visited multiple times.
- If they only have 1 article they've visited more than 1 time, then we just show that 1 article. If they only have 2 articles they've visited multiple times, we show those two articles, etc.
- If they do not have at least 1 article the've visited multiple times, hide the slide.
Engineering Notes
- Create a new slide data controller for populating and persisting this new slide data. Data can be fetched from the WMFPageViewsDataController's fetchPageViewCounts method. Ensure the top 5 articles are persisted with this slide data.
- Create new V3 slide
- Lean on WMFYearInReviewSlideStandardViewModel + WMFYearInReviewSlideStandardView for this. Ensure new slide is only inserted when V3 developer setting is enabled (slides are inserted in the WMFYearInReviewViewModel).
- Ensure sharing individual slide still works well
Test notes
- Delete all Wikipedia apps on device. Fresh install the app (White icon, 7.8.5). Ensure device is logged in.
- Navigate to a bunch of different articles varying amounts (note roughly which ones had the most visits)
- Enable YIR v3 in dev settings
- Navigate to profile
- Year in review
- Scroll through the slides until you see Your Top Articles slide
- Ensure they align with step 2
- Feel free to repeat 1-7 as needed to ensure changing of rankings

