Skip to content

feat(wallet): v2 card-stack collapse + appreciation pill - #1231

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/wallet-card-collapse
Aug 13, 2026
Merged

feat(wallet): v2 card-stack collapse + appreciation pill#1231
bmc08gt merged 1 commit into
code/cashfrom
feat/wallet-card-collapse

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Android parity with iOS PR #574 ("feat(wallet): v2 card-stack collapse + appreciation pill").

  • Card-stack collapse to zero: TokenCardStack.collapsedReveal default changed from 12 dp to 0 dp. Back cards now collapse completely behind the front card with no visible slivers. The fanned reveal (64 dp) and scroll-driven collapse mechanism are unchanged.

  • Appreciation pill (v2): Added AppreciationStyle enum (Classic / Pill) to CurrencyAppreciationLabel. Classic (default) keeps the existing sentiment-tinted fill — all current call sites (TokenBalance, BalanceScreenContent) are unchanged. Pill renders a neutral bordered box (1 dp White20 border, extraSmall corner radius) with secondary text colour and "from appreciation" / "from depreciation" labels matching the iOS pill. New string resources label_fromAppreciation and label_fromDepreciation added to strings.xml.

  • WalletScreen header spacing (v2): BalanceHeader gains topPadding/bottomPadding/appreciationStyle params (all defaulting to current v1 values). WalletScreenContent removes the preceding x15 spacer and passes topPadding=96 dp, bottomPadding=44 dp, AppreciationStyle.Pill — matching Figma node 8966:1578.

Test plan

  • Build passes: ./gradlew :apps:flipcash:core:compileDebugKotlin :apps:flipcash:features:balance:compileDebugKotlin — verified green.
  • New wallet screen (NewUi flag on): card stack fans open at rest and collapses with zero reveal (no back-card slivers visible) when scrolling up.
  • Appreciation pill in wallet header shows bordered neutral style; classic sentiment pill still appears in BalanceScreen (v1) and token-info screen.
  • Header vertical spacing matches Figma node 8966:1578 (~96 dp top, ~44 dp bottom).
  • v1 balance screen unaffected (BalanceHeader defaults unchanged, no style param needed at call site).

- TokenCardStack: set collapsedReveal default to 0 dp so back cards
  hide completely behind the front card when fully collapsed (no slivers);
  fanned reveal stays at 64 dp.

- CurrencyAppreciationLabel: add AppreciationStyle enum (Classic/Pill).
  Classic (default) keeps the existing sentiment-tinted fill so all
  current call sites are unchanged. Pill renders a neutral bordered box
  with secondary text colour for use in the v2 wallet header.

- BalanceHeader: add topPadding/bottomPadding params (default: grid.x9
  for both, preserving v1 behaviour) and appreciationStyle param.

- WalletScreenContent: remove the leading x15 spacer; pass topPadding=96 dp,
  bottomPadding=44 dp, and AppreciationStyle.Pill to BalanceHeader to match
  Figma node 8966:1578. Parity with iOS PR #574.
@github-actions github-actions Bot added the type: feature New functionality label Aug 13, 2026
@bmc08gt
bmc08gt merged commit 3666e04 into code/cash Aug 13, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the feat/wallet-card-collapse branch August 13, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant