Skip to content

Don't switch space for a module space-panel item that only acts - #35181

Draft
ara4n wants to merge 1 commit into
developfrom
matthew/space-panel-action-items
Draft

ara4n wants to merge 1 commit into
developfrom
matthew/space-panel-action-items

Conversation

@ara4n

@ara4n ara4n commented Sep 24, 2026

Copy link
Copy Markdown
Member

A module can add items to the space panel with setSpacePanelItem. Clicking one always made it the active space, which for an item that's really a button (the SIP module's dialler) empties the room list and highlights the item as if it were a space.

An item that is a space registers its room list with getVisibleRoomBySpaceKey; one that hasn't is treated as an action: onSelected runs, the active space stays.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XCi2NfsMHKVW8hrve7Rcs5

A module item with no room list of its own (getVisibleRoomBySpaceKey) is
a button, such as a dialler, so clicking it runs onSelected without
changing the active space.
@ara4n
ara4n marked this pull request as draft September 24, 2026 15:57

This branch was successfully deployed

4 active deployments
VitestReport — 7f4e2eb2 Deployed Sep 24, 2026 by github-actions[bot]
EndToEndTests — 7f4e2eb2 Deployed Sep 24, 2026 by github-actions[bot]
Netlify — 7f4e2eb2 Deployed Sep 24, 2026 by github-actions[bot]
SharedComponentStorybook — 7f4e2eb2 Deployed Sep 24, 2026 by github-actions[bot]
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.

2 participants