Skip to content

A4A > Licenses: Update the partner_not_connected_to_site error message #103100

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

Merged
merged 2 commits into from
May 16, 2025

Conversation

yashwin
Copy link
Contributor

@yashwin yashwin commented May 5, 2025

Resolves https://github.com/Automattic/automattic-for-agencies-dev/issues/1935

Proposed Changes

This PR updates the error message when an agency tries to assign a license to a site where they are not connected to the site as an admin.

Testing Instructions

Screenshot 2025-05-16 at 1 49 56 PM

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests 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 UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • 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)?

@yashwin yashwin requested review from madebynoam and a team May 5, 2025 07:34
@yashwin yashwin self-assigned this May 5, 2025
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 5, 2025
@yashwin yashwin force-pushed the update/a4a/licenses/partner-not-connected-error branch from 2adae38 to 76a04f3 Compare May 5, 2025 07:35
@matticbot
Copy link
Contributor

matticbot commented May 5, 2025

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

Sections (~217 bytes added 📈 [gzipped])

name                          parsed_size           gzip_size
a8c-for-agencies-marketplace       +501 B  (+0.1%)     +217 B  (+0.1%)

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.

@cleacos
Copy link
Contributor

cleacos commented May 5, 2025

The Docker image failed, so no live available

@yashwin yashwin force-pushed the update/a4a/licenses/partner-not-connected-error branch from 76a04f3 to 8b4532c Compare May 6, 2025 02:53
Copy link
Contributor

@cleacos cleacos left a comment

Choose a reason for hiding this comment

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

LGTM!

The link works well.

Copy link

@madebynoam madebynoam left a comment

Choose a reason for hiding this comment

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

@yashwin lgtm. Can you change the copy to:
Connect your WordPress.com user (yashwin) as a site admin to continue. How to connect

@yashwin yashwin force-pushed the update/a4a/licenses/partner-not-connected-error branch from 8b4532c to 3ecc6a8 Compare May 16, 2025 08:20
@yashwin
Copy link
Contributor Author

yashwin commented May 16, 2025

Thanks for the review both!

@madebynoam: Updated:

Screenshot 2025-05-16 at 1 49 56 PM

@matticbot
Copy link
Contributor

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

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

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/a4a/licenses/partner-not-connected-error on your sandbox.

@yashwin yashwin merged commit c431f34 into trunk May 16, 2025
15 checks passed
@yashwin yashwin deleted the update/a4a/licenses/partner-not-connected-error branch May 16, 2025 08:40
@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 May 16, 2025
@a8ci18n
Copy link

a8ci18n commented May 16, 2025

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

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 @yashwin for including a screenshot in the description! This is really helpful for our translators.

@a8ci18n
Copy link

a8ci18n commented May 18, 2025

Translation for this Pull Request has now been finished.

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.

5 participants