Repository navigation
Add a short site creation flow behind a feature flag - #26142
crazytonyli wants to merge 1 commit into
Conversation
Generated by 🚫 Danger |
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 35002 | |
| Version | PR #26142 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | f6495e8 | |
| Installation URL | 55328klcoj0s0 |
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 35002 | |
| Version | PR #26142 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | f6495e8 | |
| Installation URL | 218kovplcb7so |
0e295d6 to
f6495e8
Compare
61baf9c to
9f3abf6
Compare
9f3abf6 to
12289c7
Compare
12289c7 to
076bf2d
Compare
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.
076bf2d to
abe71f7
Compare
wpmobilebot
left a comment
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.




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
siteCreationShortFlowflag, which is on in debug and alpha builds. The WordPress app keeps the current flow.Main changes:
site_creation_flow = mobile-blankanddefault_annotation_as_primary_fallback, with no template or vertical. WordPress.com applies mobile starter designs only to themobileflow, so the site gets what web onboarding creates: the current default theme (Assembler today) and its starter content.onboardingwould produce the same site, but WordPress.com stores the flow name on the site for attribution, so app sites would count as web sites.enhanced_site_creation_accessedandsite_createdgain asite_creation_flowproperty (mobileormobile-blank) in both apps. The plan web view now reportssource=site_creation_planinstead ofunknown.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.mp4
short-flow.mp4