Merge lp:~rharding/launchpad/port_inlinehelp_907443 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Richard Harding on 2012-01-05 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 14647 | ||||
| Proposed branch: | lp:~rharding/launchpad/port_inlinehelp_907443 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
732 lines (+338/-234) 14 files modified
buildout-templates/bin/combine-css.in (+1/-0) lib/lp/app/javascript/inlinehelp/assets/inlinehelp-core.css (+16/-0) lib/lp/app/javascript/inlinehelp/assets/skins/sam/inlinehelp-skin.css (+3/-0) lib/lp/app/javascript/inlinehelp/inlinehelp.js (+132/-0) lib/lp/app/javascript/inlinehelp/tests/test_inlinehelp.html (+31/-0) lib/lp/app/javascript/inlinehelp/tests/test_inlinehelp.js (+138/-0) lib/lp/app/javascript/overlay/overlay.js (+2/-2) lib/lp/app/templates/base-layout-macros.pt (+3/-6) lib/lp/bugs/javascript/buglisting.js (+2/-2) lib/lp/bugs/javascript/tests/test_buglisting.html (+2/-7) lib/lp/bugs/javascript/tests/test_buglisting.js (+1/-1) lib/lp/registry/javascript/structural-subscription.js (+5/-9) lib/lp/registry/javascript/tests/test_structural_subscription.html (+2/-0) lib/lp/services/inlinehelp/javascript/inlinehelp.js (+0/-207) |
||||
| To merge this branch: | bzr merge lp:~rharding/launchpad/port_inlinehelp_907443 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Deryck Hodge (community) | 2012-01-03 | Approve on 2012-01-05 | |
|
Review via email:
|
|||
Commit Message
[r=deryck][bug=907443] Port the inlinehelp javascript from mochikit to YUI in lp.app.inlinehelp.
Description of the Change
= Summary =
Move the inline help javascript to YUI. This is in an effort to move towards an all YUI code base as part of Bug #294656.
== Proposed Fix ==
Add a new lp.app.inlinehelp module that can be used for showing the inline help.
== Implementation Details ==
The inlinehelp module adds an InlineHelpOverlay that extends the PrettyOverlay. The iframe for the help content is loaded into that overlay. This brings some consistency to the overlay used.
The init_help method call will build an event delegate on the <body> tag of the page. This helps keep only one event binding for the entire page regardless of how many help objects there are on the page. It can be called over and over as content changes via ajax or other dynamic methods.
== Tests ==
google-chrome lib/lp/
== Demo and Q/A ==
Click on any help icon (question mark) and the help for that should load centered on the page. A prime example is the heat help during the bug listings. Clicking on the heat icon should load up a scrolling overlay with the help information for bug heat.
== Lint ==
Linting changed files:
lib/lp/
lib/lp/
lib/lp/

This looks really nice overall! It's nice to have this moved off to YUI and have some test coverage. A double win!
There are some minor issues I'd like you to fix up, but will approve the MP, assuming you'll do these.
* Outdated copyright heading in inlinehelp-skin.css
* All comments should be formatted as proper sentences.
(You have lots of lower-case started sentences, with
no ending punctuation.)
These are, of course, minor things.
One thing I noticed that I'm not sure of, lib/lp/ bugs/javascript /tests/ test_buglisting .html stubs out a fake initInlineHelp. Since you're work removes this method, should this test fake be updated somehow, just to be consistent?
Otherwise, consider yourself approved! :-)