User story
As a Wikipedia editor, I want my activity tab to include statistics about my all time impact, similar to how I see on my newcomer homepage, so that I can understand the impact I’m having on the Wikis.
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
- Insights should be for their primary language Wikipedia, and the language Wikipedia should be notated in the Header
- Add the All time impact module
- Not tappable
- No time-limit on data
- Contains the elements
- Total Edits
- Thanks Received
- Best Edit Streak (number of consecutive days of editing)
- Last time edited
- Your recent activity (last 30 days)
- Filter data to last 30 days
- Views on articles you’ve edited
- Filter data to last 30 days
TS Changes
While the Growth impact module API call is in progress, still show empty / blank editing modules with a centered spinner in each one.
If the call fails:
If server responds with an error, replace spinner with an error label in the module (need mock for this).
If user doesn't have an Internet connection, replace spinner with an error label in the module (figma) Also present our existing "No internet connection" toast/snackbar at the top. (screenshot).
For loading state: See discussion at https://wikimedia.slack.com/archives/C4DDMJ9CH/p1768424041628099
For no connection error: We are using our existing "No internet connection" snackbar, built in T407676: [M] Activity Tab (user story): Total impact across projects
- Empty states: if there is no data to show the user
- Keep the "All time impact" module with null values - match design to figma
- Hide the "Most viewed since your edit", "Your recent activity" and "Views on articles you've edited" modules
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
- Graph for "Your recent activity"
- Graph for "Views on articles you've edited"
Designs
With Charts: https://www.figma.com/design/2ShBsmgWuzsDAeTafyKzg6/iOS---%3E-Activity-Tab?node-id=355-1631&t=AgNtmUPGd1BDt8k0-4
Backup chartless version: https://www.figma.com/design/2ShBsmgWuzsDAeTafyKzg6/iOS---%3E-Activity-Tab?node-id=757-2397&p=f&t=AgNtmUPGd1BDt8k0-0
Reference
Testing notes
Review in the latest Wikipedia TestFlight build 7.9.0. Functionality is merged starting in build 5942.