Closed
Bug 996526
Opened 11 years ago
Closed 11 years ago
Loop Backbone views should carry their own templates
Categories
(Hello (Loop) :: Client, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla33
People
(Reporter: NiKo, Unassigned)
References
Details
Attachments
(2 files)
In order to avoid code duplication as well as avoiding unexpected side effects with DOM static templates, our Backbone views should carry their own templates; so then we can handle and maintain them in a single place, the View object.
Neither webL10n nor mozL10n works natively with this though, but we could translate view template fragment at rendering time.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → nperriault
Assignee | ||
Comment 1•11 years ago
|
||
This loop-client patch refactor all the views so they:
- carry define and carry their own template;
- inherits from a new L10nView base class which provide automatic template frament translation using {moz|web}L10n.
Attachment #8406845 -
Flags: review?(standard8)
Assignee | ||
Comment 2•11 years ago
|
||
This patch updated the Loop desktop component views to:
- define and carry their own templates;
- benefit from the new L10nView shared class (see loop-client patch).
Attachment #8406848 -
Flags: review?(standard8)
Comment 3•11 years ago
|
||
Comment on attachment 8406845 [details] [review]
https://github.com/mozilla/loop-client/pull/20
I've done an initial pass through the main code of this one and it seemed reasonable, but I haven't checked all effects/tested thoroughly etc.
As I'm likely not going to get any more time until Tuesday, passing this to Dan.
Attachment #8406845 -
Flags: review?(standard8) → review?(dmose)
Updated•11 years ago
|
Attachment #8406848 -
Flags: review?(standard8) → review?(dmose)
Comment 4•11 years ago
|
||
Comment on attachment 8406848 [details] [review]
https://github.com/adamroach/gecko-dev/pull/15
r=dmose; comments in the PR
Attachment #8406848 -
Flags: review?(dmose) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8406845 [details] [review]
https://github.com/mozilla/loop-client/pull/20
r=dmose, once the comments in the PR have been addressed.
Attachment #8406845 -
Flags: review?(dmose) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Landed https://github.com/adamroach/gecko-dev/pull/15: https://github.com/adamroach/gecko-dev/commit/1c237a156104170870098745355ffa27208fdb05
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Updated•11 years ago
|
Target Milestone: --- → mozilla33
Comment 11•11 years ago
|
||
Does this need automated or manual testing?
Flags: needinfo?(nperriault)
QA Contact: anthony.s.hughes
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Anthony Hughes, QA Mentor (:ashughes) from comment #11)
> Does this need automated or manual testing?
We recently switched to React for views, and they're all unit tested.
Flags: needinfo?(nperriault)
You need to log in
before you can comment on or make changes to this bug.
Description
•