-
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 issue with splitting distance in quick actions #47737
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
…ce and amount are calculated before splitting. Signed-off-by: GitHub <[email protected]>
81a0154
to
49dfe7f
Compare
@Shahidullah-Muffakir Please upload videos of the test steps for each platform in the OP. |
Reviewer Checklist
Screenshots/VideosAndroid: Native47737-android-native.mp4Android: mWeb Chrome47737-android-chrome.mp4iOS: Native47737-ios-native.mp4iOS: mWeb Safari47737-ios-safari.mp4MacOS: Chrome / Safari47737-web.mp4MacOS: Desktop47737-desktop.mp4 |
@akinwale , I've added the videos of the test steps for each platform to the OP |
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.
Can you merge main? |
Merge main into fix/47021
@youssef-lr I merged Main and pushed the changes. |
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.30-2 🚀
|
shipped to production #48664 on Sep 9 |
Details
This PR fixes an issue where splitting an expense by distance in the quick actions caused an error due to missing calculations. The update ensures that the distance and amount are calculated before the "Split" button is shown.
Fixed Issues
$#47021
PROPOSAL:#47021 (comment)
Tests
Navigate to the quick actions and select "Split Distance."
Enter the Start and Stop locations.
Verify that:
- The "Next" button appears after entering the locations.
- Clicking "Next" correctly calculates the distance and amount.
- The "Split" button only appears after the calculations are complete.
- The expense splits without errors.
- Confirm that no errors appear under the newly added distance split in workspace chat
Verify that no errors appear in the JS console
Offline tests
Distance Split cannot be tested offline as it requires real-time calculations for distance and amount, which depend on network connectivity.
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.online-video-cutter.com.-2.mp4
Android: mWeb Chrome
andriodWeb.online-video-cutter.com.mp4
iOS: Native
iphone.mp4
iOS: mWeb Safari
mWeb.mp4
MacOS: Chrome / Safari
web-2.mp4
MacOS: Desktop
desktop.mp4