Improve create report flow from search page with workspace validation#83975
Improve create report flow from search page with workspace validation#83975puneetlath merged 3 commits intoExpensify:mainfrom
Conversation
… and upgrade handling
|
@mananjadhav 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5c2a306a27
ℹ️ 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".
src/components/Search/SearchPageHeader/SearchFiltersBarCreateButton.tsx
Outdated
Show resolved
Hide resolved
|
@mananjadhav let's get this merged ASAP, pls, before the PR gets reverted. cc @trjExpensify |
| const [groupPoliciesWithChatEnabled = CONST.EMPTY_ARRAY] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {selector: groupPaidPoliciesWithChatEnabledSelector}, [email]); | ||
| const [shouldRedirectToExpensifyClassic = false] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {selector: shouldRedirectToExpensifyClassicSelector}); | ||
| const shouldShowCreateReportOption = shouldRedirectToExpensifyClassic || groupPoliciesWithChatEnabled.length > 0; | ||
| const currentUserPersonalDetails = useCurrentUserPersonalDetails(); |
There was a problem hiding this comment.
@mukhrr I am reviewing this code and I can see most of this is similar/picked from the FloatingActionButtonAndPopver? Is this the correct solution?
There was a problem hiding this comment.
@mananjadhav I thought so since they almost do the same behave
There was a problem hiding this comment.
I've posted the same question here, primarily about the duplication of the code and moving to another hook.
cc - @puneetlath
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
CleanShot.2026-03-03.at.15.45.56.mp4 |
Improve create report flow from search page with workspace validation (cherry picked from commit dc22562) (cherry-picked to staging by blimpich)
|
🚧 @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! 🧪🧪
|
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.3.28-7 🚀
|
|
@mukhrr @puneetlath @trjExpensify ScreenRecording_03-03-2026.16-56-13_1.MP4 |
|
Yes, it is only expected to show on wider views. |
|
Yep, agreed! |
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.3.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.30-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.3.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.31-12 🚀
|

Explanation of Change
Fixed Issues
$ #83960
#83782
PROPOSAL: #83782 (comment)
Tests
Offline tests
QA Steps
Rhe same as tests
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
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4