Closed
Bug 1035183
Opened 10 years ago
Closed 10 years ago
Matching numbers screen results is not properly localized for 10+ matches
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(blocking-b2g:2.0+, b2g-v1.4 unaffected, b2g-v2.0 fixed, b2g-v2.1 fixed)
Tracking | Status | |
---|---|---|
b2g-v1.4 | --- | unaffected |
b2g-v2.0 | --- | fixed |
b2g-v2.1 | --- | fixed |
People
(Reporter: flod, Assigned: drs)
References
Details
(Keywords: l12y, regression)
Attachments
(2 files, 1 obsolete file)
154.86 KB,
image/png
|
Details | |
12.29 KB,
patch
|
rik
:
review+
|
Details | Diff | Splinter Review |
For more than 10 matches, header is displayed as
> {{ n }} matches for "123"
This line sets the number to "10+"
https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/suggestion_bar.js#L129
This one from bug 1022445 converts the string to a number, but fails for "10+"
https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/suggestion_bar.js#L331
Reporter | ||
Updated•10 years ago
|
blocking-b2g: --- → 2.0?
Reporter | ||
Comment 1•10 years ago
|
||
Some doubts also about the meaning of "10+": as it's currently implemented, it means "10 or more", personally I'd expect it to mean "more than 10".
Reporter | ||
Comment 3•10 years ago
|
||
Actually, the problem is worse: assuming that there are 15 matches, textContent says "10+".
If you fix the conversion problem, for example using parseInt, you end up with an header saying "10 matches", which is not true.
Updated•10 years ago
|
QA Contact: jmitchell
Comment 4•10 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #2)
> QA Wanted for branch checks.
This issue Repro's on Flame 2.1, Flame 2.0, and Buri 2.1
Environmental Variables:
Device: Flame Master
Build ID: 20140707060819
Gaia: 99f56d9db3cd37c684b01de6fed786421f47e2b7
Gecko: 085eea991bb9
Version: 33.0a1 (Master)
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:33.0) Gecko/33.0 Firefox/33.0
Environmental Variables:
Device: Flame 2.0
Build ID: 20140707101630
Gaia: 16410831c2e513b5cabc550363f28a023dc256be
Gecko: 05069bac98d8
Version: 32.0a2 (2.0)
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.
Environmental Variables:
Device: Buri Master
Build ID: 20140707060819
Gaia: 99f56d9db3cd37c684b01de6fed786421f47e2b7
Gecko: 085eea991bb9
Version: 33.0a1 (Master)
Firmware Version: v1.2device.cfg
User Agent: Mozilla/5.0 (Mobile; rv:33.0) Gecko/33.0 Firefox/33.0
------------------------------------------------------------------------------------
Issue does NOT repro on Flame 1.4
Actual Results: Header shows "10+ matches for "555"
Environmental Variables:
Device: Flame 1.4
Build ID: 20140707000200
Gaia: 5c9e1e4131d3ac8915ed88b72bb66dc7d97be6a0
Gecko: 2d0c15450488
Version: 30.0 (1.4)
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:30.0) Gecko/30.0 Firefox/30.0
QA Whiteboard: [QAnalyst-Triage+]
status-b2g-v1.4:
--- → unaffected
status-b2g-v2.0:
--- → affected
status-b2g-v2.1:
--- → affected
Updated•10 years ago
|
Keywords: regressionwindow-wanted
Reporter | ||
Comment 5•10 years ago
|
||
@Jason, this is caused by the bug I set as a dependency (bug 1022445), no need to find a regression window.
Keywords: regressionwindow-wanted
Reporter | ||
Comment 6•10 years ago
|
||
We were also discussing this with :stas on IRC, and the form "10+" has some issues too:
* It's not necessarily common or easy to understand in all cultures.
* It's prone to confusion: does it include 10 or not? Looking at the code it does, but it's not evident, at least for me.
Given that we don't display suggestions before user enters at least 3 numbers, I wonder if we could just display the actual number of matches, I doubt they will reach 3 digits.
Updated•10 years ago
|
Comment 8•10 years ago
|
||
Comment 10•10 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #6)
> Given that we don't display suggestions before user enters at least 3
> numbers, I wonder if we could just display the actual number of matches, I
> doubt they will reach 3 digits.
This sounds like the easiest solution. Looping in the UX team.
Flags: needinfo?(firefoxos-ux-bugzilla)
Updated•10 years ago
|
Flags: needinfo?(firefoxos-ux-bugzilla) → needinfo?(cawang)
Comment 11•10 years ago
|
||
Hi,
I didn't define that we should list "10+" when there are more than 10 matched results.I think this is provided from visual side(?), but yes, I agree with you, we should display the real number unless it's three digit numbers (we display 99+ for this edge case). What do you think? Thanks!
Flags: needinfo?(cawang)
Comment 12•10 years ago
|
||
triage: obvious flaw in user experience. 2.0+
ni? Vicky to feedback on comment 11.
blocking-b2g: 2.0? → 2.0+
Flags: needinfo?(vpg)
Comment 13•10 years ago
|
||
Be noted that the list only shows up to 10 numbers (refer to the screenshot https://bugzilla.mozilla.org/attachment.cgi?id=8452481).
It looks like a current design, so I doubt if displaying "real number" make the list look weird.
Flags: needinfo?(cawang)
Comment 14•10 years ago
|
||
We can also change the algorithm to not propose a suggestion if you have more than X matches. Because if you have 50 people matching a number, you're probably gonna type one more digit to filter that down anyway.
Comment 15•10 years ago
|
||
(In reply to Carrie Wang [:carrie] from comment #11)
> Hi,
> I didn't define that we should list "10+" when there are more than 10
> matched results.I think this is provided from visual side(?), but yes, I
> agree with you, we should display the real number unless it's three digit
> numbers (we display 99+ for this edge case). What do you think? Thanks!
Hey, no, this is not something proposed from the visual side at all, I think it is more of an implementation decision. Visually there's no document that can define this type of specification, it always comes from an IA or implementation decision.
Cheers,
V
Flags: needinfo?(vpg)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → drs+bugzilla
Target Milestone: --- → 2.0 S6 (18july)
Comment 16•10 years ago
|
||
Thanks Vicky.
Carrie: What do you think about my proposition in comment 14? If we do that, that means we only display the suggestion bar when we have more than 3 digits and less than X matches.
Updated•10 years ago
|
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
Comment 18•10 years ago
|
||
Thank you Carrie for the clarification. My understanding of the expected behavior is as below:
1. User types 3 (or more) digits, and the suggestion display shows once the match has less than 50 contacts.
2. It shows with the actual number instead of something like "10+".
3. User can tap on the actual number to go to the screen with all the matches listed. Scrollable, and up to 50.
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 19•10 years ago
|
||
Attachment #8456380 -
Flags: review?(anthony)
Assignee | ||
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
Comment on attachment 8456380 [details] [diff] [review]
Make matched suggestions not appear when there are more than 50, remove + indicator.
Review of attachment 8456380 [details] [diff] [review]:
-----------------------------------------------------------------
Nice to have 3 different new tests! We're still missing at least one to check that we are displaying all of them in Suggestion List. This will test your +1 / >= changes. Once you have this test, I think we may be able to remove some of the .slice() that are now useless because we always display all of the results.
Attachment #8456380 -
Flags: review?(anthony) → review-
Assignee | ||
Comment 22•10 years ago
|
||
Updated PR.
Attachment #8456380 -
Attachment is obsolete: true
Attachment #8456952 -
Flags: review?(anthony)
Comment 23•10 years ago
|
||
Comment on attachment 8456952 [details] [diff] [review]
Make matched suggestions not appear when there are more than 50, remove + indicator.
Review of attachment 8456952 [details] [diff] [review]:
-----------------------------------------------------------------
Only a +6 lines fix! I love fixing bugs with such low impact.
Ship it!
Attachment #8456952 -
Flags: review?(anthony) → review+
Assignee | ||
Comment 24•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 25•10 years ago
|
||
Assignee | ||
Comment 26•10 years ago
|
||
backed out on 2.0 due to test failures (thanks Germán for noticing):
https://github.com/mozilla-b2g/gaia/commit/9977a02ea62ba96425a1cc4d1bfb54a909f68905
I'll fix this and reland it.
Whiteboard: NO_UPLIFT
Assignee | ||
Comment 27•10 years ago
|
||
Will request uplift of bug 1018494 to get the tests passing. We have a workaround but I'd prefer to just do the uplift instead.
Depends on: 1018494
Assignee | ||
Comment 28•10 years ago
|
||
Whiteboard: NO_UPLIFT
You need to log in
before you can comment on or make changes to this bug.
Description
•