Skip to content

The agent that grows with you

fix(desktop): clarify kanban board switcher

KoNit-K8667e9829344
diff --git a/apps/desktop/src/plugins/kanban/board-switcher.test.tsx b/apps/desktop/src/plugins/kanban/board-switcher.test.tsx
index b48df31f63e..fb646bb426b 100644
--- a/apps/desktop/src/plugins/kanban/board-switcher.test.tsx
+++ b/apps/desktop/src/plugins/kanban/board-switcher.test.tsx
@@ -36,4 +36,12 @@ describe('board switcher', () => {
expect(await screen.findByText('Shipping')).toBeTruthy()
})
+
+ it('identifies the current board switcher as a control', async () => {
+ mount()
+
+ const trigger = await screen.findByRole('button', { name: /board: Shipping/i })
+
+ expect(trigger.getAttribute('title')).toMatch(/board: Shipping/i)
+ })
})
diff --git a/apps/desktop/src/plugins/kanban/board-switcher.tsx b/apps/desktop/src/plugins/kanban/board-switcher.tsx
index 32a2ad2292d..0a7538cf92e 100644
--- a/apps/desktop/src/plugins/kanban/board-switcher.tsx
+++ b/apps/desktop/src/plugins/kanban/board-switcher.tsx
@@ -336,7 +336,14 @@ export function BoardSwitcher() {
<>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="h-full min-w-0 max-w-full gap-1.5 px-2" size="sm" variant="ghost">
+ <Button
+ aria-label={`${k.board}: ${label}`}
+ className="h-full min-w-0 max-w-full gap-1.5 px-2"
+ size="sm"
+ title={`${k.board}: ${label}`}
+ variant="ghost"
+ >
+ <span className="shrink-0 text-[0.6875rem] font-medium text-(--ui-text-tertiary)">{k.board}</span>
<span className="min-w-0 flex-1 truncate text-[0.75rem] font-medium leading-none">{label}</span>
{typeof current?.total === 'number' && (
<span className="text-[0.6875rem] tabular-nums text-(--ui-text-quaternary)">{current.total}</span>