-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes issue [Create expense button on empty Search page allows to create expense for non-migrated users] #52660
Conversation
@ishpaul777 It looks like we should also show a warning modal when |
I dont think so, its not dependent on policyexpense chat, right ? cc @puneetlath |
Yeah, I think we can leave that one as-is. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-18.at.21.49.35.mp4Android: mWeb ChromeScreen.Recording.2024-11-18.at.21.47.32.mp4iOS: NativeScreen.Recording.2024-11-18.at.21.46.37.mp4iOS: mWeb SafariScreen.Recording.2024-11-18.at.21.48.19.mp4MacOS: Chrome / SafariScreen.Recording.2024-11-18.at.21.36.15.mp4MacOS: DesktopScreen.Recording.2024-11-18.at.21.35.52.mp4 |
704446b
to
bbb4ea2
Compare
src/libs/ReportUtils.ts
Outdated
@@ -8433,6 +8433,14 @@ function hasInvoiceReports() { | |||
return allReports.some((report) => isInvoiceReport(report)); | |||
} | |||
|
|||
function areAllGroupPoliciesExpenseChatDisabled(policies = allPolicies) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding! I think this would fit better in PolicyUtils though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PolicyUtils is also already connected to all policies, so I don't think you'd need to pass the policies to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding! I think this would fit better in PolicyUtils though.
oh yeah! forgot about it will do that
PolicyUtils is also already connected to all policies, so I don't think you'd need to pass the policies to it.
actually i did this intentionally for some reason in Floating action menu if i use policies from Onyx.connect, they have stale data is not properly synced with Onyx, i think this is the correct pattern, i read about it here:
App/tests/actions/EnforceActionExportRestrictions.ts
Lines 7 to 10 in 3c1a533
// There are some methods that are OK to use inside an action file, but should not be exported. These are typically methods that look up and return Onyx data. | |
// The correct pattern to use is that every file will use it's own withOnyx or Onyx.connect() to access the Onyx data it needs. This prevents data from becoming stale | |
// and prevents side-effects that you may not be aware of. It also allows each file to access Onyx data in the most performant way. More context can be found in | |
// https://github.com/Expensify/App/issues/27262 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah cool, good to know
Also i just noticed i push some bad changes in src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx, please wait while i fix it |
✋ 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.0.64-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.64-4 🚀
|
Explanation of Change
Fixed Issues
$ #52457
PROPOSAL:
Tests
Expected Result:
Create expense button on the empty Search page will open Coming soon modal.
Offline tests
No specific offline tests
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-11-16.at.4.43.30.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-11-16.at.3.03.11.PM.mov
iOS: Native
Screen.Recording.2024-11-16.at.4.41.08.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-11-16.at.2.44.28.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-16.at.2.38.33.PM.mov
MacOS: Desktop
Screen.Recording.2024-11-16.at.4.55.18.PM.mov