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 |
| transaction: OnyxEntry<OnyxTypes.Transaction>; | ||
|
|
||
| /** The transaction (linked with the report action) route error */ | ||
| linkedTransactionRouteError: OnyxEntry<Errors>; |
There was a problem hiding this comment.
@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.
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 |
tgolen
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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.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