From 1f8668fecb5f08b1dd13430cd27ecb4f2ad31ad7 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sun, 31 May 2026 16:06:27 -0700 Subject: [PATCH] Rename git graph panel to commits (#4326) --- .../src/components/right-sidebar/GitHistoryPanel.tsx | 10 +++++----- .../src/components/right-sidebar/SourceControl.tsx | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx b/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx index 5442ebe9e..64e0c952f 100644 --- a/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx +++ b/src/renderer/src/components/right-sidebar/GitHistoryPanel.tsx @@ -295,7 +295,7 @@ export function GitHistoryPanel({ {!collapsed && (
- Graph + Commits {result && {count}} {result?.hasMore && +} @@ -327,7 +327,7 @@ export function GitHistoryPanel({ variant="ghost" size="icon-xs" className="my-auto h-auto w-auto p-0.5 text-muted-foreground hover:bg-transparent hover:text-muted-foreground dark:hover:bg-transparent [&_svg]:size-3" - aria-label="What are graph refs?" + aria-label="What are refs?" onClick={(event) => { event.stopPropagation() }} @@ -355,13 +355,13 @@ export function GitHistoryPanel({ } onRefresh() }} - aria-label="Refresh graph" + aria-label="Refresh commits" > - Refresh graph + Refresh commits
diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx index 1a40cb58d..9ea85f66b 100644 --- a/src/renderer/src/components/right-sidebar/SourceControl.tsx +++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx @@ -3610,7 +3610,7 @@ function SourceControlInner(): React.JSX.Element { if (gitHistoryRequestByWorktreeRef.current[worktreeId] !== requestId) { return } - const message = error instanceof Error ? error.message : 'Failed to load git graph' + const message = error instanceof Error ? error.message : 'Failed to load commits' setGitHistoryByWorktree((prev) => { const previous = prev[worktreeId] return { @@ -3650,7 +3650,7 @@ function SourceControlInner(): React.JSX.Element { useEffect(() => { // Why: history shells out to git. Defer the first load until the user - // expands Graph so source control stays cheap for large/remote repos. + // expands Commits so source control stays cheap for large/remote repos. if (!isBranchVisible || !isGitHistoryExpanded || !isGitHistoryVisible) { return }