Repository navigation
fix: show clear button on all SelectionList search fields - #101086
Conversation
d39cb86 to
6d866b7
Compare
6d866b7 to
dc775a5
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
ReviewThe one-line change is correct and does what the description claims. I verified the behavior live on web — it works. Two things to address before merge, plus one nit. 1. The 2. Confirm the spinner-vs-X behavior is intended on server-side search lists. 3. Nit: the new test doesn't lock in that behavior, even though the description names it as the reason for not passing What I verifiedScope claim holds. Both No side effect from the Clearing goes through the normal path. The button calls Focus is retained on web via the Minor: Not run: I couldn't execute Live verification on web (Settings > Profile > Timezone)I ran this on the PR branch against a Empty field — no X:
After typing — X appears, vertically centered, not clipping the text, field height unchanged:
After pressing X — field cleared, full list restored, and typing immediately afterward landed in the search field without re-clicking it, confirming focus was kept:
The console-error check is not covered: the web driver has no console inspection command. Network traffic was all Reply with |
|
Some more places:
These are search inputs so I think clear button is expected to show. @MelvinBot any more missing places? |
|
Those two are the only list-filter search inputs still missing the X. I swept every text input in Still missing:
Gotcha on the emoji picker: Worth considering: that emoji picker input is a hand-rolled copy of How I checked, and the two judgement calls163 files import
Two I left off the list deliberately, tell me if you disagree:
This was a static sweep of Reply with view run · no recording available |
…-search-button-to-selectonList-search-fields
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
ReviewYes — both places Two things to tidy before merge, plus one nit. 1. The PR description doesn't cover the new changes. The 2. The emoji picker inputs went from uncontrolled to controlled — attach native evidence. 3. Nit: On the resize bug you filmed: worth re-checking on this branch. Making the input controlled means it can no longer diverge from What I checked staticallyAll three sites are correct and complete. Relative to the list I gave above, every place is covered: emoji picker web, emoji picker native, and Clearing goes through the normal typing path. The button calls No side effects from omitting Layout is safe on the compact input. Still open from my earlier review (minor): the new unit test doesn't assert the X is hidden while Live verification on web (emoji picker, PR head
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
Regression huntNo functional breakage found. I drove the changed surfaces on web and swept the code for knock-on effects — three behaviour changes are worth a conscious sign-off, none of them a bug. 1. The X adds a new keyboard tab stop on every screen this touches. The emoji picker is where this deserves a look: its keyboard navigation is hand-rolled, and 2. The X disappears while a server search is in flight. Confirmed live on Start chat — the green spinner replaces the X, then the X comes back. They're mutually exclusive by construction (line 550 requires 3. Nothing verifies the emoji picker on native or with an IME. What I checked and found cleanNo Only two components render this input — No layout regression. Typing Clearing takes the normal path. The button calls Search fields only. The One tester observation I'm discounting: setting the field value programmatically (not a real gesture) left the X and a stale "No results found" on screen. That's the automation tool writing the DOM without firing React's Not covered: native (iOS/Android), IME input, and the offline case. CI is green on Live run on web (PR head
|
|
Replying to Melvin comment:
I think it is normal, just like in other places in app.
I think it's totally normal too. |
|
@situchan, could you take a look when you have a spare moment? thanks! |
|
What do you think of https://github.com/Expensify/App/pull/101086/changes#r4025635202? |
@situchan oh, sorry! I've missed this comment and yeah, you are totally right. fixed that |
Regression hunt (head
|
|
I verified Melvin's
issue, and it's not reproducible on my end. @mountiny PR's all yours Screen.Recording.2026-09-21.at.11.11.56.mov |
mountiny
left a comment
There was a problem hiding this comment.
Seems like even with the added information the comments are missed
| expect(screen.getByTestId(`${CONST.BASE_LIST_ITEM_TEST_ID}70`)).toBeSelected(); | ||
| }); | ||
|
|
||
| it('should show a clear button once the search field has text and clear the search when it is pressed', () => { |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.91-0 🚀
|
|
🤖 No help site changes are required for this PR. This change adds a clear (X) affordance inside search inputs that already existed. It does not add a feature, rename a label or tab, change a setting, or alter any documented workflow — so there is nothing in What I checkedChanged files (
Docs searched across all of
Per HELP_AUTHORING_GUIDELINES.md, articles document one primary workflow each and must be concise and actionable. Documenting an X icon inside a search box would not meet that bar, so I did not add it anywhere. Because no changes are needed, I did not create a draft PR, so there is no @jakubstec, please confirm you agree that no help site update is needed. If you'd still like an article touched — for example to call out the clear button in a specific flow — reply with |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.91-3 🚀
Bundle Size Analysis (Sentry): |




















Explanation of Change
SelectionListsearch fields never had a clear (X) button. They all render one shared component (src/components/SelectionList/components/TextInput.tsx) which never opted into it, so the X was missing on ~90 screens.This adds
shouldHideClearButton={!value}there, so everySelectionListsearch field shows the X once it has text, consistent with the rest of the app. Design agreed in the issue to make this global (#100841 (comment)).Note:
shouldShowClearButtonis intentionally not passed as well, because it would hide the loading spinner on lists that search server-side.Fixed Issues
$ #100841
PROPOSAL:
Tests
CONST.STANDARD_LIST_ITEM_LIMITitems).Offline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
Screen.Recording.2026-09-14.at.16.46.29.mov
Screen.Recording.2026-09-14.at.16.47.56.mov