Page MenuHomePhabricator

Activity Tab: Donation Module
Closed, ResolvedPublic3 Estimated Story Points

Assigned To
Authored By
JTannerWMF
Jul 16 2025, 6:25 PM
Referenced Files
F66011002: Screenshot_20250911-101806.png
Sep 11 2025, 5:22 PM
Restricted File
Sep 10 2025, 10:48 PM
Restricted File
Sep 10 2025, 10:48 PM
F65847589: Screenshot_20250822_224811_Wikipedia Dev.jpg
Aug 23 2025, 5:49 AM
F65841945: Screenshot_20250823-033130.png
Aug 23 2025, 1:33 AM

Description

Context

The Android team will AB Test a new activity tab against our existing edit tab with the goal of deepening engagement and retention of readers and donors. 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
  • Module should be off by default
  • 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
  • When users click on donation module, take them to donate flow where we ask if they want to donate with Google Pay or other payment method
  • Instrument users clicks on donation module to donate form
  • Add parameter so we know if users donated via feature

figma

Event Timeline

Dbrant updated the task description. (Show Details)
Dbrant added a subscriber: SChekfa-WMF.
cooltey triaged this task as Medium priority.Aug 4 2025, 5:22 PM
cooltey set the point value for this task to 3.

Hi @JTannerWMF

When users click on donation module, take them to donate flow where we ask if they want to donate with Google Pay or other payment method

Do we want to have a separate campaign ID instead of the default appmenu campaign ID if users donate through the Activity tab?

this looks great, just one thing:

can we ensure that the Donate to Wikimedia Foundation button spans the width of the card, leaving 16px margin on either side of the button within the card? right now it's centered and narrower:

Screenshot_20250823-033130.png (1,080×2,340 px, 169 KB)

this looks great, just one thing:

can we ensure that the Donate to Wikimedia Foundation button spans the width of the card, leaving 16px margin on either side of the button within the card? right now it's centered and narrower:

Screenshot_20250823-033130.png (1,080×2,340 px, 169 KB)

The presentation looks good to me on my device. If I add 16dp horizontal margins to the button, it will make the button text to multiple lines (because the sentence is too long).

Would it be possible just to make it fit the width of card, like the following screenshot?

Screenshot_20250822_224811_Wikipedia Dev.jpg (1,080×2,340 px, 88 KB)

A note from the Android planning meeting:

From the Android planning meeting, the PM requested a change to the donation module, where it should be hidden from the Activity tab if the user has not made any donations in the app. This change also affects the Customize screen.

PR: https://github.com/wikimedia/apps-android-wikipedia/pull/5871 and it has been merged to the feature branch.

Thanks Cooltey I also updated the task. And Yes we do want to know if people donated via this feature.

@cooltey do you mind linking me to the APK where I can review? i'm not sure I can see it at the link earlier since it's been merged. TY

Tested on 2.7.50547-r-2025-09-09

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

I made a donation on OnePlus, and it was reflected immediately upon refreshing the activity tab. I have made two donations on the Pixel 6, but so far I have not seen the donation info on the Pixel 6. On both devices, I used Google Pay and saw the donation confirmation message (thank you for donating).

{F66005614}

{F66005615}

Hi @ABorbaWMF,

The donation module is off by default. Would you be able to check the settings of the Activity tab to see if the module is on?

@cooltey - Here are the screens from both. I do the toggle on one.

Screenshot_20250911-101806.png (1,080×2,400 px, 119 KB)

Screenshot_2025-09-11-13-17-59-54_2c49f68a4a6b3359d2a6bd122cb3bac6.jpg (1,080×2,400 px, 267 KB)

@Dbrant question on this one: did you always give the last donation date in Months? or how granular do you get if the last donation was days ago, or the current day.

@Dbrant question on this one: did you always give the last donation date in Months? or how granular do you get if the last donation was days ago, or the current day.

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.