Skip to content

fix(desktop): keep Create controls on empty Projects - #3620

Closed
austin-thesing wants to merge 1 commit into
block:mainfrom
austin-thesing:fix/projects-empty-create-menu
Closed

fix(desktop): keep Create controls on empty Projects#3620
austin-thesing wants to merge 1 commit into
block:mainfrom
austin-thesing:fix/projects-empty-create-menu

Conversation

@austin-thesing

Copy link
Copy Markdown

Summary

  • Stop early-returning the Projects empty state before the Create menu/dialog mounts (catch-22 for first project / empty list fetch).
  • Keep Projects chrome on empty lists and add a Create repository CTA on the empty state.
  • Add e2e coverage that asserts Create works when no projects are visible.

Originating channel: 18fca54c-dc63-4dbd-a1c3-2afba0e44c0d (dxd-link).

Test plan

  • pnpm exec biome check on touched files
  • pnpm exec tsc --noEmit
  • pnpm exec playwright test --project=smoke tests/e2e/projects-empty-create.spec.ts
  • Manual: open Projects with zero announcements → Confirm + Create menu and empty-state Create repository open the create dialog

Made with Cursor

The empty-state early return skipped the Create menu and dialog, so first-time
and empty-fetch users could not create a repository from the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Austin Thesing <austin@designxdevelop.com>
Signed-off-by: Austin Thesing <austin@designxdevelop.com>
@austin-thesing
austin-thesing requested a review from a team as a code owner July 29, 2026 21:05
iroiro147 added a commit to iroiro147/buzz that referenced this pull request Aug 8, 2026
The Projects view returned its empty state before the PageHeader, toolbar,
and ProjectsCreateMenu mounted, leaving no way to create the first project
from an empty workspace.

- Drop the projects.length === 0 early return; the main section now renders
  the empty state inside the page chrome so the Create menu stays mounted.
- EmptyState gains an optional onCreateRepository CTA that opens the
  create-project dialog directly.
- Covers both entry points (toolbar Create menu, empty-state button) with a
  Playwright smoke spec.

Reimplements the approach from the closed PR block#3620, tracked in block#4009.

Signed-off-by: iroiro147 <sarthak.singh@juspay.in>
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