[feat] Pinned workspaces named "local" are indistinguishable — the PINNED section drops the project name
What problem are you trying to solve?
The PINNED section pulls a workspace out of its project group. That's the whole point — but it also means the project name is no longer anywhere near the row.
Every project's main workspace is called local. So pin two of them and the sidebar shows this:
PINNED
local
local
Two identical rows. The only thing telling them apart is a 14px project avatar, which for most projects is a generated circle — I can't tell Flamaster from Bifrost at that size (or whatever projects I have). Inside a project group local is unambiguous because the group header says which project. Pinned, that context is gone.
I have to hover each row and wait for the tooltip to find out which is which, every time. Pinning is supposed to be the fast path.
Proposed solution
Show the project name in the row label, dimmed, as a path-style prefix:
PINNED
Flamaster/local
Bifrost/basic_optimization
Readable at a glance, no hover. Keep the avatar — it's still a useful color cue once you know which is which.
The data is already there: pinnedContext on the row carries projectName and projectIconUrl, and today only the icon is rendered (DashboardSidebarExpandedWorkspaceRow.tsx#L311). The name is passed in and thrown away.
Only pinned rows need this. Rows inside a project group already have their header. Project-less sessions can read Session/….
Workarounds you've tried
- Hover the row — the tooltip does show the project name, but one row at a time, and it's the thing I'm trying to avoid.
- Rename the workspace — not possible for a main workspace:
onRenameis undefined whenisMainWorkspace, and the storednameis ignored in favour of"local". - Move it into a section I could name myself — the Create section / Move to section submenu is gated on
!isLocalMainWorkspace, and grouping is hidden for pinned rows anyway. - Unpin and rely on the project groups — works, but gives up the feature.
Related
- #6520 — same "every row says
local" ambiguity, scoped to rows inside a project group, proposing the branch as a subtitle. Complementary: that one disambiguates checkouts of the same project, this one disambiguates across projects.
Superset 1.25.0, macOS (Darwin arm64).
Source: superset-sh/superset