fix: hide create report button on submit empty state for users without paid group policy chat and policy chat disabled #64915
Conversation
…xpenseChatEnabled disable
|
Hmm, the test failures don’t seem related. I’ll merge main later. |
|
@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] |
|
@shubham1206agra I've updated |
@linhvovan29546 I am still seeing one more suggested option |
|
@shubham1206agra I've updated. I noticed that section is still in progress, so I will ping the author to make sure they don't miss this. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppNA |
|
Hang on, wait. What is this PR doing? |
|
And this proposal @linhvovan29546 put forward:
|
|
@trjExpensify Yeah, that was my initial implementation. Then @shubham1206agra suggested hiding the section, and @luacmartins agreed. If we only need to hide the button, I will revert the change. Ref: #64915 (comment) |
…ty-submit-state-when-policy-expense-chat-disable
|
@trjExpensify, is there a case we need to show the suggested section, since there are no expenses possible given the configuration? |
@shubham1206agra I just rechecked with the account has precondition from OP. We have the case the user creates a workspace in ND, submits an expense, and then deletes the second workspace
I think option (2) is correct. (1) seems like a bug. cc @trjExpensify Screen.Recording.2025-07-04.at.21.35.48.mov |
|
@linhvovan29546 But both workspaces should be present according to the code, although you deleted the 2nd workspace. The deleted workspace should be present but in the Archive state. |
@linhvovan29546 This problem still exists on main if I remove all the workspaces. So, not sure what should be done here. But the bug does not belong to this PR. |
|
@shubham1206agra I didn’t delete all the workspaces the workspace created from OD must exists Edit: I've updated the comment above |
@linhvovan29546 I am just saying this bug exists on main. Imagine there is no OD workspace, and then perform the same step. |
|
I think we should just focus on the |
@trjExpensify We can, but the changes will be redundant honestly. |
|
@linhvovan29546 Can you revert to the original changes? Since the new changes require discussion internally. |
|
Sure! Just note that I will force push. |
70d5b27 to
28cbcc9
Compare
|
@shubham1206agra I've reverted the change. |
|
@luacmartins This is ready for merge now. |
|
✋ 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/luacmartins in version: 9.1.78-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.78-4 🚀
|









Explanation of Change
This PR hide 'Create report' button on Submit suggested search empty state when the user has a paid group policy with expense chat disabled
Fixed Issues
$ #64646
PROPOSAL: #64646 (comment)
Tests
Pre-requisite
The account your testing with is only a member of workspaces that aren’t NewDot compatible (don’t have the isPolicyExpenseChatEnabled: true policyNVP)
Action Performed (including steps to get an account into that state):
Offline tests
Same as test above
QA Steps
Same as test above
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop