Background
We previously implemented the donation banner in T386767. However, a new issue has been identified: the donation banner feature flag is still being shown to logged-in users. This behavior is incorrect, as the banner should only be visible to anonymous users.
User Story
As a logged-in Wikipedia mobile user, I should not see the donation banner.
Requirements
- The donation banner should be hidden for logged-in users, regardless of the feature flag state.
- The banner should remain visible for anonymous users when the feature flag is enabled.
- The feature flag should continue to control banner visibility without affecting other functionalities.
BDD
Feature: Hide the donation banner for logged-in users
Scenario: Logged-in users do not see the banner
Given I visit a Minerva-skinned page as a logged-in user with the donation banner enabled
When I open the sidebar
Then I do not see the donation banner
Scenario: Anonymous users still see the banner
Given I visit a Minerva-skinned page as an anonymous user with the donation banner enabled
When I open the sidebar so the donation banner loads
Then the donation banner is displayed correctlyTest Steps
Test Case 1: Verify that logged-in users do not see the donation banner
- Log in to a Minerva-skinned wiki.
- Visit any page with the donation banner enabled.
- Open the sidebar.
- AC1: Confirm that the donation banner is not visible.
Test Case 2: Verify that anonymous users still see the donation banner
- Open an incognito window or log out.
- Visit a Minerva-skinned page with the donation banner enabled.
- Open the sidebar.
- AC2: Confirm that the donation banner is displayed correctly.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T388036#10616010 |
| 2 | ✅ | T388036#10616010 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ❌ | T388036#10650239 |
| 2 | ✅ | T388036#10650239 |
Design
No UI changes—this fix ensures proper banner visibility behavior.
Acceptance Criteria
- The donation banner is not visible for logged-in users.
- The donation banner is visible for anonymous users when enabled.
- Banner visibility behavior aligns with feature flag control.
- The fix is tested in the beta cluster before deployment.
Implementation Notes
- Ensure the skin-minerva-donate-banner-* messages do not render for logged-in users.
- Verify logic controlling the donation banner respects the logged-in state.
Rollback Plan
Revert changes if issues arise.
Created using the Web team task template via phabulous





