Closed Bug 1202256 Opened 9 years ago Closed 9 years ago

Use Gaia-Toast for System Banner

Categories

(Firefox OS Graveyard :: Gaia::System::System UI, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
FxOS-S7 (18Sep)

People

(Reporter: mikehenrty, Assigned: mikehenrty)

References

Details

(Whiteboard: [systemsfe])

Attachments

(3 files, 2 obsolete files)

Right now the system banner is in a bad state. It uses styling that's been around since pre 1.0, it covers a significant portion of the screen for 4 seconds, and is un-dismissable. Let's use gaia-toast instead.
Comment on attachment 8657592 [details] [review] [gaia] mikehenrty:bug-1202256-gaia-toast > mozilla-b2g:master Kevin, could you take a look here? Eric is going to do the ui-review, but I've already got his confirmation we should move ahead with this.
Attachment #8657592 - Flags: review?(kevingrandon)
Comment on attachment 8657592 [details] [review] [gaia] mikehenrty:bug-1202256-gaia-toast > mozilla-b2g:master Eric, here is the patch for using gaia-toast as the system banner. Note, there is a case where we can have a button in the banner. It is hard to reproduce because you need to have an app crash, then unselect the checkbox, hit send, and then have the app crash again. Since that's a pain, I will attach some screenshots instead.
Attachment #8657592 - Flags: ui-review?(epang)
Assignee: nobody → mhenretty
Target Milestone: --- → FxOS-S7 (18Sep)
Attached image [screenshot] gaia-toast with button (obsolete) —
Eric, here is the gaia-toast with a button.
Attachment #8657604 - Flags: ui-review?(epang)
Feels wrong to me to start mixing UI styles (building blocks /w components), but let's see what Eric says. I guess we're already using this in the keyboard app, so might as well go forward with it.
Hey Mike, I've put together a mini spec for the system toasts. Let me know if something doesn't make sense or if something needs more explaining. For the button I went with text since I think it buys us a tiny bit more space for localization and is a bit cleaner. Hoping we can change the background colour of the toast based om the theme colour too! Ping me when it's ready to review again :).
Flags: needinfo?(mhenretty)
(In reply to Kevin Grandon :kgrandon from comment #5) > Feels wrong to me to start mixing UI styles (building blocks /w components), > but let's see what Eric says. I guess we're already using this in the > keyboard app, so might as well go forward with it. Hey Kev, just wanted to mention that from a visual perspective we've got the go ahead to start using the web components, so we don't have to worry about mixing the bbs and components.
Comment on attachment 8657592 [details] [review] [gaia] mikehenrty:bug-1202256-gaia-toast > mozilla-b2g:master Alright, as we discussed on IRC, we are just going to go with the dark theme for now since we cannot programmatically determine the background color of any given app, and theme-color doesn't really tell us enough. What do you think now Eric?
Flags: needinfo?(mhenretty)
Working on the Gij tests now.
Attached image [screenshot] new gaia-toast with button (obsolete) —
Eric, here is a screenshot with the button.
Attachment #8657604 - Attachment is obsolete: true
Attachment #8657604 - Flags: ui-review?(epang)
Attachment #8657867 - Flags: ui-review?(epang)
Ahh, I had forgotten to include the screen opacity. Here it is.
Attachment #8657867 - Attachment is obsolete: true
Attachment #8657867 - Flags: ui-review?(epang)
Attachment #8657876 - Flags: ui-review?(epang)
Comment on attachment 8657592 [details] [review] [gaia] mikehenrty:bug-1202256-gaia-toast > mozilla-b2g:master R+ Looks good, thanks Mike!
Attachment #8657592 - Flags: ui-review?(epang) → ui-review+
Comment on attachment 8657876 [details] [screenshot] even newer gaia-toast R+ thanks again Mike!
Attachment #8657876 - Flags: ui-review?(epang) → ui-review+
Ok, I think I've fixed all the tests. Kevin, could you take a look now?
Flags: needinfo?(kevingrandon)
Comment on attachment 8657592 [details] [review] [gaia] mikehenrty:bug-1202256-gaia-toast > mozilla-b2g:master Trying to get this in before vaca since it blocks pin-the-web. Alberto, could you take a look?
Flags: needinfo?(kevingrandon)
Attachment #8657592 - Flags: review?(kevingrandon) → review?(apastor)
Comment on attachment 8657592 [details] [review] [gaia] mikehenrty:bug-1202256-gaia-toast > mozilla-b2g:master The code looks good to me + ui_review+ = r+. It would be nice to make all the banners (clock, notifications, call screen) uniform across the OS using the component, though. Thanks!
Attachment #8657592 - Flags: review?(apastor) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1203257
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: