Closed Bug 2041811 Opened 6 months ago Closed 5 months ago

Homepage sports debug tool improvement - add an apply button to session

Categories

(Firefox for Android :: Homepage, task)

All
Android
task

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox151 --- verified
firefox152 --- verified
firefox153 --- verified

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.
Assignee: nobody → skhan
Status: NEW → ASSIGNED
Pushed by skhan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/64eab1bee0ab https://hg.mozilla.org/integration/autoland/rev/7b851eee38bd Update Homepage Sports Widget tool in debug drawer to work with mock server r=android-reviewers,petru
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a3b8322cc209 https://hg.mozilla.org/integration/autoland/rev/058426716285 Revert "Bug 2041811, Bug 2041705 - Update Homepage Sports Widget tool in debug drawer to work with mock server r=android-reviewers,petru" for causing bc failures at browser_doorhanger_generated_password.js

Backed out by mistake, relanding now. Sorry!

.

Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d9bead32123f https://hg.mozilla.org/integration/autoland/rev/1203662752e7 Update Homepage Sports Widget tool in debug drawer to work with mock server r=android-reviewers,petru
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Flags: qe-verify+

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:

    1. Debug drawer → Sports Widget section → toggle either "World cup started" ON or "One week to World Cup" ON (test both).
    2. Wait for the widget to populate with the schedule / match cards.
    3. 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.
    1. 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

Attachment #9591105 - Flags: approval-mozilla-beta?
Attachment #9591105 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

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:

  1. Debug drawer → Sports Widget section → toggle either "World cup started" ON or "One week to World Cup" ON (test both).
  2. Wait for the widget to populate with the schedule / match cards.
  3. Background the app, enable airplane mode, return to Home.
  4. Expected: pager collapses to a single error card ("you're offline") with a Refresh button. Match cards and promos are suppressed.
  5. Background the app, disable airplane mode, return to Home.
  6. Expected: error card disappears automatically and the widget returns to its normal state. No Refresh tap required.
Attachment #9591771 - Attachment description: WIP: Bug 2041811 - Update Homepage Sports Widget tool in debug drawer to work with mock server → Bug 2041811 - Update Homepage Sports Widget tool in debug drawer to work with mock server
Attachment #9591771 - Flags: approval-mozilla-release+
Whiteboard: [fxdroid][group3][world-cup-phase2]

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
QA Whiteboard: [qa-triage-done-c153/b152]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: