From 2420c302c74a8b9ac312abcf0834595a382cc9cf Mon Sep 17 00:00:00 2001 From: Array Date: Wed, 8 Apr 2026 14:52:46 +0000 Subject: [PATCH] feat(code): add hover tooltips to Pin and Archive sidebar buttons Replace bare `title` attributes on the Pin and Archive task hover toolbar buttons with the project's `` component, matching the pattern used by all other icon buttons in the sidebar. Generated-By: PostHog Code Task-Id: 73860bb0-fe96-439a-bd55-c442a1887aea --- .../sidebar/components/items/TaskItem.tsx | 74 ++++++++++--------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx b/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx index ca1e88037..11477222d 100644 --- a/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx +++ b/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx @@ -78,48 +78,50 @@ function TaskHoverToolbar({ return ( {onTogglePin && ( - // biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) - { - e.stopPropagation(); - onTogglePin(); - }} - onKeyDown={(e) => { - if (e.key === "Enter" || e.key === " ") { - e.preventDefault(); + + {/* biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) */} + { e.stopPropagation(); onTogglePin(); - } - }} - title={isPinned ? "Unpin task" : "Pin task"} - > - - + }} + onKeyDown={(e) => { + if (e.key === "Enter" || e.key === " ") { + e.preventDefault(); + e.stopPropagation(); + onTogglePin(); + } + }} + > + + + )} {onArchive && ( - // biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) - { - e.stopPropagation(); - onArchive(); - }} - onKeyDown={(e) => { - if (e.key === "Enter" || e.key === " ") { - e.preventDefault(); + + {/* biome-ignore lint/a11y/useSemanticElements: Cannot use button inside parent button (SidebarItem) */} + { e.stopPropagation(); onArchive(); - } - }} - title="Archive task" - > - - + }} + onKeyDown={(e) => { + if (e.key === "Enter" || e.key === " ") { + e.preventDefault(); + e.stopPropagation(); + onArchive(); + } + }} + > + + + )} );