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

fix(search): Better diagnostic message for invalid and incomplete select: filter value#63266

Merged
fkling merged 1 commit into
mainfrom
fkling/srch-362-unhelpful-error-popover-on-select-filter
Jun 15, 2024
Merged

fix(search): Better diagnostic message for invalid and incomplete select: filter value#63266
fkling merged 1 commit into
mainfrom
fkling/srch-362-unhelpful-error-popover-on-select-filter

Conversation

@fkling

@fkling fkling commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

Fixes srch-362

When the select filter value ends with a . and does not have a valid "top-level" value, e.g. select:diff. then the diagnostic message doesn't show a list of valid values. This commit fixes that.
Additionally it won't show an empty tooltip anymore when we don't have information for the hovered token.

Before After
2024-06-14_13-53 2024-06-14_13-54

(notice the separator in the popover in the first screenshot)

This affects both the React and the Svelte app.

Test plan

Manual testing.

Changelog

  • Show useful valid values when an invalid select: value is entered
  • Do not render empty hover tooltips

@fkling fkling requested a review from a team June 14, 2024 12:04
@fkling fkling self-assigned this Jun 14, 2024
@cla-bot cla-bot Bot added the cla-signed label Jun 14, 2024
@fkling fkling merged commit 6019de5 into main Jun 15, 2024
@fkling fkling deleted the fkling/srch-362-unhelpful-error-popover-on-select-filter branch June 15, 2024 08:06
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