Skip to content

fix(desktop): show New Project button in empty projects state - #3861

Open
JoeJoeflyn wants to merge 1 commit into
block:mainfrom
JoeJoeflyn:fix/empty-projects-new-project-button
Open

fix(desktop): show New Project button in empty projects state#3861
JoeJoeflyn wants to merge 1 commit into
block:mainfrom
JoeJoeflyn:fix/empty-projects-new-project-button

Conversation

@JoeJoeflyn

@JoeJoeflyn JoeJoeflyn commented Jul 31, 2026

Copy link
Copy Markdown

Summary

  • EmptyState in ProjectsView returned early without the create menu, making it impossible to create a project when the list was empty
  • Added an optional onCreateProject prop to EmptyState that renders a "New Project" button, and wired it to open the existing CreateProjectDialog

Fixes #3470

Testing

  • Built and ran the desktop app locally
  • Enabled Projects in Settings → Experiments
  • Navigated to Projects with empty list — "New Project" button now appears in the empty state
image

@JoeJoeflyn
JoeJoeflyn requested a review from a team as a code owner July 31, 2026 06:01
@Chessing234

Copy link
Copy Markdown
Contributor

nice simple fix. maybe keep the empty-state button disabled while create is pending so people dont double-submit?

…3470)

Signed-off-by: JoeJoeflyn <thaitainguyen336@gmail.com>
@JoeJoeflyn
JoeJoeflyn force-pushed the fix/empty-projects-new-project-button branch from cd35dd4 to 0bfc480 Compare July 31, 2026 08:33
@JoeJoeflyn

Copy link
Copy Markdown
Author

Done, thanks!

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.

[Bug] "New Project" button missing in empty state on Ubuntu 26.04 (AMD64)

2 participants