feat: category settings page#37209
feat: category settings page#37209luacmartins merged 18 commits intoExpensify:mainfrom ArekChr:feat/category_settings_page
Conversation
…settings and categories settings
|
@ishpaul777 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] |
|
Also added a fix for the CategoriesSettingsPage: the offline indicator now correctly appears at the bottom of the screen on mobile devices. |
|
I'm wondering about page naming, to change from |
| [SCREENS.WORKSPACE.CATEGORY_SETTINGS]: { | ||
| path: ROUTES.WORKSPACE_CATEGORY_SETTINGS.route, | ||
| parse: { | ||
| categoryName: (categoryName: string) => decodeURI(categoryName), |
There was a problem hiding this comment.
Regarding to checklist, It appears that this is a new pattern. Previously, parsing and linking were not utilized in this manner, In my opinion, it would be more effective to decode the category name before passing it to the route props.
There was a problem hiding this comment.
@luacmartins ☝️ any thoughts ?
If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
Do we need a scroll view on this page? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-29.at.9.25.06.PM-1.movScreen.Recording.2024-02-29.at.9.27.09.PM-1.movAndroid: mWeb ChromeScreen.Recording.2024-02-29.at.10.09.27.PM.moviOS: NativeScreen.Recording.2024-02-29.at.10.24.16.PM.moviOS: mWeb SafariScreen.Recording.2024-02-29.at.11.08.57.PM-1.movMacOS: Chrome / SafariScreen.Recording.2024-02-29.at.9.06.38.PM.movMacOS: DesktopScreen.Recording.2024-02-29.at.11.50.39.PM.movScreen.Recording.2024-02-29.at.11.49.49.PM.mov |
|
when deeplinking to category settings of unknown category the background screen is not category page Screen.Recording.2024-02-29.at.9.17.49.PM.mov |
|
@ArekChr how do you simulate a error while updating a category setting ? |
|
@Expensify/design |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM and tests well!
|
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ 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.47-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.47-10 🚀
|
| }, | ||
| WORKSPACE_CATEGORY_SETTINGS: { | ||
| route: 'workspace/:policyID/categories/:categoryName', | ||
| getRoute: (policyID: string, categoryName: string) => `workspace/${policyID}/categories/${encodeURI(categoryName)}` as const, |
There was a problem hiding this comment.
This line introduced regression #37885, because encodeURI won't encode /.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI#description


Details
Fixed Issues
#35708
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests
rest steps the same as above for test and offline
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.mov
Android: mWeb Chrome
web.chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
web.safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov