-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: use last selected payment detail instead of deducing from approval amount #37409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
chaitanyapotti
merged 73 commits into
main
from
fix/flicker-subscription-crypto-approval
Nov 5, 2025
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
18da350
fix: use subscription pricing for subscription confirmation
tuna1207 89fd35b
Merge branch 'main' into fix/update-shield-crypto-confirmation
tuna1207 f4acc67
refactor: make product price from transaction data hook
tuna1207 c37a8f4
feat: handle subscription after crypto approval
tuna1207 e3a1a2a
fix: test case
tuna1207 9672813
feat: add test case
tuna1207 65fdcaf
fix: useShieldSubscriptionPricingFromTokenApproval return pending state
tuna1207 9277e6b
fix: useShieldSubscriptionPricingFromTokenApproval compare all plan
tuna1207 35f1aa0
fix: correct test case
tuna1207 d9a6112
Merge branch 'main' into fix/update-shield-crypto-confirmation
tuna1207 03b3f5d
feat: useShieldSubscriptionPricingFromTokenApproval make sure runtime…
tuna1207 f8f70a6
Merge branch 'fix/update-shield-crypto-confirmation' into feat/handle…
tuna1207 de6f940
fix: test lint
tuna1207 bce7fde
Merge branch 'fix/update-shield-crypto-confirmation' into feat/handle…
tuna1207 c922fc6
feat: refactor handle subscription function
tuna1207 ace43d4
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 d61a845
fix: test case
tuna1207 f7d2aeb
refactor: useDecodedTransactionDataValue
tuna1207 07d1302
fix: test case
tuna1207 201459b
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 8892a09
fix: test case
tuna1207 217451a
fix: test case
tuna1207 b4ecf08
fix: don't refetch pricing api in confirmation
tuna1207 e2ced52
fix: e2e test mock
tuna1207 629e7bd
fix: e2e test
tuna1207 674599a
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 831e7dd
fix: decoded transaction data amount
tuna1207 e1ca6e8
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 f5cbd15
Merge branch 'main' into feat/handle-subscription-after-confirm
chaitanyapotti 226d8f9
feat: handle shield approve transaction in context
tuna1207 3da06dd
fix: remove redundant changes
tuna1207 4e16def
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 11b8e12
feat: make sure no null property access
tuna1207 7bb8029
fix: test lint
tuna1207 393cf97
fix: lint
tuna1207 6bebd9c
fix: lint
tuna1207 ffcd229
fix: remove redundant config
tuna1207 71e897c
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 cfd8bab
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 b7c2a4a
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 b9cac30
feat: handle subscription crypto approval in background
tuna1207 265e6c8
feat: handle status page and loading indicator
tuna1207 7fb65f3
Revert "feat: handle status page and loading indicator"
tuna1207 daf4520
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 2914a6f
feat: update shield approval confirm flow
tuna1207 028aae6
refactor: updateAndApproveTx before and error handler
tuna1207 defdc63
fix: remove redundant selector
tuna1207 6e344fd
feat: update timeout
tuna1207 9de5717
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 225dbbd
fix: wait for subscription creation cancel
tuna1207 4a784df
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 f555b7c
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 deccc18
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 8f91aa2
fix: test case
tuna1207 f7d727a
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 e82066a
feat: handle subscription crypto approval using controller
tuna1207 0f600bf
feat: handle cache last selected payment method
tuna1207 32ff392
Revert "feat: handle cache last selected payment method"
tuna1207 7f249b3
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 315e423
fix: test case
tuna1207 de3751d
feat: move shield navigate functions to useShieldConfirm
tuna1207 797054e
refactor: not update updateAndApproveTx action
tuna1207 525790a
fix: test case
tuna1207 97ecfe5
fix: test lint
tuna1207 a7462a9
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 784c076
feat: ensure no null access
tuna1207 23c1e78
feat: catch log err
tuna1207 83761cd
Merge branch 'main' into feat/handle-subscription-after-confirm
tuna1207 ddcfa60
feat: use last selected payment detail instead of deducting from appr…
tuna1207 aa69533
fix: test lint
tuna1207 55fb0b6
Merge branch 'main' into fix/flicker-subscription-crypto-approval
tuna1207 0602d99
Merge branch 'main' into fix/flicker-subscription-crypto-approval
tuna1207 efacdee
Merge branch 'main' into fix/flicker-subscription-crypto-approval
chaitanyapotti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Mismatched Token Addresses Break Test Token Display
The test data has mismatched token addresses. The
paymentTokenAddressinmockLastUsedPaymentDetaildoes not align with the token address defined inmockSubscriptionPricing. This causesselectedTokenPriceto be undefined, which means the test might not accurately reflect the component's intended behavior or display the correct token symbol.