Background
In November 2023, we broke the AMC drawer (T351362) that prompted people to try the advanced mobile mode when clicking the desktop site link in footer or the history link.
Since then we have been maintaining a large amount of code (1000+ lines) that impacts user performance for no good reason. Note this code is enabled on Minerva so we'll need to disable that code first or consider this code in our removal.
Currently if you set:
$wgMFAmcOutreachMinEditCount = 0; $wgMFAmcOutreach = true;
then the drawer shows but clicking it has no effect.
This was disabled in production.
User story
- As a developer I don't want to maintain unused code
- As a user I don't want to download unnecessary code.
Requirements
- Remove`tests/node-qunit/mobile.startup/amcOutreach/amcOutreachDrawer.test.js` and tests/node-qunit/mobile.startup/amcOutreach/AmcEnableForm.test.js
- src/mobile.startup/promoCampaign/promoCampaign.js has been removed
- All messages prefixed with mobile-frontend-amc-outreach- have been removed from i18n folder and extension.json
- src/mobile.startup/amcOutreach folder has been removed
- Configuration flags $wgMFAmcOutreach and $wgMFAmcOutreachMinEditCount have been dropped and the README has been updated.
- The includes/Amc/Outreach.php file has been removed.
- The service MobileFrontend.AMC.Outreach is removed.
- The style resources/mobile.startup/amcOutreach/amcOutreachDrawer.less has been removed.
- When visiting Special:MobileOptions I should see a control for opting into advanced mode.
- Code has been recompiled using npm run build and runs without any JS errors when viewing an article page and the page renders without any CSS error.
Requirement
All Advanced Mobile Contributions (AMC) Outreach code and configuration must be removed from MobileFrontend so that the outreach overlay no longer appears. Advanced Mobile mode must remain functional, and the change must be validated through Pixel UI regression tests to ensure no unintended visual regressions occur.
BDD
Feature: Remove AMC Outreach overlay from MobileFrontend
Scenario: AMC Outreach overlay removed and Advanced Mobile mode remains functional
Given all AMC Outreach code and configuration have been removed
When a user visits any article or Special:MobileOptions
Then no AMC Outreach overlay or prompt appears
And Advanced Mobile mode can still be enabled or disabled in settings
And Pixel UI regression tests confirm no new visual differencesTest Plan
Test Case 1: Verify AMC Outreach overlay does not appear (via Pixel UI regression tests)
- Run Pixel UI regression tests for Minerva mobile skin on beta environment
- Open an article page, e.g. https://en.wikipedia.beta.wmcloud.org/wiki/Cat?useformat=mobile
- Compare visual snapshots before and after AMC Outreach code removal
- AC1: No AMC Outreach drawer, banner, or overlay is present in the rendered page
Test Case 2: Verify Advanced Mobile mode remains functional
- Navigate to https://en.wikipedia.beta.wmcloud.org/wiki/Special:MobileOptions
- AC2: The “Advanced mode” toggle control is visible and operational
- AC3: Enabling or disabling Advanced mode updates settings successfully without console or UI errors
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T402470#11342973 |
| 2 | ✅ | T402470#11342973 |
| 3 | ❓ | T402470#11342973 |
Design
- Add mockups and design requirements
Acceptance criteria
- Add acceptance criteria
Communication criteria - does this need an announcement or discussion?
- Add communication criteria
Rollback plan
- What is the rollback plan in production for this task if something goes wrong?
This task was created by Version 1.2.0 of the Web team task template using phabulous


