Use group policy filtering in create report flow - #98731
Conversation
|
@MonilBhavsar 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ca224452f
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
MonilBhavsar
left a comment
There was a problem hiding this comment.
Multiple tests are failing, please check
Reviewer Checklist
Screenshots/Videos
Android: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
Seems Github is down. |
Co-authored-by: Monil Bhavsar <monilbhavsar25@gmail.com>
|
Looks like some unrelated TS check is failing |
|
Being fixed here #98875. You can merge main then |
|
🚧 puneetlath 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/puneetlath in version: 9.4.56-0 🚀
|
Help site review — no changes required 📚I reviewed the changes in this PR against the help articles under Why: This is an internal refactor of which workspaces are eligible in the create-report flow — the FAB Create report menu and the workspace selector now derive eligibility from group-policy checks ( The relevant article, Create and Submit Reports, documents the flow at the user level (+ Create → Create report, opening a draft on your default workspace, with More → Change workspace to switch). It never documented the internal personal-vs-group eligibility rules this PR adjusts, so it remains accurate as written. A scan of the New Expensify docs found no article that describes personal workspaces as an option for report creation that this change would contradict. No draft docs PR was created since there's nothing to update. @fedirjh, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.4.56-3 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
This PR continues https://github.com/Expensify/Expensify/issues/370320 by updating the create-report workspace flow to rely on group-policy eligibility instead of the deprecated
isPolicyExpenseChatEnabledflag. The FAB create-report menu and the workspace selector now include group workspaces and exclude personal workspaces based on policy type, which matches the rest of the migrated flow.Fixed Issues
$ Part of https://github.com/Expensify/Expensify/issues/370320
Tests
Offline tests
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos