feat(history): port the cu-10 game history screen with live filtering#25
Merged
Conversation
Wires the History destination to a real screen rendering the search
input, two filter groups, summary strip and round list from the
mockup.
* Game filter chips (All + the 5 games) live in a FlowRow so the
six chips wrap to a second line on phone widths.
* Result filter chips (All / Wins / Losses) stay on a single line.
* The search input matches the round id and the game label by
substring; combined with the filters it drives a derivedStateOf
over the round list.
* The summary strip stays aggregated over the full unfiltered set
(the mockup shows 128 rounds even with five rows visible).
* Each round row uses StackCard's leftAccent stripe (ok for wins,
danger for losses), shows the bet / payout / multiplier breakdown
(Prediction for Coinflip), and routes through onOpenRound to
Route.RoundDetail.build(id) when tapped.
* An EmptyState falls back when filters + search yield zero matches.
Extracts GameKey + RoundOutcome from feature/lobby/LobbyUiState into
a shared `model` package so lobby's recent activity and history's
round filter resolve the same domain types instead of cross-feature
importing.
Adds a `wrap` flag to FilterChipRow that switches the inner layout
from Row to FlowRow without disturbing the existing scrollable mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onOpenRoundtoRoute.RoundDetail.build(id); anEmptyStatefalls back when the active filters + search yield zero matches.GameKeyandRoundOutcomeout offeature/lobby/LobbyUiStateinto a sharedmodelpackage so lobby's recent activity and history's round filter resolve the same domain types.wrapflag toFilterChipRowthat switches the inner layout fromRowtoFlowRowwithout touching the existing scrollable mode.Notes
derivedStateOf. The summary strip stays aggregated over the full unfiltered set (mockup shows 128 rounds even with only the five preview rows visible).Test plan