-
Notifications
You must be signed in to change notification settings - Fork 9
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
Show warning when search text is too short #671
Conversation
csillag
commented
Jul 5, 2023
•
edited
Loading
edited
Deployed to Cloudflare Pages
|
f009f44
to
f5cd6c1
Compare
OOps, I didn't see that. |
I really like the concept you've got now. If we can add the colours and icon we should be there. |
I have updated the screenshort after making it more similar to the visuals. |
Could we outline the input field with a red stroke as well, please? |
fe09cdd
to
5ca1016
Compare
bc6297a
to
d7d4045
Compare
I just triggered the built-in "error" flag on the input field, anything beyond that was automatic. Will have to dig deeper... 🧤 |
Ideally I'd say the error would be less thick, but I understand if that's not within the scope of this task. |
I don't like that it is so hard to get to search suggestions |
Please elaborate |
If user doesn't know what to search for, they shouldn't need to make up 3 chars |
also, hold on, why are we not allowing searching for block "10" :/ |
Fair point. Here is some potential solutions, and the drawbacks I see
@donouwens @lukaw3d please state your preferences. |
I have now implemented option 4. It can be tested here. |
174ba75
to
40074fd
Compare
OK @donouwens , but what do you mean exactly? A) Shall I reduce the 3px active stroke at the outline of input fields to 1px everywhere? |
Until further notice, I have done option B) |
Option 5: show suggestions on focus, show "min 3 chars" when anything is entered |
5a18611
to
c24292e
Compare
Sorry @donouwens we want to move on, so we will just merge this now. We can always update the styling if required. |
c24292e
to
3902a19
Compare
@csillag I think in essence this works okay, but visually it needs updating - could we show it like this: https://www.figma.com/file/ifCrok8cP5ymEYjMa2PIi9/Block-Explorer?type=design&node-id=6624%3A246974&mode=design&t=NgiFzpta47LLPkRx-1 Moreover, would it be possible to only start showing the 'too short...' notification after the user doesn't enter an additional character after the first one within 500ms? I'm hoping that gives the user time to enter a second and third character without having to see the error. Finally, would it be possible to smooth out the status between showing the 'too short..' and regular state? I would like animations like this - you can access the flow from the video here. I want this to be smooth as it will be part of the very first impression users will have of the product. |
Could we make it behave like this and this - so an inline stroke everywhere of 3px and not have a stroke on the search button itself, please. |
Of course;
|
See follow up in #689 |