Remove 'Uncategorized' from the filters when theres no category#76840
Remove 'Uncategorized' from the filters when theres no category#76840luacmartins merged 7 commits intomainfrom
Conversation
Code Review SummaryI've completed a comprehensive review of this PR. The changes look good overall - the simplification from 'category:none,Uncategorized' to just 'none' is clean and consistent across all files. Positive Observations:
Overall Assessment:The PR successfully centralizes the empty category value handling and removes redundant logic. The changes are straightforward, well-tested, and maintain backward compatibility through backend handling. No blocking issues found. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
luacmartins
left a comment
There was a problem hiding this comment.
We have a few failing tests
amyevans
left a comment
There was a problem hiding this comment.
Code changes LGTM, still some failing tests to address though
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ 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: 9.2.75-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.75-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.77-1 🚀
|
Explanation of Change
We have moved the logic for
category:noneto the backend, so we no longer need to sendcategory:none,Uncatgorizedto the backend, we only need to sendnoneFixed Issues
https://github.com/Expensify/Expensify/issues/575024
Tests
Create a policy with categories
Create an expense with no category
Select category -> 'No Category' from the RHP
Ensure that
category:noneis put into the search bar, and returns the correct transactionsOffline tests
N/A
QA Steps
Same as test
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))npm run compress-svg)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