Problem/Motivation
When searching via the admin toolbar search field, if there are no results, nothing happens and there is no evidence that a search was performed. Without doing another search, it's not possible to tell whether there are no results or if something is not working. It may be nice to have a simple "No results found" message appear for cases where there are no matches.
Steps to reproduce
Do a search for something with no results and see that nothing happens.
Proposed resolution
Include a "No results found" message when no results are found to let user know that a search was actually performed.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Before MR.png | 97.13 KB | kanchan bhogade |
| #4 | After MR.png | 98.81 KB | kanchan bhogade |
Issue fork admin_toolbar-3532958
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
chrisla commentedI believe my submitted MR adds a usable "no results" option to the search tool that is also not clickable as a link. I am very happy to get feedback or updates to the code submitted.
Comment #4
kanchan bhogade commentedHi
Tested MR 164 on Drupal 11.x
Applied MR successfully...
The "No results found" message when no results are found is displayed.
Attaching screenshot for reference
Comment #6
dydave commentedThe merge request in this issue is now outdated.... given all the changes to the admin_toolbar_search.js in the last 3.6.3 release.
I've started working on the updated MR, but need a bit more time to refine user interactions in the JS....
I'm probably going to have to ask for a bit of help and review from my colleagues more specialized in JS and CSS (Front-end developers), so it's going to take a bit more time ...
Moving back to Active and for the dev branch.... coming back soon to this issue 👌
In any case, any feedback, suggestions, opinions or recommendations for this feature would be greatly appreciated.
Thanks in advance!