From 2d1c06cec9f039e83b6a7e136da39a584353f3bd Mon Sep 17 00:00:00 2001 From: Hiren Kangad Date: Thu, 12 Mar 2026 18:39:09 +0530 Subject: [PATCH] feat(review): make review mode independent of tool selection - Tool button clicks no longer exit review mode - Review button moved outside tool group with divider separator - Tool active state no longer dimmed during review mode - Updated hint text for review mode --- frontend/src/components/Toolbar.tsx | 67 +++++++++++++++-------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/frontend/src/components/Toolbar.tsx b/frontend/src/components/Toolbar.tsx index 9f93928..30430f7 100644 --- a/frontend/src/components/Toolbar.tsx +++ b/frontend/src/components/Toolbar.tsx @@ -127,7 +127,7 @@ const toolButtons: { tool: ToolType; label: string; shortcut: string; numKey: st { tool: ToolType.TEXT, label: 'Text', shortcut: 'T', numKey: '4', Icon: IconText, hint: 'Click on the canvas to place text' }, ]; -const REVIEW_HINT = 'Click an image to leave a comment. Press . to toggle.'; +const REVIEW_HINT = 'Click an object to place a comment pin. Press . to toggle.'; export default function Toolbar({ activeTool, @@ -180,11 +180,11 @@ export default function Toolbar({ {/* Tool buttons */}
{toolButtons.map(({ tool, label, shortcut, numKey, Icon }) => { - const active = activeTool === tool && !reviewMode; + const active = activeTool === tool; return ( ); })} - {/* Review mode — in tool group */} - {onToggleReview && ( - - )}
+ {/* Review mode — independent toggle, separated from tools */} + {onToggleReview && (<> + + + )}