Skip to content

Feat: Add organization name to setup flow#4874

Open
shyamsalimkumar wants to merge 5 commits into
superplanehq:mainfrom
shyamsalimkumar:feat/add-org-name-to-setup
Open

Feat: Add organization name to setup flow#4874
shyamsalimkumar wants to merge 5 commits into
superplanehq:mainfrom
shyamsalimkumar:feat/add-org-name-to-setup

Conversation

@shyamsalimkumar
Copy link
Copy Markdown

What changed

  • The owner setup wizard now includes an Organization Name field (defaults to Demo)
  • Added frontend tests for the full owner setup wizard flow
  • Fixed two test infrastructure issues that blocked the new tests from running

Why

Self-hosted instances were always created with the organization name Demo with no way to change it during setup. Fine for single-command turbo installs, but not acceptable for real self-hosted deployments as mentioned in #1665

How

Organization name field

  • Added organization_name to SetupOwnerRequest on the backend; if absent, defaults to "Demo" so existing integrations and the turbo install path are unaffected
  • Added the field to the first step of the setup wizard with autoComplete="organization" to prevent browsers autofilling a city name

Test infrastructure fixes

  • Added noValidate to the owner step form — without it, jsdom's HTML5 type="email" constraint validation blocks form submit before React's custom validation runs, making the invalid-email test untestable
  • Added a ResizeObserver stub to the global test setup — Radix UI's Checkbox component (used in the SMTP config step) calls new ResizeObserver() on mount and crashes in jsdom without it

New tests

  • Full wizard flow coverage: owner form validation, private network step, SMTP prompt, SMTP config validation, and API submission (including organization_name payload, error handling, and 409 conflict)

Breaking changes

None. organization_name is optional on the API — omitting it falls back to "Demo".

@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant