Closed Bug 863323 Opened 12 years ago Closed 12 years ago

[Bluetooth] Unable to Pair Screen Updates

Categories

(Firefox OS Graveyard :: Gaia::Bluetooth, defect, P1)

All
Other
defect

Tracking

(b2g18+ affected)

RESOLVED WORKSFORME
Tracking Status
b2g18 + affected

People

(Reporter: epang, Assigned: pivanov)

References

Details

(Keywords: polish, Whiteboard: visual design, UX-P1, visual-tracking, landed in UX branch)

Attachments

(4 files, 1 obsolete file)

Attached image Unable to Pair Screen Updates Mock Up (obsolete) —
Hi Pavel, Can you update the layout of this screen? The mock up and specs will be attache shortly. Thanks!
Attached file Font Specs
Specs for Fonts
QA Contact: jsmith
tracking-b2g18: --- → ?
Updated padding of div lines to 15px (to match revised building blocks)
Attachment #739131 - Attachment is obsolete: true
Attached image After patch
Attached file patch for Gaia repo
Attachment #741702 - Flags: review?(sjochimek)
(In reply to Pavel Ivanov [:ivanovpavel] from comment #3) > Created attachment 741701 [details] > After patch Looks good, thanks for making the update Pavel!
Comment on attachment 741702 [details] patch for Gaia repo This should really be part of the BB, it's a simple alert message.
Attachment #741702 - Flags: review?(sjochimek)
(In reply to Sam Joch [:samjoch] from comment #6) > Comment on attachment 741702 [details] > patch for Gaia repo > > This should really be part of the BB, it's a simple alert message. I agree but I think we need to change some of the logic in system app, right?
(In reply to Pavel Ivanov [:ivanovpavel] from comment #7) > (In reply to Sam Joch [:samjoch] from comment #6) > > Comment on attachment 741702 [details] > > patch for Gaia repo > > > > This should really be part of the BB, it's a simple alert message. > > I agree but I think we need to change some of the logic in system app, right? What should we do about this Sam?
Flags: needinfo?(sjochimek)
Sergi, we want to implement the Bluetooth pairing screens with the BB, but we're having trouble as Pavel stated in comment 7. By any chance can you help us with a solution? Thanks!
Flags: needinfo?(sergiov)
(In reply to Eric Pang [:epang] from comment #9) > Sergi, we want to implement the Bluetooth pairing screens with the BB, but > we're having trouble as Pavel stated in comment 7. By any chance can you > help us with a solution? Thanks! AFAIK alert screens like the one you're using are system components. My suggestion is to use the "Confirm" BB. The problem is the BB is not yet updated with the 15px/30px padding rule. I'm adding a new bug so Arnau updates "Confirm" to the last spec.
Flags: needinfo?(sergiov)
I agree w/ Sergi. Even if it's a system panel, it's using BB as well. (https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/bluetooth.js#L485) So we should update BB to match the right padding. This should fix this bug automatically. Eric: Should Pavel updates the BB and let Arnau r+ his patch ?
Flags: needinfo?(sjochimek) → needinfo?(epang)
(In reply to Sam Joch [:samjoch] from comment #11) > I agree w/ Sergi. > > Even if it's a system panel, it's using BB as well. > (https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/bluetooth. > js#L485) > > So we should update BB to match the right padding. This should fix this bug > automatically. > > Eric: Should Pavel updates the BB and let Arnau r+ his patch ? this sounds good to me! Thanks Sam
Flags: needinfo?(epang)
Actually i would like being aware of all BB updates. So please CC in related bugs.
Attachment #741702 - Attachment is obsolete: true
Attachment #741702 - Attachment is obsolete: false
Attachment #741702 - Flags: review?(arnau)
Comment on attachment 741702 [details] patch for Gaia repo Everything ok!
Attachment #741702 - Flags: review?(arnau) → review+
Whiteboard: visual design, UX-P1, yedo → visual design, UX-P1, yedo, landed in UX branch
Naoki, this should be ready for verification! :)
Flags: needinfo?(nhirata.bugzilla)
Depends on: 871110
This patch converts <div> to <form> and use <button> elements. Sadly buttons elements are the equivalent of a <input type="submit"> not an <input type="button"> so the form is submitted and the system app is reloaded which breaks a lot of things...
Depends on: 871115
(In reply to Vivien Nicolas (:vingtetun) (:21) from comment #17) > This patch converts <div> to <form> and use <button> elements. Sadly buttons > elements are the equivalent of a <input type="submit"> not an <input > type="button"> so the form is submitted and the system app is reloaded which > breaks a lot of things... Thanks Vivien for the notes! Not ready for verification... Pavel can you look into Vivien's comments? If extra info is needed please clarify with Vivien or Arnau, thanks!
Flags: needinfo?(nhirata.bugzilla) → needinfo?(pivanov)
Thanks Vivien and David, sorry for the inconvenience ... I will try to fix this one and take a note for the [BB]
Flags: needinfo?(pivanov)
Hey Arnau, can we change the rules here: https://github.com/mozilla-b2g/gaia/blob/master/shared/style/confirm.css form[role="dialog"][data-type="confirm"], div[role="dialog"][data-type="confirm"] or maybe it's a better idea to use class name: form[role="dialog"][data-type="confirm"], .modal[role="dialog"][data-type="confirm"] What do you think?
Flags: needinfo?(arnau)
Whiteboard: visual design, UX-P1, yedo, landed in UX branch → visual design, UX-P1, hanzo, visual-tracking, landed in UX branch
Whiteboard: visual design, UX-P1, hanzo, visual-tracking, landed in UX branch → visual design, UX-P1, visual-tracking, landed in UX branch
Pavel, Dialogs will always have a button to close or to trigger an action, so make sense using form. Why do you need to use div instead of form? Although for me it would make more sense just having: [role="dialog"][data-type="confirm"] than duplicating selectors. Thanks
Flags: needinfo?(arnau)
(In reply to arnau from comment #22) > Pavel, > Dialogs will always have a button to close or to trigger an action, so make > sense using form. > Why do you need to use div instead of form? > Although for me it would make more sense just having: > [role="dialog"][data-type="confirm"] > than duplicating selectors. > Thanks Pavel, with the info from Pavel are you able to proceed with this bug?
Flags: needinfo?(pivanov)
not realy, Arnau you can see Comment 17 from Vivien.
Flags: needinfo?(pivanov)
Flags: needinfo?(arnau)
What if we replace form[role="dialog"][data-type="confirm"] for [role="dialog"][data-type="confirm"] without the form in the BB?
Flags: needinfo?(arnau) → needinfo?(igonzaleznicolas)
we can do this ... it's not very fast selector but will help us right now. I will open a bug for this if you don't mind?
Can we simply add some basic js to prevent <form> submission? myForm.onsubmit = function(e){ e.preventDefault(); }; I mean, we are using this "confirm" in many applications and there wasn't any problem about using it in this way. Anyway, if you are unable to use this kind of js behaviour for any reason, i suggest to change the selector to [data-type="confirm"] which is equally expensive than the current one. Hope it helps!
Flags: needinfo?(igonzaleznicolas)
(In reply to Ismael Gonzalez [:basiclines] from comment #27) > Can we simply add some basic js to prevent <form> submission? > myForm.onsubmit = function(e){ e.preventDefault(); }; > > I mean, we are using this "confirm" in many applications and there wasn't > any problem about using it in this way. > > Anyway, if you are unable to use this kind of js behaviour for any reason, i > suggest to change the selector to [data-type="confirm"] which is equally > expensive than the current one. > > Hope it helps! Hey Pavel, have you seen Ismael's comment to help with this bug?
Flags: needinfo?(pivanov)
I saw the comment now ... but I think this bug is fixed by: https://github.com/mozilla-b2g/gaia/commit/d1463bc3cfe39e9c04a4de0c3f9e9908988834b4
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(pivanov)
Resolution: --- → WORKSFORME
Great, thanks Pavel!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: