-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create Category utils file #42305
Create Category utils file #42305
Conversation
@@ -12,7 +12,7 @@ import useLocalize from '@hooks/useLocalize'; | |||
import useNetwork from '@hooks/useNetwork'; | |||
import useThemeStyles from '@hooks/useThemeStyles'; | |||
import useWindowDimensions from '@hooks/useWindowDimensions'; | |||
import {openDraftWorkspaceRequest} from '@libs/actions/Policy'; | |||
import {openDraftWorkspaceRequest} from '@libs/actions/Policy/Policy'; |
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.
Commenting on my own code here but I think we should change all of these @libs/actions
to @userActions
- what do you think, reviewer?
I asked here but didn't get any responses.
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.
Yeah that change should be fine!
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.
Why do you think we should change this?
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.
just consistency, really - if we have the more specific shortcut I feel like we should use 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.
Yea, that makes sense. Let's do it!
oh huh PullerBear isn't going to work with the site down. Will try again later. |
@@ -12,7 +12,7 @@ import useLocalize from '@hooks/useLocalize'; | |||
import useNetwork from '@hooks/useNetwork'; | |||
import useThemeStyles from '@hooks/useThemeStyles'; | |||
import useWindowDimensions from '@hooks/useWindowDimensions'; | |||
import {openDraftWorkspaceRequest} from '@libs/actions/Policy'; | |||
import {openDraftWorkspaceRequest} from '@libs/actions/Policy/Policy'; |
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.
Yeah that change should be fine!
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.
LGTM
Okay I think this is ready to go now - I updated the shortcut! Will try reapplying PullerBear too now that the site is not broken |
Looks like the linter is failing |
oh lol changing the shortcuts changed the alphabetization |
Conflicts! |
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.
LGTM. We have conflicts now though
@dangrous conflicts again |
f259939
Merge conflicts fixed! We should probably request a merge for this one in #deployers, right? It's a bit high-risk if I missed anything, but it's going to keep building up conflicts... Let me know what you think. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Hm, in working on the Tags PR, I discovered there's one function that I and the linter didn't notice I've now doubled, buildOptimisticPolicyCategories. I just tried shifting this over, but now we get a circular dependency with |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
cc @luacmartins and @amyevans since this was your initiative
Details
First stage of #38477 - setting up the directory and creating the Category specific stuff, will then make new PRs for Members, Tags, and Distance Rates.
77 files is scary! But most of them are just swapping an import.
In terms of testing, we could maybe do some spot checks re: categories, but otherwise this is just administrative and shouldn't cause any issues. No new or changed functionality, just organization.
Fixed Issues
#38477
PROPOSAL:
Tests
N/A
Offline tests
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop