-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight autocomplete value on a match #56243
Highlight autocomplete value on a match #56243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 👍
I left some comments, but they are mainly related to naming
src/components/Search/SearchRouter/getQueryWithSubstitutions.ts
Outdated
Show resolved
Hide resolved
src/components/Search/SearchRouter/getUpdatedSubstitutionsMap.ts
Outdated
Show resolved
Hide resolved
src/CONST.ts
Outdated
@@ -6189,6 +6189,7 @@ const CONST = { | |||
LOWER_THAN: 'lt', | |||
LOWER_THAN_OR_EQUAL_TO: 'lte', | |||
}, | |||
SYNTAX_KEY: 'syntax', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this name might be confusing for other developers.
However for now I can't come up with a name better than SYNTAX_KEY_NAME
. The main problem is that this const is not simply some "syntax key" but the NAME for key representing syntax 😅 which is why I would like it to have a bit longer more descriptive name.
If you can't come up with anything better just leave as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about SYNTAX_RANGE_NAME
?
@ikevin127 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] |
@luacmartins it's ready for review. Hopefully we can merge it soon. |
Amazing! @ikevin127 let's prioritize reviewing this one once you're online! |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.webmAndroid: mWeb Chromeandroid-mweb.webmiOS: Nativeios.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 LGTM - tests well and I confirm that both follow-up points mentioned in #50949 (comment) are implemented and working as expected 🟢.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ 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/luacmartins in version: 9.0.95-0 🚀
|
Explanation of Change
This pr is a follow up of #54403 and address issues from #50949 (comment).
Current highlighting rules
category
,tag
,currency
, values are highlighted when the string value is present in Onyx.expenseType
,type
andstatus
values are highlighted when the string value is present in CONST.ts file.from
,to
,in
,taxRate
,cardID
values are highlighted only when AutocompleteList has been used to insert them(This assures user that query is correct)
Fixed Issues
$#50949
PROPOSAL:
Tests
Repeat steps 1-7 on main Search Page
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2025-02-04.at.16.44.05.mp4
Android: mWeb Chrome
Screen.Recording.2025-02-04.at.16.45.39.mp4
iOS: Native
Screen.Recording.2025-02-04.at.16.38.47.mp4
iOS: mWeb Safari
Screen.Recording.2025-02-04.at.16.41.27.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-02-04.at.16.46.22.mp4
MacOS: Desktop