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
Update: Add subscriber form #65878
Update: Add subscriber form #65878
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~69 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~12532 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
} else if ( isAtomic ) { | ||
defaultRole = 'subscriber'; | ||
} | ||
const defaultRole = 'editor'; |
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.
Not sure I follow the changes here, "subscriber" is also an internal WP role unrelated to the concept of email subscribers.
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.
There is a request to remove 'Follower' and 'Subscriber' roles from the list of roles while you are adding new users. Here is the ticket: #65776
Because of that, we need to provide a default role, which is in this case 'editor'.
The route renders Add subscribers form screen
if the current user role is follower or subscriber. Relates #65776
1c99874
to
0b441f2
Compare
Proposed Changes
@automattic/subscriber
package with adding subscriber functionality (only static HTML for now)Email Followers
withSubscribers
introducing a new Add Subscriber form/people/add-subscribers/{SLUG}
Follower
andSubscribers
roles from the Add/edit user formTesting Instructions
Add Subscriber form
Blurred out screen
Roles list
Added 'Add Subscriber' button
Pre-merge Checklist
Related to #