Skip to content

feat(ui): balance breakdown with fiat and in/out transfer buttons on home - #810

Merged
QuantumExplorer merged 3 commits into
swift-sdk-integrationfrom
feat/home-balance-breakdown
Jul 16, 2026
Merged

QuantumExplorer merged 3 commits into
swift-sdk-integrationfrom
feat/home-balance-breakdown

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

What

The home header previously showed the transparent balance as the hero with platform/shielded squeezed into two bare columns — 9-decimal precision, no fiat, no transfer affordance, clipping against the shortcuts card.

Now:

  • Hero = combined total (transparent + platform + shielded) with fiat, rendered by the existing DashAmount component (keeps the app's Đ glyph).
  • Breakdown card: one row per balance — icon, name, fiat value, Đ amount — plus circular in/out buttons per row:
    • Transparent: in = Receive, out = Send (existing shortcut actions)
    • Platform: in = Shielded → Platform, out = Platform → Shielded
    • Shielded: in = Transparent → Shielded, out = Shielded → Transparent
  • Buttons open InternalTransferHostingController prefilled via a new init(direction:source:); the route stays editable on-screen.
  • PlatformBalanceView deleted (superseded). Tap-to-hide, sync shimmer, and long-press currency picker preserved; the breakdown hides with hidden-balance state and while BLAST isn't running (as the old columns did).
  • Three new en keys (Transparent, Transfer in, Transfer out); Platform/Shielded reuse existing translated keys.

Verification

  • dashpay arm64-sim build green (Xcode 26.6 / Swift 6.3.3).
  • Funded testnet QA-simulator smoke: totals sum correctly (6.17958 + 0.08817 + 0.60987 = 6.87761 Đ hero), per-row fiat renders, all six buttons expose 44pt accessibility frames, and Shielded-in pushes Internal transfer prefilled Dash Wallet → Shielded balance.

🤖 Generated with Claude Code

…home

The home header showed only the transparent balance as the hero, with
platform and shielded amounts squeezed into two label-less columns —
full 9-decimal precision, no fiat, no way to move funds between them.

Now the hero is the COMBINED total (transparent + platform + shielded,
rendered by the existing DashAmount component and its Dash-Đ glyph) with
its fiat value, above a breakdown card with one row per balance: icon,
name, fiat value, Đ amount, and two circular transfer buttons mapping
onto the routes the app supports:
- Transparent: in = Receive, out = Send (existing shortcut actions);
- Platform:    in = Shielded → Platform, out = Platform → Shielded;
- Shielded:    in = Transparent → Shielded, out = Shielded → Transparent.

The buttons push InternalTransferHostingController through a new
init(direction:source:) (user can still flip the route on-screen) via a
new HomeViewDelegate method. PlatformBalanceView is deleted — the
breakdown card supersedes it. Tap-to-hide, the syncing shimmer, and the
long-press currency picker behave as before; the breakdown hides with
the hidden-balance state and (as before) while BLAST isn't running.

Verified on a funded testnet QA simulator: totals sum correctly, rows
show fiat + Đ amounts, all six buttons expose 44pt accessibility
targets, and Shielded-in opens Internal transfer prefilled
Dash Wallet → Shielded.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3eaf27f9-e61d-428d-b13d-de3cd9a2876d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/home-balance-breakdown

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

QuantumExplorer and others added 2 commits July 16, 2026 12:48
A push dragged the blue navigation header along; the sheet keeps the
transfer form on its own background with a grabber and swipe-to-dismiss.
The flow's Done now dismisses when presented modally and still pops when
pushed (readiness / payments-landing entries keep their push).

Co-Authored-By: Claude Fable 5 <[email protected]>
Pushed presentations get their top spacing from the navigation bar; the
sheet has no bar, so the title crowded the sheet edge. 28pt inset when
presented modally, unchanged when pushed.

Co-Authored-By: Claude Fable 5 <[email protected]>
@QuantumExplorer
QuantumExplorer merged commit 875c1c3 into swift-sdk-integration Jul 16, 2026
1 check passed
@QuantumExplorer
QuantumExplorer deleted the feat/home-balance-breakdown branch August 7, 2026 08:23
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