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

Domains: Prevent email from being purchased for Gravatar domains #96085

Merged

Conversation

leonardost
Copy link
Contributor

@leonardost leonardost commented Nov 5, 2024

Proposed Changes

This PR:

  • Adds a notice to the email service selection page explaining that Gravatar domains cannot have email purchased for them
  • Adds a notice to the email forwarding add page with the same explanation

Some Gravatar domains already had email purchased for them. In those cases, users will still be able to manage their email subscription (renew, cancel) but won't be able to buy new mailboxes.

Depends on D165417-code.

This is part of the Custom Domains on Gravatar i2 project (pcYYhz-2oZ-p2).

Screenshots

  • Email services (Google Workspace and Titan)
Without this PR (shows incorrect notice info) With PR
Screenshot 2024-11-05 at 15 25 14 Screenshot 2024-11-13 at 16 18 53
  • Email management page for domains that already had email purchased for them
Without this PR and diff With PR and diff
Markup on 2024-11-13 at 16:27:02 Markup on 2024-11-13 at 16:25:47
  • Email forwarding
Without the PR With PR
Screenshot 2024-11-05 at 17 59 55 Screenshot 2024-11-13 at 16 20 02

Why are these changes being made?

We don't want Gravatar domains to have any email services attached to them for now.

Testing Instructions

If D165417-code wasn't merged yet, apply it to your sandbox.

  • Build this branch locally or open the live Calypso link
  • Go to the domain management page of a Gravatar domain
  • Ensure there are no options to attach email to it
  • In the left menu, select "My Mailboxes"
  • Ensure the notice is shown and you can't purchase any of the email services
  • Go to the email forwarding page and ensure you can't purchase that either

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • https://wpcalypso.wordpress.com/devdocs/docs/testing/index.md for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@leonardost leonardost requested a review from a team as a code owner November 5, 2024 18:23
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 5, 2024
@matticbot
Copy link
Contributor

matticbot commented Nov 5, 2024

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

Sections (~805 bytes added 📈 [gzipped])

name                                parsed_size           gzip_size
email                                   +1131 B  (+0.2%)     +333 B  (+0.2%)
checkout                                 +560 B  (+0.0%)     +174 B  (+0.0%)
domains                                  +334 B  (+0.0%)     +158 B  (+0.0%)
woocommerce-installation                  +36 B  (+0.0%)      +18 B  (+0.0%)
woocommerce                               +36 B  (+0.0%)      +18 B  (+0.0%)
themes                                    +36 B  (+0.0%)      +23 B  (+0.0%)
theme                                     +36 B  (+0.0%)      +23 B  (+0.0%)
subscribers                               +36 B  (+0.0%)      +17 B  (+0.0%)
stats                                     +36 B  (+0.0%)      +17 B  (+0.0%)
staging-site                              +36 B  (+0.0%)      +13 B  (+0.0%)
sites-dashboard                           +36 B  (+0.0%)      +13 B  (+0.0%)
site-tools                                +36 B  (+0.0%)      +13 B  (+0.0%)
site-settings                             +36 B  (+0.0%)      +13 B  (+0.0%)
site-purchases                            +36 B  (+0.0%)      +21 B  (+0.0%)
site-performance                          +36 B  (+0.0%)      +13 B  (+0.0%)
site-monitoring                           +36 B  (+0.0%)      +13 B  (+0.0%)
site-marketing                            +36 B  (+0.0%)      +13 B  (+0.0%)
site-logs                                 +36 B  (+0.0%)      +13 B  (+0.0%)
site-blocks                               +36 B  (+0.0%)      +18 B  (+0.0%)
settings-writing                          +36 B  (+0.0%)      +18 B  (+0.0%)
settings-security                         +36 B  (+0.0%)      +18 B  (+0.0%)
settings-reading                          +36 B  (+0.0%)      +18 B  (+0.0%)
settings-podcast                          +36 B  (+0.0%)      +18 B  (+0.0%)
settings-performance                      +36 B  (+0.0%)      +18 B  (+0.0%)
settings-newsletter                       +36 B  (+0.0%)      +18 B  (+0.0%)
settings-jetpack                          +36 B  (+0.0%)      +18 B  (+0.0%)
settings-discussion                       +36 B  (+0.0%)      +18 B  (+0.0%)
settings                                  +36 B  (+0.0%)      +20 B  (+0.0%)
security                                  +36 B  (+0.0%)      +16 B  (+0.0%)
scan                                      +36 B  (+0.0%)      +18 B  (+0.0%)
purchases                                 +36 B  (+0.0%)      +21 B  (+0.0%)
promote-post-i2                           +36 B  (+0.0%)      +18 B  (+0.0%)
privacy                                   +36 B  (+0.0%)      +18 B  (+0.0%)
preview                                   +36 B  (+0.0%)      +18 B  (+0.0%)
posts-custom                              +36 B  (+0.0%)      +18 B  (+0.0%)
posts                                     +36 B  (+0.0%)      +18 B  (+0.0%)
plugins                                   +36 B  (+0.0%)      +15 B  (+0.0%)
plans                                     +36 B  (+0.0%)      +19 B  (+0.0%)
people                                    +36 B  (+0.0%)      +18 B  (+0.0%)
patterns                                  +36 B  (+0.0%)      +17 B  (+0.0%)
pages                                     +36 B  (+0.0%)      +18 B  (+0.0%)
notification-settings                     +36 B  (+0.0%)      +18 B  (+0.0%)
migrate                                   +36 B  (+0.0%)      +18 B  (+0.0%)
media                                     +36 B  (+0.0%)      +21 B  (+0.0%)
me                                        +36 B  (+0.0%)      +18 B  (+0.0%)
marketplace                               +36 B  (+0.0%)      +23 B  (+0.0%)
marketing                                 +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-social                            +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-search                            +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-connect                           +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-cloud-settings                    +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-cloud-pricing                     +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-cloud-plugin-management           +36 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-partner-portal              +36 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud-overview                    +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-cloud-features-comparison         +36 B  (+0.0%)      +18 B  (+0.0%)
jetpack-cloud-agency-sites-v2             +36 B  (+0.0%)      +14 B  (+0.0%)
jetpack-cloud                             +36 B  (+0.0%)      +18 B  (+0.0%)
incoming-redirect                         +36 B  (+0.1%)      +21 B  (+0.2%)
import                                    +36 B  (+0.0%)      +18 B  (+0.0%)
hosting-features                          +36 B  (+0.0%)      +13 B  (+0.0%)
hosting                                   +36 B  (+0.0%)      +13 B  (+0.0%)
home                                      +36 B  (+0.0%)      +19 B  (+0.0%)
help                                      +36 B  (+0.0%)      +18 B  (+0.0%)
gutenberg-editor                          +36 B  (+0.0%)      +18 B  (+0.0%)
google-my-business                        +36 B  (+0.0%)      +18 B  (+0.0%)
github-deployments                        +36 B  (+0.0%)      +13 B  (+0.0%)
export                                    +36 B  (+0.0%)      +18 B  (+0.0%)
earn                                      +36 B  (+0.0%)      +17 B  (+0.0%)
developer                                 +36 B  (+0.0%)      +18 B  (+0.0%)
customize                                 +36 B  (+0.0%)      +18 B  (+0.0%)
concierge                                 +36 B  (+0.0%)      +18 B  (+0.0%)
comments                                  +36 B  (+0.0%)      +18 B  (+0.0%)
backup                                    +36 B  (+0.0%)      +18 B  (+0.0%)
add-ons                                   +36 B  (+0.0%)      +18 B  (+0.0%)
activity                                  +36 B  (+0.0%)      +18 B  (+0.0%)
account-close                             +36 B  (+0.0%)      +18 B  (+0.0%)
account                                   +36 B  (+0.0%)      +19 B  (+0.0%)
a8c-for-agencies-team                     +36 B  (+0.0%)      +13 B  (+0.0%)
a8c-for-agencies-sites                    +36 B  (+0.0%)      +13 B  (+0.0%)
a8c-for-agencies-signup                   +36 B  (+0.0%)      +18 B  (+0.0%)
a8c-for-agencies-settings                 +36 B  (+0.0%)      +20 B  (+0.0%)
a8c-for-agencies-referrals                +36 B  (+0.0%)      +13 B  (+0.0%)
a8c-for-agencies-purchases                +36 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-partner-directory        +36 B  (+0.0%)      +23 B  (+0.0%)
a8c-for-agencies-overview                 +36 B  (+0.0%)      +13 B  (+0.0%)
a8c-for-agencies-migrations               +36 B  (+0.0%)      +17 B  (+0.0%)
a8c-for-agencies-marketplace              +36 B  (+0.0%)      +23 B  (+0.0%)
a8c-for-agencies-client                   +36 B  (+0.0%)      +13 B  (+0.0%)
a8c-for-agencies-agency-tier              +36 B  (+0.0%)      +20 B  (+0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Async-loaded Components (~75 bytes added 📈 [gzipped])

name                                                                              parsed_size           gzip_size
async-load-signup-steps-page-picker                                                     +36 B  (+0.0%)      +17 B  (+0.0%)
async-load-signup-steps-emails                                                          +36 B  (+0.1%)      +20 B  (+0.1%)
async-load-purchase-modal-wrapper                                                       +36 B  (+0.0%)      +17 B  (+0.0%)
async-load-my-sites-checkout-purchase-modal-is-eligible-for-one-click-checkou...        +36 B  (+0.0%)      +17 B  (+0.0%)
async-load-calypso-my-sites-checkout-modal                                              +36 B  (+0.0%)      +21 B  (+0.0%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

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.

Copy link
Contributor

@rafaelgallani rafaelgallani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I tested it along with D165417-code, and it worked as it should.

@leonardost leonardost force-pushed the update/prevent-email-from-being-attached-to-100-year-domains branch from 832fe04 to cbf9610 Compare November 11, 2024 18:47
@matticbot
Copy link
Contributor

matticbot commented Nov 13, 2024

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • notifications

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/prevent-email-from-being-attached-to-100-year-domains on your sandbox.

@leonardost leonardost merged commit fa5c317 into trunk Nov 13, 2024
12 checks passed
@leonardost leonardost deleted the update/prevent-email-from-being-attached-to-100-year-domains branch November 13, 2024 19:39
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 13, 2024
@a8ci18n
Copy link

a8ci18n commented Nov 13, 2024

This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17002203

Some locales (Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday.

Thank you @leonardost for including a screenshot in the description! This is really helpful for our translators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants