Skip to content

Plans in Site Creation: Use domain_name returned from Plan Selection view - #21790

Merged
staskus merged 3 commits into
trunkfrom
task/21787-plans-in-site-creation-pass-domain-name-back-from-calypso
Oct 18, 2023
Merged

Plans in Site Creation: Use domain_name returned from Plan Selection view#21790
staskus merged 3 commits into
trunkfrom
task/21787-plans-in-site-creation-pass-domain-name-back-from-calypso

Conversation

@staskus

@staskus staskus commented Oct 16, 2023

Copy link
Copy Markdown
Contributor

Fixes #21787

When users select a paid domain, they can still opt-in for a free wordpress.com subdomain in the plan selection view.

When a domain is selected, it is returned through domain_name parameter.

Use this domain when creating siteURLString instead of the one selected in the domain selection view.

To test:

Before testing: Enable Plans in Site Creation feature flag

4 cases need to be tested and confirmed to be working properly:

  • Select a paid domain, then select a free plan. Confirm that the domain shown in the pop-up matches the one that the site was created with
  • Select a paid domain, then select a paid plan. Confirm that checkout is opened and that the domain selected in the domain selection matches the one that appears in the checkout view
  • Select a free domain, then select a free plan. Confirm that the site was created with the domain that was selected in the domain selection view
  • Select a free domain, then select a paid plan. Confirm that the site was created with the domain that was selected in the domain selection view

Regression Notes

  1. Potential unintended areas of impact

The change in siteURLString could potentially break existing functionality. Need to retest all the scenarios to make sure everything works as expected.

  1. What I did to test those areas of impact (or what existing automated tests I relied on)

Updated unit tests

  1. What automated tests I added (or what prevented me from doing so)

None

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes testing checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • VoiceOver.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • iPhone and iPad.
  • Multi-tasking: Split view and Slide over. (iPad)

…reation

When users select paid domain, they can still opt-in for a free wordpress.com subdomain in plan selection view.

When domain is selected, it is returned through "domain_name" parameter.

Use this domain when creating siteURLString instead of the one selected in domain selection view.
@staskus staskus added this to the 23.6 milestone Oct 16, 2023
@staskus staskus changed the title Plans in Site Creation: Use domain_name return from Plan Selection view Plans in Site Creation: Use domain_name returned from Plan Selection view Oct 16, 2023
@wpmobilebot

wpmobilebot commented Oct 16, 2023

Copy link
Copy Markdown
Contributor
WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr21790-ddc1699
Version23.5
Bundle IDorg.wordpress.alpha
Commitddc1699
App Center BuildWPiOS - One-Offs #7429
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@wpmobilebot

wpmobilebot commented Oct 16, 2023

Copy link
Copy Markdown
Contributor
Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr21790-ddc1699
Version23.5
Bundle IDcom.jetpack.alpha
Commitddc1699
App Center Buildjetpack-installable-builds #6458
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@guarani

guarani commented Oct 16, 2023

Copy link
Copy Markdown
Contributor

I compared the changes here to Automattic/wp-calypso#83045 and it looks like it will work 👍 Will review once the Calypso PR is merged.

@staskus
staskus marked this pull request as ready for review October 17, 2023 07:17
@staskus
staskus requested a review from guarani October 17, 2023 07:17

@guarani guarani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested again now that the Calypso changes are deployed and this is working fine 👍

  • ✅ Paid domain + Free plan
  • ✅ Paid domain + Paid plan
  • ✅ Free domain + Free plan
  • ✅ Free domain + Paid plan

@staskus
staskus merged commit 05a954e into trunk Oct 18, 2023
@staskus
staskus deleted the task/21787-plans-in-site-creation-pass-domain-name-back-from-calypso branch October 18, 2023 06:54
staskus added a commit that referenced this pull request Oct 19, 2023
…ite-creation-pass-domain-name-back-from-calypso

Plans in Site Creation: Use domain_name returned from Plan Selection view
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.

Plans in Site Creation: Pass domain name back from Calypso

3 participants