-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comment Detail: Toggle components visibility based on permission #17147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
Hey @dvdchr . The app crashes when saving an edited comment. Cancelling a comment edit works fine.
|
WordPress/Classes/ViewRelated/Comments/CommentContentTableViewCell.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Comments/CommentContentTableViewCell.swift
Outdated
Show resolved
Hide resolved
Hey @dvdchr . I noticed that the I will admit, I'm not sure how you can reply without an email address, but I do recall @aerych mentioning something about replying anonymously, which results in no email. |
Oh, TIL! I'll adjust this soon. |
Good catch! Since this icon is not available in Gridicons, I'll backport this for iOS 13 by adding this specific icon to our assets. |
Hey @ScoutHarris, this should be ready for your n-th round of review. 😅 Thank you for the reviews!! Here's a gist of the update:
|
It looks like I might've left the Jetpack target unchecked, which may cause the CI jobs to fail. I'll fix this tomorrow! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Refs #17087
This PR configures the visibility of several components in Comment Detail.
Editor
andAdministrator
.the site is dotcom or Atomic
AND the comment is not approved AND the user viewing the comment doesn't have a moderating role.To Test
Ensure that the
New Comment Detail
feature flag is enabled.Web address visibility
Accessory button visibility
With a dotcom site, using an account that CANNOT moderate the site:
With a dotcom site, using an account that can moderate the site (Administrator or Editor):
With a self-hosted site:
Regression Notes
Potential unintended areas of impact
n/a. Feature is hidden behind a feature flag.
What I did to test those areas of impact (or what existing automated tests I relied on)
n/a. Feature is hidden behind a feature flag.
What automated tests I added (or what prevented me from doing so)
n/a. Feature is hidden behind a feature flag.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.