User story
As a logged-in reader of Wikipedia, I want to see a timeline of my recent reading behavior so that I retain access to reading "history", and have the ability to see my entire article history with Wikipedia in one place.
Requirements
- When a user taps their articles read insight at the top, navigate them to Timeline
- At the bottom of the activity tab display a timeline of users reading history in order by day and time with the most recent day at the top
- Show to logged-in and logged-out users. Prompt to log-in for logged-out users will be built on separate task (T407010)
- Tapping on an article that you've viewed takes you to that article
- There should be sections within the timeline by day
- Show headers for Today and Yesterday with sub-headers of the Month, Day and Year in local format
- For all dates previously, show the header with the Month, Day, and Year in local format
- Sections on timeline do not need be pinned to stay in view
- Timeline can load as user scrolls to optimize for performance
- It's acceptable to only have the most recent 1000 entries represented in the timeline
- Show a loading spinner if it takes more than .5 seconds to load the timeline
- If someone navigates to one of the articles from the timeline and then "Back' to Activity, it should immediately be reflected in the timeline for that day (it does not get removed from the previous day)
- Articles should only be listed once per day if there are repeat visits on the same day
- Articles can appear repeated on multiple days if they were visited on multiple days
- Similar to history, this timeline should never clear out automatically.
- On the backend, we should continue to record their entire reading history locally on device (not limited to 1000 most recent items)
- Users can swipe to delete an item from their viewing history.
- Empty state is being built on a separate story: T409200
Boilerplate requirements
- Should lay out well with long translations. Truncate, wrap text, or scroll where necessary.
- Should change colors according to multiple themes
- Should navigate easily and have understandable accessibility labels for Voice Over
- Should lay out well on larger font sizes. Truncate, wrap text, or scroll where necessary.
Nice to have:
- If they navigate back to Activity immediately (1 pageview) after opening an article from Timeline, remember their scroll position
- Long-press preview on items in Timeline with Open, Save for later, and Share (same as current "History" longpress)
Designs
Reference
Android implementation: T399767
Engineering notes
(Moved into Eng subtasks)
Testing notes
Testable in latest TestFlight 7.8.6 (white icon) build.
Use developer settings "Show Activity Tab" toggle to activate
