Skip to content

fix(workspaces): show create-workspace card in community edition with zero workspaces - #1234

Open
rawdaymx wants to merge 1 commit into
ChatbotXIO:mainfrom
rawdaymx:fix/community-zero-workspaces-create-card
Open

rawdaymx wants to merge 1 commit into
ChatbotXIO:mainfrom
rawdaymx:fix/community-zero-workspaces-create-card

Conversation

@rawdaymx

Copy link
Copy Markdown
Contributor

Fixes #1226.

In the community edition, showCreateCard was !isCommunity(), so a user who owns zero workspaces sees only a static "no workspaces" message with no interactive element to create one. /channels/create — the entry point into createFirstWorkspace — is otherwise unreachable from this page.

#405 deliberately hid the card once a workspace already exists (self-hosted installs are meant to stay single-workspace), and that intent is preserved here. What #405 also did, as a side effect, was remove the only path into workspace creation for a user who has none yet — this restores just that case.

Change

- const showCreateCard = !isCommunity()
+ const showCreateCard = !isCommunity() || workspaces.length === 0
  • Community + 0 workspaces → card shows (new)
  • Community + 1+ workspaces → card stays hidden (unchanged, matches bug: invite workspace member #405)
  • Cloud → card always shows (unchanged)

Verification

Added apps/builder/__tests__/workspaces-list.community-zero.test.tsx, two cases: card renders a link to /channels/create at zero workspaces, and stays absent once one exists. Full suite for the touched area:

Test Files  1 passed (1)
     Tests  2 passed (2)

ultracite check is clean.

… zero workspaces

showCreateCard was !isCommunity(), so a community-edition user who owns
zero workspaces sees only a static "no workspaces" message with no
interactive element to create one. PR ChatbotXIO#405 deliberately hid the card
once a workspace already exists (self-hosted installs stay
single-workspace), but that change also silently removed the only path
into createFirstWorkspace for a brand-new user, since /channels/create
is otherwise unreachable from this page.

Adds workspaces.length === 0 back to the condition: the card still
hides once a workspace exists, matching ChatbotXIO#405's intent, but shows for a
user who has none yet.
@github-actions github-actions Bot added the bug Something isn't working as expected label Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Community edition: a user with zero workspaces has no UI path to create one — showCreateCard hides the only entry point into /channels/create

1 participant