Closed Bug 1178646 Opened 9 years ago Closed 9 years ago

Create basic 'open' activity not tied to contacts.js in a separate .html

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
FxOS-S2 (10Jul)
Tracking Status
b2g-master --- fixed

People

(Reporter: mancas, Assigned: mancas)

References

Details

(Whiteboard: [NG Gaia Contacts][patch])

Attachments

(3 files)

When calling an 'open' activity, we dont need to load the whole app just for showing the contact details. For solving this, we are going to create a separate.html which will handle this activity, loading just the dependencies that it needs. In the near future, this will be the scaffolding to build more and advance features
No longer blocks: 1175458
No longer depends on: 1175575, 1177107, 1178372
Blocks: 1175505
Status: NEW → ASSIGNED
Attached file Patch
Target Milestone: --- → FxOS-S2 (10Jul)
Comment on attachment 8627618 [details] [review] Patch Hey Francisco, we have the details self-contained view, and the unit tests, can you take a look in order to give me feedback? Thanks!
Attachment #8627618 - Flags: feedback?(francisco)
Attachment #8627618 - Flags: review?(borja.bugzilla)
Depends on: 1178891
Depends on: 1176712
Comment on attachment 8627618 [details] [review] Patch Great job Manu!! Just a few comments in Github. Overall, 2 main topics to focus on: - Load *just* the code we need in every moment. Remove all dependencies that we dont need in boot.js, and move them to LazyLoading when needed. Some old dependencies can be removed as well. The less code we load, the faster we will be! - Modify the manifest using the right filter by now. We will add VCARD in the near future, but this is out of the scope of this goal. On the other hand the code works perfectly in my device, so we are definitely close to land this! Ask me to review this when ready. Thanks! Gracias!! :)
Attachment #8627618 - Flags: review?(borja.bugzilla) → feedback+
Comment on attachment 8627618 [details] [review] Patch Great job, left some comments on gh, but definitely looking on the right direction.
Attachment #8627618 - Flags: feedback?(francisco) → feedback+
Depends on: 1181469
Comment on attachment 8627618 [details] [review] Patch Hey Borja, could you take a look at the PR when you get a chance? Thanks! =)
Attachment #8627618 - Attachment description: WIP → Patch
Attachment #8627618 - Flags: review?(borja.bugzilla)
No longer depends on: 1181469
Blocks: 1181112
No longer depends on: 1181112
Attachment #8627618 - Flags: review?(francisco)
Comment on attachment 8627618 [details] [review] Patch \o/!!!! Now we are talking! Great job Manu!! R+ and hope to see this merged in gaia asap!
Attachment #8627618 - Flags: review?(borja.bugzilla) → review+
Comment on attachment 8627618 [details] [review] Patch Great job Manuel, just left tiny comment about naming, also, would you write a bit more about the documentation, like what is the philosophy, events that are sent and received to perform the actions, things to take into account, etc. Thanks again!
Attachment #8627618 - Flags: review?(francisco) → review+
Comment on attachment 8633333 [details] [review] [gaia] mancas:bug1178646 > mozilla-b2g:master I've revert the patch to write more about the documentation as Francisco suggested in comment 7. Same patch.
Attachment #8633333 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Manuel, this patch is using deprecated mozL10n.get API for bad reasons. You should never localize values to be stored in data model. Instead you should carry l10nId until you want to display it and then use data-l10n-id on the element. See: https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/localization_code_best_practices#Writing_APIs_that_operate_on_L10nIDs Can you fix this please?
Flags: needinfo?(b.mcb)
Of course Zibi. Let's create a follow-up to remove the uses of mozL10n.get
Flags: needinfo?(b.mcb)
Blocks: 1184451
(In reply to Manuel Casas Barrado [:mancas] from comment #13) > Of course Zibi. Let's create a follow-up to remove the uses of mozL10n.get Thanks!
Depends on: 1185090
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: