Skip to content

fix: onboarding white screen, faster gateway feedback, correct docs#49

Merged
outsourc-e merged 1 commit intomainfrom
fix/onboarding-white-screen
Apr 10, 2026
Merged

fix: onboarding white screen, faster gateway feedback, correct docs#49
outsourc-e merged 1 commit intomainfrom
fix/onboarding-white-screen

Conversation

@outsourc-e
Copy link
Copy Markdown
Owner

Problem

New users cloning ControlSuite hit a white screen on first launch because:

  1. SSR bypasses the wizard redirect (localStorage check only works client-side)
  2. Dashboard crashes when gateway isn't connected, with no helpful error
  3. Gateway connection banner takes ~90 seconds to appear (6 failures × 15s)
  4. README shows wrong env var names (GATEWAY_URL vs actual CLAWDBOT_GATEWAY_URL)
  5. Setup docs link to ocplatform.ai which doesn't resolve

Changes

Code fixes

  • index.tsx — SSR now redirects to /wizard instead of falling through to dashboard
  • dashboard.tsx — Error component shows gateway connection form (URL + token + connect button) instead of white screen
  • gateway-connection-banner.tsx — Faster feedback: 90s → 20s delay. Shows even when gateway was never configured.

Docs

  • README.md — Fixed env var names, removed dead ocplatform.ai link, added verification steps
  • SETUP.md — New agent-optimized setup guide with verification commands, troubleshooting, and common mistakes

Related Issues

Addresses #43 (docs improvements) and #48 (gateway health unreachable)

Testing

  1. Clone fresh, npm install, npm run dev without .env → should see wizard, not white screen
  2. Set wrong gateway URL → dashboard shows connection form instead of blank
  3. README env vars match .env.example

- Fix white screen on first launch: SSR now redirects to setup wizard
  instead of falling through to dashboard with no gateway connection
- Dashboard error component shows gateway connection form instead of
  blank/white screen when gateway is unreachable
- Reduce gateway connection banner delay from ~90s to ~20s (6 failures
  → 2, 15s interval → 10s, 5s initial delay → 2s)
- Show gateway offline banner even when gateway was never configured
- Fix README: wrong env var names (GATEWAY_URL → CLAWDBOT_GATEWAY_URL)
- Fix README: dead docs link (ocplatform.ai doesn't resolve)
- Add SETUP.md: agent-optimized setup guide with verification commands,
  troubleshooting, and common .env mistakes table

Addresses #43 #48
@outsourc-e outsourc-e merged commit 2b6b7ca into main Apr 10, 2026
2 of 3 checks passed
@outsourc-e outsourc-e deleted the fix/onboarding-white-screen branch April 10, 2026 23:38
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