Fix : Reports - Create report button does not show upgrade page when account has no workspace#78995
Fix : Reports - Create report button does not show upgrade page when account has no workspace#78995deetergp merged 23 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@shubham1206agra 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 description = useMemo(() => { | ||
| if (isCategorizing ?? isReporting) { | ||
| if (isCategorizing || isReporting) { |
There was a problem hiding this comment.
❌ CONSISTENCY-2
The ?? operator was likely intentional for null/undefined checking, but || treats falsy values differently (including false, 0, ""). If isCategorizing or isReporting are explicitly false, this will incorrectly fall through to the condition.
Suggested fix: Keep the nullish coalescing operator if the intent was to only check for null/undefined:
if (isCategorizing ?? isReporting) {Or if you intended OR logic, use explicit checks:
if (isCategorizing || isReporting) {Note: This appears to be a logical change rather than just a style fix - ensure the new behavior is correct.
Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db5cf3efa9
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| policy: newPolicy, | ||
| reportNextStep, | ||
| policyCategories: allPolicyCategories?.[`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${policyID}`], | ||
| allTransactions, | ||
| }); |
There was a problem hiding this comment.
Pass selected transactions data to bulk move
In this upgrade flow you pass allTransactions from the Onyx TRANSACTION collection into changeTransactionsReport, but the selected items here come from SearchContext (snapshot search results) and aren’t guaranteed to exist in that Onyx collection. changeTransactionsReport filters missing entries and returns early when none are found, so the post-upgrade bulk move can become a no-op for search-based selections. Consider building the allTransactions map from selectedTransactions (as the search change-report flow does) or otherwise ensuring the selected IDs are present before calling.
Useful? React with 👍 / 👎.
|
@M00rish Please fix errors |
|
Done @shubham1206agra |
looks good on my end @ShridharGoel |
|
Can you merge main here? |
Did you try with offline mode? |
|
I think i did will test again today |
|
@ShridharGoel would you check again? you were right, offline was the problem, it's fixed. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-26.at.8.51.35.PM.movAndroid: mWeb ChromeScreen.Recording.2026-04-26.at.8.53.49.PM.moviOS: HybridAppScreen.Recording.2026-04-26.at.8.41.08.PM.moviOS: mWeb SafariScreen.Recording.2026-04-26.at.8.45.15.PM.movMacOS: Chrome / SafariScreen.Recording.2026-04-26.at.8.37.10.PM.mov |
|
🚧 @deetergp 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/deetergp in version: 9.3.62-13 🚀
Bundle Size Analysis (Sentry): |
|
After reviewing the changes in this PR and the existing help site documentation, no help site updates are required. Reasoning:
|
|
🚀 Deployed to staging by https://github.com/deetergp in version: 9.3.63-1 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to staging by https://github.com/deetergp in version: 9.3.64-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.3.64-31 🚀
|

Explanation of Change
Fixed Issues
$ #73762
PROPOSAL:
comment
Tests
Precondition: Account has self DM and no workspace
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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.webm
Android: mWeb Chrome
AndroidWeb.webm
iOS: Native
ios.webm
iOS: mWeb Safari
iosWeb.webm
MacOS: Chrome / Safari
web.webm