Feature/kuba nowakowski/update the new report empty state#66057
Conversation
…t-empty-state # Conflicts: # src/components/MoneyRequestReportView/SearchMoneyRequestReportEmptyState.tsx # src/libs/ReportSecondaryActionUtils.ts
…t-empty-state # Conflicts: # tests/unit/ReportPrimaryActionUtilsTest.ts
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-app-2025-09-25_16.48.46.mp4Android: mWeb Chromeandroid-chrome-2025-09-25_16.52.55.mp4iOS: HybridAppios-app-2025-09-25_16.29.04.mp4iOS: mWeb Safariios-safari-2025-09-25_16.31.28.mp4MacOS: Chrome / Safaridesktop-chrome-2025-09-25_14.46.20.mp4MacOS: Desktopdesktop-app-2025-09-25_16.15.06.mp4 |
|
@sumo-slonik Should we add a QA test for having workflows disabled? |
|
@sumo-slonik Also we should probably add #65830 to the linked issues list. |
I believe we can add it, though it didn’t seem strictly necessary to me since it was a bug that already existed in production, and this feature simply brought it to light. It has been addressed as part of this PR, but I didn’t treat it as its main focus. Let me know if you think it’s worth adding to the test steps, I can add it if so. |
This looks like a backend issue, I’ve also encountered these errors before, but I assumed it was just a temporary problem. |
Co-authored-by: Joel Davies <joeld.dev@gmail.com>
|
There's also an issue with adding expenses here. The situation is slightly different, but the error on the frontend looks similar. I’ll check if applying these changes makes any difference: |
|
Based on what I checked, it seems to be a backend issue. I looked into the data we're sending from the frontend, and it appears that on the backend side it's not possible to add a report when workflows are disabled. What seems most likely to me is that the issue is related to the workflow responsible for adding approvals. |
|
Otherwise tests well 👍 |
|
Good catch on that, let's make it look like staging 👍 |
|
@sumo-slonik welcome back! Let's wrap this one up |
|
I’m back from vacation and I’m getting to it now. |
|
It seems to me that now it’s centered as it should be. Screen.Recording.2025-09-26.at.11.40.44.movApart from the centering, is there anything else we should fix here @jjcoffee? |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
Can you show us what it looks like when the report has no expenses but has a comment? |
|
After adding the comments, it looks like this: Screen.Recording.2025-09-26.at.12.23.00.mov |
|
Sorry, one other thing I'm noticing now is that for a workspace with Workflows disabled, there are some "next steps" messages that disappear after a brief pause:
desktop-chrome-2025-09-26_13.04.23.mp4 |
It seems to me that this is the expected behavior, because we don’t have the option to add expenses at that point, so the part responsible for adding them is hidden. But if I’m wrong, I’m happy to correct it as well. |
Screen.Recording.2025-09-26.at.14.28.14.movI’m already working on fixing this, as it’s related to the empty state. FYI, it also occurs on the staging environment. |
Yeah it was more just to show what it looks like as it's a bit empty looking without a subtitle. @shawnborton Any thoughts on this? I guess it's not a super important screen anyway. |
Maybe we can leave it for a followup if it's going to take long. cc @mountiny |
The bug comes from the fact that in the optimistic data we create the contents of the next steps for this case, but we don’t receive them from the backend, so we overwrite them with an empty object. |
|
@sumo-slonik @jjcoffee Yeah if this is reproducible in main, lets not fix it here as that will just add a scope to the PR that is already complex Can you please report it in slack with the reproduction steps so QA can create a new issue for it? |
https://swmansion.slack.com/archives/C049HHMV9SM/p1759132401737009 I wrote about it on Slack.
I think we should do this in a separate PR, since it also affects STG. This PR is already quite complex even without it, I think we should aim to merge this PR so that its scope doesn’t grow any further. |
|
Here we have an issue with the optimistic next steps. |
|
✋ 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/marcochavezf in version: 9.2.20-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.2.20-4 🚀
|




Explanation of Change
Fixed Issues
$ #64730
$ #65830
PROPOSAL:
Tests
Offline tests
Unnesesary
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))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-06-27.at.19.17.38.mov
Android: mWeb Chrome
android.web.1.mov
iOS: Native
ios.native.mov
iOS: mWeb Safari
web.ios.mov
MacOS: Chrome / Safari
web.mac.mov
MacOS: Desktop
desktop.mov