Closed Bug 1162027 Opened 9 years ago Closed 9 years ago

[Messages][New Gaia Architecture] extract inbox/index.html

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: azasypkin)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

      No description provided.
Blocks: 1162030
Assignee: nobody → azasypkin
Status: NEW → ASSIGNED
Comment on attachment 8606970 [details] [review]
[gaia] azasypkin:bug-1162027-split-inbox-index > mozilla-b2g:master

Hey Steve,

In this patch I've extracted views/inbox/index.html from main index.html + removed some more ConversationView-InboxView dependencies.

You can test inbox index.html in browser (fixed some desktop mocks as well). inbox/index.html loads only files needed for inbox, so it's not possible to navigate to another view since new view should be hosted in a separate iframe with its own dependencies loaded. Navigation will be possible once we start using little-browser.

Currently I use main startup.js, but still poking around to see if I can come up with something smarter.

Thanks!
Attachment #8606970 - Flags: feedback?(schung)
Comment on attachment 8606970 [details] [review]
[gaia] azasypkin:bug-1162027-split-inbox-index > mozilla-b2g:master

I think this separation is good with dependencies clean up by draft change event driven. And thanks for the addional clean up in oter place!
Attachment #8606970 - Flags: feedback?(schung) → feedback+
Comment on attachment 8606970 [details] [review]
[gaia] azasypkin:bug-1162027-split-inbox-index > mozilla-b2g:master

Hey Steve,

Thanks for the feedback! I've updated PR according to your good idea about "InboxView.showDraftSavedBanner" with slight modification to get rid of this dependency from ConversationView entirely.

What do you think?

Thanks!
Attachment #8606970 - Flags: review?(schung)
Mostly looks good and I like the way to make the saveDraft simpler with less inbox view access. I only one concern about the thread deletion in inbox view and it might cause duplicate update/removal action(but it won't lead the incorrect result). Some thoughts left on github.
(In reply to Steve Chung [:steveck] from comment #5)
> Mostly looks good and I like the way to make the saveDraft simpler with less
> inbox view access. I only one concern about the thread deletion in inbox
> view and it might cause duplicate update/removal action(but it won't lead
> the incorrect result). Some thoughts left on github.

Hey Steve,

I've proposed possible solution at Github, please let me know what you think.

Thanks!
Comment on attachment 8606970 [details] [review]
[gaia] azasypkin:bug-1162027-split-inbox-index > mozilla-b2g:master

Yeah, I think this check should be enough for now, thanks for all the efforts!
Attachment #8606970 - Flags: review?(schung) → review+
Thanks for review!
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: