PR #9835 review: Workspaces on the rail, Chat into More

Summary

The PR moves Workspaces out of the rail's More (“…”) menu and puts it on the navigation rail as the second button, after Home. It uses the same icon as the title-bar workspace switcher. Chat moves the other way, from the rail into the More menu. It is still behind the channels flag, and the More button highlights while Chat is open. WorkspacesIcon moves up to _dashboard/components/ because two components now use it.

Verdict

Looks good The change is small and placed correctly under the co-location rules. Every QA item in the description works in the running desktop app, and all CI checks pass at the head commit.

Findings

Nothing blocks this PR. One follow-up:

Nit · follow-up

Workspaces still has the Layers icon in three other places. DashboardSidebar/components/DashboardSidebarHeader/DashboardSidebarHeader.tsx:159 and :423, commandPalette/ui/CommandListView/components/RootWorkspacesSection/RootWorkspacesSection.tsx:43, and commandPalette/modules/navigation/commands.tsx:55 all still use LuLayers/Layers. The PR lists this under Known Limitations. Now that WorkspacesIcon is shared, these places can use it too. That would give Workspaces one icon in the whole app, in this PR or a follow-up.

Things I checked that are correct:

Evidence

Surface: desktop (Electron), driven over CDP. I relaunched the dev desktop from this workspace with RENDERER_REMOTE_DEBUG_PORT=9333. The renderer is at localhost:3005, which matches DESKTOP_VITE_PORT, and it is signed in. The new rail is behind paradev-shell. I turned it on, and switched channels on and off, with PostHog's featureFlags.overrideFeatureFlags and a renderer reload. That setup step is synthetic. Every interaction after it used real CDP mouse input. I turned on Usage with the real switch in Settings → Usage.

Rail on Home
Rail on Home. DOM order: Home, Workspaces, Pages, Plugins, Automations, Tasks, Pull requests, More. No Chat button on the rail.
Workspaces tooltip
Hovering the second rail button shows the “Workspaces” tooltip.
Icons compared
The title-bar “Switch workspace” button (top) and the rail button (left) draw the same WorkspacesIcon path, at 16px and 18px.
Workspaces view
A click on the rail button goes to #/v2-workspaces. The button gets aria-current="page" and the selected fill.
More menu, channels on
channels on, Usage off. Menu items: Chat, Add project. One separator.
More menu, Chat and Usage
channels on, Usage on. Menu items: Chat, Usage, Add project. One separator.
More menu, channels off
channels off, Usage off. Only Add project, with no separator (0 role=separator in the DOM).
More highlighted
A click on Chat in the menu goes to #/channels/threads. Only “More” has the selected fill.
Chat open
The full window with Chat open from the More menu.

Surfaces not run: none. This PR changes only the desktop renderer.

Questions for the author

Test / CI notes