feat(wallet): port the cu-04 wallet screen with deposit / withdraw / transactions tabs#24
Merged
Conversation
…transactions tabs
Wires the Wallet destination to a real screen rendering the three tabs
from the mockup. The screen body lives across four files so each tab
stays focused and the detekt function-count budget is respected:
* WalletScreen: title header, balance hero (Available + Locked +
currency dropdown), tab strip with a per-text drawBehind underline
so the row never collapses inactive tabs to a single column.
* WalletDepositTab: mock QR (Canvas dot grid + finder squares + STACK
glyph in the centre), monospace address row with square share /
copy action buttons (height pinned via IntrinsicSize.Max so the
buttons match the wrapped address's height as squares), Polygon
network chip, lossy-network warning.
* WalletWithdrawTab: destination + amount form with quick-amount
chips ($10 / $25 / $50 / $100 / MAX, all equal width via flex
weight 1f), inline available balance, fee summary, KYC gate
(linked to the Kyc placeholder route), disabled Withdraw button.
* WalletTransactionsTab: FilterChipRow (All / Deposits /
Withdrawals), tx rows backed by StackCard with the win/loss/
pending left accent stripe, EmptyState shown when the active
filter has no rows.
Promotes CurrencyDropdown out of LobbyScreen into ui/components so
both the lobby balance block and the wallet balance block share a
single implementation.
Clipboard write, share intent, real form validation and signing are
deferred to the wallet repository in a later card; the visual surface
and tab behaviour ship now.
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
CurrencyDropdownout ofLobbyScreenintoui/componentsso the lobby and wallet balance blocks share one implementation.Notes
Modifier.drawBehindon the Text itself rather than wrapping in a Column with afillMaxWidthindicator (the wrapped variant collapses the other two tabs to one character of width).Modifier.height(IntrinsicSize.Max)so the share / copy buttons can resolvefillMaxHeightagainst the wrapped mono address; combined withaspectRatio(1f)the buttons stay square regardless of how many lines the address occupies.lineHeight = AmountChipFontSizeso they don't pick up the theme body lineHeight that was making MAX taller than its siblings.Test plan