Skip to content

feat(desktop): new user landing screen without sidebar or topbar#1153

Merged
saddlepaddle merged 2 commits into
mainfrom
new-user-landing-screen-with-no-sidebar-or-topbar
Feb 3, 2026
Merged

feat(desktop): new user landing screen without sidebar or topbar#1153
saddlepaddle merged 2 commits into
mainfrom
new-user-landing-screen-with-no-sidebar-or-topbar

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented Feb 2, 2026

Summary

  • New users with no projects now see a clean landing screen without sidebar or topbar
  • Created a separate _onboarding pathless layout route parallel to _dashboard
  • All navigations in the onboarding flow (welcome → project → workspace) use history.replace so setup screens never appear in back-button history

Changes

  • New: _onboarding/layout.tsx — minimal layout with only a drag region for window controls
  • New: _onboarding/welcome/page.tsx — renders StartView inside the clean layout
  • Modified: workspace/page.tsx — redirects to /welcome when no workspaces (instead of rendering StartView inside dashboard layout)
  • Modified: StartView/index.tsx — navigate to project with replace: true
  • Modified: useCreateWorkspace.ts — navigate to workspace with replace: true

Test plan

  • Open desktop app with no projects — should see clean landing screen (no topbar/sidebar)
  • Open or clone a project — should transition to dashboard layout with topbar/sidebar
  • Create a workspace from "What are you building?" — should land on workspace
  • Press back at any point during onboarding — should not revisit setup screens
  • Open app with existing projects — should go directly to last workspace as before

Summary by CodeRabbit

  • New Features

    • Added onboarding flow with a welcome page.
    • Improved Start view with enhanced drag‑and‑drop, refreshed layout, and updated primary actions.
    • Rebuilt repository clone dialog with a standardized modal, improved input handling and loading states.
  • Bug Fixes

    • Empty workspace state now redirects to the welcome page.
    • Navigation now replaces history entries when creating workspaces and opening projects.
  • Chores

    • Updated analytics-related dependency.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 2, 2026

📝 Walkthrough

Walkthrough

Adds onboarding layout and welcome route; changes several navigation calls to use history replacement (replace: true); redirects an empty authenticated dashboard to the onboarding welcome page; UI and dialog refinements in StartView and CloneRepo flow; bump of posthog-node version.

Changes

Cohort / File(s) Summary
Workspace creation hook
apps/desktop/src/renderer/react-query/workspaces/useCreateWorkspace.ts
onSuccess navigation now calls navigateToWorkspace(..., { replace: true }), replacing current history entry.
StartView and clone UI
apps/desktop/src/renderer/screens/main/components/StartView/index.tsx, apps/desktop/src/renderer/screens/main/components/StartView/CloneRepoDialog.tsx
UI/layout updates (logo, spacing, buttons), drag/drop tweaks, Clone dialog migrated to standardized Dialog components, Enter/loading handling preserved, navigation calls updated with replace: true.
Dashboard empty-state redirect
apps/desktop/src/renderer/routes/_authenticated/_dashboard/workspace/page.tsx
When no workspaces exist after load, route redirects to /welcome; StartView import removed and loading spinner used as fallback.
New onboarding routes & layout
apps/desktop/src/renderer/routes/_authenticated/_onboarding/layout.tsx, apps/desktop/src/renderer/routes/_authenticated/_onboarding/welcome/page.tsx
Adds OnboardingLayout (queries electronTrpc.window.getPlatform) and welcome page route rendering StartView; layout adjusts draggable header padding based on platform.
Dependency
apps/desktop/package.json
Bumps posthog-node from ^5.18.0 to ^5.24.7.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 I hopped through files with nimble paws,

Switched the paths and smoothed the cause,
A tiny welcome, padded and bright,
History trimmed to keep steps light,
Clap your paws — onboarding feels just right!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main feature: a new landing screen for users without projects that excludes sidebar and topbar elements.
Description check ✅ Passed The PR description comprehensively covers all required sections: summary, detailed changes, and test plan with specific steps, meeting template expectations.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch new-user-landing-screen-with-no-sidebar-or-topbar

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Show a clean onboarding layout when user has no projects. All
navigations in the onboarding flow use history.replace so setup
screens never appear in back-button history.
@saddlepaddle saddlepaddle force-pushed the new-user-landing-screen-with-no-sidebar-or-topbar branch from cf42981 to 5b56ad2 Compare February 2, 2026 21:49
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 3, 2026

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch
  • ✅ Electric Fly.io app

Thank you for your contribution! 🎉

@saddlepaddle saddlepaddle merged commit bfaec7b into main Feb 3, 2026
13 checks passed
@Kitenite Kitenite deleted the new-user-landing-screen-with-no-sidebar-or-topbar branch February 4, 2026 20:42
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