Closed Bug 1653814 Opened 4 years ago Closed 4 years ago

Placement of the reply-to field in email composer in Thunderbird 78

Categories

(Thunderbird :: Message Compose Window, enhancement)

enhancement

Tracking

(thunderbird_esr78+ fixed, thunderbird81 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird81 --- fixed

People

(Reporter: KaiE, Assigned: aleca)

References

Details

Attachments

(1 file, 4 obsolete files)

I used "reply all" to an email that has a "reply-to" field.

When that email opens, it will show two entry fields:

  • To
  • Reply-To

I wanted to add someone to CC.

My muscle memory from past Thunderbird versions has caused me to quickly click that second field, and add the person to it. I've added it to the "Reply-To" field without thinking. I realized my mistake only after I had already hit send.

I think the reply-to field shouldn't be shown last.

Reply-to is a property related to the sender. I think it should be shown closer to the sender address, ABOVE the To/CC/BCC fields.

Version: unspecified → 78

Thanks for raising this issue.
There have been discussions somewhat related to this in order to improve the revealing of addressing rows.

Right now those rows are hardcoded in the HTML file, so no matter in which order you open them, they always appear in the same order.
The discussed idea was to generate those on the fly when the user decides to show them, therefore respecting the order in which they're generated.

What do you think?
Other email clients always have the same order of fields if I'm not wrong, so I'm not sure that idea would be well received by users.
Do you think it's better to stick with the "expected" ordering?

  • From
  • To
  • Reply To
  • Cc
  • Bcc
  • Others (Newsgroups and custom headers)

I'd consider this an enhancement more than a defect.

I'd personally prefer "always the same order".

The order you gave in comment 1 is what I'd expect.

(In reply to Kai Engert (:KaiE:) from comment #2)

I'd personally prefer "always the same order".

The order you gave in comment 1 is what I'd expect.

Mmmmh, you said in comment 0 (sic; aka description) that you want:

  • From / Reply-To ("Reply-to related to sender, should be ABOVE the To/Cc/Bcc fields")
  • To / CC / BCC
  • Others

And you explicitly said that you find the following confusing:

  • To
  • Reply-To

So the order mentioned by Alex in comment 1 is clearly not what you want, unless if you have changed your mind from comment 0.
I think Kai has a point that From and Reply-To belong together logically, and this could be explored with mockups.
I'm not sure if having Reply-To further up as Kai proposes is not going to re-create Kai's problem for other users who expect recipients to come immediately after sender, and Reply-to last.

Currently, this works as designed, so no defect here.

Severity: -- → N/A
Type: defect → enhancement

(In reply to Alessandro Castellani (:aleca) from comment #1)

  • From (sender)
  • To (recipient)
  • Reply To (sender)
  • Cc /Bcc (recipient)

I think that order would be worse because it's now an alternating mix of sender-related fields and recipient fields.

(In reply to Kai Engert (:KaiE:) from comment #0)

I used "reply all" to an email that has a "reply-to" field.

When that email opens, it will show two entry fields:

  • To
  • Reply-To

I am failing to understand your STR/Actual Result, and I don't think that is what happens.
If the original email (which you are replying to) has Reply-to, that should become To when replying, isn't it? Am I missing something?

Flags: needinfo?(kaie)

Apologies, I confirm that my reply in comment 2 was incorrect. I had not reviewed Alex's comment 1 sufficiently.

I would prefer the following order:

  • From
  • Reply To
  • To
  • Cc
  • Bcc
  • Others (Newsgroups and custom headers)
Flags: needinfo?(kaie)
Assignee: nobody → alessandro
Status: NEW → ASSIGNED
Attached patch 1653814-recipients-order.diff (obsolete) — Splinter Review

Just a simple repositioning of the xhtml container.
Asking Thomas for a review since he worked on this area as much as I did.

I also launched a try-run to be sure we're not breaking any keyboard navigation test: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=70296c6e8734e097d7deed9394a78e424c8d900d

Attachment #9171959 - Flags: review?(bugzilla2007)

Reply-to is a bit special. I'm really not sure we want to move it.
It's special in that if you have a pre-set one, then that is basically taking up extra space for no gain. Seems many other email clients simply do not show the information in the compose UI when this is the case.

But it has the use case of setting reply-to to something different, one a case-by-case basis. Then it seems more appropriate to have further down like we've traditionally had it.

I personally never used that field, so I'm not the most educated to propose an approach.
Would be worth pulling in some users that rely on that field a lot?
What would make more sense semantically?

Semantically Kai's right that it's related to the sender identity, at least for the auto Reply-To obtained from the identity settings.

I think it might make sense to not show an auto Reply-To row at all in the UI (as it's just clutter), but then if the header is added from the overflow bar then it would be pre-filled into the shown field.

Kai, could you pls correct your STR (see my comment 5)?

Flags: needinfo?(kaie)

Same hiding would also apply to auto-cc and auto-bcc

Comment on attachment 9171959 [details] [diff] [review] 1653814-recipients-order.diff Review of attachment 9171959 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. I think this is a reasonable change. F6 fast focus ring now skips reply-to (not sure why tests don't show that) - TB 68 includes all addressing fields. r+ with that fixed. (Ctrl+Shift+Tab was broken before this patch, so we can do that in another bug). STR aren't clear but I think we're talking about Auto-Reply-To from account settings. In TB 68, if you have more than one auto-reply-to address, you'll get this: **TB 68** ``` - From - Auto-Reply-To 1 - Auto-Reply-To 2 etc. - Auto-CC/BCC - To ``` This patch restores same traditional order as in TB 68 wrt auto-reply-to, whilst *reducing* the space needed for more than one auto-reply-to: **TB 78 with patch** ``` - From - {Auto-Reply-To 1} {Auto-Reply-To 2} - To - Auto-CC/BCC ``` Imho the idea of just hiding Auto-Reply-To and Auto-CC/BCC fields away would be very delicate behaviour wrt privacy, ux-wysiwyg, and ux-error-prevention. So that would need more thoughts in another bug. At least we'd need some sort of trace in the UI, but full transparency looks good and correct. With TB 78 release immediately pending, this doesn't look like the right time to experiment and invest developer time into redesigning this. The patch as-is is a safe and risk-free improvement.
Attachment #9171959 - Flags: review?(bugzilla2007)

I suggest to move the reply-to below the to field since it's semantically correct and it respects the pre-filling fields currently happening in 68.
I agree that we should deal with these auto-fills in a slightly less intrusive way, as suggested by Magnus, but we should do it in a follow up bug.

Sure.

Attached patch 1653814-recipients-order.diff (obsolete) — Splinter Review

Patch updated to fix the F6 keyboard navigation.
I had to change a couple of things around, so here's another try-run to see if I broke any test: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=ccfd3eb1435b6a95a1f2a9a1ac076cef710c6510

Attachment #9171959 - Attachment is obsolete: true
Attachment #9172473 - Flags: review?(bugzilla2007)

Super green try run!

Pinging Thomas for this review.

Flags: needinfo?(bugzilla2007)
Comment on attachment 9172473 [details] [diff] [review] 1653814-recipients-order.diff Review of attachment 9172473 [details] [diff] [review]: ----------------------------------------------------------------- Nice cleanup! LGTM, this does what it says (existing bugs notwithstanding). One polish nit. ::: mail/components/compose/content/MsgComposeCommands.js @@ -7818,5 @@ > // Backwards focus ring: e.g. Ctrl+Shift+Tab | Shift+F6 > switch (focusedElement) { > case document.getElementById("newsgroupsAddrInput"): > - SetFocusOnPreviousAvailableElement(focusedElement); > - break; Nice cleanup here and below. Good first step towards a more radical cleanup along bug 1612761. @@ +7863,5 @@ > + // Move the focus on the first available recipient field. > + document > + .getElementById("recipientsContainer") > + .querySelector(".address-row:not(.hidden)") > + .querySelector(`input[is="autocomplete-input"][recipienttype]`) Let's simplify the last selector and combine the last two with descendant combinator (space): ``` .querySelector( ".address-row:not(.hidden) .address-input[recipienttype]" ) ```
Attachment #9172473 - Flags: review?(bugzilla2007) → review+
Attached patch 1653814-recipients-order.diff (obsolete) — Splinter Review
Attachment #9172473 - Attachment is obsolete: true
Flags: needinfo?(kaie)
Flags: needinfo?(bugzilla2007)
Attachment #9173687 - Flags: review+
Target Milestone: --- → 82 Branch
Comment on attachment 9173687 [details] [diff] [review] 1653814-recipients-order.diff Review of attachment 9173687 [details] [diff] [review]: ----------------------------------------------------------------- Hmmm, I think you broke it now. ::: mail/components/compose/content/MsgComposeCommands.js @@ +7867,5 @@ > + case document.getElementById("msgIdentity"): > + // Move the focus on the first available recipient field. > + document > + .getElementById("recipientsContainer") > + .querySelector(".address-row:not(.hidden) .address-input") Yeah, it's tempting and I tried that, too, but using `.address-input` without `[recipienttype]` attribute failed in my tests if there are pills with their own .address-input. That's why I requested `.address-input[recipienttype]`
Attachment #9173687 - Flags: review+ → review-

Ah damn, that's right.
I completely forgot about that!

Removing checkin-needed per comment 21.

Attached patch 1653814-recipients-order.diff (obsolete) — Splinter Review

Fixed.

Attachment #9173687 - Attachment is obsolete: true
Attachment #9173763 - Flags: review?(bugzilla2007)
Comment on attachment 9173763 [details] [diff] [review] 1653814-recipients-order.diff Review of attachment 9173763 [details] [diff] [review]: ----------------------------------------------------------------- Let's remove one extra space in css descendant combinator and we're good! ::: mail/components/compose/content/MsgComposeCommands.js @@ +7868,5 @@ > + // Move the focus on the first available recipient field. > + document > + .getElementById("recipientsContainer") > + .querySelector( > + ".address-row:not(.hidden) .address-input[recipienttype]" This will probably work because descendant combinator can take any whitespace*, but a *single* space between selectors would be sufficient ;-) Sorry for nitpicking, but you clearly caused this yourself! :-p *https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator
Attachment #9173763 - Flags: review?(bugzilla2007) → review+

Ah, just a typo.

Attachment #9173763 - Attachment is obsolete: true
Attachment #9173898 - Flags: review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/1854e4717c16
Reorder recipient fields in message compose window. r=thomas8

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9173898 [details] [diff] [review]
1653814-recipients-order.diff

[Approval Request Comment]
Regression caused by (bug #): pills
User impact if declined: non ideal placement of reply-to

Attachment #9173898 - Flags: approval-comm-esr78?
Attachment #9173898 - Flags: approval-comm-beta?

Comment on attachment 9173898 [details] [diff] [review]
1653814-recipients-order.diff

[Triage Comment]
Approved for beta

Attachment #9173898 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9173898 [details] [diff] [review]
1653814-recipients-order.diff

[Triage Comment]
Approved for esr78

Attachment #9173898 - Flags: approval-comm-esr78? → approval-comm-esr78+
Component: Composition → Message Compose Window
Product: MailNews Core → Thunderbird
Blocks: 1719531
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: