Closed Bug 822959 Opened 13 years ago Closed 13 years ago

[Clock] Deleting in the alarm label will reprint the label you deleted

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g18 fixed)

VERIFIED FIXED
Tracking Status
b2g18 --- fixed

People

(Reporter: tchung, Assigned: iliu)

References

Details

(Whiteboard: interaction, UX-P4, v2, testrun 2)

Attachments

(3 files)

Attached image screenshot
Create a new alarm label, but hitting backspace in the textbox until the cursor has removed all the text. Once the cursor gets to the first character, the label reappears. See screenshot Repro: 1) install 20121218070200 unagi nightly 2) launch clock app 3) create an alarm 4) put the cursor in "label", and delete the existing label there by hitting backspace (eg. "Alarm") 5) once the cursor deletes everything back to the first cursor position, the label reappears. Expected: - deleting a label should remain deleted ActuaL: - deleting the label all the way will show the label again.
I don't think this is a bug, it's a mechanism to prevent from creating an alarm with empty label after delete the original label and enter an arbitrary letter, the default label (the one reappears) will disappear
but we can take it as a polish, maybe displays with gray text will be better Tony, what do you think?
Whiteboard: polish
I agree with John's suggestion. There is a placeholder="Alarm" in the input tag of label. We can reference the spec. of Clock APP. (https://wiki.mozilla.org/Gaia/Clock#Requirements) Set alarm label option: Default string is "Alarm", or overwrite with your own label Hi Josh, How do you think for the issue? We also need your suggestion.
Assignee: nobody → iliu
Flags: needinfo?(jcarpenter)
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → ARM
if it's supposed to be instructional text, then i agreewith comment 2, making the text color greyed out. it needs to seem non-editable, instead of seemingly the pre-populated text.
Good catch. We should resolve this by making "Alarm" the field's hint text, in gray. The hint text disappears as soon as the user focuses the field and starts to type a new name. If the user does not enter a name, or deletes all characters of an existing name, the "Alarm" hint reappears If user saves their changes (taps "Done") while the field is blank (with "Alarm" hint visible), then "Alarm" becomes the alarm's label. Does that make sense to everyone? Is that realistic to implement for v1?
Flags: needinfo?(jcarpenter)
Whiteboard: polish → interaction, UX-P4
This issue repros in B2G: Gaia, OS version 1.0.0, Build ID: 20121217070202 Test Case #1775
This issue repros in Ungia, build 20130104070203 v.1.0. The "Alarm" the field's hint text, is not gray.
(In reply to Josh Carpenter [:jcarpenter] from comment #5) > Good catch. > > We should resolve this by making "Alarm" the field's hint text, in gray. > The hint text disappears as soon as the user focuses the field and starts to > type a new name. > If the user does not enter a name, or deletes all characters of an existing > name, the "Alarm" hint reappears > If user saves their changes (taps "Done") while the field is blank (with > "Alarm" hint visible), then "Alarm" becomes the alarm's label. > > Does that make sense to everyone? Is that realistic to implement for v1? I vote the behavior. And it's a realistic solution for v1.
(In reply to Josh Carpenter [:jcarpenter] from comment #5) > Good catch. > > We should resolve this by making "Alarm" the field's hint text, in gray. I totally agree with this. > The hint text disappears as soon as the user focuses the field and starts to type a new name. If we use a placeholder (I think we should) for the 'hint text' the placeholder disappears when the user write the first symbol not when the user focuses the field. That means that we just put the actual value only when we edit the alarm. > If the user does not enter a name, or deletes all characters of an existing name, the "Alarm" hint reappears. Again, we don't need to set the value="Alarm" we have a placeholder, right :) > If user saves their changes (taps "Done") while the field is blank (with "Alarm" hint visible), then "Alarm" becomes the alarm's label. > > Does that make sense to everyone? Is that realistic to implement for v1? I think this is important UX issues and we need to land this for v1. Ian Liu: if you need help with implementation I can help :)
(In reply to Pavel Ivanov [:ivanovpavel] from comment #9) > (In reply to Josh Carpenter [:jcarpenter] from comment #5) > > Good catch. > > > > We should resolve this by making "Alarm" the field's hint text, in gray. > I totally agree with this. > > > The hint text disappears as soon as the user focuses the field and starts to type a new name. > If we use a placeholder (I think we should) for the 'hint text' the > placeholder disappears when the user write the first symbol not when the > user focuses the field. That means that we just put the actual value only > when we edit the alarm. It's true. This is a native behavior of placeholder. Josh, do you agree with the native behavior of HTML attribute placeholder? > > > If the user does not enter a name, or deletes all characters of an existing name, the "Alarm" hint reappears. > Again, we don't need to set the value="Alarm" we have a placeholder, right :) (Also native behavior :P) > > > If user saves their changes (taps "Done") while the field is blank (with "Alarm" hint visible), then "Alarm" becomes the alarm's label. > > > > Does that make sense to everyone? Is that realistic to implement for v1? > I think this is important UX issues and we need to land this for v1. > > Ian Liu: if you need help with implementation I can help :) Pavel, I will fix the issue when the solution is confirmed. Thank you.
Flags: needinfo?(jcarpenter)
(In reply to Ian Liu [:ianliu] from comment #10) > (In reply to Pavel Ivanov [:ivanovpavel] from comment #9) > > (In reply to Josh Carpenter [:jcarpenter] from comment #5) > > > Good catch. > > > > > > We should resolve this by making "Alarm" the field's hint text, in gray. > > I totally agree with this. > > > > > The hint text disappears as soon as the user focuses the field and starts to type a new name. > > If we use a placeholder (I think we should) for the 'hint text' the > > placeholder disappears when the user write the first symbol not when the > > user focuses the field. That means that we just put the actual value only > > when we edit the alarm. > It's true. This is a native behavior of placeholder. > Josh, do you agree with the native behavior of HTML attribute placeholder? Yes, that's fine :)
Flags: needinfo?(jcarpenter)
Whiteboard: interaction, UX-P4 → interaction, UX-P4, v2, testrun 2
Comment on attachment 702158 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7609 Set a color 'gray' for the placeholder of alarm label. Tim, Could you please help to review the pr?
Attachment #702158 - Flags: review?(timdream+bugs)
Comment on attachment 702158 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/7609 NOTE: If blocking-basecamp+ is set, just land it for now. [Approval Request Comment] Bug caused by (feature/regressing bug #): No specific color for placeholder. User impact if declined: Improve UX. Testing completed: Yes. Risk to taking this patch (and alternatives if risky): None.
Attachment #702158 - Flags: approval-gaia-master?(21)
Attachment #702158 - Flags: review?(timdream+bugs) → review+
Attachment #702158 - Flags: approval-gaia-master?(21) → approval-gaia-master+
The conclusion for this bug doesnt seem appropriate. Comment-5 from Josh Carpenter looks like an appropriate UX scenario. This will make the UX look very similar to the UX of contact application. In contact application, the default text is a hint text and it disappears when the input is focused. If the input is left blank, the default text will be taken as the input value. The behaviour of alarm input should also be simalar. I have made the changes for this requirement. I believe this bug should be reopened for further discussions if required. Please check the Github pullrequest URL: https://github.com/mozilla-b2g/gaia/pull/7707
(In reply to sarathbalank from comment #17) > The conclusion for this bug doesnt seem appropriate. > Comment-5 from Josh Carpenter looks like an appropriate UX scenario. This > will make the UX look very similar to the UX of contact application. In > contact application, the default text is a hint text and it disappears when > the input is focused. If the input is left blank, the default text will be > taken as the input value. The behaviour of alarm input should also be > simalar. I have made the changes for this requirement. > I believe this bug should be reopened for further discussions if required. > Please check the Github pullrequest URL: > https://github.com/mozilla-b2g/gaia/pull/7707 Please file another bug for that. We don't reopen bugs with landed code (unless it is being backout'd)
QA Contact: jshih → fyen
Gaia: 6c53dfd2e5d60393f6a57e9e1a4b5af6a3d6a783 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/2226f181c8c2 BuildID 20130126070202 Version 18.0 Verified base on comment #5.
Status: RESOLVED → VERIFIED
Default Text in Alram label is an hint text.Please check the attached patch. https://github.com/mozilla-b2g/gaia/pull/8128
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: