4.0 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 03-entry-point-dots | Entry-point dot rendering | complete | 2 |
|
plan.md | ../../specs/ui/requirements/quick-chat-idle-dot.md |
Task 03: Entry-point dot rendering
Render the decorative red dot on the five Quick Chat entry icons — sidebar
rail item, sidebar shortcut, tablet header button, mobile header button, and
mobile task-switcher sheet button — driven by
selectQuickChatHasUnseenIdle for the active workspace.
-
Acceptance:
- The sidebar rail Quick Chat item (
app-sidebar-primary-nav.tsx, collapsed) shows the dot when the active workspace has an unseen idle session and not otherwise. - The sidebar Quick Chat shortcut (
app-sidebar-new-task-item.tsx,sidebar-quick-chat-shortcut) shows the dot on theh-3.5 w-3.5icon when unseen, not otherwise. - The tablet header button (
tablet-quick-chat-button), the mobile header button (mobile-quick-chat-button), and the mobile task-switcher sheet button (mobile-sheet-quick-chatinsession-task-switcher-sheet.tsx) show the dot when unseen, not otherwise. - The dot is
aria-hiddenwithdata-testid="quick-chat-unseen-dot", positioned in the icon's top-right corner, and does not change button size, labels, or tooltips.
- The sidebar rail Quick Chat item (
-
Verification:
cd apps && pnpm --filter @kandev/web test -- --run \ components/app-sidebar/app-sidebar-primary-nav.test.tsx \ components/app-sidebar/app-sidebar-new-task-item.test.tsx \ components/kanban/kanban-header-mobile.test.tsx \ components/task/mobile/session-task-switcher-sheet.test.tsx -
Files likely touched:
apps/web/components/app-sidebar/app-sidebar-nav-item.tsx—dot?: booleanprop; relative icon wrapper + absolute dot.apps/web/components/app-sidebar/app-sidebar-primary-nav.tsx— passdotto the Quick Chat nav item.apps/web/components/app-sidebar/app-sidebar-new-task-item.tsx—RowActionButtondot?: boolean; pass to the Quick Chat shortcut.apps/web/components/kanban/kanban-header.tsx(TabletQuickActions) — dot overIconMessageCircle.apps/web/components/kanban/kanban-header-mobile.tsx— dot overIconMessageCircle.apps/web/components/task/mobile/session-task-switcher-sheet.tsx(TaskSwitcherSurfaceHeader) —dotprop threading through the sheet header; dot overIconMessageCircleonmobile-sheet-quick-chat.- Tests:
app-sidebar-primary-nav.test.tsx,app-sidebar-new-task-item.test.tsx,kanban-header-mobile.test.tsx,session-task-switcher-sheet.test.tsx— extend store fixtures withquickChat.sessions+unseenIdleByWorkspace(+lastSettledAtBySessionwhere the fixture constructs fullQuickChatState). Note the existing mocked app-store states are minimal (e.g.app-sidebar-primary-nav.test.tsx:9-12,app-sidebar-new-task-item.test.tsx:28-40): they must gainquickChat: { isOpen, sessions, unseenIdleByWorkspace, lastSettledAtBySession }or the component'sselectQuickChatHasUnseenIdlecall reads undefined state.
-
Dependencies: task 01 (selector
selectQuickChatHasUnseenIdle(state, workspaceId: string | null | undefined)— callers pass nullish ids; the selector returns false for them). Task 02 is not required for rendering (the marker actions are consumed by tests), but the feature is only observable end-to-end after task 02 lands. -
Parallelism: sequential.
-
Inputs:
- Spec: What bullets 1 and 5 (dot placement, decorative).
- Plan: "Entry-point dots" section.
- Existing patterns: dot styling like
agent-card-error-dot(h-2 w-2 rounded-full bg-red-500) with a surface ring (ring-2 ring-background) so it reads over any background;RowActionButtonbody atapp-sidebar-new-task-item.tsx:48.
-
Output contract: summary, files changed, tests run with counts, blockers, risks; update task + plan statuses in the same conversation.
Results
Rendered decorative markers on sidebar, tablet, mobile header, and task-switcher entries. Component tests passed.