Skip to content

how to make searching/filtering from homepage richer? #3462

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

Open
brainwane opened this issue Mar 29, 2018 · 8 comments
Open

how to make searching/filtering from homepage richer? #3462

brainwane opened this issue Mar 29, 2018 · 8 comments
Labels
search Opensearch, search filters, and so on UX/UI design, user experience, user interface

Comments

@brainwane
Copy link
Contributor

William Ray Wing writes:

I do see the list of filters, but I only get it AFTER I’ve entered my first search term. I may be an outlier here, but I find that an unfortunate bit of UI design. I suppose it is deliberate in that the filters can then be used to narrow search results, but if I know going in that I’m only interested in a particular set of results, I’d like to be able to apply that filter to my first search.

Thanks,
Bill

I'm asking for more info here and checking whether this is connected to #3454.

@brainwane brainwane added UX/UI design, user experience, user interface search Opensearch, search filters, and so on labels Mar 29, 2018
@brainwane
Copy link
Contributor Author

Clarifications in this followup: the home page includes an invitation to "search" or "browse" but there's no filter list on the front page, which means Wing cannot simply apply the filter to his first search.

I wonder if #727 would help here -- as soon as the user starts typing, one of the lookahead menus we provide could be for structured/faceted filtering by classifier.

@brainwane brainwane changed the title User only sees list of filters after entering a search term how to make searching/filtering from homepage richer? Mar 31, 2018
@emmatyping
Copy link

I'm not sure if this deserves a separate issue, but one thing that I would love to be able to do is hit a key and have the cursor focused on the search box (https://crates.io uses s which seems logical, but other keys would likely work). Thank you so much for making pypi so awesome!

@miketheman
Copy link
Member

one thing that I would love to be able to do is hit a key and have the cursor focused on the search box

This functionality was added in #10395 with the / key (similar to GitHub)

@treyhunner
Copy link

treyhunner commented Mar 7, 2023

one thing that I would love to be able to do is hit a key and have the cursor focused on the search box

This functionality was added in #10395 with the / key (similar to GitHub)

I'm using a Dvorak keyboard layout and the implementation of this feature doesn't work on my machine (Ubuntu Linux in both Chrome and Firefox).

To clarify: hitting the z key works to start search, as the physical / key on my keyboard is mapped to z in Dvorak. It looks like the implementation of this is using a physical keyboard layout so non-QWERTY layout mappings act unpredictably.

@miketheman
Copy link
Member

It looks like the implementation of this is using a physical keyboard layout so non-QWERTY layout mappings act unpredictably.

The implementation is using JavaScript KeyboardEvent.code, see here:

if (event.code === "Slash" && event.target.tagName !== "INPUT") {

This maps to a physical key, not logical.

Would it be preferable to continue to use Dvorak z due to placement, or is it common to press / ?

@treyhunner
Copy link

treyhunner commented Mar 7, 2023 via email

miketheman added a commit to miketheman/warehouse that referenced this issue Mar 7, 2023
The `.code` method maps to physical keys on a keyboard, and different
layouts may place them somewhere else.

See: pypi#3462 (comment)

Signed-off-by: Mike Fiedler <[email protected]>
@miketheman
Copy link
Member

@treyhunner fix should be live

@treyhunner
Copy link

That was quick. Thanks @miketheman!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
search Opensearch, search filters, and so on UX/UI design, user experience, user interface
Projects
None yet
Development

No branches or pull requests

4 participants