Skip to content

fix: remove double-pop from BuildingTransactionDialog cancel - #1364

Draft
sneurlax wants to merge 6 commits into
stagingfrom
fix/building-dialog-double-pop
Draft

sneurlax wants to merge 6 commits into
stagingfrom
fix/building-dialog-double-pop

Conversation

@sneurlax

Copy link
Copy Markdown
Member

The dialog's cancel button popped the navigator itself and then invoked onCancel, while callers' onCancel handlers also popped, causing a double pop. Drop the internal pop so the caller owns the dismissal, and add the missing pop to Step4View's onCancel.

@codecov

codecov Bot commented May 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 9.70%. Comparing base (1e2e4d9) to head (638732f).
⚠️ Report is 28 commits behind head on staging.

Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1364      +/-   ##
===========================================
+ Coverage     7.85%    9.70%   +1.84%     
===========================================
  Files         1125     1129       +4     
  Lines       112820   113551     +731     
===========================================
+ Hits          8866    11020    +2154     
+ Misses      103954   102531    -1423     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sneurlax
sneurlax force-pushed the fix/building-dialog-double-pop branch from ef65596 to 586a13b Compare August 24, 2026 21:31
@sneurlax

sneurlax commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

The desktop half of this PR, the double-pop fix, landed in June ny levoncrypto in 1928d37. The mobile half and the cancel-inside try fix are still needed.

The dialog's cancel button popped the navigator itself and then invoked
onCancel, while callers' onCancel handlers also popped, causing a double
pop. Drop the internal pop so the caller owns the dismissal, and add the
missing pop to Step4View's onCancel.
Seven send flows pop the caller's route from their catch block whenever a
prepareSend failure arrives after the user already dismissed the building
transaction dialog. On desktop that pop empties the root navigator and
blanks the window; on mobile it drops the user back to the wallet view.
Hoist wasCancelled out of the try so the catch can see it, as step_4_view
and the ShopinBit/CakePay send flows already do.
Hoist wasCancelled out of the try in send_from_view and the namecoin
transfer/update option widgets so a prepare failure arriving after the
user cancelled the building dialog no longer pops the caller route or
shows a stale error dialog.
@sneurlax
sneurlax force-pushed the fix/building-dialog-double-pop branch from 586a13b to b09968a Compare October 13, 2026 16:07
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.

2 participants