-
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
fix: Track tax switch does not appear grayed out when enabled/disabled offline #43347
Conversation
@eVoloshchak Please help to review the PR when you have a chance. Thanks. |
@eVoloshchak please tag me after you review |
@nkdengineer, could you please add the screen recording for all of the platforms? |
@eVoloshchak please check again |
Hey @eVoloshchak can you take a look at this please? |
friendly dump @eVoloshchak |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-08-12.at.18.36.29.movAndroid: mWeb ChromeScreen.Recording.2024-08-12.at.18.40.34.moviOS: NativeScreen.Recording.2024-08-12.at.18.43.58.moviOS: mWeb SafariScreen.Recording.2024-08-12.at.18.41.27.movMacOS: Chrome / SafariScreen.Recording.2024-08-12.at.18.28.40.movMacOS: DesktopScreen.Recording.2024-08-12.at.18.44.38.mov |
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.
App crash:
- Clear cache
- Force offline
- Go to workspace settings (has to be a workspace you haven't opened yet, no workspace data is loaded at this point)
- Go to 'Distance rates' tab
- Click Settings
- The app crashes
Screen.Recording.2024-06-24.at.17.20.42.mov
I can't reproduce this bug web-resize.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.
@nkdengineer, you can more reliably reproduce this using the following steps:
- Fully clear cookies and site data in browser (
View site information -> Cookies and site data -> Manage on-device site data -> Delete each item -> Done
) - Refresh the page
- Log in
- Go to
Settings -> Troubleshoot
, turn onForce Offline
option - Head to Workspaces, select any workspace
- Select Distance Rates -> Settings
- Observe the crash
Screen.Recording.2024-06-26.at.18.37.17.mov
Bug:
Screen.Recording.2024-06-26.at.18.46.32.mov |
Working on this issue |
@eVoloshchak thanks for your detailed steps, I can reproduce this bug Screen.Recording.2024-06-28.at.14.19.47.movin this case, we don't have |
I'll update today |
@MonilBhavsar @eVoloshchak When user clears cache and restart, we call API openApp. You can see in this video below, that we have some workspaces that will not have a default rate web-resize.mp4It will cause some errors when we create a new distance rate because we don’t have ![]() |
You think that not having custom unit ID is wrong and we should fix this case in backend? |
@MonilBhavsar If the backend can return |
I see. AFAIK, We decided not to load all policies on opening app for performance reasons. Basically to reduce initial app loading time. So we need to be optimistic here. Can we load it when we open a specific workspace page? |
Let me check again if we can have a solution in front-end. |
@MonilBhavsar @eVoloshchak ![]() I think in the case when offline and there is no customUnit, we should not allow adding a new rate to display the |
@nkdengineer, yeah, let's do this |
I'll update today |
@eVoloshchak i updated, please check agin bug.mov |
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!
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.
This looks good to me other than making defaultValue
optional. Testing between offline and online mode also works well. Thank you @nkdengineer and @eVoloshchak for covering the edge cases.
Also thank you @MonilBhavsar for helping move this along. I added you to the initial issue. |
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
Thanks for continuing working on this! |
✋ 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/MonilBhavsar in version: 9.0.20-0 🚀
|
FYI I believe this was deployed to prod yesterday, from this checklist - #47356 |
Details
Fixed Issues
$ #43318
PROPOSAL:
Tests
Offline tests
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
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov