Skip to content

Start search while typing #1194

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

Merged
merged 2 commits into from
Dec 3, 2017
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 3, 2017

Similar to e.g. https://yarnpkg.com/ this PR changes the code to start the search while typing instead of having to click the Enter button. It also debounces the search task (250ms) to limit the amount of requests that are hitting the server.

crates-live-search

/cc @carols10cents

@carols10cents
Copy link
Member

cool!!

bors: r+

bors-voyager bot added a commit that referenced this pull request Dec 3, 2017
1194: Start search while typing r=carols10cents

Similar to e.g. https://yarnpkg.com/ this PR changes the code to start the search while typing instead of having to click the <kbd>Enter</kbd> button. It also debounces the search task (250ms) to limit the amount of requests that are hitting the server.

![crates-live-search](https://user-images.githubusercontent.com/141300/33524728-71d1a434-d822-11e7-8d20-7025fbc5f369.gif)

/cc @carols10cents
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Dec 3, 2017

Build succeeded

@bors-voyager bors-voyager bot merged commit f921e40 into rust-lang:master Dec 3, 2017
@Turbo87 Turbo87 deleted the instant-search branch December 3, 2017 20:14
@durka
Copy link
Contributor

durka commented Dec 28, 2017

N.B. this caused #1209

@Turbo87
Copy link
Member Author

Turbo87 commented Dec 28, 2017

Ouch, thanks for reporting this. I'll have a look tomorrow.

@nox
Copy link

nox commented Dec 28, 2017

This breaks submitting to a new tab without changing the current view, which I do often when looking up multiple crates at once.

@durka
Copy link
Contributor

durka commented Dec 28, 2017 via email

Turbo87 added a commit to Turbo87/crates.io that referenced this pull request Dec 29, 2017
This reverts commit 37682dc, reversing
changes made to ae43922.
bors-voyager bot added a commit that referenced this pull request Jan 4, 2018
1211: Remplace 32x32 PNG with SVG for GitHub mark r=carols10cents

The PNG looks blurry on a high-resolution display.

This SVG is extracted with Inkscape from `GitHub-Mark.ai` from https://github.com/logos.

1215: Revert "Merge #1194" r=carols10cents

While I still like the feature it self, the implementation currently has some issues (see #1209) that I wasn't aware of initially and are not quite as easy to fix. Since I'll be on vacation for the next weeks I won't have time to work on a proper solution for now, so IMHO the best solution is to revert the problematic behavior until this can be fixed correctly.

Resolves #1209

/cc @durka @Boscop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants