Add value checking for similar search hash#70085
Merged
Merged
Conversation
|
@rushatgabhane 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] |
Member
|
please remove my assignment |
Contributor
Reviewer Checklist
Screenshots/Videosweb.mov |
ikevin127
reviewed
Sep 9, 2025
ikevin127
approved these changes
Sep 9, 2025
ikevin127
left a comment
Contributor
There was a problem hiding this comment.
Let me know about the ☝️ above comment, whether you think it's worth adjusting the logic or it doesn't really matter given the logic's intended behaviour.
Other than that, LGTM 💯
inimaga
requested changes
Sep 10, 2025
…milar-search-hash
…milar-search-hash
Contributor
Author
|
Builds keep failing 🤔 |
…milar-search-hash
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
30 tasks
Contributor
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.2.13-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.13-1 🚀
|
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
We originally implemented 'similarSearchHash' in order to still show searches as active, even if the value of some of the filters change. For example, being on the 'Statements' suggested search and changing the bank/feed should not unfocus the suggested search, since you are still looking at statements.
However, there are some fields that DO impact which search you are on. For example, changing the
actionfilter very much does change the result significantly.To fix this, created an array of items that will also be filtered on by their value, rather than just their keys.
Fixed Issues
$ #69983
Tests
Navigate to the 'approve' saved search.
Open the RHP and change the 'action' to 'Submit'
Ensure that the 'Action' suggested search is not still active (gray background)
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Screen.Recording.2025-09-08.at.8.13.23.AM.mov