-
Notifications
You must be signed in to change notification settings - Fork 645
Add UI for sorting my crates by recent downloads #1232
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
Conversation
This fixes #1231, and renames "Downloads" to "All-Time Downloads" to be consistent with the sort dropdowns on other listings.
Thanks! I think this is almost there. I know this is hard to test because there isn't a way to log in when you're running But when I was running this PR locally, when I go to /me/crates and then switch the sort to "All-Time Downloads", the closed dropdown says "Downloads", and if I switch to "Recent Downloads" the closed dropdown says "Alphabetical". That's because the closed dropdown displays the value in We're likely doing something wrong to end up with all this duplication (and it's been this way for a while), but I'm not sure the best way to fix the problem especially because while most of the sort dropdowns are the same, they aren't all the same (search result lists have "relevance" as an option). So would you be willing to make the easy fix of updating the currentSortBy function in app/controllers/me/crates.js? Or would you like me to take care of it? It's no problem, just let me know! |
Fixed in a1eacf4! Thanks for the detailed instructions :) Wouldn't it be possible to have the same sort be used everywhere, and then override it specifically on the search results page (which should presumably be the only one that differs)? |
Thank you, this works great now!! bors: r+
Yep, it's certainly possible, and doing so would fix #9. There might be other places that are different, I'm not sure! |
Build succeeded |
The |
Just deployed, this is live now :) I don't usually bother removing status labels from merged PRs, I only use those when looking at open PRs, so the label hanging around is fine :) |
This fixes #1231, and renames "Downloads" to "All-Time Downloads" to be consistent with the sort dropdowns on other listings.