-
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
Category settings: Default categories follow-up #49030
Category settings: Default categories follow-up #49030
Conversation
/> | ||
)} | ||
{canUseWorkspaceRules && categoryID && groupID && ( | ||
<CategorySelectorModal |
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.
I moved the modal here to avoid SectionList
nesting, which was causing a lot of problems, especially scrolling issues.
@@ -426,9 +424,6 @@ function BaseSelectionList<TItem extends ListItem>( | |||
</> | |||
); | |||
|
|||
// eslint-disable-next-line react/jsx-props-no-spreading | |||
const scrollComponent = shouldUseCustomScrollView ? (props: ScrollViewProps) => <ScrollView {...props} /> : undefined; |
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.
Removing the workaround I've added previously
@dukenv0307 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] |
@dukenv0307 please give this a first pass. LMK if you need access to the Design Doc. But I believe the changes here should be straightforward enough. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-17.at.11.04.49.movAndroid: mWeb ChromeScreen.Recording.2024-09-17.at.11.02.25.moviOS: NativeScreen.Recording.2024-09-17.at.11.03.38.moviOS: mWeb SafariScreen.Recording.2024-09-17.at.11.01.19.movMacOS: Chrome / SafariScreen.Recording.2024-09-17.at.10.58.57.movMacOS: DesktopScreen.Recording.2024-09-17.at.11.07.48.mov |
LGTM and tests well |
✋ 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/marcaaron in version: 9.0.38-0 🚀
|
🚀 Deployed to production by https://github.com/grgia in version: 9.0.38-4 🚀
|
Details
This PR removes the rendered list and uses SectionList as described in the design doc. We were forced to use the rendered list to avoid problems related to scrolling, but after this refactor we don't need it anymore.
Fixed Issues
$ #47018
Tests
Firstly we need to ensure two things:
Categories
settingNow going into proper testing:
canUseWorkspaceRules
beta is enabledVerify that it worked and is shown in spend categories list now.
Offline tests
Same as above
QA Steps
Same as above
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.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov