Closed Bug 1202423 Opened 9 years ago Closed 9 years ago

[New-Homescreen] Provide a default app-order configuration

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

New homescreen needs to support a default app-order JSON file, similar to verticalhome.
Going to tackle this before bug 1202422.
Assignee: nobody → chrislord.net
Status: NEW → ASSIGNED
Comment on attachment 8662439 [details] [review]
[gaia] Cwiiis:bug1202423-new-homescreen-default-app-order > mozilla-b2g:master

I think it's worth Kevin also having a look at this as I'm assuming he's more familiar with the setup of default app ordering in verticalhome, and what the intentions were.

This patch is quite basic, it ignores anything that doesn't have a manifestURL, and just restores order. It doesn't try to do anything clever with collections (which don't exist), or sections (which also don't exist currently in new-homescreen). It also restores columns settings, but it interprets <=3 as being 3-column and >3 as 4-column (no other settings are supported).

A marionette test is included.
Attachment #8662439 - Flags: review?(kevingrandon)
Attachment #8662439 - Flags: review?(gmarty)
Comment on attachment 8662439 [details] [review]
[gaia] Cwiiis:bug1202423-new-homescreen-default-app-order > mozilla-b2g:master

Looks good to me, except the build part which I'm not familiar with, but as Kevin will review it too, Let's r+ it!
Attachment #8662439 - Flags: review?(gmarty) → review+
Comment on attachment 8662439 [details] [review]
[gaia] Cwiiis:bug1202423-new-homescreen-default-app-order > mozilla-b2g:master

Left comments, but seems fine. Thanks!
Attachment #8662439 - Flags: review?(kevingrandon) → review+
Suggestions followed and added unit tests (confirmed with gmarty on IRC), merged: https://github.com/mozilla-b2g/gaia/commit/3e9de022ede11800170b6665606cb00c3fd92dc5
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: