Closed Bug 1067787 Opened 10 years ago Closed 10 years ago

[Stingray] Card UI customization on home view

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1076706

People

(Reporter: jcheng, Unassigned)

References

Details

(Whiteboard: [ft:conndevices])

As an OEM, I want to be able to add a customized deck to the home view (e.g. Live TV deck)
Whiteboard: [ft:conndevices]
Blocks: 115611
No longer blocks: 115611
This feature is actually implemented in bug 1076706. There is a file called smart-home.json located under build folder in smart-home app. The content of smart-home.json is the card list for first time boot-up. Currently it looks like this: { "card_list": [ { "name": "Television", "type": "Deck", "cachedIconURL": "style/images/appic_tv_temp.png" }, { "name": "Apps", "type": "Deck", "manifestURL": "app://app-deck.gaiamobile.org/manifest.webapp", "cachedIconURL": "style/images/appic_application_temp.png" }, { "name": "Devices", "type": "Deck", "cachedIconURL": "style/images/appic_device_temp.png" }, { "name": "Dashboard", "type": "Deck", "cachedIconURL": "style/images/appic_dashboard_temp.png" } ] } Each object in "card_list" is the card placed on Home view. OEM could replace content of "card_list" as they wish. Content of each type of card are written in _serializeCard() in card_manager.js. For example, if OEM would like to place Music app at first on the card list, they could modify smart-home.json like this: { "card_list": [ { "name": "Music", "type": "Application", "manifestURL": "app://music.gaiamobile.org/manifest.webapp", }, { "name": "Television", "type": "Deck", "cachedIconURL": "style/images/appic_tv_temp.png" }, { "name": "Apps", "type": "Deck", "manifestURL": "app://app-deck.gaiamobile.org/manifest.webapp", "cachedIconURL": "style/images/appic_application_temp.png" }, { "name": "Devices", "type": "Deck", "cachedIconURL": "style/images/appic_device_temp.png" }, { "name": "Dashboard", "type": "Deck", "cachedIconURL": "style/images/appic_dashboard_temp.png" } ] }
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.