This page isn't usable if you want to find a specific project: http://localize.drupal.org/translate/projects
Suppose I want to find the project 'Foo'. As far as I can tell, I can either press 'next' 80 times, or make a wild guess as to where in the sequence of pages the letter F might be, and then try to track it down.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | more-pager-improvements.patch | 4.68 KB | gábor hojtsy |
| #16 | pager-all-nonlink.patch | 531 bytes | gábor hojtsy |
| #15 | pager-followup.patch | 2.54 KB | gábor hojtsy |
| #13 | pager.patch | 5.28 KB | gábor hojtsy |
| #12 | alphabetical-pager-806944-12.patch | 5.89 KB | wulff |
Comments
Comment #1
joachim commentedComment #2
avpadernoIt would be good if there would be a way to search projects, or filter the list by the project name.
Comment #3
gábor hojtsyIf you look for one project specifically, the "jumpbox" on the front page is the way to go. You can just type in the name of the project and get an autocomplete response. I agree though that the project list is not scalable to how it is currently used. Recategorizing for the right project.
Comment #4
gábor hojtsyPutting in an autocomplete search box on the project listing page as well as a start. Committing this one. I think this still needs more work to make this page more useful, but this is a quick stop-gap.
Comment #5
droplet commentedrequire add text-align:left to autocomplete pop-up list.
Comment #6
droplet commentedduplicated ?? #554116: Add alphabetic filter and sorting to projects listing
Comment #7
gábor hojtsyMarked that one as duplicate, right :) I'd also love to commit/deploy a quick patch to ensure left aligned autocomplete. Noticed that bug too but did not yet get around to produce a fix.
Comment #8
droplet commented:)
Comment #9
avpadernoComment #10
gábor hojtsyCommitted this follow up as well, thanks. Deploying in a minute :) Moving back to active since we did not solve all the stuff here yet.
Comment #11
wulff commentedBefore I start looking at #1095806: Add sorting options to overall project list, here's a quick patch which adds an alphabetical pager above the standard pager on the "Explore projects" page (see attached screenshot).
When a user navigates to translate/projects, she sees the full list of projects (the current behavior). If she clicks one of the letters in the alphabetical pager, the project list is filtered on the first letter in the project URI (according to http://groups.drupal.org/node/24465 we can assume that all current project names start with a letter).
The filtered project list still uses a pager to avoid showing too many projects at once.
Comment #12
wulff commentedBased on the comments on #1095806: Add sorting options to overall project list I have updated the patch to make the alphabetic pager filter on the project titles instead of the project URIs.
All projects that do not have a letter as the first character in the title are grouped under a '#' element in the pager (see the attached screenshot).
This implementation uses the MySQL function RLIKE; we may have to come up with a more generic solution.
Comment #13
gábor hojtsyOk, i've added an "All" option and disabled display of the pager if there was only 2 items (All and one single letter), in which case displaying it did not make sense. Committing this one.
Comment #14
gábor hojtsyOh, also, you'll notice I've used the title of the projects not the uri as discussed on the other issue.
Comment #15
gábor hojtsyWoops crosspost :) Incorporating your latest changes, here is the followup that I'm committing.
Comment #16
gábor hojtsyIn fact, we should make the All non-link when selected like the other letters. Committing this too :)
Comment #17
wulff commentedLooks good. The All-link is a nice addition.
Comment #18
gábor hojtsyOk, the All and 0 links were now in conflict for looking active. Also, the URL was gameable with characters like á, @ and such. I wanted to make sure it is not, so instead of supporting whatever coming in, I reworked this code a bit to have a list of concrete available options instead and only support those. also fixed the active link issue with the All and 0 links.
Comment #19
gábor hojtsyRelated: #1102568: Make project listing theming simpler.