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.

Comments

joachim’s picture

Component: Site organization » Localize.drupal.org
avpaderno’s picture

It would be good if there would be a way to search projects, or filter the list by the project name.

gábor hojtsy’s picture

Project: Drupal.org site moderators » Localization server
Version: » 6.x-2.x-dev
Component: Localize.drupal.org » User interface

If 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.

gábor hojtsy’s picture

StatusFileSize
new2.71 KB

Putting 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.

droplet’s picture

require add text-align:left to autocomplete pop-up list.

droplet’s picture

gábor hojtsy’s picture

Marked 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.

droplet’s picture

StatusFileSize
new682 bytes

:)

avpaderno’s picture

Status: Active » Needs review
gábor hojtsy’s picture

Status: Needs review » Active

Committed this follow up as well, thanks. Deploying in a minute :) Moving back to active since we did not solve all the stuff here yet.

wulff’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new59.71 KB
new5.37 KB

Before 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.

wulff’s picture

StatusFileSize
new65.32 KB
new5.89 KB

Based 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.

gábor hojtsy’s picture

Status: Needs review » Fixed
StatusFileSize
new5.28 KB

Ok, 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.

gábor hojtsy’s picture

Oh, also, you'll notice I've used the title of the projects not the uri as discussed on the other issue.

gábor hojtsy’s picture

StatusFileSize
new2.54 KB

Woops crosspost :) Incorporating your latest changes, here is the followup that I'm committing.

gábor hojtsy’s picture

StatusFileSize
new531 bytes

In fact, we should make the All non-link when selected like the other letters. Committing this too :)

wulff’s picture

Looks good. The All-link is a nice addition.

gábor hojtsy’s picture

StatusFileSize
new4.68 KB

Ok, 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.

gábor hojtsy’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.