Skip to content

Add a short site creation flow behind a feature flag - #26142

Open
crazytonyli wants to merge 1 commit into
trunkfrom
task/site-creation-short-flow
Open

crazytonyli wants to merge 1 commit into
trunkfrom
task/site-creation-short-flow

Conversation

@crazytonyli

@crazytonyli crazytonyli commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Jetpack site creation has five steps today: intent, design, domain, plan, done. The domain step loses the most people, and design, the heaviest step, comes before it. The short flow drops the intent and design steps, so it is domain, plan, done. It is behind the siteCreationShortFlow flag, which is on in debug and alpha builds. The WordPress app keeps the current flow.

Main changes:

  1. Short-flow sites are created as blank sites. The request sends site_creation_flow = mobile-blank and default_annotation_as_primary_fallback, with no template or vertical. WordPress.com applies mobile starter designs only to the mobile flow, so the site gets what web onboarding creates: the current default theme (Assembler today) and its starter content. onboarding would produce the same site, but WordPress.com stores the flow name on the site for attribution, so app sites would count as web sites.
  2. enhanced_site_creation_accessed and site_created gain a site_creation_flow property (mobile or mobile-blank) in both apps. The plan web view now reports source=site_creation_plan instead of unknown.
  3. The app records short-flow sites locally by site ID. Nothing reads the record yet. A follow-up Dashboard card will use it to offer a design after creation.

The domain step is the first step of the short flow, so its Cancel button now ends site creation the same way the intent step's Cancel does.

Existing flow Short flow
https://existingflowdemo1126.wordpress.com https://shortflowvideo1126.wordpress.com
existing-flow.mp4
short-flow.mp4

@dangermattic

Copy link
Copy Markdown
Collaborator
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@crazytonyli
crazytonyli added this pull request to stack #26145 October 15, 2026 05:08
@wpmobilebot

wpmobilebot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number35002
VersionPR #26142
Bundle IDorg.wordpress.alpha
Commitf6495e8
Installation URL55328klcoj0s0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number35002
VersionPR #26142
Bundle IDcom.jetpack.alpha
Commitf6495e8
Installation URL218kovplcb7so
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@crazytonyli
crazytonyli force-pushed the task/site-creation-short-flow branch from 0e295d6 to f6495e8 Compare October 15, 2026 06:39
@crazytonyli
crazytonyli force-pushed the task/site-creation-short-flow branch 2 times, most recently from 61baf9c to 9f3abf6 Compare October 28, 2026 23:21
@crazytonyli
crazytonyli force-pushed the task/site-creation-short-flow branch from 9f3abf6 to 12289c7 Compare October 29, 2026 01:37
Base automatically changed from task/site-creation-free-address-card to trunk November 19, 2026 04:38
@crazytonyli
crazytonyli force-pushed the task/site-creation-short-flow branch from 12289c7 to 076bf2d Compare November 19, 2026 04:38
With the siteCreationShortFlow flag on, Jetpack site creation goes
straight to the domain step, then plan and done. It creates a blank site
with the mobile-blank flow name, so WordPress.com applies its default
theme and starter content instead of a mobile starter design. The flag
is on in debug and alpha builds; the WordPress app keeps the current
flow.

Site creation events report the flow used, the plan web view reports a
source, and short-flow sites are recorded locally for the design card.
@crazytonyli
crazytonyli force-pushed the task/site-creation-short-flow branch from 076bf2d to abe71f7 Compare November 25, 2026 20:54
@crazytonyli
crazytonyli requested a review from jkmassel November 27, 2026 01:25
@crazytonyli crazytonyli added this to the 27.6 milestone Nov 27, 2026

@wpmobilebot wpmobilebot 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.

Approve. I confirmed the short flow works in the Jetpack Debug build on an iPhone 18 Pro simulator (iOS 27.2). Site creation opens directly on "Choose a domain" with a close button. Start free opens the plan step. Back returns to the domain step, and the close button dismisses the wizard to the site picker. I found no layout, truncation or color problems on either screen.

Domain step (first step) Plan step

All the new suites pass locally, along with the related existing ones: SiteCreatorTests, SiteCreationIntentTracksEventTests, SiteAssemblyServiceTests, PlanWizardContentViewModelTests and SiteCreationRequestEncodingTests. CI is green. On the premise: the shortflowvideo1126 demo site is on pub/assembler, while the existing-flow demo is on the picked design (coutoire/varia). That matches the description.

Gaps: I didn't create a site end to end, because I'm limited to the test account's existing site. The request payload is checked only by the unit tests and by inspecting the author's demo sites. I also didn't re-run the current five-step flow in the simulator; SiteCreationWizardLauncherTests cover its step list.

}

@objc func handleCancelButtonTapped(sender: UIBarButtonItem) {
if domainSelectionType == .siteCreation {

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.

Suggestion: In the short flow, cancelling site creation now sends no analytics event. The intent step's close button sends enhanced_site_creation_intent_question_canceled, but this branch only resets RootViewCoordinator. As a result, the mobile-blank funnel can't tell "cancelled at the first step" apart from "abandoned", which is the drop-off this flow is meant to measure. Consider tracking a cancel event here, ideally with site_creation_flow.

Evidence: I added a review-only test that builds SiteCreationWizardLauncher(isJetpack: true, isShortFlowEnabled: true, …) and taps the root domain step's leftBarButtonItem. isSiteCreationActive is reset correctly, but no event is tracked:

XCTAssertTrue failed - No cancel event tracked when the short flow is cancelled. Events after tap: []

// MARK: - Lifecycle
static func trackSiteCreationAccessed(source: String) {
WPAnalytics.track(.enhancedSiteCreationAccessed, withProperties: ["source": source])
static func trackSiteCreationAccessed(source: String, flow: SiteCreationFlow) {

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.

Nit: Only enhanced_site_creation_accessed and site_created carry site_creation_flow. The steps that run in both flows don't, including domain selected, plan, loading and enhanced_site_creation_error_shown. So their funnels and error rates can't be split by flow without joining on the session. If that split is wanted, commonProperties could take the flow.

@crazytonyli
crazytonyli marked this pull request as ready for review November 27, 2026 05:38
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.

3 participants