Closed Bug 873409 Opened 11 years ago Closed 11 years ago

[Settings] Internet Sharing: Wi-Fi hotspot name overlaps the "Name" text when too large

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g18?)

RESOLVED FIXED
Tracking Status
b2g18 ? ---

People

(Reporter: bov, Assigned: mihai)

References

Details

(Whiteboard: [s=fx32])

Attachments

(2 files)

Steps:
 
2. Go to "Settings".
3. Select "Internet Sharing" under Network & Connectivity.
4. Select "Hotspot Settings" and add a large password over 20 characters.
5. Click "OK" in the top right to save the data.

Actual Results:
The text begins to overlap.

Expected Results:
After a specific number of character the text will be cut off and will display ellipsis.
PLEASE DON'T TAKE INTO ACCOUNT THE FIRST DESCRIPTION. THIS IS THE RIGHT ONE:

Tested on a Inari device. V 1.0.1 Build identifier: 20130516003416
Platform version: 18.0
Steps:
 
1. Go to "Settings".
2. Select "Internet Sharing" under Network & Connectivity.
3. Select "Hotspot Settings" and type a large SSID network name over 20 characters.
4. Click "OK" in the top right to save the data.

Actual Results:
The text typed overlaps the NAME field

Expected Results:
After a specific number of characters (20) the text will be cut off without overlaps any field.
tracking-b2g18: --- → ?
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86 → ARM
Assignee: nobody → mihai
Rob, what do you think a good approach would be to tackle the overlapping text here?

One solution that I have in mind is to add the marquee I introduced with the patch for bug 871454.
blocking-b2g: --- → leo?
Flags: needinfo?(rmacdonald)
As much as I love the marquee, in this case I think it's best to truncate. Why? First, because the user is picking the name and, second, because they can always view the full name in the hotspot settings if required. So it's unlikely we'll create any usability issues.

When we've used the marquee it's typically been where the user doesn't have any other option and if there's a potential for a usability issue without the full string. In this case I don't think that applies.
Flags: needinfo?(rmacdonald)
Thanks for your input on this, Rob. I will add the logic to truncate with ellipsis the overflowing WiFi HotSpot names.
Simple CSS fix that truncates (with ellipsis) long strings to avoid overlapping the label text. The solution allows the user to see the full string by tapping and swiping left/right.

The patch also fixed the (overlapping) password field which shows the same behavior as the hotspot name (SSID) field.
Attachment #762080 - Flags: review?(arthur.chen)
Comment on attachment 762080 [details]
Pull Request #10370 - Truncate overlapping SSID/password

Mihai, I am not sure if the solution is okay. Let's get some UX inputs here.
Attachment #762080 - Flags: review?(arthur.chen)
Please provide some inputs for handling lengthy SSID and password. Thanks!
Flags: needinfo?(firefoxos-ux-bugzilla)
Triage - not blocking. UX please suggest a solution for this even though not blocking leo release.
blocking-b2g: leo? → ---
With attachment 762080 [details] applied, the lengthy text is truncated as suggested in comment4. Meanwhile, users are able to scroll the text to view the full content.
Assigning needinfo to Casey even though this is not blocking. Blockers still take priority.
Flags: needinfo?(firefoxos-ux-bugzilla) → needinfo?(kyee)
A solution has already been provided in Comment 4.   The same behavior should also apply to the password field.
Flags: needinfo?(kyee)
Comment on attachment 762080 [details]
Pull Request #10370 - Truncate overlapping SSID/password

Updated the patch to just truncate the SSID and password fields ass comment 4 suggested.

Note: the issue highlighted by bug 890496 (i.e. the button to access the HotSpot Settings is not working) makes it impossible to test this patch for now (I tested it with the fix for bug 890496 applied).
Attachment #762080 - Flags: review?(arthur.chen)
Comment on attachment 762080 [details]
Pull Request #10370 - Truncate overlapping SSID/password

Thanks for the effort, Mihai! r=me.
Attachment #762080 - Flags: review?(arthur.chen) → review+
Thanks for landing the patch, Arthur!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [s=fx32]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: