Fix showing category row when it's empty#64999
Conversation
This comment has been minimized.
This comment has been minimized.
|
bump for testing on your own data @shawnborton 🙏 |
|
Lovely, will run a test build now. |
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Couldn't test iOS above but with a responsive/skinny browser window, it seems like this is fixed 👍 |
|
@fedirjh can you test please? |
Reviewer Checklist
Screenshots/Videos |
mountiny
left a comment
There was a problem hiding this comment.
@SzymczakJ Thanks! Please add unit tests and clean up all the places in the app that should use this category missing logic
Thank you!
| return Object.values(policyCategories).filter((policyCategory) => policyCategory.enabled).length; | ||
| } | ||
|
|
||
| function isCategoryMissing(category: string | undefined): boolean { |
There was a problem hiding this comment.
There are some other places in the App which could and should use this method, could you please write a unit test for it and also audit all the places that do similar is category missing check and should use it? thanks!
There was a problem hiding this comment.
Just please link it to the original issue
There was a problem hiding this comment.
PR with tests and clean up is ready for review #65232.
|
✋ 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/mountiny in version: 9.1.74-2 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.74-10 🚀
|
















Explanation of Change
Fixed Issues
$ #64997
PROPOSAL:
Tests
Only on small screens
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop