fix: Add receipt from manual expense, QAB is scan receipt but confirm detail display as manual v2#77849
Conversation
…B is scan receipt but confirm detail display as manual""
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@rojiphil Friendly bump |
|
Reviewing today |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp77849-android-hybrid-001.mp4Android: mWeb Chrome77849-mweb-chrome-001.mp4iOS: HybridApp77849-ios-hybrid-001.mp4iOS: mWeb Safari77849-mweb-safari-001.mp4MacOS: Chrome / Safari77849-web-chrome-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @nkdengineer for the PR.
@mjasikowski Changes LGTM and works well.
Over to you. Thanks
| } | ||
| setSelectedTab(lastSelectedTab); | ||
| // eslint-disable-next-line react-compiler/react-compiler | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
Can you add a comment so everyone knows why the ESLint rules are disabled without looking for context?
There was a problem hiding this comment.
@nkdengineer sorry, but your comment doesn't explain why the rules are getting disabled, It only explains the usage of useEffect()
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.0-8 🚀
|
| // We only want to set the selected tab when selectedTab is not set yet, don't want to run this effect again when lastSelectedTab changes | ||
| // eslint-disable-next-line react-compiler/react-compiler | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| }, [isLoadingSelectedTab, selectedTab]); |
There was a problem hiding this comment.
this caused
We should let this useEffect run when lastSelectedTab is changed. It won't be a problem as there's a early return check.
Explanation of Change
fix: Add receipt from manual expense, QAB is scan receipt but confirm detail display as manual
Fixed Issues
$ #74911
PROPOSAL: #74911 (comment)
Tests
Offline tests
None
QA Steps
Same as test
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
Screen.Recording.2025-12-05.at.14.03.08.mov
Screen.Recording.2025-12-16.at.00.22.33.mov
Android: mWeb Chrome
Screen.Recording.2025-12-05.at.14.02.07.mov
iOS: Native
Screen.Recording.2025-12-05.at.14.08.28.mov
iOS: mWeb Safari
Screen.Recording.2025-12-05.at.14.04.23.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-05.at.14.01.10.mov