Make SearchFiltersCardPage use new SelectionListWithSections#81685
Conversation
96140b4 to
5b85bb1
Compare
5b85bb1 to
6636285
Compare
|
@dukenv0307 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] |
src/pages/Search/SearchAdvancedFiltersPage/SearchFiltersCardPage.tsx
Outdated
Show resolved
Hide resolved
Code Review SummaryI've reviewed PR #81685 which refactors Changes Overview
Positive Findings
The refactoring follows React best practices and improves code quality. The changes align with the goal of migrating to the new ✅ No issues found - Changes look good! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b887d23fb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| <BaseListItem | ||
| item={item} | ||
| wrapperStyle={[styles.flex1, styles.justifyContentBetween, styles.sidebarLinkInner, styles.userSelectNone, styles.peopleRow]} | ||
| isFocused={isFocused} | ||
| isDisabled={isDisabled} |
There was a problem hiding this comment.
Forward Enter-key guard to BaseListItem
The new SelectionList list renderer always passes shouldPreventEnterKeySubmit to prevent the list item press handler from firing on Enter (the list already handles Enter via its keyboard shortcut). CardListItem drops that prop when it calls BaseListItem, so on web keyboard navigation the Enter key can invoke both the shortcut and the pressable, toggling selection twice (select → deselect) and effectively no-op. Please pass shouldPreventEnterKeySubmit through to BaseListItem like the other SelectionList list items do.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
I checked and many of our list items dopr this prop, so no worries, also I copied this component as it was, so it shouldn't be an issue
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-07.at.09.42.30.movAndroid: mWeb ChromeScreen.Recording.2026-02-07.at.09.39.37.moviOS: HybridAppScreen.Recording.2026-02-07.at.09.43.51.moviOS: mWeb SafariScreen.Recording.2026-02-07.at.09.37.50.movMacOS: Chrome / SafariScreen.Recording.2026-02-07.at.09.35.31.mov |
|
@zfurtak can you please merge main? |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.3.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.17-9 🚀
|
Explanation of Change
Fixed Issues
$ #65658
PROPOSAL:
Tests
ReportExpenseFiltersCardOffline 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-06.at.15.59.27.mov