Repository navigation
feat(ui): balance-row send sheet with Send and Internal tabs - #822
Merged
QuantumExplorer merged 5 commits intoJul 16, 2026
Merged
Conversation
The balance rows' out arrows now mirror the receive arrows: instead of three different direct routes, every row opens a focused two-tab sheet (Send ↔ Internal transfer) pinned to the tapped balance as the SOURCE. - Send tab embeds the external-send form with the From card fixed to the tapped balance; the address field accepts only destination types that balance can pay (Transparent → L1 addresses; Platform → platform or L1; Shielded → all three) and shows an inline mismatch message otherwise. Core → Core still rides the classic payment processor via the shared BIP21 helper. - Internal tab embeds the transfer form in a new send-pinned layout: fixed From card on top, destination picked on To radio rows (the inverse of the receive sheet's applyReceiveRoute) — all six internal routes reachable from their source row. - SendViewModel gains pinnedSource; InternalTransferViewModel gains applySendRoute(from:)/sendTarget; TransferSourceRow gains a fixed-card (no radio) mode; QR scans on the sheet fill the embedded form (processPaymentInput promoted to the base header for the standard-path fallback). - The now-unused InternalTransferHostingController(direction:source:) init and the homeViewShowInternalTransfer delegate leg are removed. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
A valid address collapses to a compact single-line card (middle-truncated, pencil affordance) once focus leaves the field — the first keypad tap, a scroll, or keyboard dismissal — so the form reads address-then-amount. Tapping the locked card reopens the editable field with the cursor in it. Pasted (clipboard chip) and scanned addresses lock immediately. Co-Authored-By: Claude Fable 5 <[email protected]>
…lock-in Sending to a shielded address from the Transparent balance was rejected as a mismatch, but the SDK supports it: shieldedFundFromAssetLock takes an arbitrary 43-byte Orchard recipient (Type 18 remainder semantics — the recipient receives lock_value − pool_fee). Wire it as the coreToShielded external route: valid source on the send form, asset-lock execution with locking/proving progress, the internal transfer's fee estimate, and a committed-lock-aware Try again that resumes the same outpoint + recipient. Platform → shielded stays unsupported (shieldedShield has no recipient parameter). Also lock the address in as soon as it validates (paste or final typed character) instead of waiting for focus to drop — software-keyboard-less setups (simulator with a hardware keyboard) never drop focus on their own, so the locked look never engaged there. Co-Authored-By: Claude Fable 5 <[email protected]>
The three-tab landing (Send shortcut / center tab button) still showed the old two-row action list (Scan QR / Send to address) on its Send tab, one tap short of the form the balance-row sheet embeds. The Send tab now IS the send form — un-pinned, with the full From picker — and the action-row list, the Send-to-address push, and the QR fallback path it needed are deleted (every landing scan now fills the embedded form). Co-Authored-By: Claude Fable 5 <[email protected]>
…ector #824, Topper fix #823) — keep send-sheet arrow wiring + adopt onInfo Co-Authored-By: Claude Fable 5 <[email protected]>
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
The balance rows' out (up) arrows now mirror the receive arrows: every row opens a focused two-tab sheet — Send ↔ Internal transfer — pinned to the tapped balance as the source, replacing the three old direct routes (Transparent → send screen, Platform → shield, Shielded → withdraw).
Send tab
SendConfirmSheetflow.Internal tab
Plumbing
SendViewModel(pinnedSource:)+ mismatch reporting;InternalTransferViewModel.applySendRoute(from:)+sendTarget.TransferSourceRowgains a fixed-card (no radio) mode;networkDisplayconsolidates the icon/title/balance switches.processPaymentInput:promoted toDWBasePayViewController.hso the landing's QR shadow can fall back to the standard path.InternalTransferHostingController(direction:source:)and thehomeViewShowInternalTransferdelegate leg.Test plan
dashpaysimulator build (arm64); installed on QA-iPhone16🤖 Generated with Claude Code