Closed Bug 996526 Opened 11 years ago Closed 11 years ago

Loop Backbone views should carry their own templates

Categories

(Hello (Loop) :: Client, defect)

x86
macOS
defect
Not set
normal

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: nobody → nperriault
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)
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 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)
Attachment #8406848 - Flags: review?(standard8) → review?(dmose)
Attachment #8406848 - Flags: review?(dmose) → review+
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+
Target Milestone: --- → mozilla33
Does this need automated or manual testing?
Flags: needinfo?(nperriault)
QA Contact: anthony.s.hughes
(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)
Thanks Nicolas, marking verified fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: