Merge lp:~adiroiban/launchpad/bug-135008 into lp:launchpad
Proposed by
Adi Roiban
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~adiroiban/launchpad/bug-135008 |
Merge into: | lp:launchpad |
Diff against target: |
97 lines (+36/-10) 3 files modified
lib/lp/translations/browser/language.py (+25/-6) lib/lp/translations/stories/standalone/xx-language.txt (+2/-2) lib/lp/translations/templates/languageset-index.pt (+9/-2) |
To merge this branch: | bzr merge lp:~adiroiban/launchpad/bug-135008 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | code | Approve | |
Review via email: mp+15347@code.launchpad.net |
Commit message
Auto-focus the search field when translations.
To post a comment you must log in.
= Bug 135008 =
== Proposed fix ==
Right now when you access the translations. lp.net/ +languages page, the search field is not focused and you will need click the search field first.
The fix should focus the search field when the page is loaded.
Also after a search strings was entered and it matched some languages, the field is not focused and you can use the up/down key to scroll the page.
If the search string did not match any language, the search field will be focused and highlighted for entering a new search string.
== Implementation details ==
Update LanguageSetView to be a LaunchpadFormView and also do the required changes in languageset- index.pt.
== Tests ==
bin/test -ct language
== Demo and Q/A ==
Go to https:/ /translations. launchpad. dev/+languages
On a browser with javascript enabled you should see that the search
field is focused and you can start typing right away.
Now type a search string, ex "es" and then Enter or push the button.
You should see a series of results and the search field no longer being focused.
That's all.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: services/ worlddata/ interfaces/ language. py translations/ browser/ language. py translations/ stories/ standalone/ xx-language. txt translations/ templates/ languageset- index.pt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ services/ worlddata/ interfaces/ language. py declarations' (No module named restful)
18: [F0401] Unable to import 'lazr.enum' (No module named enum)
20: [F0401] Unable to import 'lazr.restful.