fix(desktop): distinguish worktree rows with a fork icon
What & why
Refs #7170.
#7170 says workspaces and worktrees are hard to tell apart. The indentation part already landed in #6829. What was left: worktree rows in the sidebar showed only a small dot, and the command palette showed a laptop on every workspace.
- Sidebar: worktree rows now show a fork icon, the same icon the new-workspace screen uses for "Worktree". Local checkouts keep the laptop, and sessions keep the dot.
- Command palette: a laptop for local checkouts, a fork for worktrees, and no icon for sessions.
- The PR icon and the spinner still take priority over these, as before.
- 3 new test cases in
DashboardSidebarWorkspaceIcon.test.tsx.
With #6829, this should cover #7170, so the issue can be closed once this merges.
This touches DashboardSidebarWorkspaceIcon.tsx, as does the PR for #7635 (#8432) and #7808. It merges cleanly with #8432.
Screenshots
A test project with one worktree ("demo worktree") and one local checkout ("local checkout"). The sidebar crops are zoomed in.
| Before | After | |
|---|---|---|
| Sidebar | ![]() | ![]() |
| Command palette | ![]() | ![]() |
How I tested it
- The branch is based on
mainat a8c6da1c2 and merges cleanly withmainat cc31d024c. On that merge, with the pinned Bun 1.4.2 (.bun-version):bun run lintpasses with no diagnostics,bun run check:i18nleaves the catalogs unchanged,turbo typecheck --filter=@superset/desktoppasses, the sidebar and command palette suites pass (198 tests, including the 3 new ones), and the full desktop suite passes (8277 tests, 1 skipped). - I ran the dev app and drove it over CDP:
- Sidebar: a worktree row shows the fork icon, and the local checkout shows the laptop.
- Command palette (Search, then Workspaces): the same two icons, next to the unchanged "This device" badge.
- For the before shots, I put back the two changed files from
mainin the same app.
- Not checked in the app: session rows, because there were no sessions to look at. The unit test covers them.
Checklist
- PR title follows conventional commits (
type(scope): subject) -
bun run lintandbun run typecheckpass (CI fails on lint warnings too). Lint ran on the whole repo, and the type check ran for@superset/desktop, the only package this PR changes. - "Allow edits from maintainers" is checked on fork PRs
Summary by cubic
Replaces the indistinct dot for worktree rows in the sidebar and the laptop shown for every workspace in the command palette, so worktrees are clearly identifiable.
- Sidebar: worktree rows show a git-fork icon; local checkouts keep the laptop and sessions keep the dot.
- Command palette: laptop for local checkouts, fork for worktrees, no icon for sessions.
- The PR icon and spinner still take priority over the type icon.
- Adds 3 test cases covering the new icon behavior.
This addresses issue #7170.
Summary by CodeRabbit
- New Features
- Worktrees now display a fork icon in the workspace list and dashboard sidebar, distinguishing them from local workspaces.



