Move deleteReport to a separate file and use Onyx.connectWithoutView#82481
Conversation
|
@alitoshmatov 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] |
|
@brunovjk @MarioExpensify One of you needs to 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] |
|
I believe @eVoloshchak will review this |
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.
|
| import deleteReport from '@libs/actions/Report/DeleteReport'; | ||
| import CONST from '@src/CONST'; | ||
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
| import {ReportAction} from '@src/types/onyx'; |
There was a problem hiding this comment.
| import {ReportAction} from '@src/types/onyx'; | |
| import type {ReportAction} from '@src/types/onyx'; |
MarioExpensify
left a comment
There was a problem hiding this comment.
Awesome, thank you!
|
Woops, @eVoloshchak can you proceed with reviewer checklist please? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppvideo_2026-06-11_21-48-43.mp4Android: mWeb Chromevideo_2026-06-11_21-01-37.mp4iOS: HybridAppScreen.Recording.2026-06-11.at.20.56.17.moviOS: mWeb SafariScreen.Recording.2026-06-11.at.20.52.57.movMacOS: Chrome / SafariScreen.Recording.2026-06-11.at.20.51.30.mov |
@bernhardoj, this doesn't work on native (both iOS and Android), you're not redirected to Concierge. Screen.Recording.2026-02-18.at.12.56.01.movScreen.Recording.2026-02-18.at.12.48.41.mov |
|
@bernhardoj please address @eVoloshchak's comments, also, please don't forget to add proper screenshots/videos for each platform. |
Hmm, this is because inlineRequires, which imports the file/module when the function is called for the first time. So, when it's called for the first time, the report collection is empty. |
|
The Onyx fix is done a week ago, @eVoloshchak this is now ready for your review again. |
|
@eVoloshchak bump |
@bernhardoj, those steps don't work for me anymore, there is no error on report creation, the app just falls back into the offline mode Screen.Recording.2026-06-09.at.07.55.59.movScreen.Recording.2026-06-09.at.07.54.05.mov |
|
@eVoloshchak I've adjusted the test step. Please try again |
|
@bernhardoj, I think we'll need different steps. The behavior for narrow screen layout has changed, we don't redirect to the actual chat after submitting the expense Screen.Recording.2026-06-09.at.14.56.27.movScreen.Recording.2026-06-09.at.14.57.35.mov |
|
Additionally, ESlint is failing |
|
Added Merged with main to fix the lint |
|
@bernhardoj, this still doesn't work for me, could you please double-check if you're seeing the same behavior? Screen.Recording.2026-06-10.at.19.19.16.movScreen.Recording.2026-06-10.at.19.16.55.movScreen.Recording.2026-06-10.at.19.16.03.mov |
Hmm, looks like something changed. You mean that this is not happening anymore, right? |
|
If you let it load for a few seconds, there will be another error in the middle. Press that one. The error at the bottom will simply go back and doesn't call App/src/pages/inbox/ReportScreen.tsx Lines 98 to 102 in 674cd8c
|
|
@luacmartins lint error gone |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.4.7-0 🚀
Bundle Size Analysis (Sentry): |
Help site review — no docs changes requiredI reviewed the changes in this PR and no help site documentation updates are required. Why: This is a purely internal code refactor with no user-facing impact:
There are no changes to features, UI, button labels, tab names, settings, billing, workspaces, or integrations — nothing that the articles under @bernhardoj, since no help site changes were needed, there is no docs PR to review. If you believe this refactor does change documented behavior, reply with details and I'll take another look. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.4.7-4 🚀
|


Explanation of Change
Fixed Issues
$ #73651
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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
Android: Native
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4