-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add report fraud confirmation page when getting new virtual card #55278
Add report fraud confirmation page when getting new virtual card #55278
Conversation
@shawnborton @alitoshmatov One of you needs to 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] |
@alitoshmatov didn't notice this, thanks - I'll try to fix it today |
Ok, we need to discuss this because I'm not sure what is the expected behaviour here. The 404 page shows up when we refresh the page while the confirmation modal is presented because in the URL we still have an ID of the deactivated card, that does not exist anymore at this moment. The simple solution is that I can redirect to report fraud page of the new card before showing the confirmation modal - then when we refresh the page we will land on the report fraud page of the new card, but in my opinion it may be confusing for the end user. That being said, showing the 404 page in this situation may be correct behaviour. What do you think? |
How about we show confirmation page on new generic url without old card's id? Or is there some drawbacks that I am not noticing? |
Ok, this may work actually, but it's slightly bigger change as I need to add new page etc. Let me try it, though. |
@alitoshmatov Fixed! |
Changes looks good, I hit rate limit while testing. Will get try again shortly |
@burczu I come across this issue where user might end up in navigation loop where it cannot go out of card info. Clicking on back button sends user to confirmation page Also I am not able to reproduce it consistently. Was able to reproduce 2 times, maybe I did something wrong Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-28.at.17.52.42.mp4 |
@alitoshmatov Hmmm... strange. I'll check it, thanks! |
@alitoshmatov Ok, I was able to reproduce it - it happens only if you refresh the page being on the confirmation page. I'll work on the fix. |
@alitoshmatov Fixed. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativehttps://github.com/user-attachments/assets/a136963f-0258-4f63-9cbb-aa9f494ca600Android: mWeb ChromeiOS: Nativefraud3-ios.mp4iOS: mWeb Safarifraud3-safari.mp4MacOS: Chrome / Safarifraud3-web.movMacOS: Desktopfraud3-desktop.mov |
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.
LGTM!
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.
Thanks for patient work on this one, looks good to me!
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.92-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.92-6 🚀
|
Explanation of Change
In this PR we are fixing the issue with the "It's not here" 404 page is shown for a short period of time after successfully deactivating a virtual card and before redirecting back. Additionally, we are improving the UX of the deactivation flow by adding the confirmation modal after the successful deactivation
Fixed Issues
$ #53996
PROPOSAL: #53996 (comment)
Tests
Offline tests
Same as above.
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2025-01-23.at.09.17.54.mov
Android: mWeb Chrome
Screen.Recording.2025-01-23.at.09.24.34.mov
iOS: Native
Screen.Recording.2025-01-23.at.09.16.10.mov
iOS: mWeb Safari
Screen.Recording.2025-01-23.at.09.20.50.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-23.at.09.52.43.mov
MacOS: Desktop
Screen.Recording.2025-01-23.at.09.56.18.mov