Page MenuHomePhabricator

Activity Tab: Create Time Spent Module
Closed, ResolvedPublic2 Estimated Story Points

Description

Context

The team is AB Testing an activity tab that would add reading insights to existing edit tab with the goal of deepening engagement and increasing retention of readers.

Requirements

  • The first module should be time spent reading for the week
  • It should be clear the time spent displayed is time spent using the app
  • Resetting time spent for the week should be based on local device timing

Event Timeline

Dbrant set the point value for this task to 2.Aug 11 2025, 4:47 PM
Seddon triaged this task as Medium priority.Aug 12 2025, 3:09 PM

Looks good on 2.7.50547-r-2025-09-09

Tested on Pixel 6 on Android 15 and OnePlus 8 on Android 13. Tested on all themes

@Dbrant Did ya'll have the beginning of the week always be Monday? Or is there a check for what country they're in and using Sunday if that's the start in that country.
https://stackoverflow.com/questions/35912105/how-can-i-determine-that-the-start-of-week-is-monday-or-sunday-in-different-cult

@Dbrant Did ya'll have the beginning of the week always be Monday?

Actually it looks like our logic is to show the time spent reading during the last 7 days, sidestepping the need to keep track of the start of the week.

Or is there a check for what country they're in and using Sunday if that's the start in that country.

Sure, there is such a check (in Kotlin, not just C#), but the check is not per country, but per device. (In the U.S. alone, I don't think there's consensus on whether the week starts on Sunday or Monday.)
Even though there are country- and culture-specific tendencies for the start-of-week day, each device allows the user to select it for themselves, and it can be any day, not just Sunday or Monday.

Great! We'll copy with past 7 days on iOS.