Skip to content

Show space name instead of 'Empty room' after creation#32886

Merged
t3chguy merged 3 commits intoelement-hq:developfrom
gugaribeiro05:fix/space-name-32682
Mar 23, 2026
Merged

Show space name instead of 'Empty room' after creation#32886
t3chguy merged 3 commits intoelement-hq:developfrom
gugaribeiro05:fix/space-name-32682

Conversation

@gugaribeiro05
Copy link
Copy Markdown
Contributor

@gugaribeiro05 gugaribeiro05 commented Mar 23, 2026

Checklist

Summary

This PR fixes an issue where a newly created Space would display as 'Empty room' or 'New room' instead of its intended name. The root cause was that the name and topic properties were being passed inside a nested createOpts object in SpaceCreateMenu.tsx. However, the creation flow expects these properties at the top level of the options object. This patch moves them to the correct level.

Fixes

Fixes #32682

Type of change

  • Bugfix

Testing

  • Added a regression test in SpaceCreateMenu-test.tsx to verify that name and topic are correctly passed to the client during the space creation process.
  • Verified that all unit tests pass locally by running the test suite.

gugaribeiro05 and others added 2 commits March 16, 2026 18:28
…reation

When creating a new space, the setup screens showed 'Empty room' or
'New room' instead of the chosen name.

The 'createSpace' function nested 'name' and 'topic' inside
'createOpts'. However, the creation flow expects them at the top
level of the options object. This caused the name to be undefined.

This patch modifies SpaceCreateMenu.tsx to move these properties to
the top-level. It also updates SpaceCreateMenu-test.tsx with a
regression test to verify the fix and prevent future regressions.
Copilot AI review requested due to automatic review settings March 23, 2026 14:15
@gugaribeiro05 gugaribeiro05 requested a review from a team as a code owner March 23, 2026 14:15
@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label Mar 23, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a regression in the Space creation flow where the post-create screen could show fallback copy like “Empty room”/“New room” instead of the new Space’s intended name, by ensuring name/topic are provided in the shape expected by the shared createRoom helper.

Changes:

  • Pass name and topic as top-level createRoom options in createSpace (instead of nesting them under createOpts).
  • Add a regression unit test asserting name/topic are not nested under createOpts when creating a Space.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/web/src/components/views/spaces/SpaceCreateMenu.tsx Fixes the options object passed into createRoom so newly created Spaces carry name/topic in the expected fields.
apps/web/test/unit-tests/components/views/spaces/SpaceCreateMenu-test.tsx Adds a regression test to prevent reintroducing incorrect nesting of name/topic under createOpts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@t3chguy t3chguy changed the title Fix #32682: Show space name instead of 'Empty room' after creation Show space name instead of 'Empty room' after creation Mar 23, 2026
Copy link
Copy Markdown
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me, thanks

@t3chguy t3chguy added this pull request to the merge queue Mar 23, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 23, 2026
@t3chguy t3chguy added this pull request to the merge queue Mar 23, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 23, 2026
@t3chguy t3chguy added this pull request to the merge queue Mar 23, 2026
Merged via the queue into element-hq:develop with commit 4530635 Mar 23, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Defect Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Empty room" instead of the space name, when creating a new space

4 participants