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

Feedback on search in 4.0.0 #5644

Closed
pmaier1 opened this issue Aug 6, 2021 · 5 comments · Fixed by #7586
Closed

Feedback on search in 4.0.0 #5644

pmaier1 opened this issue Aug 6, 2021 · 5 comments · Fixed by #7586
Assignees

Comments

@pmaier1
Copy link
Contributor

pmaier1 commented Aug 6, 2021

I have some feedback on the "Search all files" feature which was introduced in 4.0.0.

When I tried the feature, it felt unexpected because

  • the left sidebar disappears and the file list becomes full width which felt to me like a bug and not the case anymore
  • I can't easily go back without using browser navigation
  • also the behavior is inconsistent with the filtering mode (there the sidebar stays)

I would have expected that

  • when I click on "Search all files", the sidebar stays as it is and the file list shows the results
  • when I click the "x" in the search bar ("clear search"), I'm back at the location where I was before searching

Additional findings

  • When a search query does not have results, it doesn't indicate that. Users can still click on the "suggestion".
  • When I'm on the full page results list, the search suggestions don't work. I can can only click on the default "suggestion".

@tbsbdr @kulmann @pascalwengerter

@rpocklin
Copy link
Contributor

rpocklin commented Aug 30, 2021

I agree with @pmaier1 regarding the left sidebase disappearing (presumably because now it is it's own app, not part of files) - this is easily worked around by changing the sidebarNavItems function in App.vue to set const items = this.getNavItemsByExtension('files') instead of const items = this.getNavItemsByExtension(this.currentExtension) for the time being.

Also agree that the [x] in the search bar should take you back in the browser history.

Lastly I think a key missing feature is something we implemented previously which is searching sub-folders of the current folder only. Ie. not a global search, not a current folder search (aka filter) but searching the sub-tree of the current folder - this is the most intuitive search for most people and is really just a global search with a current folder filter after it.

@rpocklin
Copy link
Contributor

rpocklin commented Sep 1, 2021

If there are > 5 items (assuming 5 is the preview search limit) it would be good to show something like ' ... more ...' which is not selectable. I thought there was a bug since the preview of sdk search didn't show a file in the current folder, but it was just showing the first 5 results (which wasn't obvious, until I looked at the code).

@pmaier1
Copy link
Contributor Author

pmaier1 commented Sep 16, 2021

Added some more findings.

@tbsbdr
Copy link

tbsbdr commented Sep 16, 2021

Loadspinner: Add something like a loadspinner so that users know, that they need to wait.

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Sep 5, 2022

Already implemented sum up:

  1. Loading spinner
  2. Left sidebar disappears

Todo sum up:

  1. Show indicator when the search results exceeds the limit (currently 5)
  2. Show indicator if no matches were found
  3. Hit x in search input will go 1 step back in browser history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants