Skip to content

Task location icon: tooltip has no branch name, and icon-only encoding is hard to read at a glance #73

Description

@adamatan

What

TaskLocationIcon (src/components/TaskLocationIcon.tsx, introduced in upstream 6185214 "rename workspaces to tasks") renders one of two icons next to a task row (GitBranch for worktree, Link2 for main checkout), both the same neutral gray at 14px, with a native title tooltip that's just the literal string "worktree" or "main checkout".

Two problems:

  1. The tooltip never includes the branch name, even though w.branch is already available right next to it in Sidebar.tsx. You can tell "this is a worktree" but not which branch.
  2. GitBranch vs Link2 at that size/color are subtle enough that telling them apart requires hovering and reading the tooltip anyway, defeating the point of an at-a-glance icon.

Proposed direction

Make the common case quiet and the notable case explicit, rather than an icon on every row:

  • Task is the main checkout and checked out on the project's default branch (project.base_branch): show no icon at all. This is the default, unremarkable state for most tasks.
  • Task is the main checkout but on a different branch: show an icon plus the branch name inline (not hover-only).
  • Task is a worktree: show a distinct icon plus the branch name inline.

This cuts visual noise for the common case, and makes the one thing people actually want to know, the branch, visible without a hover in the cases where it matters.

Notes

I'll pick this up in a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions