Skip to content
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

Add search hint tooltip #182

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Add search hint tooltip #182

merged 3 commits into from
Aug 15, 2024

Conversation

rubo
Copy link
Contributor

@rubo rubo commented Aug 14, 2024

Added hint tooltip to search inputs.

<ul className="list-inside list-disc">
<li>Enter 3 or more more characters to start searching</li>
<li>
Searches starting with "<code>0x</code>" will search for matching
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to specify that for addresses we only start searching when there are 5+ characters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we do that when 5+? If so, then yes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah frontend validation works that way in useDebouncedSearch

  const validateSearchTerm = query => {
    const minQueryLength = query.startsWith('0x') ? 5 : 3;
    return query.length === 0 || query.length >= minQueryLength;
  };

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a discussion with Clem, we decided to have it 3 for everything.

@rubo rubo merged commit cc7ea62 into main Aug 15, 2024
2 checks passed
@rubo rubo deleted the feature/search-tooltip branch August 15, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants