Opened 9 years ago
Closed 9 years ago
#34133 closed enhancement (fixed)
Improve the Moderate Comment screen
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | has-patch commit |
Focuses: | ui, accessibility, administration | Cc: |
Description
The Approve, Trash, and Spam links in comment moderation emails send you to the Moderate Comment screen in WordPress, which doesn't get much love.
Three main problems with this screen:
- The comment appears in escaped HTML form, so all of the text appears as one massive block with no formatting. See screenshot.
- The comment date links to a non-existent permalink (this is also the case in other places in the admin area).
- There's no link to the comment editing screen, which takes a minimum of two clicks to reach from here.
Attachments (10)
Change History (44)
#4
@
9 years ago
Also, the date is in the wrong format. It ought to be formatted as per the preferences in Settings > General.
#5
@
9 years ago
From an accessibility perspective I don't see big issues in these screens. Ideally, the admin menu and toolbar should be hidden, I see this workflow more like something that should bring users from the notification email to a simplified screen and not the "full" admin. I understand this would require some discussion :)
Meanwhile, maybe adding #wpbody-content
to the links could help. A simple "in-page link" would let users land directly on the relevant content.
#7
@
9 years ago
In 34133.2.diff, I refreshed @johnbillion's initial patch after r35665 and took a stab at adding the "Edit" link.
#8
@
9 years ago
@karmatosed @melchoyce Did either of you have opinions (or perhaps different ideas) on first steps being taken here to improve this often forgotten about screen? Or the location of the "Edit" link?
#9
follow-up:
↓ 10
@
9 years ago
A few things strike me:
- Approving and cancelling buttons shouldn't be together.
- The message should be where the action is. It is above.
Those are just off cuff thoughts, I'd be happy to take a look at this over the next few days and put up a suggested refinement on the great work done so far.
#10
in reply to:
↑ 9
@
9 years ago
Replying to karmatosed:
A few things strike me:
- Approving and cancelling buttons shouldn't be together.
Can you please expand a bit on this? As fas as I see, there's no established convention in WordPress admin, sometimes they're together, sometimes not. From an accessibility perspective, proximity of UI controls is very important, thinking for example at screen magnifiers.
#11
follow-up:
↓ 13
@
9 years ago
@afercia is proximity of UI controls important when they are opposite controls for accessibility? That's the instance I'm talking about. The issue is mistaking one for the other. Accidently clicking either because they are beside each other and often look the same.
I agree though there is no established convention in admin - a point perhaps wider than this ticket. For the case of this ticket we should perhaps take the majority I can see that as a solid argument.
#12
@
9 years ago
I've done some explorations and found a pattern we probably could follow if we want consistency with this - which we probably do without creating something new at this stage.
That translates to:
I also did some explorations without changing too much here:
Probably, the least friction creating and more beneficial in light of comments and without testing of new patterns would be the existing pattern. I do still think we could change some of those patterns for the behaviour but airing on this maybe not being the ticket to do that in.
My only other suggestion could be to use the warning styling for the message like this:
#13
in reply to:
↑ 11
@
9 years ago
Replying to karmatosed:
@afercia is proximity of UI controls important when they are opposite controls for accessibility? That's the instance I'm talking about.
@karmatosed thanks, yep I guess there are pros and cons, something not strictly related to this ticket though. Just noticed in the majority of cases when there are multiple controls on the same row, the current WordPress convention is to put the primary control on the right (see for example Quick Edit and Bulk Edit but also the smaller Publish box). Not saying that I like that :) but that's what WordPress is using right now.
I agree though there is no established convention in admin - a point perhaps wider than this ticket.
Agreed! Thanks.
#14
follow-up:
↓ 15
@
9 years ago
Since in this case, the primary action of this screen is whatever action you clicked to get to this screen — spamming, trashing, or approving — I think it is appropriate to use the [ Primary Button ] Cancel
pattern.
Of the proposed edit locations, I think a link underneath the "Comment" label makes the most sense.
Another option could be adding a new paragraph at the bottom of the comment that contains the edit link. I'll add a quick mockup to show what I mean.
#15
in reply to:
↑ 14
@
9 years ago
@melchoyce @karmatosed @afercia All of the thoughtful suggestions here make sense. With the luxury of being able to compare them all together, I fear absence of a primary button (to perform the primary moderation action) would be a disservice.
@melchoyce do you think having the "Edit" link at the bottom of the comment_content makes it easy to lose?
@karmatosed Great idea to use the warning styling on the message!
This ticket was mentioned in Slack in #core by rachelbaker. View the logs.
9 years ago
#18
@
9 years ago
In 34133.3.diff:
- moved the
Edit
link under thecomment_content
- added markup to display the "Caution" message using current warning message styles (per @karmatosed's suggestion)
@melchoyce what do you think?
This ticket was mentioned in Slack in #design by rachelbaker. View the logs.
9 years ago
#20
@
9 years ago
Can you throw a little extra space between the "Edit" link and the comment? Maybe another 5px? Should help it stand out more. Otherwise, looks good to me.
#21
@
9 years ago
@afercia I was about to commit this and then realized I missed this comment of yours:
From an accessibility perspective I don't see big issues in these screens. Ideally, the admin menu and toolbar should be hidden, I see this workflow more like something that should bring users from the notification email to a simplified screen and not the "full" admin. I understand this would require some discussion :)
Meanwhile, maybe adding #wpbody-content to the links could help. A simple "in-page link" would let users land directly on the relevant content.
Would you be able to refresh 34133.4.diff with your suggested changes?
#22
@
9 years ago
@rachelbaker hi. In the refreshed patch I've just hardcoded #wpbody-content
appending it to all the links. By the way, this won't work when users are logged out and have to log in again. Not sure what to do about this :) Fixed also a couple of double spaces.
This ticket was mentioned in Slack in #core by chriscct7. View the logs.
9 years ago
#24
@
9 years ago
- Owner set to rachelbaker
- Resolution set to fixed
- Status changed from new to closed
In 36588:
This ticket was mentioned in Slack in #core by adamsilverstein. View the logs.
9 years ago
#26
@
9 years ago
@rachelbaker Was there a reason for not using comment_text( $comment )
like done in 34133.diff by @johnbillion?
IMO the ticket isn't fixed yet since it's still a "one massive block with no formatting", see https://cloudup.com/ihcE1Y5Xt1l.
#27
@
9 years ago
- Keywords needs-patch added; ux-feedback has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
[36588] fixed removed the escaping of comment content, but as @ocean90 pointed out it doesn't format the content, so a comment with paragraphs will still appear as one large block of text.
#28
@
9 years ago
- Keywords has-patch added; needs-patch removed
@johnbillion @ocean90 I don't know how I missed this! 34133_filter_text.diff uses the comment_text()
function to format the output (as was promised/intended in this ticket).
#29
follow-up:
↓ 30
@
9 years ago
@rachelbaker Although the first argument is named $comment_ID
, comment_text()
supports the WP_Comment
object too.
#30
in reply to:
↑ 29
@
9 years ago
Replying to ocean90:
@rachelbaker Although the first argument is named
$comment_ID
,comment_text()
supports theWP_Comment
object too.
Well look at that! Adjusted in 34133_filter_text.2.diff
34133.diff addresses the formatting of the comment text and the comment permalink.
I'm not sure where to place an 'Edit Comment' link. Next to the 'Cancel' link at the bottom, maybe?