Closed
Bug 988268
Opened 11 years ago
Closed 11 years ago
[Cost Control] "When use is above" parameter is set to '0' the red line appearing at the top of the graphic
Categories
(Firefox OS Graveyard :: Gaia::Cost Control, defect)
Tracking
(b2g-v2.0 fixed)
VERIFIED
FIXED
2.0 S1 (9may)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: lolimartinezcr, Assigned: mai)
References
Details
(Whiteboard: burirun1.4-2, OpenCrun1.4-3)
Attachments
(2 files)
1.4
Platform version: 30.0a2
Build ID: 20140325101236
Git commit: b09bf796
Reproducible: 100%
STR:
1) Tap Usage aplication
2) Tap Setting button
3) Set "0" in "When use is above"
4) Tap "Done"
Actual result:
Line red is show (See attached image) not in 0
Expected result:
Graphics is correctly shown
Reporter | ||
Updated•11 years ago
|
Whiteboard: burirun1.4-2
Updated•11 years ago
|
Summary: [Graphic] When in "When use is above" has '0' amount in graphic you can see a red line → [Cost Control] When in"When use is above" has '0' amount in graphic you can see a red line
Comment 1•11 years ago
|
||
Hi,
Just adding that same behavior is seen in today's (3/26) master and v1.3 builds:
Master
Device:hamachi
BuildId: 20140326065930
Gecko: 618b2c2
Gaia: 0c9701c
Platform version: 31.0a1
v1.3:
Device:hamachi
BuildId: 20140326055947
Gecko: 6a9a53d
Gaia: 812838a
Platform version: 28.0
It doesn't make a lot of sense to allow setting '0' value as data usage limit, we should avoid it. Asking for UX input here, Ayman wdyt?
Assignee: nobody → mri
Flags: needinfo?(aymanmaat)
Summary: [Cost Control] When in"When use is above" has '0' amount in graphic you can see a red line → [Cost Control] "When use is above" parameter is set to '0' the red line appearing at the top of the graphic
Comment 2•11 years ago
|
||
ok I agree with Noemi and the developers that allowing the user to set a value limit of ‘0’ makes no sense. Discussions lead me to conclude that the minimum value a user should be able to input is: 0.01
We need a mechanism that communicates to the user that the current value input is either valid or invalid and for that I think for the sake of constancy we will use the pattern that is implemented on the cash balance alert indicator under:
Usage App > settings > Balance ‘when balance is below’.
Therefore the specified behaviour should be as follows:
1) field empty
field border = red error treatment
field fill = red error treatment
done CTA = disabled
2) 0 (zero) in field
field border = red error treatment
field fill = red error treatment
done CTA = disabled
3) 0.0 (zero dot zero) in field
field border = red error treatment
field fill = red error treatment
done CTA = disabled
4) 0.01 (zero dot zero one) or greater value in field
field border = normal treatment
field fill = normal treatment
done CTA = enabled
Please remember to limit the amounts of decimal points (dots) ‘.’ that can be input into the field to one and not to allow the dash ‘-‘ to be input into the field at all. if this is not possible when fixing this bug then:
5) if more than one decimal point ‘.’ is input into the field or a dash ‘-‘ is input into the field
field border = red error treatment
field fill = red error treatment
done CTA = disabled
Ni? me if you require any further clarification
Flags: needinfo?(aymanmaat)
Assignee | ||
Comment 3•11 years ago
|
||
Hi,
Salva could you review this patch?
In this patch have not addressed the issue of not allowing more than one dot, because this can be a problem if the numbers are localized.
Ayman has already opened a specific bug for this ( Bug 986414 -[Cost Control] Undesirable keyboard behaviour in data usage: user can enter multiple decimal points)
Attachment #8397764 -
Flags: review?(salva)
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Ayman, do you mind giving me your feedback?
Attachment #8397764 -
Flags: feedback?(aymanmaat)
Comment 5•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Seems fine to me Marina. Good work.
Attachment #8397764 -
Flags: feedback?(aymanmaat) → feedback+
Comment 6•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Passing to José Manuel.
Attachment #8397764 -
Flags: review?(salva) → review?(jmcf)
Updated•11 years ago
|
Attachment #8397764 -
Flags: review?(jmcf)
Comment 7•11 years ago
|
||
I left some comments on GH. Marina, please, address them and then ask for another review
thanks!
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Hi Jose,
I've updated the PR with your comments. Would you mind reviewing the patch again?
Regards
Attachment #8397764 -
Flags: review?(jmcf)
Comment 9•11 years ago
|
||
I've just talked to Marina and we are going to implement some enhancements (filtering out non-significative zeros), thus cancelling my review until that happens.
By the way Marina, this PR would also need some tests
thanks!
Updated•11 years ago
|
Attachment #8397764 -
Flags: review?(jmcf)
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Updated the PR with your comments. Added some test.
Jose, would you mind reviewing the patch?
Regards
Attachment #8397764 -
Flags: review?(jmcf)
Comment 11•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
cancelling review as we need at least another round
Attachment #8397764 -
Flags: review?(jmcf)
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Updated the PR with your comments.
Jose, would you mind reviewing the patch?
Attachment #8397764 -
Flags: review?(jmcf)
Comment 13•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
still we need another round
thanks
Attachment #8397764 -
Flags: review?(jmcf)
Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
Updated the PR with the latest comments.
Attachment #8397764 -
Flags: review?(jmcf)
Comment 15•11 years ago
|
||
Comment on attachment 8397764 [details] [review]
patch v1.0
r+ with a tiny comment on GH to be implemented
once solve the tiny comment and a green Travis, please land
thanks!
Attachment #8397764 -
Flags: review?(jmcf) → review+
Assignee | ||
Comment 16•11 years ago
|
||
Master: e6e1da035ea6d6ca67db5a774384c55bdcaf4c5c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
status-b2g-v2.0:
--- → fixed
Target Milestone: --- → 2.0 S1 (9may)
Reporter | ||
Comment 19•11 years ago
|
||
This bug NOT is working
Tested
Hamachi
1.4
Gecko 2f11e3a
Gaia 17fb448
Reporter | ||
Updated•11 years ago
|
Whiteboard: burirun1.4-2 → burirun1.4-2, OpenCrun1.4-3
Reporter | ||
Comment 20•11 years ago
|
||
(In reply to Loli from comment #19)
> This bug NOT is working
> Tested
> Hamachi
> 1.4
> Gecko 2f11e3a
> Gaia 17fb448
For this reason, it is reopened
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 21•11 years ago
|
||
Sorry this bug is working in 2.0.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 22•11 years ago
|
||
Tested and working
Hamachi
2.0
Gecko: 6558278
Gaia: b368142
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•