Request Physical Card Follow Up#31782
Conversation
|
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@allroundexperts I'll add the screen recordings soon |
|
@allroundexperts @grgia |
|
@allroundexperts @grgia |
|
@allroundexperts could you prioritize this clean up PR today? |
|
On it today @grgia |
|
@pac-guerreiro The following is still happening. Can you please check? Setting network mode to slow 3g might help you to debug this better. Screen.Recording.2023-12-04.at.3.17.00.AM.mov |
|
Thanks for the tip, I finally understood what was the real problem you were showing me. From my research, the root cause of the problem is setting the mock data using an useEffect because:
Besides, I noticed from your and mine network logs that each time we're entering the wallet page we're fetching the data from the API twice, which only aggravates this weird behaviour |
|
Hi @pac-guerreiro! Screen.Recording.2023-12-05.at.5.52.49.AM.mov |
|
That is caused by the mock data getting replaced with the data from the API. You can confirm this by manually inserting the mock data on chrome console, and then the empty page becomes the card page. |
|
@allroundexperts can we get an update here please? 🙇♂️ |
|
@pac-guerreiro If both of these issues are caused by setting mock data in the |
|
@allroundexperts regarding the two original issues, I guess only the first one occurs because of how the mock data is set. The second one regarding the back button behaviour is relevant. CC: @grgia |
|
@pac-guerreiro @allroundexperts |
|
From the initial 2 issues that this PR aims to fix, the first one seems to be caused by how the mock data is set and shouldn't be reproducible in production, the second one is fixed. |
|
@pac-guerreiro what does this PR aim to fix in that case? |
|
@grgia This PR aims to fix the second issue - |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-19.at.3.19.27.PM.movAndroid: mWeb ChromeScreen.Recording.2023-12-19.at.3.17.45.PM.moviOS: NativeiOS: mWeb SafariScreen.Recording.2023-12-19.at.2.49.14.PM.movMacOS: Chrome / SafariScreen.Recording.2023-12-19.at.2.46.18.PM.movMacOS: DesktopScreen.Recording.2023-12-19.at.2.48.04.PM.mov |
|
Having issues with my iOS simulator. I've tested this on all platforms except native iOS. I think this change is not related to iOS in particular so I am approving the PR! |
|
Great work on this follow up @pac-guerreiro ! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.15-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.15-5 🚀
|
Details
This PR fixes two issues reported by @allroundexperts while he was reviewing the Request Physical Card flow:
Fixed Issues
$ #31557
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2023-11-27.at.20.47.44.mp4
Android: mWeb Chrome
Screen.Recording.2023-11-27.at.19.01.28.mp4
iOS: Native
Screen.Recording.2023-11-27.at.19.24.49.mp4
iOS: mWeb Safari
Screen.Recording.2023-11-27.at.19.29.29.mp4
MacOS: Chrome / Safari
Screen.Recording.2023-11-27.at.16.19.03.mp4
MacOS: Desktop
Screen.Recording.2023-11-27.at.18.43.26.mp4