Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix(search): Improve syntax highlighting of search history entries#63271

Merged
camdencheek merged 1 commit into
mainfrom
fkling/srch-404-regex-not-highlighted-correctly-in-search-history
Jun 14, 2024
Merged

fix(search): Improve syntax highlighting of search history entries#63271
camdencheek merged 1 commit into
mainfrom
fkling/srch-404-regex-not-highlighted-correctly-in-search-history

Conversation

@fkling

@fkling fkling commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

Fixes srch-404

Currently queries are assumed to be 'literal', but in the current apps we mostly use 'keyword' and 'standard'. Ideally we could pass the pattern type that was used for each history entry, but we don't have that information and cannot pass it easily.
Defaulting to the 'standard' or 'keyword' type is the next best option to ensure that regex literal in the query are properly highlighted.

I defaulted to 'standard' in the React app because it's still possible to opt out of keyword search.

Test plan

Manual testing.

Currently queries are assumed to be 'literal', but in the current apps
we mostly use 'keyword' and 'standard'. Ideally we could pass the
pattern type that was used for each history entry, but we don't have
that information and cannot pass it easily.
Defaulting to the 'standard' or 'keyword' type is the next best option
to ensure that regex literal in the query are properly highlighted.

I defaulted to 'standard' in the React app because it's still possible
to opt out of keyword search.
@fkling fkling requested a review from a team June 14, 2024 15:09
@fkling fkling self-assigned this Jun 14, 2024
@cla-bot cla-bot Bot added the cla-signed label Jun 14, 2024
@camdencheek camdencheek merged commit 32b119e into main Jun 14, 2024
@camdencheek camdencheek deleted the fkling/srch-404-regex-not-highlighted-correctly-in-search-history branch June 14, 2024 19:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants