-
Notifications
You must be signed in to change notification settings - Fork 645
Be able to search within a keyword or category #491
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
Comments
Changed my mind about this being easy. The problem is that each query parameter to the crate Then we'll need to decide whether to add a different search box that's closer to the category/keyword heading, or just change the behavior and appearance of the search box at the top to make it clear that using it on a keyword or category page will search within that keyword or category and not the whole page. This could be done in pieces-- just getting the API accepting multiple parameters and using all of them could be one PR, and the UI stuff could be another. |
The backend part is done - see #666! Now to figure out the frontend... |
I'll take a crack at this. |
Searching for no-std crates is vital for embedded (and others). Is there any progress on this? |
Any progress on this would appear on this issue, so no. |
FWIW, I started looking into this and discovered that the work in #666 does appear to have also been deployed on the server, so if you want, it seems it's possible to at least craft the queries by hand & view the returned JSON with browser dev tools... e.g. https://crates.io/api/v1/crates?page=1&per_page=50&q=graphics&category=no-std I suspect that there's probably a client-side JS snippet that would even render the response via the JS console but for now I've run out of time to investigate/write-up more. |
Took a look at implementing this, but I don't know Ember, so I couldn't make much progress. However, I did throw together a separate frontend just for using the API for this feature, which might be of interest to those who find this issue in the meantime: https://cargo-search-category.glitch.me/ |
Great idea from @wesleywiser on #488:
The text was updated successfully, but these errors were encountered: