Page MenuHomePhabricator

[M] Activity Tab (user story): Donations
Open, LowPublic3 Estimated Story Points

Description

User story

As a Wikipedia donor, I want to see my recent donation history within the “activity” tab, so that I know my contributions to Wikipedia are appreciated in the same way that edits are.

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. Based on a previous experiment called Contributions Dashboard, some app users feel favorably about having access to their donor information. The app is able to use local data to determine the last time a user clicked "donate". We will make this information accessible, but turn it off by default. We can consider adding other donor insights as we receive more feedback.

Requirements
  • Add a last in-app donation module
  • Use standard library (if available) or Match android logic for the date reference ("6 months ago", etc)
    • From DB: The granularity is by millisecond, but the message we show automatically adjusts by timescale, e.g. if the donation was today, it might show "X hours ago" or even "X seconds ago"; if it's less than a week ago, it might say "X days ago"; if it's several months ago it might say "X months ago", and if it's much longer than that, it might just show the full date "Jan 1 2025". This is handled automatically by our standard libraries.
  • Add last in-app donation to the "Customize" screen
    • Last donated should default to OFF
    • If we do not have a donation date for user or we perceive that they have not donated, do not show module and do not allow users to turn module on in "Customize"
  • When users click on donation module, take them to donate flow where we ask if they want to donate with Apple Pay or other payment method
  • Donations from this source should be identifiable, and counted as app menu donations overall
  • Provide users ability to clear donation history from Activity Tab in the overflow menu

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.
Designs

Donation module: https://www.figma.com/design/2ShBsmgWuzsDAeTafyKzg6/iOS---%3E-Activity-Tab?node-id=534-2599&t=bxjrOAqbkNdz6CBN-4

Last-in app donation in customize: https://www.figma.com/design/2ShBsmgWuzsDAeTafyKzg6/iOS---%3E-Activity-Tab?node-id=355-4457&t=AgNtmUPGd1BDt8k0-4

Ability to clear donation history in Overflow: https://www.figma.com/design/2ShBsmgWuzsDAeTafyKzg6/iOS---%3E-Activity-Tab?node-id=355-2118&t=AgNtmUPGd1BDt8k0-4

Reference

Android implementation: T399754

Engineering notes

Fetch Data

  • Add method to ActivityTabDataController to pull the last local donation. Internally have method call WMFDonateDataController’s loadLocalDonationHistory method to get this information.

UI
Navigation

  • Upon tapping module, kick off donate coordinator. DonateCoordinator is already set up display “Apple Pay” or “other payment method” action sheet when it is started, and note that this displays as a popover on iPad. The arrow in this popover has to point to the correct spot on iPad. You can reference other usages of DonateCoordinator to see how we did this (Year in Review, Profile, etc).
  • This also requires a network call before displaying the action sheet, so we might need to display a spinner somewhere this call is made. Typically we swap out the button's internal view with a spinner (Year in Review, Profile).

Event Timeline

Tsevener updated the task description. (Show Details)
Tsevener updated the task description. (Show Details)
Tsevener set the point value for this task to 3.
HNordeenWMF renamed this task from Activity Tab: Donation Module to Activity Tab (user story): Donations.Oct 28 2025, 11:07 PM
HNordeenWMF updated the task description. (Show Details)

@Tsevener two small changes here as I made this into a user story

  1. Added requirement: Provide users ability to clear donation history from Activity Tab in the overflow menu

The overflow menu is being built in a separate story, this is just adding that item in.

  1. Added requirement Add last in-app donation to the "Customize" screen

This is in case we build the customization screen (https://phabricator.wikimedia.org/T407681) first without the donation module, we'll add it in later.

Tsevener renamed this task from Activity Tab (user story): Donations to [M] Activity Tab (user story): Donations.Oct 30 2025, 1:58 PM
HNordeenWMF lowered the priority of this task from Medium to Low.Oct 31 2025, 9:55 PM
HNordeenWMF raised the priority of this task from Low to Medium.Dec 12 2025, 5:49 PM
HNordeenWMF lowered the priority of this task from Medium to Low.Jan 13 2026, 5:19 PM