Sports widget: reorder pager cards to lead with celebrations and bracket finishers
Categories
(Firefox for Android :: Homepage, enhancement)
Tracking
()
People
(Reporter: skhan, Assigned: skhan)
References
Details
(Whiteboard: [fxdroid][group3][world-cup-phase2])
Attachments
(3 external files)
The sports widget pager currently sorts cards in three coarse buckets (LIVE > PAST > UPCOMING) with chronological order within each. This buries the most-relevant cards in several end-of-tournament scenarios.
Desired ordering (single rule for both followed-team and no-team views):
- Live matches (chronological)
- Champion card — Final decided with TournamentWinner outcome
- Third Place card — TPP decided with ThirdPlace outcome (independent of #2)
- Upcoming bracket-finishing matches by date (TPP Sat before Final Sun)
- Past matches reverse-chronologically (newest first), excluding any card pinned above
- Other upcoming matches chronologically
Scenarios this should fix:
- Follow team in Final, Final ended -> Champion -> Third Place -> SF -> QF -> R16 -> Group (currently champion is last)
- No team, Final ended -> Champion -> Third Place (currently TPP before Final because TPP is Saturday)
- Follow team, Final live, TPP decided -> Live Final -> Third Place -> SF -> QF -> R16 -> Group (currently past is oldest-first so Group comes first)
- Follow team in Final, Friday before kickoff -> Upcoming TPP -> Upcoming Final -> SF -> QF -> R16 -> Group (currently bracket finishers are at the end)
- No team, Saturday after TPP -> Third Place -> Upcoming Final (currently TPP is in past bucket which appears before upcoming)
Lives in MatchCardBuilder.orderedForPager. Should pass 7 scenario tests added to MatchCardBuilderTest.
Updated•5 months ago
|
The pager previously sorted cards into three coarse buckets (LIVE > PAST >
UPCOMING) with chronological order within each. This buried the most-relevant
cards in several end-of-tournament scenarios -- the champion card landed last
in a long followed-team pager; an upcoming Final the user's team is about to
play landed at the very end; and the no-team view showed TPP before Final
purely because Saturday precedes Sunday.
Replace orderedForPager with a single rule applied to both views:
- Live matches (chronological)
- Champion card (Final decided, TournamentWinner outcome)
- Third Place card (TPP decided, ThirdPlace outcome; independent of #2)
- Upcoming bracket-finishing matches by date (TPP Sat before Final Sun)
- Other past matches reverse-chronologically, so the team's most recent KO
round sits next to the celebrations rather than buried under group-stage
history - Other upcoming matches chronologically
Adds seven scenario tests covering the followed-team and no-team paths
across the pre-tournament, mid-tournament, between-TPP-and-Final, and
post-Final phases.
Updated•5 months ago
|
Comment 3•5 months ago
|
||
| bugherder | ||
The pager previously sorted cards into three coarse buckets (LIVE > PAST >
UPCOMING) with chronological order within each. This buried the most-relevant
cards in several end-of-tournament scenarios -- the champion card landed last
in a long followed-team pager; an upcoming Final the user's team is about to
play landed at the very end; and the no-team view showed TPP before Final
purely because Saturday precedes Sunday.
Replace orderedForPager with a single rule applied to both views:
- Live matches (chronological)
- Champion card (Final decided, TournamentWinner outcome)
- Third Place card (TPP decided, ThirdPlace outcome; independent of #2)
- Upcoming bracket-finishing matches by date (TPP Sat before Final Sun)
- Other past matches reverse-chronologically, so the team's most recent KO
round sits next to the celebrations rather than buried under group-stage
history - Other upcoming matches chronologically
Adds seven scenario tests covering the followed-team and no-team paths
across the pre-tournament, mid-tournament, between-TPP-and-Final, and
post-Final phases.
Original Revision: https://phabricator.services.mozilla.com/D303821
Updated•5 months ago
|
The pager previously sorted cards into three coarse buckets (LIVE > PAST >
UPCOMING) with chronological order within each. This buried the most-relevant
cards in several end-of-tournament scenarios -- the champion card landed last
in a long followed-team pager; an upcoming Final the user's team is about to
play landed at the very end; and the no-team view showed TPP before Final
purely because Saturday precedes Sunday.
Replace orderedForPager with a single rule applied to both views:
- Live matches (chronological)
- Champion card (Final decided, TournamentWinner outcome)
- Third Place card (TPP decided, ThirdPlace outcome; independent of #2)
- Upcoming bracket-finishing matches by date (TPP Sat before Final Sun)
- Other past matches reverse-chronologically, so the team's most recent KO
round sits next to the celebrations rather than buried under group-stage
history - Other upcoming matches chronologically
Adds seven scenario tests covering the followed-team and no-team paths
across the pre-tournament, mid-tournament, between-TPP-and-Final, and
post-Final phases.
Original Revision: https://phabricator.services.mozilla.com/D303821
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Description
•