Closed Bug 1175575 Opened 10 years ago Closed 10 years ago

Create basic 'new' 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: borjasalguero, Assigned: borjasalguero)

References

Details

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

Attachments

(1 file)

46 bytes, text/x-github-pull-request
arcturus
: review+
jlorenzo
: review+
arcturus
: feedback+
Details | Review
When calling a 'new' activity, we dont need to load the whole app just for showing a form. 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 ('update' activity, new navigation model ...)
Assignee: nobody → borja.bugzilla
Blocks: 1175458
Status: NEW → ASSIGNED
Whiteboard: [NG Gaia Contacts]
Target Milestone: --- → NGA S3 (26Jun)
As NGA Program Manager suggested, let's replace the NGA-X milestones with FxOS-Sx ones (more generic ones), once Bug 1174794 has already landed
Target Milestone: NGA S3 (26Jun) → FxOS-S1 (26Jun)
Attached file Pull Request
First WIP patch for testing.
Whiteboard: [NG Gaia Contacts] → [NG Gaia Contacts][patch]
Detected one issue in the WIP patch: when creating a contact via activity (from Dialpad, Call Log or SMS apps) if we include an e-mail address, it is not possible saving the contact. We have confirmed that this issue does not happen in master. We have have also seen wrong behaviors when saving a contact via activity if it includes a picture or when deleting a contact from Dialer application. Similar issues (although not exactly the same result) have been detected in master so the corresponding bugs have been opened to track them: bug 1177107 and bug 1177114
Depends on: 1177107
See Also: → 1177114
Depends on: 1178372
Target Milestone: FxOS-S1 (26Jun) → FxOS-S2 (10Jul)
No longer blocks: 1178646
Comment on attachment 8625485 [details] [review] Pull Request This is the basic structure of the #new activity extracted from contacts.js. It's a self-contained view, and has no FB code included :). Could you take a look? Once I have your feedback I'll start adding tests to it. Thanks!
Attachment #8625485 - Flags: feedback?(francisco)
Comment on attachment 8625485 [details] [review] Pull Request Hei, Borja and me were talking about this offline, looking good, also we were mention some cosmetic changes, but apart from that the direction is amazing. Thanks folks!
Attachment #8625485 - Flags: feedback?(francisco) → feedback+
Comment on attachment 8625485 [details] [review] Pull Request Here we have the first activity self-contained, and all tests added. Francisco, could you take a look? Thanks! Gracias! ;)
Attachment #8625485 - Attachment description: WIP → Pull Request
Attachment #8625485 - Flags: review?(francisco)
Comment on attachment 8625485 [details] [review] Pull Request First round really good what I'm seeing. Just left some messages on gh, please assign again for review once they are done.
Attachment #8625485 - Flags: review?(francisco)
Depends on: 1181586
No longer depends on: 1181586
Attachment #8625485 - Flags: review?(francisco)
Comment on attachment 8625485 [details] [review] Pull Request Working like a charm, looking forward to use this not just in the activity :)
Attachment #8625485 - Flags: review?(francisco) → review+
Comment on attachment 8625485 [details] [review] Pull Request We need to double check that everything is ok after disabling the tests Gij26 and Gij2. These tests will be recovered after landing a solution for https://bugzilla.mozilla.org/show_bug.cgi?id=1140344. r?
Attachment #8625485 - Flags: review?(jlorenzo)
Comment on attachment 8625485 [details] [review] Pull Request Like said on IRC, disabling the tests in tests/integration/sms/contacts_interaction_test.js, because of bug 1140344, is fine to me. I don't see a failure related to this issue, in the latest TH job[1]. r+ for the integration tests part. [1] https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=b1d883793f1c4a8c658ccc410977327abdba0f76
Attachment #8625485 - Flags: review?(jlorenzo) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Depends on: 1182446
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: