From 94f3e7e1b4d70e8ee9dcf7fa9c2a61a9f2ef1183 Mon Sep 17 00:00:00 2001 From: Ammar Date: Wed, 29 Oct 2025 23:12:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20make=20Review=20tab=20tog?= =?UTF-8?q?gles=20global=20instead=20of=20per-workspace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed 'Show Read' and 'Uncommitted' toggles to use global storage keys instead of workspace-specific keys. These settings should apply across all workspaces rather than being configured separately for each. - Changed `review-include-uncommitted:${workspaceId}` to `review-include-uncommitted` - Changed `review-show-read:${workspaceId}` to `review-show-read` --- .../RightSidebar/CodeReview/ReviewPanel.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/RightSidebar/CodeReview/ReviewPanel.tsx b/src/components/RightSidebar/CodeReview/ReviewPanel.tsx index 2b1357130..27c35df09 100644 --- a/src/components/RightSidebar/CodeReview/ReviewPanel.tsx +++ b/src/components/RightSidebar/CodeReview/ReviewPanel.tsx @@ -154,17 +154,14 @@ export const ReviewPanel: React.FC = ({ // Persist diff base per workspace (falls back to global default) const [diffBase, setDiffBase] = usePersistedState(`review-diff-base:${workspaceId}`, defaultBase); - // Persist includeUncommitted flag per workspace + // Persist includeUncommitted flag globally const [includeUncommitted, setIncludeUncommitted] = usePersistedState( - `review-include-uncommitted:${workspaceId}`, + "review-include-uncommitted", false ); - // Persist showReadHunks flag per workspace - const [showReadHunks, setShowReadHunks] = usePersistedState( - `review-show-read:${workspaceId}`, - true - ); + // Persist showReadHunks flag globally + const [showReadHunks, setShowReadHunks] = usePersistedState("review-show-read", true); // Initialize review state hook const { isRead, toggleRead } = useReviewState(workspaceId);