Skip to content
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

Closed
wants to merge 38 commits into from
Closed

Update: Add subscriber form #65878

wants to merge 38 commits into from

Conversation

bogiii
Copy link
Contributor

@bogiii bogiii commented Jul 22, 2022

Proposed Changes

  • Added @automattic/subscriber package with adding subscriber functionality (only static HTML for now)
  • Updated users page, people section replacing Email Followers with Subscribers introducing a new Add Subscriber form
  • Added a new route /people/add-subscribers/{SLUG}
  • Removed Follower and Subscribers roles from the Add/edit user form
  • Blurred out the subscriber form for the user without verified email

Testing Instructions

Add Subscriber form
Screenshot 2022-07-22 at 11 56 56

Blurred out screen
Screenshot 2022-07-19 at 17 07 55

Roles list
Screenshot 2022-07-21 at 10 20 49

Added 'Add Subscriber' button
Screenshot 2022-07-22 at 12 06 49

Pre-merge Checklist

Related to #

@bogiii bogiii self-assigned this Jul 22, 2022
@matticbot
Copy link
Contributor

matticbot commented Jul 22, 2022

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~69 bytes added 📈 [gzipped])

name           parsed_size           gzip_size
entry-main          -428 B  (-0.0%)      +30 B  (+0.0%)
entry-stepper       +331 B  (+0.0%)      +63 B  (+0.0%)

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])

name              parsed_size            gzip_size
people               +53297 B  (+10.2%)   +12858 B  (+8.4%)
posts-custom           -196 B   (-0.0%)     -645 B  (-0.4%)
posts                  -196 B   (-0.0%)     -645 B  (-0.4%)
checkout               +103 B   (+0.0%)      -16 B  (-0.0%)
settings-writing        -93 B   (-0.0%)     -590 B  (-0.3%)
settings                -28 B   (-0.0%)     -761 B  (-0.4%)

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.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

} else if ( isAtomic ) {
defaultRole = 'subscriber';
}
const defaultRole = 'editor';
Copy link
Member

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.

Copy link
Contributor Author

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 screen is:
180416652-90bc172f-a83d-4142-b542-65d0e26576dc

@bogiii bogiii closed this Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants