Repository navigation
Conversation
…and its negation don't collide Co-authored-by: Eugene Voloshchak <eVoloshchak@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🤖 Web test steps verification results: On Web, the search
|
|
@MelvinBot, pull the latest main |
…archFilterChipKeys Co-authored-by: Eugene Voloshchak <eVoloshchak@users.noreply.github.com>
|
@MelvinBot, include the test steps from #103240 (comment) in your checklist, |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppscreen-20261025-201048-1792955405911.mp4Android: mWeb ChromeScreen.Recording.2026-10-25.at.20.31.14.moviOS: HybridAppScreen.Recording.2026-10-25.at.20.21.04.moviOS: mWeb SafariScreen.Recording.2026-10-25.at.20.18.16.movMacOS: Chrome / SafariScreen.Recording.2026-10-25.at.20.16.54.mov |
|
I updated the PR description:
Please note that I didn't run manual tests on any platform. The |
eVoloshchak
left a comment
There was a problem hiding this comment.
LGTM
@MelvinBot, mark this as ready for review
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #103240 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
I marked this PR as ready for review. |
|
@eVoloshchak 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |






Explanation of Change
Each search filter chip used its base filter name as its React key. A filter and its negation share that base name, so
status:approved -status:drafts,paidrendered two chips keyedstatus. React then logged "Encountered two children with the same key".keyis still needed as the base filter name, because it picks the chip's popover and display value. So this PR adds a separateidto each chip:mapFiltersFormToLabelValueListnow setsidto the original form key (for examplestatusorstatusNot). Grouped chips (date, amount, report field) use their group key, which is already unique.SearchFiltersBarWide,SearchFiltersBarNarrow, andSearchSavePageuseidas the React key instead ofkey.SearchSavePagehad the same bug in its list of applied filters.statusandstatusNotchips share akeybut have differentidvalues.AI Tests:
npm testonSearchUIUtilsTest,SearchSavePageTest, anduseSearchFiltersBar.test(631 passed),npm run typecheck,npm run lint-changed,npm run spell-changed, and the React Compiler compliance check on the changed.tsxfiles all passed. An automated browser check could not run because the test session failed to load the app.Fixed Issues
$ #103240
PROPOSAL: #103240 (comment)
Tests
Precondition:
Offline tests
QA Steps
Precondition:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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