####User story
As a logged-out reader, I want to keep access to my reading history so I can see what I’m reading. Secondly, I want to learn that there are more insights available if I’m logged in, so that I can make a decision on whether or not to create an account.
####Background
The team is testing an activity tab that would add reading insights to existing history tab with the goal of deepening engagement and increasing retention of readers.
####Requirements
- Show logged-out users and temp-account users a modified version of the activity tab that has only the Timeline available
- Timeline should only show only reading history
- Users can swipe to delete items from their timeline (no other swipe actions required)
- Show log-in prompt to "See more reading and editing insights" at the top of the page
- Users can close this, and do not see it again
- If users close this, the timeline moves up to the top of the page
- If a user taps "Log in" or "Create an account"
- Present the current login view or current create account view on top of the activity tab when tapping buttons in the prompt.
- If the user successfully logs in or creates an account through these, they should land back on the activity tab
- The activity tab should refresh so that: 1. login prompt module is removed 2. Reading, saving, categories, and editing modules are inserted and 3. timeline is updated to add saved articles.
**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 a user edits becomes a temporary account, show another impression of the log-in prompt
####Designs
https://www.figma.com/design/2ShBsmgWuzsDAeTafyKzg6/App---%3E-Activity-Tab?node-id=355-3287&t=oLmEycZgBYD4WSQE-4
####Reference
Android implementation: T399625
####Engineering notes
- Try to use our existing WMFSmallButton component for prompt buttons, let it truncate or wrap as it already is doing.
- If non-permanent, add “See more reading and editing insights” view
- Needs pill button, login button, X button, title, subtitle.
- X button should make it disappear for user forever, persist this as new user defaults flag.
- Create account / login takes you to appropriate flow
- If non-permanent, ensure editing and saved article rows are not shown in timeline.
- Upon successful login or create account, entire activity tab should refresh so login-walled data now appears. Login prompt should disappear.
- Ensure from logged-in-state, logging out refreshes activity tab so that login-walled data disappears, and prompt re-appears (if they haven't already tapped X).