Restore "Required Information Missing" dialog to prevent saving empty contacts
Categories
(Thunderbird :: Address Book, defect, P1)
Tracking
(thunderbird102+ fixed)
People
(Reporter: thomas8, Assigned: aleca)
References
(Blocks 1 open bug)
Details
(Keywords: regression, ux-error-prevention)
Attachments
(4 files)
32.31 KB,
image/png
|
Details | |
18.08 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details | Review |
TB 91 won't allow you to save an empty contact, which makes sense.
Also, empty contacts look extremely truncated in TB 102.
Expected
- Prevent saving empty contacts
- Restore "Required Information Missing" dialog to prevent saving empty contacts
Just disabling the Save button would have the disadvantage that the user may not know why the button is disabled. The dialog is good as it calls out the fields of which one must be filled before the contact can be saved. The list of fields make sense to me.
Needs strings!
Reporter | ||
Comment 1•3 years ago
|
||
Empty contacts don't look nice on 102.0a1 (2022-05-27) (64-bit), Win10.
Reporter | ||
Comment 2•3 years ago
|
||
Comment on attachment 9278587 [details]
Screenshot 1: 'Required Information Missing' dialog on TB 91 (when trying to save empty contact)
.
Assignee | ||
Comment 3•3 years ago
|
||
Rather than showing a dialog, the form should have some default required
fields to leverage the built-in HTML5 form validation, and go through that before saving the contact.
We might also consider disabling the "Save" button until the form is valid.
I'll take care of this.
Reporter | ||
Comment 4•3 years ago
|
||
Mass-adding regression keyword to applicable AB bugs.
#20220530ABRegressionKeyword01
Reporter | ||
Comment 5•3 years ago
•
|
||
(In reply to Alessandro Castellani [:aleca] from comment #3)
Rather than showing a dialog, the form should have some default
required
fields to leverage the built-in HTML5 form validation, and go through that before saving the contact.
I don't think that's a good solution, unless you have a way of natively requiring that from a range of fields, only one must be filled. We don't want to force users to enter data which they may not have or are not willing to add at this point.
As the current error message suggests (see screenshot above), it looks totally sufficient if any one of the following fields is filled:
Email Address, First Name, Last Name, Display Name, Organization.
cardRequiredDataMissingMessage=You must enter at least one of the following items:\nEmail Address, First Name, Last Name, Display Name, Organization.
We might also consider disabling the "Save" button until the form is valid.
While this might look like a superior solution, imo it is not. Again assuming that required
isn't what we want here because it's way too strict, it's actually much clearer to to the user to just show an explicit error message. I think this error message won't happen very often - saving an empty contact is really just a rare accident, maybe when you got interrupted and don't realize you have entered nothing.
I think we're casting the error message so that you don't end up in a false belief that you have actually saved a contact with data.
The error message is much clearer as it explicitly tells the user what's wrong and how to fix it. I don't think any required-markup like red borders on fields could do this, because how would you indicate that only one out of several marked fields must be filled?
I'll take care of this.
Thank you.
Reporter | ||
Comment 6•3 years ago
|
||
^^ comment 5 fyi before you start fixing this
Assignee | ||
Comment 8•3 years ago
|
||
Can you please stop NI me on every single bug I'm already part of?
I'm already CC'ed on these and I get a notification anywhere.
My inbox is getting spammed by hundreds of repeated AB bugs for no reason and it's getting disrupting.
I don't think that's a good solution, unless you have a way of natively requiring that from a range of fields, only one must be filled. We don't want to force users to enter data which they may not have or are not willing to add at this point.
That's exactly how the native HTML5 form validation works.
I think this error message won't happen very often - saving an empty contact is really just a rare accident
Exactly for this reason, an entire alert dialog is not really necessary.
Native form validation will take care of highlighting the needed fields (or only 1 if we only care about it), and using that will better integrate with assistive technologies being able to handle the very simple "email address field is required" kind of built-in message.
Updated•3 years ago
|
Comment 9•3 years ago
|
||
Contacts might not have any name and email address set, leading to an empty row for the contact. Not only can you currently create such contacts, but remote sources or imported address books might also contain such contacts.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b7dea7e10840
Make sure contact items always have the full height. r=aleca
Comment 11•2 years ago
|
||
Assignee | ||
Comment 12•2 years ago
|
||
Comment on attachment 9280077 [details]
Bug 1771575 - Make sure contact items always have the full height. r=#thunderbird-reviewers
[Approval Request Comment]
User impact if declined: Wrong UI alignment of contact lists with only one row of data.
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low
IMPORTANT
This needs to land alongside this bustage fix follow up: https://hg.mozilla.org/comm-central/rev/a9a9b9b1cba555dd7394059087e2b1efb4fb8848
Comment 13•2 years ago
|
||
Comment on attachment 9280077 [details]
Bug 1771575 - Make sure contact items always have the full height. r=#thunderbird-reviewers
[Triage Comment]
Approved for beta
Rob, note comment 12
Comment 14•2 years ago
|
||
bugherder uplift |
Updated•2 years ago
|
Assignee | ||
Comment 15•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Comment 16•2 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8d46927a1990
Restore "Required Information Missing" dialog to prevent saving empty contacts. r=darktrojan
Comment 17•2 years ago
|
||
Does this need to go on beta?
(In reply to Pulsebot from comment #16)
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/8d46927a1990
Restore "Required Information Missing" dialog to prevent saving empty contacts. r=darktrojan
Assignee | ||
Comment 18•2 years ago
|
||
Comment on attachment 9281343 [details]
Bug 1771575 - Restore "Required Information Missing" dialog to prevent saving empty contacts. r=darktrojan
[Approval Request Comment]
User impact if declined: Users can accidentally save an empty contact
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low
Assignee | ||
Comment 19•2 years ago
|
||
(In reply to Rob Lemley [:rjl] from comment #17)
Does this need to go on beta?
Yup, just requested the uplift.
Comment 20•2 years ago
|
||
Comment on attachment 9281343 [details]
Bug 1771575 - Restore "Required Information Missing" dialog to prevent saving empty contacts. r=darktrojan
[Triage Comment]
Approved for beta
Comment 21•2 years ago
|
||
bugherder uplift |
Thunderbird 102.0beta7:
https://hg.mozilla.org/releases/comm-beta/rev/e1b91f9020ae
Description
•