From 104be99f3c7c8cb5b8a464d314bf4328253aeb5e Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Sun, 19 Apr 2026 08:44:58 -0700 Subject: [PATCH] Add thumbs up quick label button to annotation toolbar (#588) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add thumbs-up quick annotation button to annotation toolbar A one-click "👍 Looks good" button joins the existing quick-label system so users can approve a selection, code block, or diff hunk without opening the picker. Covers plan, annotate, and plan-diff modes (all share the same AnnotationToolbar). * Move thumbs-up button to the right of the zap quick-label button For provenance purposes, this commit was AI assisted. --- packages/ui/components/AnnotationToolbar.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/ui/components/AnnotationToolbar.tsx b/packages/ui/components/AnnotationToolbar.tsx index f6d1061..adc1da7 100644 --- a/packages/ui/components/AnnotationToolbar.tsx +++ b/packages/ui/components/AnnotationToolbar.tsx @@ -7,6 +7,13 @@ import { FloatingQuickLabelPicker } from "./FloatingQuickLabelPicker"; type PositionMode = 'center-above' | 'top-right'; +const THUMBS_UP_LABEL: QuickLabel = { + id: 'thumbs-up', + emoji: '👍', + text: 'Looks good', + color: 'green', +}; + const isEditableElement = (node: EventTarget | Element | null): boolean => { if (!(node instanceof Element)) return false; if (node.matches('input, textarea, select, [role="textbox"]')) return true; @@ -217,6 +224,12 @@ export const AnnotationToolbar: React.FC = ({ label="Quick label" className={showQuickLabels ? "text-amber-500 bg-amber-500/10" : "text-amber-500 hover:bg-amber-500/10"} /> + onQuickLabel(THUMBS_UP_LABEL)} + icon={👍} + label="Looks good" + className="hover:bg-green-500/10" + /> {showQuickLabels && zapButtonRef.current && (