-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Show invalid waypoint error message for an invalid distance request route #41481
Show invalid waypoint error message for an invalid distance request route #41481
Conversation
@abdulrahuman5196 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] |
Checking now |
The changes looks good and works well on web. @bernhardoj Could you kindly fix the merge conflicts so that I can continue with platform specific testing. |
@abdulrahuman5196 conflicts solved. didn't mean to commit with "p" message |
@@ -105,6 +106,9 @@ type ReportActionItemOnyxProps = { | |||
|
|||
/** Transaction associated with this report, if any */ | |||
transaction: OnyxEntry<OnyxTypes.Transaction>; | |||
|
|||
/** The transaction (linked with the report action) route error */ | |||
linkedTransactionRouteError: OnyxEntry<Errors>; |
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.
@bernhardoj Sorry I missed this. Why are taking the error object OnyxEntry<Errors>
alone? Can't we have the linkedTransaction itself as a prop and take the error inside the class? Similar to how transaction
object is present.
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.
We just care about the error object, so @tgolen suggested to use selector to optimize it.
Thank you. Checking again. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-16.at.12.26.22.AM.mp4Android: mWeb ChromeScreen.Recording.2024-05-16.at.12.39.16.AM.mp4iOS: NativeScreen.Recording.2024-05-16.at.12.00.22.AM.mp4iOS: mWeb SafariScreen.Recording.2024-05-16.at.12.03.58.AM.mp4MacOS: Chrome / SafariScreen.Recording.2024-05-15.at.11.40.10.PM.mp4MacOS: DesktopScreen.Recording.2024-05-15.at.11.47.03.PM.mp4 |
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.
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 to me. Thanks!
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.75-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.75-1 🚀
|
Details
Currently, we show the generic message when an invalid waypoint is submitted. This PR fix it by showing the invalid waypoint error from the BE.
Fixed Issues
$ #38213
PROPOSAL: #38213 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.2024-05-02.at.13.51.19.mov
Android: mWeb Chrome
Screen.Recording.2024-05-02.at.14.03.20.mov
iOS: Native
Screen.Recording.2024-05-02.at.13.38.08.mov
iOS: mWeb Safari
Screen.Recording.2024-05-02.at.13.37.21.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-02.at.13.20.32.mov
MacOS: Desktop
Screen.Recording.2024-05-02.at.13.22.45.mov