Skip to content

refactor(lobby): polish pass after PR #22#23

Merged
netqo merged 2 commits into
devfrom
refactor/lobby-coinflip-icon
May 27, 2026
Merged

refactor(lobby): polish pass after PR #22#23
netqo merged 2 commits into
devfrom
refactor/lobby-coinflip-icon

Conversation

@netqo
Copy link
Copy Markdown
Owner

@netqo netqo commented May 27, 2026

Summary

  • GameKey.iconRes() previously returned the Crash drawable for Coinflip with a note that the branch only existed to keep the when exhaustive. That was a latent bug: RecentRoundRow walks every GameKey, so a Coinflip round would render the wrong icon. Adds a proper ic_game_coinflip.xml drawable (two overlapping circles, heads / tails) and points the when branch at it.
  • Drops the leftover /* notifications sheet deferred */ comment at the LobbyHeader call site since the empty lambda already documents the intent.
  • Baseline-aligns the two meta labels under each game card title (Modifier.alignByBaseline() on both Texts). The right label uses tnum digits and was rendering at a different vertical position than the plain-letter left label under default Top alignment; baseline alignment is the typographically correct fix.

Test plan

  • ./gradlew assembleDebug
  • ./gradlew ktlintCheck
  • ./gradlew detekt
  • Visual confirmation on device for the label alignment

netqo added 2 commits May 27, 2026 13:45
GameKey.iconRes() returned the Crash drawable for Coinflip with a note
that the branch only existed to keep the when exhaustive. That was a
latent bug: RecentRoundRow walks every GameKey, so a Coinflip round
would render with the wrong icon.

Adds a proper coinflip drawable (two overlapping circles) and points
the when branch at it. Also drops the leftover "notifications sheet
deferred" comment at the LobbyHeader call site since the empty lambda
already documents the intent.
The right meta label (RTP / Last / Up to) uses tnum digits while the
left meta label (European, Classic, Multiplier, 5x5 Grid) uses only
letters. Plain Top / Bottom row alignment renders the two with a
visible vertical offset because the two glyph sets report different
line metrics. alignByBaseline pins them to the typographic baseline
so they read as a single label pair.

Coinflip's HEADS . TAILS keeps the explicit Alignment.Bottom modifier
because its row mixes the badge, the title+subtitle column and the
meta label - baseline alignment would tie it to the title row.
@netqo netqo changed the title refactor(lobby): drop dead Coinflip icon fallback refactor(lobby): polish pass after PR #22 May 27, 2026
@netqo netqo merged commit 7ba67a9 into dev May 27, 2026
3 checks passed
@netqo netqo deleted the refactor/lobby-coinflip-icon branch May 27, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant