fix: Remove 'Action' From Search RHP#77958
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@jayeshmangwani 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] |
Code Review SummaryI've reviewed this PR and found that while the UI-related code for the Action filter has been properly removed, there are several remaining references in the codebase that need to be addressed: ❌ Critical Issues FoundRemaining references to
These references will likely cause issues since the UI filter has been removed but the backend logic still references it. ✅ What Was Done Well
🔧 Required ChangesPlease remove or update all remaining references to ensure consistency across the codebase. |
Detailed Code Review FindingsIncomplete Removal - ACTION Filter References Still ExistWhile the UI components have been properly removed, several backend references remain that could cause issues: 1. src/libs/SearchQueryUtils.tsLine 349: Creates a set containing only the ACTION filter key These should be removed. 2. src/libs/SearchAutocompleteUtils.tsLines 195-196: Case statement handles ACTION filter autocomplete - should be removed. 3. tests/unit/Search/SearchQueryUtilsTest.tsLine 104: Test includes ACTION filter in expected results - should be removed. 4. tests/actions/IOUTest.tsMultiple occurrences at lines 239, 251, 297, 308: Tests include ACTION filter references - should be updated. Summary
Please update these files to ensure complete removal of the Action filter functionality. |
Additional Findings - More Extensive Changes NeededAfter a deeper search, the scope of this change is much larger than currently implemented. There are extensive references throughout the codebase: Additional Files Requiring Changes:Core Logic Files:
Language Files (All Languages):All language files contain ACTION filter translations that should be removed:
Test Files:
Recommendation:This PR is incomplete in its current state. The removal of the Action filter is a significant architectural change that affects:
Suggested approach:
This is a larger refactoring task than initially scoped. |
|
@JS00001 can you confirm whether we’re good to remove the code of Or might we need this page in the future, if so, we can block direct URL access to |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: HybridAppiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.mov |
|
Lets remove the page entirely, since its unused |
|
✋ 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/JS00001 in version: 9.2.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.85-7 🚀
|
Explanation of Change
Fixed Issues
$ #77519
PROPOSAL: #77519 (comment)
Tests
Actionisn't displayedOffline tests
Same as 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))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
Android: Native
and.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov