-
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
Reveal card details error handling #31067
Reveal card details error handling #31067
Conversation
Co-authored-by: VickyStash <vikstash@gmail.com>
Co-authored-by: VickyStash <vikstash@gmail.com>
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.
Left a minor comment, besides LGTM.
Co-authored-by: Michael (Mykhailo) Kravchenko <rezkiy37@gmail.com>
@dubielzyk-expensify @allroundexperts 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] |
@dubielzyk-expensify @allroundexperts can one of you complete reviewer checklist, please 🙇♂️ |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-10.at.12.11.21.AM.movAndroid: mWeb ChromeScreen.Recording.2023-11-10.at.12.08.23.AM.moviOS: NativeScreen.Recording.2023-11-10.at.12.13.17.AM.moviOS: mWeb SafariScreen.Recording.2023-11-10.at.12.08.23.AM.movMacOS: Chrome / SafariScreen.Recording.2023-11-09.at.11.57.13.PM.movMacOS: DesktopScreen.Recording.2023-11-10.at.12.01.19.AM.mov |
BUG Screen.Recording.2023-11-09.at.11.48.10.PM.mov |
Also, @dylanexpensify Can you please confirm if we don't need the |
<DotIndicatorMessage | ||
messages={cardDetailsErrorObject} | ||
type="error" | ||
style={styles.ph5} |
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.
This is culprit of the crash I commented about earlier. This should be an array
instead.
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.
A small change needed.
@allroundexperts fixed |
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.
Looks good!
Author checklist check was not working, merged |
✋ 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.3.99-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.0-0 🚀
|
Details
The aim of this PR is to add error handling to the "Reveal Details" action for the Card Details Page.
This is done by returning a generic message taken from localisation files and passing it upon promise rejection.
This message then is caught in the Card Details page and displayed by DotIndicator component.
If the next attempt is successful the message is clear out.
Fixed Issues
$ #30329
PROPOSAL: no proposal
Tests
Same as QA tests
Offline tests
Same as QA tests
QA Steps
https://dev.new.expensify.com:8082/settings/wallet/card/expensify
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
no native screenshot as it's hard to modify Onyx and create a fake card here but it there is no reason why it should not work hereAndroid: mWeb Chrome
iOS: Native
no native screenshot as it's hard to modify Onyx and create a fake card here but it there is no reason why it should not work hereiOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop