the account setup incoming/outgoing columns (fields) are too narrow to see the server names and usernames properly
Categories
(Thunderbird :: Account Manager, defect)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: aleca)
Details
Attachments
(2 files, 5 obsolete files)
96.44 KB,
image/png
|
Details | |
20.64 KB,
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
The current account setup incoming/outgoing columns (fields) are too narrow to see the server names and usernames properly.
They need to be wide enough that most server names, and most email addresses would never get out of view.
Assignee | ||
Comment 1•6 years ago
|
||
Is this a recent regression, or the default width of the dialog has always been too narrow?
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
I restructured the columns and rows of the manual edit are in order to keep consistent sizing and let only the columns with the fields and menulist grow, while the column with the labels remains as narrow as possible.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
All right, I will update this patch with the following edits:
- Convert the area to use
html:table
. - Increase a bit more the width of the dialog.
- Populate the username field with the full name.
Assignee | ||
Comment 6•6 years ago
|
||
Magnus, this is the method that extracts the username from the email address which is then used in the manual config username field.
https://searchfox.org/comm-central/rev/2c6b74cbc1457670a7e89613baee908837d73799/mail/components/accountcreation/content/accountConfig.js#269
Do you know why it's set that way and if it's safe to remove it and directly use the full email address?
Assignee | ||
Comment 7•6 years ago
|
||
Meanwhile, I did the conversion to html:table.
I'm asking a UI review from Richard to be sure all the elements still align properly.
Reporter | ||
Comment 8•6 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #6)
Magnus, this is the method that extracts the username from the email address which is then used in the manual config username field.
https://searchfox.org/comm-central/rev/2c6b74cbc1457670a7e89613baee908837d73799/mail/components/accountcreation/content/accountConfig.js#269Do you know why it's set that way and if it's safe to remove it and directly use the full email address?
Back in the day it used to be fairly popular to have a username, and then an email address. But this is getting more rare I think.
Anyway, it should be ok to remove - this is manual config after all. For autoconfig we do use full email by default, and worst case scenario the user has to delete the @domain part from that box (so not that bad).
I think the code you reference is just for some debug logging, and I do think you can just remove that.
Reporter | ||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Unfortunately, I think I need to use the display: flex;
for the table as the XUL elements don't behave properly inside the html:table
.
As you can see from the screenshot, using the simple table doesn't let the elements expand and grow through the width of the column.
The bottom panel shows what happens if I try to force those elements with a width: 100%
attribute.
Using flexbox seems to be the safest and more consistent solution for the UI.
Assignee | ||
Comment 12•6 years ago
|
||
Patch updated, and here's a try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=0253ee2e232d4f83dff08c73fcee58ec45e2773b
Reporter | ||
Comment 13•6 years ago
|
||
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Updated•6 years ago
|
Comment 15•6 years ago
|
||
Code was added here: https://hg.mozilla.org/comm-central/rev/1cb168d17d1b#l1.54
Reporter | ||
Comment 16•6 years ago
|
||
I don't think there's a need to protect your (maybe) email address from being shown in logs on your own computer, and likely counterproductive since that could prevent you from finding an error. If you read the original, both you and Ben already there said it wasn't necessary.
Comment 17•6 years ago
|
||
OK, if you want to remove the "redacting", then please inline the function. A function with one call site, a confusing name and a || "undefined";
body is not needed. Besides, to avoid confusion, I suggest to make it "(empty)" or "(undefined)".
Assignee | ||
Comment 18•6 years ago
|
||
I removed that method and launched another try run to be sure nothing gets broken: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=8b50ef84554f3cec074229d69937dbd18534f80a
Comment 19•6 years ago
|
||
(Almost) excellent, but I asked for "(empty)" or "(undefined)".
Assignee | ||
Comment 20•6 years ago
|
||
Oopsie, sorry about that.
Comment 21•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/d72ce60b5f76
Convert the manual config area in the emailWizard to <html:table>. r=mkmelin
Description
•