Homepage sports debug tool improvement - add an apply button to session
Categories
(Firefox for Android :: Homepage, task)
Tracking
()
People
(Reporter: skhan, Assigned: skhan)
References
Details
(Whiteboard: [fxdroid][group3][world-cup-phase2])
Attachments
(3 external files)
What changes
Debug drawer ("Homepage Sports Widget Tool")
- New Use mock World Cup server switch. When off, the widget hits production Merino (unchanged behaviour). When on, the widget hits the GCP-hosted mock at
https://worldcup-mock-894454592292.us-east1.run.app/<session>/api/v1/wcs/.... - New Mock server session text field. QA enters the session id printed by the mock server's web UI (e.g. jolly-narwhal-39).
- New Apply session button next to the field. Persists the session and triggers a fresh fetch. Typing alone does not trigger a network call, and toggling the mock-server switch alone does not either — only Apply
does, so a partially-typed session can't fire a half-configured request.
Updated•6 months ago
|
Comment 7•5 months ago
|
||
| bugherder | ||
Comment 8•5 months ago
|
||
firefox-beta Uplift Approval Request
-
User impact if declined/Reason for urgency: Beta users get a confusingly silent Sports Widget when network or server failures hit during World Cup viewing. Specifically:
- Offline: the widget keeps showing the countdown promo / "Follow your team" card / stale schedule with no indication that the data couldn't be fetched. The user has no signal that anything went wrong.
- 5xx server error: same — the widget silently falls back to whatever was previously rendered, with no Refresh-driven recovery path.
- Live-match refresh button depends on this patch to have an error state to dismiss; without it, the button is non-functional during failures.
- Recovery after a transient offline blip doesn't happen automatically — the error banner persists until the user manually taps Refresh or restarts the app (the ErrorStateCleared flow that retires stale banners
on reconnect is part of this patch).
World Cup kicks off 2026-06-11, when traffic and live-data dependency are at their peak. Without this patch, every transient backend issue degrades the experience with no in-app recovery. This is one of the items
on QA's pre-launch checklist for the feature. -
Code covered by automated testing?: yes
-
Fix verified in Nightly?: no
-
Needs manual QE testing?: yes
-
Steps to reproduce for manual QE testing: Setup: Install beta build with the patch. Enable the Homepage Sports Widget (Settings → Homepage). Enable the secret debug menu (Settings → tap "About Firefox" logo 5x → toggle on).
Test — Offline triggers the error card and auto-recovers on reconnect
Run this once with each phase toggle:
- Debug drawer → Sports Widget section → toggle either "World cup started" ON or "One week to World Cup" ON (test both).
- Wait for the widget to populate with the schedule / match cards.
- Background the app, enable airplane mode, return to Home.
- Expected: pager collapses to a single error card ("you're offline") with a Refresh button. Match cards and promos are suppressed.
- Background the app, disable airplane mode, return to Home.
- Expected: error card disappears automatically and the widget returns to its normal state. No Refresh tap required.
-
Risk associated with taking this patch: low
-
Explanation of risk level: Changes are scoped to home/sports/ UI and middleware; behind the same Nimbus feature flag (enableHomepageSportsWidget) that gates the whole widget. Unit-test coverage was added in the same patch for
the reducer, middleware, and error-UI behavior. -
String changes made/needed?: no
-
Is Android affected?: yes
Original Revision: https://phabricator.services.mozilla.com/D302142
Updated•5 months ago
|
Updated•5 months ago
|
Comment 10•5 months ago
|
||
| uplift | ||
Comment 11•5 months ago
|
||
Verified as fixed on the latest Firefox for Android Nightly 153.0a1 from 5/28, using a Samsung Galaxy A56 (Android 16).
These are the tested scenarios:
- Debug drawer → Sports Widget section → toggle either "World cup started" ON or "One week to World Cup" ON (test both).
- Wait for the widget to populate with the schedule / match cards.
- Background the app, enable airplane mode, return to Home.
- Expected: pager collapses to a single error card ("you're offline") with a Refresh button. Match cards and promos are suppressed.
- Background the app, disable airplane mode, return to Home.
- Expected: error card disappears automatically and the widget returns to its normal state. No Refresh tap required.
| Assignee | ||
Comment 12•5 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D302142
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 13•5 months ago
|
||
| uplift | ||
Updated•5 months ago
|
Comment 14•5 months ago
|
||
Verified as fixed on the latest Firefox for Android Beta 152.0b6, and 151.0.3 build 1, using a Pixel tablet (Android 16), and a Samsung Galaxy A56 (Android 16).
The "Apply" option is active and available as soon as "Use mock World Cup server" toggle is enabled.
Updated•5 months ago
|
Description
•