Branched onboarding flow
Block-composed company, personal, and import branches with explicit skips, reviews, resume, and outcomes.
Branch choice, distinct forms, optional skips, review paths, resume state, validation, saving, and completion.
Invite a team or explicitly skip the optional step.
Branched onboarding
Invite a team or explicitly skip the optional step.
Invitation limits, roles, email delivery, and authorization remain server-owned.
test/dummy/app/components/gallery/flows/onboarding_branches_page.rbworkspace_surface do
render_header
render_branch_context
case state
when "choose-path" then render_path_choice
when "company" then render_company_form
when "solo" then render_solo_form
when "import" then render_import_form
when "invite-team" then render_invitation_form
when "skip-team" then render_skipped("Team invitations skipped", "Invitations can be sent later from workspace members.", "integration")
when "integration" then render_integration_choice
when "skip-integration" then render_skipped("Integrations skipped", "The workspace will start without external delivery destinations.", "review-company")
when "review-company" then render_review(:company)
when "review-solo" then render_review(:solo)
when "validation" then render_company_form(invalid: true)
when "saving" then render_company_form(disabled: true)
when "complete" then render_complete
when "resume" then render_resume
when "long" then render_long
when "mobile" then render_mobile
end
end