-
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
Load recent waypoints on first sign in #45000
Conversation
@hoangzinh 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] |
@hoangzinh this is off hold and ready for testing now. |
Yep @neil-marcellini I will try to review it today |
Overall, it looks good to me, I have just 1 small concern, at the moment, when the 1st time user submits expense after signing in, it always calls API to get recent waypoints, although user hasn't clicked on Distance expense yet. Is it acceptable behavior? Screen.Recording.2024-07-14.at.06.27.05.mov |
Ok @hoangzinh good point. I updated it to only make the request on the distance tab. |
Ok, I got all the tests passing. Ready for another review. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-18.at.00.01.12.android.movAndroid: mWeb ChromeScreen.Recording.2024-07-17.at.23.57.19.android.chrome.moviOS: NativeScreen.Recording.2024-07-18.at.00.09.11.ios.moviOS: mWeb SafariScreen.Recording.2024-07-18.at.00.06.25.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-07-17.at.23.33.33.web.movMacOS: DesktopScreen.Recording.2024-07-17.at.23.43.23.desktop.mov |
@marcochavezf 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] |
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
✋ 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/marcochavezf in version: 9.0.10-2 🚀
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.10-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.10-7 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.11-5 🚀
|
Details
When an account signs in and goes to create a distance expense, load their recent waypoints. That way if an account has previously created distance expenses, they can use their recent waypoints even if they signed out and back in since then. We only need to get this data into onyx once, because updates to the recent waypoints will be sent out every time a user creates another distance expense.
Fixed Issues
$ #43786
PROPOSAL: N/A
Tests
A. Existing recent waypoints load
B. Empty recent waypoints load
C. Recent waypoints load for distance tab only
Offline tests
A. Existing recent waypoints load
B. Empty recent waypoints load
QA Steps
Same as tests, skipping (dev only) 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
I only tested on web because the changes are platform independent.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Online A
recent-waypoints1080.mov
Online B
no-recent-waypoints.mov
C
Screen.Recording.2024-07-15.at.4.29.56.PM.mov
Offline A
offlineA.mov
Offline B
offlineB.mov
MacOS: Desktop