Skip to content

fix(LockupClaimModal): wire onClaim lifecycle, high-gas confirmation,… - #984

Merged
thlpkee20-wq merged 1 commit into
RevoraOrg:masterfrom
Bigclavsfx:fix/lockup-claim-modal
Oct 22, 2026
Merged

thlpkee20-wq merged 1 commit into
RevoraOrg:masterfrom
Bigclavsfx:fix/lockup-claim-modal

Conversation

@Bigclavsfx

Copy link
Copy Markdown
Contributor

Closes #937
Summary of Changes
LockupClaimModal.tsx:
Added onClaim?: (options: { autoClaim: boolean }) => Promise<LockupClaimResult | void> with pending, error, and confirmed states, synchronous double-submit protection (inFlightRef), and button disabled/loading state while pending.
Updated the high-gas path (gasEstimate >= 80) to show the warning on the first click and switch the action label to "Claim anyway" so a second confirmation proceeds with onClaim({ autoClaim }).
Added a Tab / Shift+Tab focus trap within the dialog and restored focus to the opener element when closing.
Rendered the returned transaction hash along with an external explorer link (explorerBaseUrl, defaulting to Stellar Expert) when available.
LockupClaimModal.test.tsx:
Added unit and regression tests covering single-invocation onClaim({ autoClaim }) per confirmed click, pending disabled state, transaction hash & explorer link rendering, rejection error handling and button re-enabling, two-step high-gas confirmation, Tab focus trapping, and focus restoration on close.

@drips-wave

drips-wave Bot commented Oct 22, 2026

Copy link
Copy Markdown

@Bigclavsfx Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@thlpkee20-wq
thlpkee20-wq merged commit 2c46c2b into RevoraOrg:master Oct 22, 2026
1 of 2 checks passed
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.

fix(lockup): LockupClaimModal shows a fake 'claim queued' success with no onClaim callback, and the high-gas warning blocks claiming permanently

2 participants