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 <youssef@expensify.com>
|
@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 |
youssef-lr
left a comment
There was a problem hiding this comment.
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.
(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 > CategoriesAdd categorybutton at the top of the screenCategory nameSavewithout any name and verify that you see an errorSaveOffline tests
Settings > Workspace > CategoriesAdd categorybuttonSaveQA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
safari.mov
MacOS: Desktop
desktop.mov