-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add Waypoint Editor #24301
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 Waypoint Editor #24301
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@rushatgabhane @ 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] |
|
I changed the base to make it easier to review. |
|
can the hold be lifted? |
|
Even weirder on the web, after editing waypoint the RHN gets dismissed Screen.Recording.2023-08-17.at.1.44.06.AM.mov |
|
We're discussing here https://expensify.slack.com/archives/C01GTK53T8Q/p1692216780044899 I feel like this happened recently, as I wasn't running into it until recently |
src/pages/iou/WaypointEditor.js
Outdated
|
|
||
| // Other flows will be handled by selecting a waypoint with selectWaypoint as this is mainly for the offline flow | ||
| Navigation.navigate(ROUTES.getMoneyRequestDistanceTabRoute(iouType)); | ||
| Navigation.goBack(); |
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 should specify the route to go back to, otherwise it will go back to the home page if you refresh the page and trigger this. I'm currently managing an issue to make the route param mandatory.
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 actually talked about here https://expensify.slack.com/archives/C01GTK53T8Q/p1692216780044899
TLDR: For tab navigation, Navigation.goBack() is the only solution for now as using Navigate will push the page to the RHP which we don't want
EDIT: Oh, I see I didn't realize you could add the route to goBack()
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-08-17.at.10.09.34.PM.moviOS & AndroidScreen.Recording.2023-08-17.at.1.51.34.AM.mov |
src/pages/iou/WaypointEditor.js
Outdated
| onEntryTransitionEnd={() => textInput.current && textInput.current.focus()} | ||
| > | ||
| <HeaderWithBackButton | ||
| title="Waypoint Editor" |
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.
LocalizationMissing
|
LGTM, Just this Localization |
|
@stitesExpensify 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] |
neil-marcellini
left a comment
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.
Woohoo!
|
✋ 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/neil-marcellini in version: 1.3.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|

Details
Fixed Issues
$ #22705
PROPOSAL:
Tests
Offline tests
QA Steps
Addressed in the online and offline tests
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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)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
Web
Screen.Recording.2023-08-11.at.11.29.16.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-08-11.at.11.52.39.AM.mov
Mobile Web - Safari
Desktop
Screen.Recording.2023-08-11.at.11.51.28.AM.mov
iOS
Screen.Recording.2023-08-11.at.11.43.57.AM.mov
Android