fix: submit button is present after creating a scan expense with missing amount and missing merchant#69218
Conversation
…mitting a scan expense with missing amount""
|
@ZhenjaHorbach 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/VideosMacOS: Chrome / Safari2025-08-29.13.33.20.movMacOS: Desktop2025-08-29.13.33.20.mov |
|
LGTM ! |
trjExpensify
left a comment
There was a problem hiding this comment.
I think we should be handling this better to not show a submit button in the first place if all the expenses on the report are partial.
It results in this pretty janky error message in-line:
2025-09-03_12-59-35.mp4
CC: @JmillsExpensify
|
@trjExpensify In this PR, we also hide the |
Can you rephrase that comment? I'm not following you. Thanks! |
|
|
@trjExpensify The video is on staging. |
|
Interesting, and why don't the tests cover the |
|
Updated the test step. |
|
@mkzie2 |
|
🚧 @trjExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Build keeps failing when I try to do web-only for speed. |
|
🚧 @trjExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Now trying for all. |
|
🚧 @trjExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
I give up for now, can't test. I'd like to see an end-to-end video of these steps:
|
|
@mkzie2 |
|
just kicked off another build, we'll see if it works |
|
🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
@trjExpensify |
|
it's running |
|
🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
@trjExpensify the QR codes for the AdHoc build are ready to go! |
trjExpensify
left a comment
There was a problem hiding this comment.
- Create an empty expense report
- Add a receipt that will fail scanning
- Verify the SmartScan fails
- Verify the submit button doesn't appear
- Enter the merchant
- Verify the Submit button appears
- Submit the report
- Verify the expense report submits fine
- Verify that the approve button appears for the approver.
- Approve the report
- Verify the report is approved
^^ executed those and it worked! 👍
2026-02-24_22-48-00.mp4
|
🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/jasperhuangg in version: 9.3.26-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.3.26-8 🚀
|




Explanation of Change
fix: approve button is present after submitting a scan expense with missing amount
Fixed Issues
$ #67173
PROPOSAL: #67173 (comment)
Tests
Precondition: The workspace enables the workflow and setting the default approver
Offline tests
None
QA Steps
Precondition: The workspace enables the workflow and setting the default approver
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))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
Screen.Recording.2025-08-05.at.23.11.36.mov
Android: mWeb Chrome
Screen.Recording.2025-08-05.at.23.13.22.mov
iOS: Native
Screen.Recording.2025-08-05.at.23.12.09.mov
iOS: mWeb Safari
Screen.Recording.2025-08-05.at.23.12.34.mov
MacOS: Chrome / Safari
Screen.Recording.2025-08-05.at.23.09.45.mov
MacOS: Desktop
Screen.Recording.2025-08-05.at.23.13.53.mov