Added "Create" button on Reports page#83541
Conversation
|
@luacmartins 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: 5055df13ae
ℹ️ 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".
|
Could you add screenshots @mukhrr ? Let me know when I can run an adhoc test, @luacmartins :) |
|
@dubielzyk-expensify done |
|
🚧 @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.
|
I think we only show the Create report option if you have a workspace, right? It seems like right now we just always show it. We probably want to follow the same logic as the global create button. |
|
@trjExpensify that being said, why don't we just allow any new account to try to create a report (so always show it in global create and the reports page empty state), and just show the create a workspace modal when they do? |
|
I believe that came back to the "track should be funnelled to off-workspace" using the selfDM instead, and all the business intents created a workspace on sign-up. We're working elsewhere on creating workspaces out the gate for Track intent sign-ups now going forward, so I think we don't need to worry and that will take care of it. |
|
Hmm not sure if I agree though. For people that simply choose "Something else" I feel like we're missing an opportunity here for them to easily make reports. |
|
Anyways we can discuss that later. In the meantime, I think we need to align the "Create report" behavior with global create. Can you please update @mukhrr ? Thanks! |
Yeah, not super passionate about maintaining what we have long term - especially as we are looking to create workspaces for track out the gate now. Agree it doesn't feel in scope of this PR though. |
|
Are we cool with having this button on |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Change is good from product perspective
Yeah I'm fine with it and think the Adhoc mobile and desktop looks pretty good to me 👍 |
…itionally show create report option based on policy settings
|
@luacmartins @shawnborton Could you pls have a look at this once more and give me feedbacks?! thanks! |
|
🚧 @shawnborton 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! 🧪🧪
|
|
Works great to me, let's get this thing merged! cc @puneetlath @luacmartins |
puneetlath
left a comment
There was a problem hiding this comment.
Are there any tests we should add?
dannymcclain
left a comment
There was a problem hiding this comment.
Design team approved 👍
src/components/Search/SearchPageHeader/SearchFiltersBarCreateButton.tsx
Outdated
Show resolved
Hide resolved
|
@shawnborton @trjExpensify I think it's okay to implement #83782 right here. What do you think?! |
…e components and refactor SearchFiltersBar to use narrow/wide layout variants
Explanation of Change
Fixed Issues
$ #83430
PROPOSAL: #83430 (comment)
Tests
the same as QA
Offline tests
QA Steps
Desktop:
Mobile
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