Closed Bug 946750 Opened 11 years ago Closed 6 years ago

[Haida][Contacts] Contacts app should use Haida pattern to change views

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mbudzynski, Assigned: mbudzynski)

References

Details

Attachments

(1 obsolete file)

Contacts app should use separate sheets for every view, and use window.open instead of build-in navigation module.
Blocks: haida
Depends on: 952490
Depends on: 952563
Depends on: 961800
Flags: in-moztrap?(atsai)
QA Contact: atsai
I've merged sheets support provided by bug #961800 on bubble-tea branch yesterday and found some regressions & parts of the app that are not working (mostly because I couldn't test them before because of the one-popup-per-app limitation). I'm working now on fixing all of them [1], I should finally have patch ready to r? early next week. In the meantime, parts of my WIP patch can be checked in my contacts-haida branch [2]. 

Because of the change in architecture, most of the test are failing so far. I'll finish fixing them just after I'll fix all the regressions.

[1] Etherpad with things that don't work as expected https://etherpad.mozilla.org/contacts-haida-regressions
[2] https://github.com/michalbe/gaia/tree/contacts-haida
According to things decided on Contacts workweek last week, solving this bug will be separated into two steps described in the Etherpad document [1]. First part (separating views, but keeping current navigation pattern) is Bug #952490, second step is Bug #952563. 

[1] https://etherpad.mozilla.org/contacts-haida
Work in progress - last week I've separated HTML of 'add new contact' form and implement first state of the iframe based navigation [1]. Instead of using Haida pattern supported in system I created separate iframe for each view and load view's html document inside (just for the 'form' view for now). The iframe after that behaves like 'section' elements before, there is no difference for end user.

[1] https://github.com/michalbe/gaia/commit/fe342416637414292003e21f00f841794cad0ad9
Some comments, with the current WIP, just to take into account before any review:

- We won't need all css and js now in form.js
- Remove dead code (I know you'll in a cleaning step ;P)

And that's all I've seen \o/

Looking forward for the next iterations!

Thanks a lot Michal!
Btw, just saw the visual refresh for contacts starting to land:

https://bugzilla.mozilla.org/show_bug.cgi?id=966224

The sooner we rebase the better.

Thanks!
About your comment - in this branch I focus on navigation, I'll merge with the rest later this week.
'Rest' of the contact app (all the views etc.).
WIP update: I've pushed next part of the navigation system in michalbe/gaia:module-separation-contacts-haida. What it basically do is creating a new navigaitonStack object that is used in all the child views (not the main view) inside the iframes. Every time any of it's methods is called it sends postMsg to the parent window with request to the navigation action (haida-navigation-shim-receiver.js in main view). Rest of the logic is unchanged, so it behaves as before.

I'm now merging new changes to my branch, finish separating views and complete the navigation-shim with needed actions.
Thanks!!

Looking forward for more changes, did you had any problem with iframes created during different imports?
I didn't get to this part so far, I have some mess in settings and trying to resolve it now.
Summary: [Haida] Contacts app should use Haida pattern to change views → [Haida][Contacts] Contacts app should use Haida pattern to change views
Blocks: 994569
No longer blocks: 1.4-comms-targeted
Blocks: 951505
Depends on: 1018819
Attached file [WIP] patch (obsolete) (deleted) —
Finally, first WIP patch prepared. Some tests are still failing, but since it's a huge architecture change, I would love :arcturus to start reviewing it while I'll fix them.
Attachment #8436912 - Flags: review?(francisco)
Comment on attachment 8436912 [details]
[WIP] patch

Also asking for Jose's review here.
Attachment #8436912 - Flags: review?(jmcf)
BTW, just realised, should this patch be attached to a specific bug for the form view?

As I'm seeing this is the meta for whole haida effort, and looks to me as it should be in a separate bug.
Ok, filing a bug now.
Depends on: 1022646
Attachment #8436912 - Attachment is obsolete: true
Attachment #8436912 - Flags: review?(jmcf)
Attachment #8436912 - Flags: review?(francisco)
Flags: in-moztrap?(atsai) → in-moztrap-
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: