-
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
Remove invalid recent waypoint when creating / editing distance request #50323
Remove invalid recent waypoint when creating / editing distance request #50323
Conversation
…x/48631-remove-invalid-recent-waypoint
…x/48631-remove-invalid-recent-waypoint
@suneox @neil-marcellini I use |
@wildan-m As mentioned earlier, we also need to handle TrackExpense case Screen.Recording.2024-10-07.at.22.09.39.mp4 |
…x/48631-remove-invalid-recent-waypoint
@suneox nice catch! the track expense part has been resolved |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariTrack expense: Screen.Recording.2024-10-08.at.21.18.35.mp4Edit expense: Screen.Recording.2024-10-08.at.20.51.18.mp4Submit expense Screen.Recording.2024-10-08.at.21.23.03.mp4MacOS: DesktopScreen.Recording.2024-10-08.at.21.25.18.mp4Android: NativeScreen.Recording.2024-10-08.at.21.40.27.mp4Android: mWeb ChromeScreen.Recording.2024-10-08.at.21.37.57.mp4iOS: NativeScreen.Recording.2024-10-08.at.21.28.11.mp4iOS: mWeb SafariScreen.Recording.2024-10-08.at.21.35.18.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.
LGTM. Verify it works as expected in the following three cases: track expense, submit expense and edit expense.
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 great, thank you!
* @param waypoints - The collection of waypoints to sanitize. | ||
* @returns The sanitized collection of waypoints. | ||
*/ | ||
function sanitizeRecentWaypoints(waypoints: WaypointCollection): WaypointCollection { |
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.
Why do we need to do this?
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.
Ah I see, the backend saves the waypoints as is, and we don't want to save the pendingAction property. I'm good with this then.
✋ 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: 9.0.47-1 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.47-4 🚀
|
Details
The PR will fix invalid waypoints aren't cleared when a request fails
Fixed Issues
$ #48631
PROPOSAL: #48631 (comment)
Tests
Offline tests
Same as test
QA Steps
Same as test
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
Kapture.2024-10-07.at.13.09.52.mp4
Android: mWeb Chrome
Kapture.2024-10-07.at.13.15.30.mp4
iOS: Native
Kapture.2024-10-07.at.12.57.39.mp4
iOS: mWeb Safari
Kapture.2024-10-07.at.13.05.33.mp4
MacOS: Chrome / Safari
Kapture.2024-10-07.at.11.12.26.mp4
MacOS: Desktop
Kapture.2024-10-07.at.13.18.32.mp4