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)
Tracking
(b2g18+ affected)
RESOLVED
WORKSFORME
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)
Hi Pavel,
Can you update the layout of this screen? The mock up and specs will be attache shortly. Thanks!
Reporter | ||
Comment 1•12 years ago
|
||
Specs for Fonts
Updated•12 years ago
|
QA Contact: jsmith
Reporter | ||
Updated•12 years ago
|
tracking-b2g18:
--- → ?
Reporter | ||
Comment 2•12 years ago
|
||
Updated padding of div lines to 15px (to match revised building blocks)
Attachment #739131 -
Attachment is obsolete: true
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #741702 -
Flags: review?(sjochimek)
Reporter | ||
Comment 5•12 years ago
|
||
(In reply to Pavel Ivanov [:ivanovpavel] from comment #3)
> Created attachment 741701 [details]
> After patch
Looks good, thanks for making the update Pavel!
Updated•12 years ago
|
status-b2g18:
--- → affected
Comment 6•12 years ago
|
||
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)
Assignee | ||
Comment 7•12 years ago
|
||
(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?
Reporter | ||
Comment 8•12 years ago
|
||
(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)
Reporter | ||
Comment 9•12 years ago
|
||
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)
Comment 10•12 years ago
|
||
(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)
Comment 11•12 years ago
|
||
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)
Reporter | ||
Comment 12•12 years ago
|
||
(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)
Comment 13•12 years ago
|
||
Actually i would like being aware of all BB updates. So please CC in related bugs.
Assignee | ||
Updated•12 years ago
|
Attachment #741702 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
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+
Assignee | ||
Comment 15•12 years ago
|
||
Thanks Arnau :)
landed on master: https://github.com/mozilla-b2g/gaia/commit/3f21ffb7ea4b574ee03f5cd67314fe17c928ba72
Whiteboard: visual design, UX-P1, yedo → visual design, UX-P1, yedo, landed in UX branch
Reporter | ||
Comment 16•12 years ago
|
||
Naoki, this should be ready for verification! :)
Flags: needinfo?(nhirata.bugzilla)
Comment 17•12 years ago
|
||
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...
Comment 18•12 years ago
|
||
I've backed out the change: https://github.com/mozilla-b2g/gaia/commit/7f90b27f720784e7c4d4fcd055118c16a44778fe
Reporter | ||
Comment 19•12 years ago
|
||
(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)
Assignee | ||
Comment 20•12 years ago
|
||
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)
Assignee | ||
Comment 21•12 years ago
|
||
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)
Reporter | ||
Updated•12 years ago
|
Whiteboard: visual design, UX-P1, yedo, landed in UX branch → visual design, UX-P1, hanzo, visual-tracking, landed in UX branch
Reporter | ||
Updated•12 years ago
|
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)
Reporter | ||
Comment 23•12 years ago
|
||
(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)
Assignee | ||
Comment 24•12 years ago
|
||
not realy,
Arnau you can see Comment 17 from Vivien.
Flags: needinfo?(pivanov)
Assignee | ||
Updated•12 years ago
|
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)
Assignee | ||
Comment 26•12 years ago
|
||
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?
Comment 27•12 years ago
|
||
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)
Reporter | ||
Comment 28•12 years ago
|
||
(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)
Assignee | ||
Comment 29•12 years ago
|
||
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
Reporter | ||
Comment 30•12 years ago
|
||
Great, thanks Pavel!
You need to log in
before you can comment on or make changes to this bug.
Description
•