Skip to content

Commit 76e9f85

Browse files
author
GCWing
committed
feat(web-ui): refine TodoWrite card and widen compact header action type
- TodoWriteDisplay: layout, status slot, and SCSS cleanup for standard mode - CompactToolCardHeader: allow ReactNode for action so inline stats cluster type-checks Verified: pnpm run lint:web, pnpm run type-check:web, pnpm --dir src/web-ui run test:run
1 parent bc9b21c commit 76e9f85

3 files changed

Lines changed: 276 additions & 347 deletions

File tree

src/web-ui/src/flow_chat/tool-cards/CompactToolCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export interface CompactToolCardHeaderProps {
104104
onAffordanceClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
105105
/** Whether to show the left icon divider (default false for compact) */
106106
showDivider?: boolean;
107-
/** Action text */
108-
action?: string;
107+
/** Action label (text or inline markup) */
108+
action?: ReactNode;
109109
/** Main content */
110110
content?: ReactNode;
111111
/** Right extra content (e.g., statistics) */

0 commit comments

Comments
 (0)