fix: keep transfer swipe spinning - #690
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Greptile SummaryThe PR keeps the spending-transfer swipe control in its loading state until navigation to Setting Up and propagates spending-transfer errors so that flow can reset. It also removes SwipeButton’s global success reset, which inadvertently prevents retries in callers that handle errors internally.
Confidence Score: 4/5The retry regression in savings-transfer and manual-channel confirmation flows should be fixed before merging. Removing SwipeButton’s normal-return reset means callers that catch their own operation errors leave the control permanently submitted, blocking another attempt. Files Needing Attention: Bitkit/Components/SwipeButton.swift, Bitkit/Views/Transfer/SavingsConfirmView.swift, Bitkit/Views/Transfer/FundManualConfirmView.swift
|
| Filename | Overview |
|---|---|
| Bitkit/Components/SwipeButton.swift | Removes success-path reset globally, leaving two error-swallowing callers permanently parked after failed operations. |
| Bitkit/Views/Transfer/SpendingConfirm.swift | Awaits confirmation directly, drives loading from isPaying, preserves loading through success navigation, and rethrows errors for swipe reset. |
| changelog.d/next/690.fixed.md | Documents the intended spending-transfer spinner behavior. |
Reviews (1): Last reviewed commit: "fix: keep transfer swipe spinning" | Re-trigger Greptile
Co-authored-by: Cursor <cursoragent@cursor.com>
pwltr
left a comment
There was a problem hiding this comment.
Tested send, transfer, boost. Looks good.
Description
This PR keeps Swipe To Transfer parked at the end with the loading spinner after you confirm a transfer to spending, matching Android.
A recent send-retry change reset the swipe on success as well as failure. Combined with a fire-and-forget confirm on this screen, the knob snapped back immediately instead of spinning until Setting Up.
Errors still slide the control back so the transfer can be retried. Savings Confirm and Fund Manual Confirm now rethrow after toasting, so those screens can retry too.
Linked Issues/Tasks
N/A
Screenshot / Video
Before:
ios-before.mov
After:
ios-after.mov
QA Notes
Manual Tests
regression:Send → Confirm → swipe: success still navigates away; a failed send still resets the swipe for retry.regression:Transfer → Savings Confirm → swipe: still navigates to Savings Progress.Automated Checks