Closed Bug 2037222 Opened 6 months ago Closed 3 months ago

[meta] Homepage Sports Widget - Phase 2: Follow a team and View Schedule

Categories

(Firefox for Android :: Homepage, task)

All
Android
task

Tracking

()

RESOLVED FIXED

People

(Reporter: skhan, Unassigned)

References

(Depends on 9 open bugs)

Details

(Keywords: meta, Whiteboard: [fxdroid][world-cup-phase2])

Design: https://www.figma.com/design/Lmyd7U4KRQAsrhwrXQZ4mL/Mobile-Worldcup?node-id=985-431467&p=f&m=dev
Goals

  • Team selection flow
    User is presented with the FollowTeamPromoCard prompting them to pick a team or skip. Tapping "Follow your team" opens the country selector bottom sheet. Teams are grouped by confederation with flag icons and
    FIFA country codes. The selected team shows a checkmark indicator and can be deselected by tapping again. Eliminated teams are greyed out. Selection is persisted across app restarts.

  • "Following [Team]" card
    After a team is selected and the match schedule isn't fetched yet, the homepage displays the Following card: a SportCardHeader showing the selected team name and a flag, and description that states match info would be available soon
    When the schedule is fetched, a swipeable MatchCard
    carousel of upcoming and recent matches for that team. If no matches fall within the API window yet, a placeholder ("Check back for match schedule as tournament approaches") is shown instead.

  • Skip flow
    If the user skips team selection, the widget displays the general next scheduled match from the API (no team filter applied). The user can change their team at any time via the 3-dot overflow menu.

  • Widget overflow menu
    A 3-dot menu on the Following card exposes three actions: "Change team" (reopens the country selector), "Get custom wallpaper" (opens the relevant section in Settings), and "Remove" (dismisses the widget and
    disables it in Settings).

  • Real API integration
    Replace MockSportsRepository with WorldCupApiRepository backed by /api/v1/worldcup/matches. Matches are fetched using the selected team's FIFA key as the teams filter. . . Network errors surface an error state with the reload button

Depends on: 2031815
Depends on: 2035094
Depends on: 2035090
Depends on: 2034652
Depends on: 2034664
Depends on: 2037227
Depends on: 2035104
Depends on: 2033591
Depends on: 2033595
Depends on: 2037244
Depends on: 2037245
Depends on: 2037192
No longer depends on: 2037245
Depends on: 2037247
Depends on: 2033597
Depends on: 2033599
Depends on: 2037245
Depends on: 2037413
Depends on: 2037466
Whiteboard: [fxdroid][group3][world-cup-phase2]
Depends on: 2037816
Depends on: 2037817
Depends on: 2037818
Depends on: 2038296
Depends on: 2039380
Depends on: 2039769
Depends on: 2040403
Depends on: 2040429
Depends on: 2040620
Depends on: 2040711
Depends on: 2040825
Depends on: 2041156
Depends on: 2041488
Depends on: 2041531
Depends on: 2041537
Depends on: 2041541
Depends on: 2041544
Depends on: 2041581
Depends on: 2041615
Depends on: 2041705
Depends on: 2041688
Depends on: 2041655
Depends on: 2041811
Depends on: 2043299
Depends on: 2043514
Depends on: 2043585
Depends on: 2043638
No longer depends on: 2043638
Depends on: 2043663
Depends on: 2043750
Depends on: 2044091
Depends on: 2044439
Depends on: 2044622
Depends on: 2044970
Depends on: 2043740
Depends on: 2044981
Depends on: 2045659
Depends on: 2044743
Depends on: 2045922
Depends on: 2046148
Depends on: 2046970
Depends on: 2047473
Depends on: 2047933
Depends on: 2048297
Whiteboard: [fxdroid][group3][world-cup-phase2] → [fxdroid][world-cup-phase2]
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.