Branched onboarding flow

Branched onboarding

Block-composed company, personal, and import branches with explicit skips, reviews, resume, and outcomes.

Company, personal, and import onboarding branches

Branch choice, distinct forms, optional skips, review paths, resume state, validation, saving, and completion.

Complete

Name completed and deferred work separately.

ViewportFull width
Rubytest/dummy/app/components/gallery/flows/onboarding_branches_page.rb
workspace_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