refactor findPreviousAction and findNextAction to use isOffline from useOnyx#85022
refactor findPreviousAction and findNextAction to use isOffline from useOnyx#85022tgolen merged 2 commits intoExpensify:mainfrom
Conversation
|
@DylanDylann 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] |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@DylanDylann bump for reviewing |
| }); | ||
|
|
||
| let isNetworkOffline = false; | ||
| let deprecatedIsNetworkOffline = false; |
There was a problem hiding this comment.
@dukenv0307 I think we could use Onyx.connectWithoutView for this case.
cc @tgolen for confirmation
There was a problem hiding this comment.
@DylanDylann can you please explain the reason?
There was a problem hiding this comment.
isNetworkOffline is used by some functions that are bound directly to the UI. If we want these functions to be completely pure (as previously intended), then removing Onyx.connect like this makes sense. I just want to get confirmation from Tim to be sure that this is still the intended approach
There was a problem hiding this comment.
Hi, thanks! I think it's still the right approach to make these pure functions.
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-18.at.15.46.41.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #66407 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 @tgolen 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/tgolen in version: 9.3.41-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.41-4 🚀
|
Explanation of Change
Fixed Issues
$ #66407
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-03-12.at.10.53.39.mov