Expense-In offline, Try it out button is not responsive in scan expense flow#73055
Expense-In offline, Try it out button is not responsive in scan expense flow#73055chuckdries merged 7 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Patch coverage is
... and 10 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@dominictb 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] |
| const platform = getPlatform(); | ||
| const isNonNativePlatform = platform === CONST.PLATFORM.WEB || platform === CONST.PLATFORM.DESKTOP || platform === CONST.PLATFORM.MOBILE_WEB; | ||
| if (isNonNativePlatform && isOffline && tooltipName === CONST.PRODUCT_TRAINING_TOOLTIP_NAMES.SCAN_TEST_TOOLTIP) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Let's do this in IOURequestStartPage as I suggested before #72881 (comment)
There was a problem hiding this comment.
And add a brief comment explaining the changes:
The test receipt image is served via our server on web so it requires internet connection
| const platform = getPlatform(); | ||
| const isNonNativePlatform = platform === CONST.PLATFORM.WEB || platform === CONST.PLATFORM.DESKTOP || platform === CONST.PLATFORM.MOBILE_WEB; |
There was a problem hiding this comment.
I meant to the top level of IOURequestStartPage file, not to a separate util function
|
|
||
| const shouldShowProductTrainingTooltip = useMemo(() => { | ||
| const platform = getPlatform(); | ||
| const isNonNativePlatform = platform === CONST.PLATFORM.WEB || platform === CONST.PLATFORM.DESKTOP || platform === CONST.PLATFORM.MOBILE_WEB; |
There was a problem hiding this comment.
| const isNonNativePlatform = platform === CONST.PLATFORM.WEB || platform === CONST.PLATFORM.DESKTOP || platform === CONST.PLATFORM.MOBILE_WEB; | |
| const isWeb = [CONST.PLATFORM.WEB, CONST.PLATFORM.DESKTOP, CONST.PLATFORM.MOBILE_WEB].includes(platform); |
|
@dominictb please check again. Thx |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-22.at.18.03.04.movAndroid: mWeb ChromeScreen.Recording.2025-10-22.at.18.05.20.moviOS: HybridAppScreen.Recording.2025-10-22.at.17.46.43.moviOS: mWeb SafariScreen.Recording.2025-10-22.at.17.57.06.movMacOS: Chrome / SafariScreen.Recording.2025-10-22.at.17.36.16.movMacOS: DesktopScreen.Recording.2025-10-22.at.17.44.08-compressed.mov |
|
Bump @chuckdries @lorretheboy Can you merge |
|
@lorretheboy Can you merge |
chuckdries
left a comment
There was a problem hiding this comment.
Looks good! Sorry for the delay on reviewing, I was out of office
|
Sorry all, I missed the ping ^. Just merged main. Please check again. Thanks |
|
@chuckdries looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
The button was green :/// |
|
🚀 Deployed to staging by https://github.com/chuckdries in version: 9.2.46-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.46-3 🚀
|
Explanation of Change
Fixed Issues
$ #72881
PROPOSAL: #72881 (comment)
Tests
scan test tooltip does not appear (mWeb + desktop + web)
scan test tooltip works well (ios + android)
Verify that no errors appear in the JS console
Offline tests
QA Steps
Same as Tests
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
ANDROID.mov
Android: mWeb Chrome
WEBSITE.ANDROID.mov
iOS: Native
IOS.mov
iOS: mWeb Safari
WEBSITE.IOS.mov
MacOS: Chrome / Safari
WEBSITE.mov
MacOS: Desktop
DESKTOP.mov