[HOLD] Revert #72714 – "Add primary receipt scan option on mobile and web - v2"#72729
[HOLD] Revert #72714 – "Add primary receipt scan option on mobile and web - v2"#72729francoisl wants to merge 1 commit into
Conversation
|
🚧 @francoisl 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, Desktop, and Web. Happy testing! 🧪🧪
|
|
@ahmedGaber93 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] |
|
It's a straight revert, no need for a C+ review here, thanks! |
|
|
||
| const {shouldUseNarrowLayout} = useResponsiveLayout(); | ||
|
|
||
| const valueTextStyle = useMemo(() => (isOffline ? [styles.textLabelSupporting, styles.labelStrong] : [styles.labelStrong]), [isOffline, styles]); |
There was a problem hiding this comment.
❌ PERF-6 (docs)
Passing the entire styles object as a dependency causes this useMemo to re-execute whenever any style property changes, even unrelated ones. This creates unnecessary recalculations and impacts performance predictability.
Specify individual style properties as dependencies:
const valueTextStyle = useMemo(() => (isOffline ? [styles.textLabelSupporting, styles.labelStrong] : [styles.labelStrong]), [isOffline, styles.textLabelSupporting, styles.labelStrong]);|
@francoisl I think we really don't want to revert the PR! Can you give us some time, so we can check the blockers and prepare fixes instead? 🙏 |
|
Adding hold, we are working on the fix for this one https://expensify.slack.com/archives/C08CZDJFJ77/p1760603258003289?thread_ts=1759942069.284649&cid=C08CZDJFJ77 |
Explanation of Change
Straight revert of #72714, to fix a deploy blocker where expenses are created with a flipped amount.
Fixed Issues
$ #72727
Maybe #72728 (cc @lakchote)
Tests
Same as QA
Offline tests
N/A
QA Steps
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
MacOS: Chrome / Safari
Screen.Recording.2025-10-15.at.18.55.27.mov