Problem/Motivation
The help text of the Recipient field in the email action form is now missing the user mail token.
Steps to reproduce:
1. enable the actions module
2. create advanced action: send email (admin/config/system/actions/add)
3. check the text below "Recipient" input field
Proposed resolution
improve text:
for example
"The email address to which the message should be sent OR enter [node:author:mail], [comment:author:mail], [user:mail], etc. if you would like to send an email to the author of the original post or to one or more users. "
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Update the patch to incorporate feedback from reviews (include an interdiff) | Instructions | ||
Novice | Instructions |
User interface changes
before
API changes
No
Data model changes
No
Comments
Comment #2
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedComment #3
cilefen CreditAttribution: cilefen commentedI am bumping this to 8.0.x because of the backport policy. The same text appears in Drupal 8.
Comment #4
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedOk here a my first attempt for a D8 patch.
Comment #5
cilefen CreditAttribution: cilefen commentedComment #6
cilefen CreditAttribution: cilefen commentedComment #9
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedNow also changers the help text.
Comment #10
BarisW CreditAttribution: BarisW at LimoenGroen commentedHi dbazuin,
thanks for the patch! Almost there, but I think that the two things below needs to be tackled too.
This comment should be updated too.
Indenting seems wrong?
Comment #11
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedBarisW thanks for checking.
Comment #12
BarisW CreditAttribution: BarisW at LimoenGroen commentedLooks good to me. +1
Comment #14
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedComment #15
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedComment #16
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedComment #17
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedJust enable the action module en create a email action.
Under the Recipient field the help text should read:
The email address to which the message should be sent OR enter [node:author:mail], [comment:author:mail], [user:mail], etc. if you would like to send an email to the author of the original post or to one or more users.
Comment #19
yoroy CreditAttribution: yoroy at Roy Scholten commentedComment #20
criscomI will have a look at this.
Comment #21
criscomStill have to apply the patch, sorry.
Comment #22
criscomSteps to reproduce:
1. Enable actions module
2. Create advanced action: send email
3. Git apply -v Improvement-help-text-Recipient-field-2603236-11-D8.patch
4. Checked the text below "Recipient" input field
The email address to which the message should be sent OR enter [node:author:mail], [comment:author:mail], [user:mail], etc. if you would like to send an email to the author of the original post or to one or more users.
5. Text is correct. See screenshot:
Comment #23
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedSteps have been reproduced and the patch is working! See screenshot
Comment #24
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedComment #25
yoroy CreditAttribution: yoroy at Roy Scholten commentedThis is indeed more correct but 3 lines of description makes this almost documentation :-)
What if we make the label more explicit, then we could make the description quite a bit shorter:
Label: Recipient email adress
Description: You can also enter [node:author:mail], [comment:author:mail], [user:mail], etc. to send email to the post author or to one or more users.
Comment #26
Sutharsan CreditAttribution: Sutharsan commentedBack to needs work. I agree with yoroy that the proposed description is quite long.
Comment #27
Sutharsan CreditAttribution: Sutharsan commented@tomgilissen, Pls use the issue summary template (https://www.drupal.org/issue-summaries) to update the issue summary. It contains a number of standard headings which help you cover the various things we like to see in an issue summary. A screenshot with the current situation, to illustrate the problem, will also help.
Comment #28
ifrikThanks,
the patch works, but the initially proposed sentence is rather convoluted, it's unclear how "or to one or more users." can be added. I think we generally avoid emphasizing two different option with a capital OR because that's not really accessible, and usually a sign that the sentence is a bit too big.
How about:
Enter either an email addresses or a token to send the email to the author of the original post. Available tokens are [node:author:mail], [comment:author:mail], [user:mail]. Separate several recipients with a comma.
Comment #29
criscomI agree with ifrik. Her text suggestion sounds really good to me.
Comment #30
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedI like the suggestion by yoroy to change the label to: Recipient email adress
And also agree with ifrik to change the description:
Enter either an email address or a token to send the email to the author of the original post. Available tokens are [node:author:mail], [comment:author:mail], [user:mail]. Separate several recipients with a comma.
I think we should keep address singular; token is also singular.
Comment #31
YesCT CreditAttribution: YesCT commentedComment #32
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedComment #33
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedComment #34
Pepino710 CreditAttribution: Pepino710 commentedPatch created for YesCT with tomgilissen. Cool.
Comment #35
ifrikThanks for picking this up so fast again.
Could you still add the "Separate several recipients with a comma." as last sentence because it's not obvious to users that they can add several recipients otherwise.
Comment #36
Pepino710 CreditAttribution: Pepino710 commentedPatch created for YesCT with tomgilissen. Cool.
Comment #37
Pepino710 CreditAttribution: Pepino710 commentedSeparate several recipients with a comma added.
Comment #38
ifrikComment #39
ifrikThanks,
I think we've got it now!
Just as a general remark for naming and numbering patches: Please keep the patch name as it is (even if it looks weird) because otherwise it looks like the work started from scratch again. And always add the comment number to the name and just change that accordingly for a new patch. This way, it's easy to find where in the issue a specific patch was posted.
Comment #40
alimac CreditAttribution: alimac commentedAdded the "after" screenshot
Comment #41
alimac CreditAttribution: alimac commentedComment #42
alimac CreditAttribution: alimac commentedComment #43
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedRetested this issue with patch Improvement_label_help_text_email_recipient_field-2603236-D8-2.patch
The result is like mentioned by alimac in #42
Well done Pepino710 ! : )
Comment #44
webchickyoroy made an enigmatic comment on stage during the Live Commit so marking back to Needs Review for now. ;)
Comment #45
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedI'm very curious for the enigmatic review by yoroy (had to leave because of a return flight). Can anyone share it?
Comment #46
Sutharsan CreditAttribution: Sutharsan commented@tomgilissen, This is how I interpreted yoroy's comment: Since the field label already contains "recipient email address", lets not double this information from the field description.
Comment #47
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedCan anybody adds this comment from Yoroy?
Comment #48
Sutharsan CreditAttribution: Sutharsan commentedSome comments on the content of the text:
- The original description does no contain the token "[user:mail]". It does not fall into the description of "to send the email to the author of the original post".
- The text "Available tokens are ..." implies that there is a limited set of tokens. This is not true because contrib modules may tokens too.
- The last sentence "Separate several recipients with a comma." can do without the word 'several'.
Two description suggestions. The minimal:
The more verbose:
Alternatively, use tokens [node:author:mail], [comment:author:mail], etc. to send the email to the author of the original post. Separate recipients with a comma.
Comment #49
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedSutharsan sounds good to me.
Comment #50
yoroy CreditAttribution: yoroy at Roy Scholten commentedSorry, had to catch the flight home soon after the enigmatics :)
Sutharsan's mimimal version looks great to me!
Comment #51
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedI thougt you would yoroy. And I agree.
Comment #52
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedSutharsan's second description suggestion sounds good to me.
Comment #53
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedComment #54
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedPatch is working.
See screenshot.
Comment #55
tomgilissen CreditAttribution: tomgilissen as a volunteer and commentedI've uploaded a patch that follows the minimal suggestion by Sutharsan in #48 and supported by yoroy in #50: Improvement-help-text-Recipient-field-2603236-55.patch
Comment #56
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedThis patched also works and indeed this is the text we agreed on.
Comment #57
yoroy CreditAttribution: yoroy at Roy Scholten commentedYep, looking good, thanks everybody!
Comment #58
naveenvalechaThanks! looks good.
Comment #59
xjmThanks everyone for working on this!
Note that the "after" screenshot in the summary does not reflect the current patch. I've removed it from the summary, because I almost posted a review based on the text in the screenshot, which was inaccurate.
I think the word "Alternatively" is a bit odd here, because it's not being given as an alternate to anything. Maybe:
Comment #60
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedChanged the text as per suggested in #59 . Thanks
Comment #61
dbazuin CreditAttribution: dbazuin at LimoenGroen commentedI have reviewed patch 60.
It has only the text change xjm suggested so I think it is ok.
Comment #62
alexpottCommitted 07f1e50 and pushed to 8.3.x. Thanks!