Closed Bug 805977 Opened 12 years ago Closed 12 years ago

Truncate long app names on home screen

Categories

(Firefox OS Graveyard :: Gaia::Homescreen, defect, P3)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:-, b2g18+ fixed)

RESOLVED FIXED
blocking-basecamp -
Tracking Status
b2g18 + fixed

People

(Reporter: gkw, Assigned: crdlc)

References

Details

(Keywords: b2g-testdriver, unagi, Whiteboard: visual design, interaction, UX-P2, BerlinWW)

Attachments

(3 files, 2 obsolete files)

1. Update to 2012-10-24 build.
2. There will be a System app and a what I assume to be a "Dev Marketplace" app.
3. "Dev Marketplace" is a name of an app that is too long.

It should be truncated properly, because now it shows up as "Dev Marketpl".


===

My Git commit info currently shows:

2012-10-24 11:07:05
fcfa1857bed6596e992263206451c6814e4b2... (I see ellipsis at the end)
Hardware: x86 → ARM
blocking-basecamp: ? → -
Flags: needinfo+
Flags: needinfo+ → needinfo?(jcarpenter)
This is our approach for v1, but we're open to suggestions. We used ellipsis previously but they gobble up valuable horizontal real estate, reducing the number of characters that can be displayed.

cc'ing Patryk for input.
Flags: needinfo?(jcarpenter)
Assignee: nobody → padamczyk
Whiteboard: visual design
Component: Gaia → Gaia::Homescreen
Priority: -- → P3
Currently we can support 11 to 12 character labels which is adequate and inline with our competitors. For v.1 ellipsis should be the correct solution, as anything more would require feature work which we don't have dev support for.

Please make sure the proper unicode character is used for ellipsis (&#x2026), its about the length of an "m" so you'd get at least 10 characters before truncation happens.
Assignee: padamczyk → nobody
(In reply to Patryk Adamczyk [:patryk] UX from comment #2)
> Currently we can support 11 to 12 character labels which is adequate and
> inline with our competitors. For v.1 ellipsis should be the correct
> solution, as anything more would require feature work which we don't have
> dev support for.
> 
> Please make sure the proper unicode character is used for ellipsis
> (&#x2026), its about the length of an "m" so you'd get at least 10
> characters before truncation happens.

The problem is that ellipsis actually reduces the number of characters that are visible by taking up valuable horizontal real estate. The choice is:

(1) Maximize number of visible characters but do not provide visual hint that text is truncated.

(2) Provide visual hunt that text is truncated, but at expense of 1 or more characters.

From a usability standpoint (1) seems like the obvious option. Also consider how cluttered (2) could look if half the apps have ellipsis added.
We could try to thread the needle by exploring alternative visual hints (eg: fade last character of text out), but I think that's something to defer to a future version.
11 to 12 characters is a standard. On all mobile OSs that is what you see. Android added another line of text, but we should aim for all apps to have shorter names.

For v.2 I'd like to experiment with more visual treatments like Josh suggests, but they would be features I suspect.

If we can fade the last 2 characters... to 66% and 33% opacity, that would be a good alternative for the ellipsis.
(In reply to Patryk Adamczyk [:patryk] UX from comment #5)
> 11 to 12 characters is a standard. On all mobile OSs that is what you see.
> Android added another line of text, but we should aim for all apps to have
> shorter names.

Agreed on both counts, but what about the question of how to truncate text for v1? I feel it's better to cut the text off instead of sacrificing several characters and cluttering the screen.

> If we can fade the last 2 characters... to 66% and 33% opacity, that would
> be a good alternative for the ellipsis.

Only issue is that it might be tricky from a performance standpoint. Am cc'ing Gordon for input on our options here.
Whiteboard: visual design → visual design, interaction
Hi everyone,

     In this screenshot[1] there are different versions for labels in v1. I guess that the best options is to use text-overlfow='' because it is very ugly to cut characters IMHO.

Thanks

[1] http://i.imgur.com/QdXzs.png
(In reply to crdlc from comment #7)
> Hi everyone,
> 
>      In this screenshot[1] there are different versions for labels in v1. I
> guess that the best options is to use text-overlfow='' because it is very
> ugly to cut characters IMHO.
> [1] http://i.imgur.com/QdXzs.png

Thanks for mocking that up.

I agree: let's go with text-overflow=''.
ok, Today I am going to implement it. Thanks a lot Josh for your help!
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Attached file Proposed patch v2
Attachment #690377 - Flags: review?(21)
sorry, i added another bug for this same issue. 

My suggestion is to use the 3 points at the end of a long text. We may use 12 characters and, in case the text is longer, 10 characters + 3points. I've attached a sample. IMHO Just cutting the text without making some kind of visual trick may drive to odd scenarios.
Attached image Truncating Text (obsolete) —
It is feasible BUT we should add a layer over text with a gradient. The problem is that the gradients are not the best friend of performance in panning. So if from the design team we have a image that provides that effect it could be implemented.

Thanks
Sergi, could we do some test jointly? thanks
I've updated the attachment to reflect the changes Patryk proposed about having the characters at the end of long names faded out. 

As a general rule we will display app names with 12 characters and, if the text is longer, we will also use 12 characters but the two characters at the end will have a fade effect.
Attachment #690425 - Attachment is obsolete: true
> As a general rule we will display app names with 12 characters and, if the
> text is longer, we will also use 12 characters but the two characters at the
> end will have a fade effect.

I absolutely agree that this is one of the best ways forward. :)
Attached image My first approach (obsolete) —
I've been working with masks + SVG and the result is awesome!. Now, please, Sergi we are going to review the mask to reach the result perfect.
Nice work guys, I agree, this is the best option... so long as there is not a negative performance impact. That's very  important. 

Am cc'ing cjones for input on potential impact.

Also, current mask width appears to be 25px. That seems excessive and undermines legibility. I recommend narrowing to 15px.
Whiteboard: visual design, interaction → visual design, interaction, UX-P2
Comment on attachment 690377 [details]
Proposed patch v2

Code seems fine. As far as I understand how our transformations works it should not affect panning performance.
Attachment #690377 - Flags: review?(21) → review+
I was testing while implementation and the performance seems OK than before
We have different screenshots, Sergi will provide some real pictures for Unagi in a couple of hours, thanks
(In reply to crdlc from comment #23)
> We have different screenshots, Sergi will provide some real pictures for
> Unagi in a couple of hours, thanks

Awesome, thanks Cristian, that would be much appreciated.
Attachment #692217 - Attachment is obsolete: true
Find attached a new version of the Fade Effect. 

I've added a couple of samples with different mask densities. Although the version which is more similar to the first visual mockup is "Test 3" i think "Test 2" works better visually. Let us know your opinion so Cristian can close this and place the PR.

Go with Test 3.

Thanks guys
ok got it, I will implement with 3, thanks
Comment on attachment 690377 [details]
Proposed patch v2

Reviewed by Sergi from UX point of view
Attachment #690377 - Attachment description: Proposed patch v1 → Proposed patch v2
OK r+ but not bb+, approval gaia master?
(In reply to steve from comment #27)
> 
> Go with Test 3.
> 
> Thanks guys

Yep, agreed. Test 3 worst best. Nice work guys.

(In reply to crdlc from comment #30)
> OK r+ but not bb+, approval gaia master?

Nominating. 

* Patch is ready and reviewed. Mark it BB+ to get in for release.
* Many apps have long names and will benefit from this visual improvement.
blocking-basecamp: - → ?
Triage:BB-, tracking-b2g18+, can ask for gaia master approval
blocking-basecamp: ? → -
tracking-b2g18: --- → +
Whiteboard: visual design, interaction, UX-P2 → visual design, interaction, UX-P2, BerlinWW
Summary: Long app names should be dealt with in a better way - "Dev Marketpla" app name on homescreen → Truncate long app names on home screen
Comment on attachment 690377 [details]
Proposed patch v2

NOTE: If blocking-basecamp+ is set, just land it for now.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
User impact if declined: 
Testing completed: 
Risk to taking this patch (and alternatives if risky):
Attachment #690377 - Flags: approval-gaia-master?(21)
Comment on attachment 690377 [details]
Proposed patch v2

Let's see if this does not regress perf.
Attachment #690377 - Flags: approval-gaia-master?(21) → approval-gaia-master+
ok if there is a regression about performance we remove the commit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: