Closed Bug 2033590 Opened 6 months ago Closed 6 months ago

[Homepage Sports Widget] - Create Domain models and Redux state

Categories

(Firefox for Android :: Homepage, task)

All
Android
task

Tracking

()

RESOLVED DUPLICATE of bug 2035104

People

(Reporter: skhan, Unassigned)

References

Details

Starting point: CountryData.kt exists with Country, Region, and countryFlagMap. Need to define the domain layer.

Create:

  • SportsMatch data class: homeTeam, awayTeam, homeScore, awayScore, status, venue, round
  • SportsTeam data class: name, countryCode, logoUrl
  • MatchStatus sealed class: PreTournament(timeUntilKickoff), Scheduled(dateLabel, timeLabel), Live(timeElapsed, location), Final, ExtraTime, Penalties, Eliminated
  • SportsWidgetState in AppState: selectedCountryCodes: Set<String>, matches: List<SportsMatch>, tournamentPhase: TournamentPhase (GROUP_STAGE, ROUND_OF_32, ROUND_OF_16, QUARTERS, SEMIS, THIRD_PLACE, FINAL)
  • Actions: CountriesSelected, MatchesUpdated, TournamentPhaseUpdated
  • Reducer for all the above
Blocks: 2033591
No longer blocks: 2033591
Status: NEW → RESOLVED
Closed: 6 months ago
Duplicate of bug: 2035104
Resolution: --- → DUPLICATE
Blocks: 2037227
No longer blocks: 2033589
You need to log in before you can comment on or make changes to this bug.