Skip to content

Focused Launch: support Recommended plan based on selected_features #51485

Open

Description

Blocked by #47817

What

Similar to how we've added recommended plan to Step-by-step launch (#45718), we should do it for Focused Launch. The "Recommended" option will replace "Popular" option in both Summary View and Details view.

Why

Users should get a plan recommendation based on the selected features at site creation.

A/C

  • use "Recommended" plan, if available
  • selected_features Array exists in site options. see code
  • getRecommendedPlanSlug returns the plan
  • in Summary View. If the plan is different than the "Popular" plan, it will replace it; otherwise display it with the "Recommended" badge
  • highlight "Recommended" plan in Plans Details view
  • use the same badge as for "Popular" but with "Recommended" text
  • use "Recommended" label instead of "Recommended for you" to align better with design of the PlansGrid with columns
  • "Recommended" should have priority over "Popular"
  • Check i18n ("Recommended" word can be even longer in other locales)
  • Update integration and e2e tests (expected recommended plan in /new should also the the expected plan in Focused Launch)
  • ( After we merge Focused Launch: refactor Summary view code, potentially split Steps into separate files #47817 )Add unit tests to make sure the recommended / popular plan logic is working correctly and is not duplicating plans displayed in Summary View

Context

This feature should be tested by using /new site creation flow. Advance through the flow selecting Store feature; eCommerce plan should be recommended at /new/plans step. Select Free plan and create the site. Open Launch flow from editor and eCommerce plan should be recommended (included in Summary View and highlighted in Details Plans View)

See #45718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions