Page MenuHomePhabricator

[L] Saved reading list personalized slide: You saved 25 articles
Closed, ResolvedPublic

Description

Background

The Apps team plans to explore if a personalized Wikipedia 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. In this slide, we'll show users how many total articles they have saved to reading lists within the App, based on information stored locally on their device, visible on the "Saved" tab.

Requirements
  • Total the number of articles a user has saved to their device on reading lists during the period January 1, 2024 - November 1, 2024
    • It does not need to include articles that have been un-saved
  • Only display the personalized version of this slide if a user has saved more than 3 articles

Nice-to-have

  • List out a few of the saved articles (randomly select 3, or choose first 3 alphabetically)
    • You have 25 articles saved, including Polar bear, Matterhorn, and Arosa. Each saved article reflects your interests and helps build a personalized knowledge base on Wikipedia.
  • Add collective slide for those who aren't eligible for personalized, with content:
    • We had over 31.6 Million reading lists. Active iOS App users had over 31.6 Million Reading lists this year. Adding articles to Reading lists allows you to access articles even while offline. You can also log in to sync reading lists across devices.
Designs

image.png (786×1,704 px, 130 KB)

Engineering Notes
  1. (data half) Ask Toni to add savedCount slide to remote config. Update remote config model to deserialize the object with the new key.
  2. (data half) In the data controller's populateYearInReviewReportData method, follow a similar pattern as the other slides to return a flag if the slide needs population (checking the slide's evaluated and remote config slide's isEnabled flags). If it needs population, call a new method that pulls a count of the user's saved articles from the year. Be sure to filter this count by the remote config's start and end dates, similar to the other slides. Save this count as metadata for that slide item. Then set “evaluated = yes”. Set display = yes if user has saved any articles that year.
  3. (UI half) In the getPersonalizedSlides method of YearInReviewCoordinator, fetch the persisted model from previous bullet point. If display = yes, build and return a YearInReviewSlideContent model for this data (using the report model's metadata to get the count). Ensure slide content model is inserted into the correct order when building up WMFYearInReviewViewModel in the coordinator's start() method.

Note: The thing that is different about this slide versus other slides (like for example, the reading count slide), is that the saved article data lives in the app-side Core Data stack instead of WMFData's Core Data stack. This means, in step 2 above, the data controller may need to ask a delegate (or call a closure) that returns the saved articles count. From the WMFAppViewController, the total saved articles count (without filtering for start date / end date) can be obtained by calling dataStore.savedPageList.numberOfItems. We will need to create a new method in MWKSavedPageList that allows filtering by start date / end date.

Event Timeline

HNordeenWMF renamed this task from Personalized slide: You saved 25 articles to Saved reading list personalized slide: You saved 25 articles.Sep 30 2024, 6:46 PM
Tsevener updated the task description. (Show Details)

@HNordeenWMF

Question from sync:

Is this count all articles saved at that point in time of the report generation? For example, if they saved an article then unsaved it a month later, we won't be able to count that.

Total should include all articles read

Easiest is just a list of articles they currently have saved. We do have the date that they saved it. If they tap Explore > Featured Article > Save button without reading it, is it ok if this is still counted?

Tsevener renamed this task from Saved reading list personalized slide: You saved 25 articles to [L] Saved reading list personalized slide: You saved 25 articles.Oct 3 2024, 6:28 PM

@Tsevener
All articles currently saved works. Within that, can it be filtered to those with a date added during the year of 2024? Or would it be all time.

@HNordeenWMF Thanks! Yep, we can filter it to just 2024.

Data-side can be started using old designs as reference. Move to blocked and waiting once ready for updated illustrations.

HNordeenWMF raised the priority of this task from Low to Medium.Nov 15 2024, 7:57 PM

@Mazevedo question for the FAQ: if a user is logged-in and has Synced reading lists turned on, will their total be their account total (all devices), or just the total from the current device? Whichever is easier works for me, just want to document it.

Also note: this slide will only ever be seen by logged-in folks

@HNordeenWMF When the reading lists sync, they will be stored locally and considered for the total. If it's not synced, and you have different devices with different articles, we will consider only what we have persisted on the current device.

@Tsevener we can move these on, since the new illustrations will be added in T381331