-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix: the NFT reward bottom sheet unexpectedly reappears after CTA button is pressed #5076
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5076 +/- ##
=======================================
Coverage 85.57% 85.58%
=======================================
Files 724 724
Lines 29507 29508 +1
Branches 5100 5100
=======================================
+ Hits 25252 25253 +1
Misses 4021 4021
Partials 234 234
Continue to review full report in Codecov by Sentry.
|
1 build decreased size
Celo (test) 1.80.0 (145)
|
Item | Install Size Change |
---|---|
🗑 splashBackground@3x.jpg | ⬇️ -600.2 kB |
🗑 background@3x.jpg | ⬇️ -368.6 kB |
🗑 boost-rewards@3x.png | ⬇️ -188.4 kB |
🗑 background@2x.jpg | ⬇️ -176.1 kB |
🗑 boost-rewards@2x.png | ⬇️ -90.1 kB |
🛸 Powered by Emerge Tools
|
||
dispatch(nftRewardDisplayed()) | ||
dispatch(nftRewardDisplayed()) |
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.
can this be easily tested? looks like patch coverage is failing
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.
unfortunately I don't know the way to simulate bottom sheet close.
the only way I see is to trick coverage bot for now.
…ton is pressed (#5076) ### Description On the iOS production build the NFT reward bottom sheet unexpectedly reappears after CTA button is pressed. The hypothesis is that `onChange` event isn't fired for some reason when the bottom sheet is closed programmatically. The fix is to fire `dispatch` on CTA press handler instead of relying on `onChange` event. Another possible option is to rely on `onClose` event. But unfortunately it is called when component unmounts on Android. ### Test plan Tested manually on: * Android emulator * iOS simulator * dev iOS build on device Planing to additionally test on the nightly iOS build. ### Related issues - Related to RET-1002 ### Backwards compatibility Y ### Network scalability NA
…ton is pressed (valora-inc#5076) ### Description On the iOS production build the NFT reward bottom sheet unexpectedly reappears after CTA button is pressed. The hypothesis is that `onChange` event isn't fired for some reason when the bottom sheet is closed programmatically. The fix is to fire `dispatch` on CTA press handler instead of relying on `onChange` event. Another possible option is to rely on `onClose` event. But unfortunately it is called when component unmounts on Android. ### Test plan Tested manually on: * Android emulator * iOS simulator * dev iOS build on device Planing to additionally test on the nightly iOS build. ### Related issues - Related to RET-1002 ### Backwards compatibility Y ### Network scalability NA
Description
On the iOS production build the NFT reward bottom sheet unexpectedly reappears after CTA button is pressed.
The hypothesis is that
onChange
event isn't fired for some reason when the bottom sheet is closed programmatically.The fix is to fire
dispatch
on CTA press handler instead of relying ononChange
event.Another possible option is to rely on
onClose
event. But unfortunately it is called when component unmounts on Android.Test plan
Tested manually on:
Planing to additionally test on the nightly iOS build.
Related issues
Backwards compatibility
Y
Network scalability
NA