-
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
fix: unify distance rates display #50783
fix: unify distance rates display #50783
Conversation
@parasharrajat 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-08.at.5.05.26.PM.movAndroid: mWeb ChromeScreen.Recording.2024-11-08.at.5.07.21.PM.moviOS: NativeScreen.Recording.2024-11-08.at.5.17.30.PM.moviOS: mWeb SafariScreen.Recording.2024-11-08.at.5.20.00.PM.movMacOS: Chrome / SafariScreen.Recording.2024-11-08.at.4.48.11.PM.movMacOS: DesktopScreen.Recording.2024-11-08.at.4.53.05.PM.mov |
@thelullabyy can you update test step 1 to : Add the distance rate to 4-digit decimal value (non-zero) and save it |
Bug, in the distance field, we see 4 decimal Staging: @puneetlath Correct me if this is expected, we only intend to fix the case where decimals are present right? When we do not have decimal values we should not show those 4 zeros right? |
Yes, I agree with this. |
@thelullabyy can you please update your PR according to ^ |
Also please merge main, perf tests are failing on your branch |
@allgandalf I'll update soon. |
@allgandalf I updated. |
There is a failing jest test @thelullabyy |
@allgandalf Should I update the tests to match with expected behavior? OD behavior is to set the fraction digits between 2 to 4. |
what do you mean ? can you attach video to what you are referencing ? |
bump @thelullabyy |
@allgandalf Sorry for the late reply. Here's the behavior in OD: Screen.Recording.2024-10-29.at.00.38.08.mov |
@allgandalf Friendly bump on #50783 (comment) in case you missed. |
I will review tomorrow |
@thelullabyy jest tests are failing, also please merge main |
@allgandalf I asked about what to do with the failed test in #50783 (comment) and #50783 (comment), can you take a look? |
@thelullabyy I meant the failing CI check for jest, you can get the logs in the run, the two comments you attached aren't related to the failing jest test :) |
Also please merge main 😄 |
@allgandalf I merged main. Also, the comments I mentioned are the explanation of why the test failed. Test expected: round all numbers into three digits
OD Behavior: round numbers into four digits
I'm asking if we should update the tests to be consistent with OD behavior. |
yes please ! |
@allgandalf I updated. |
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.
Changes LGTM, all yours @puneetlath
✋ 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/puneetlath in version: 9.0.60-0 🚀
|
This PR might be the cause of this blocker. @thelullabyy @allgandalf @puneetlath could you please take a look? |
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.60-3 🚀
|
Details
Fixed Issues
$ #49929
PROPOSAL: #49929 (comment)
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
Screen.Recording.2024-10-15.at.16.53.37.mp4
Android: mWeb Chrome
Screen.Recording.2024-10-15.at.17.03.49.mp4
iOS: Native
Screen.Recording.2024-10-15.at.17.15.13.mp4
iOS: mWeb Safari
Screen.Recording.2024-10-15.at.17.18.39.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-15.at.15.20.42.mp4
MacOS: Desktop
Screen.Recording.2024-10-15.at.17.24.09.mp4