-
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 CreateCategoryPage #37704
Create CreateCategoryPage #37704
Conversation
@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] |
@Expensify/design |
Added autofocus.
@shawnborton Not sure if we ever discussed what's scrollable here. I'd say that we should tackle that as a separate issue since the scope of this PR is to add the |
@youssef-lr 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] |
@luacmartins a minor polish item, new categories are always added to the bottom optimistically and are not sorted alphabetically, while the backend sends them sorted. I think we should match the backend behavior no? Screen.Recording.2024-03-06.at.17.53.56.mov |
Co-authored-by: Youssef Lourayad <[email protected]>
@youssef-lr we have a new pattern that will add the cateegory, scroll and highlight it, but that will be implemented as part of #35717 for members and then we'll use the same solution for categories |
@youssef-lr updated! |
Oh so it's intentional that we'll not sort them and just add it to the bottom? even though after a refresh it will move? |
@luacmartins FWIW I think it's a simple fix to just add ![]() |
Ah lol I never pushed the change 😓 Ok pushed the change with useCallback and your sorting suggestion too |
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, thanks for the changes!
✋ 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/luacmartins in version: 1.4.48-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.48-0 🚀
|
fill={theme.icon} | ||
/> | ||
Object.values(policyCategories ?? {}) | ||
.sort((a, b) => localeCompare(a.name, b.name)) |
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.
(BZ checklist) for consistency with Olddot we decided to use lodashSortBy
in #44922
Details
Adds the ability to create categories
Fixed Issues
$ #35710
Tests
Settings > Workspace > Categories
Add category
button at the top of the screenCategory name
Save
without any name and verify that you see an errorSave
Offline tests
Settings > Workspace > Categories
Add category
buttonSave
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
safari.mov
MacOS: Desktop
desktop.mov