highlight selects query instead of first result - #59229
techievivek merged 9 commits into
Conversation
|
@mananjadhav 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] |
|
@mananjadhav This PR is ready! |
|
Still reviewing and testing it. |
| ); | ||
|
|
||
| const sectionItemText = sections?.at(1)?.data?.[0]?.text ?? ''; | ||
| const normalizedReferenceText = useMemo(() => sectionItemText.toLowerCase(), [sectionItemText]); |
There was a problem hiding this comment.
What do you think about?
const normalizedReferenceText = useMemo(() => {
const text = sections?.at(1)?.data?.[0]?.text ?? '';
return text.toLowerCase();
}, [sections]);
There was a problem hiding this comment.
@mananjadhav I used it this way before, but it caused ESLint issues, so I updated it to the current version
mananjadhav
left a comment
There was a problem hiding this comment.
Left small comments.
|
@mananjadhav I've updated it based on your feedback. Thank you! |
|
Thanks, I'll test it out today. @huult can you please fix the conflicts? |
…ght-instead-of-selection
|
@mananjadhav it's done |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-search-results.movAndroid: mWeb Chromemweb-chrome-search-results.moviOS: Nativeios-search-results-2.movios-search-results-1.moviOS: mWeb Safariios-search-results.movMacOS: Chrome / Safariweb-search-results-1.movweb-search-results-2.movMacOS: Desktopdesktop-search-results.mov |
|
✋ 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/techievivek in version: 9.1.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.28-15 🚀
|
Details
Fixed Issues
$ #58057
PROPOSAL: #58057 (comment)
Tests
Same QA step
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Android: Native
Screen.Recording.2025-04-01.at.10.35.12.mp4
Android: mWeb Chrome
Screen.Recording.2025-04-01.at.10.36.15.mp4
iOS: Native
Screen.Recording.2025-04-01.at.10.38.33.mp4
iOS: mWeb Safari
Screen.Recording.2025-04-01.at.10.39.10.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-04-01.at.10.39.48.mp4
MacOS: Desktop
Screen.Recording.2025-04-01.at.10.40.17.mp4