-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix split input and show a warning when the split total exceeds the original transaction #80188
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
Conversation
…s the original transaction Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
|
@ShridharGoel 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] |
| optionRowAmountMobileInputContainer: { | ||
| width: variables.splitExpenseAmountMobileWidth, | ||
| }, |
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.
I am removing this because it is not used anywhere.
| reportSearchHeaderMaxWidth: 700, | ||
|
|
||
| // Split expense tabs | ||
| splitExpenseAmountMobileWidth: 82, |
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.
I am removing this because it is not used anywhere.
| splitExpensePercentageWidth: 42, | ||
| splitExpensePercentageMobileWidth: 62, |
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.
Directly set the width in the optionRowPercentInputContainer style.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
|
@ShridharGoel PR is ready |
src/styles/index.ts
Outdated
|
|
||
| optionRowPercentInputContainer: { | ||
| width: variables.splitExpensePercentageMobileWidth, | ||
| width: 66, // Width of the split expense percentage text input container. It should not be too wide or too narrow. |
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.
Let's move it to src/styles/variables.ts.
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.
@ShridharGoel I’ve moved this to variables.
| }, | ||
|
|
||
| optionRowAmountMobileInputContainer: { | ||
| width: variables.splitExpenseAmountMobileWidth, |
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 are we changing 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.
optionRowAmountMobileInputContainer is not used anywhere in the codebase, so I’m removing it to avoid confusion.
| @@ -1266,17 +1266,11 @@ const staticStyles = (theme: ThemeColors) => | |||
| textAlign: 'right', | |||
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.
Do we not need to change 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.
optionRowAmountInput is also used by other files, so we can’t change it.
I’m removing optionRowAmountInput from the SplitAmountInput styles instead.
Signed-off-by: Tsaqif <tsaiinkwa@yahoo.com>
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-24.at.3.11.23.PM.movAndroid: mWeb ChromeScreen.Recording.2026-01-24.at.3.09.35.PM.moviOS: HybridAppScreen.Recording.2026-01-24.at.2.48.30.PM.moviOS: mWeb SafariScreen.Recording.2026-01-24.at.2.52.20.PM.movMacOS: Chrome / SafariScreen.Recording.2026-01-24.at.2.51.40.PM.mov |
|
✋ 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.3.11-0 🚀
|

Explanation of Change
Fixed Issues
$ #78092
PROPOSAL: #78092 (comment)
Tests
Test steps:
…is shown).Offline tests
QA Steps
Test steps:
…is shown).PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_native_d.mp4
Android: mWeb Chrome
android_mweb_d.mp4
iOS: Native
ios_native_d.mp4
iOS: mWeb Safari
ios_msafari_d.mp4
MacOS: Chrome / Safari
macos_web_d.mp4