Skip to content

A pinned session tool cannot be unpinned while a non-session tab is in front (disabled icon, no menu) #620

Open

Description

@SSFSKIM

What is wrong

A tool pinned to the session-surfaces icon row (its menu's "Pin to toolbar") cannot be unpinned, and an unpinned one cannot be pinned, while the tab in front is not a session's (the library, a page, Settings, Diagnostics). Every session tool's icon is disabled then, and a disabled icon opens no menu, so "Unpin from toolbar" is out of reach; the same holds for the tool's item under "More surfaces". The person has to bring a session's tab forward first, and nothing says so.

Existing behaviour, the same in the build before the UX wave; found while writing U13a's cross-build scene (its pin had to be read and undone with a session's tab in front).

Where

src/renderer/src/panel/SurfaceRow.tsx: the pinned tools' IconButton is disabled={!session && !tab} and the folded items are disabled the same way; the pin item lives in the icon's context menu (toggleSurfacePin).

What done looks like

  • With no session's tab in front, a pinned tool's icon still opens its menu, and "Unpin from toolbar" works; opening the tool stays unavailable (it needs a session), and the icon reads as unavailable for that act only.
  • The same for "Pin to toolbar" from "More surfaces".
  • A unit test in the panel's tests holds both with a non-session tab in front.
  • Decide by reading how the menu is attached whether the icon stays a disabled button with the menu on a wrapper, or becomes an aria-disabled button that refuses the click; the token and focus rules of the row stay.

Pointers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions