From 304a3fbdf6bc419a45aa6be49b63cdfd95a1de5c Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 10 Nov 2026 15:44:14 -0800 Subject: [PATCH] Keep checkout row metadata and fallback labels stable --- .../components/settings/navigation/SettingsProjectTree.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/components/settings/navigation/SettingsProjectTree.tsx b/src/renderer/src/components/settings/navigation/SettingsProjectTree.tsx index 829661b1f7a..1d2c77bd2c2 100644 --- a/src/renderer/src/components/settings/navigation/SettingsProjectTree.tsx +++ b/src/renderer/src/components/settings/navigation/SettingsProjectTree.tsx @@ -13,10 +13,7 @@ import { RepoIconGlyph } from '../../repo/repo-icon' import { RepoForkIndicator } from '../../repo/repo-fork-indicator' import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip' -export type RepoNavSection = Pick< - SettingsNavSection, - 'id' | 'title' | 'badgeColor' | 'repoIcon' | 'upstream' | 'isRemote' | 'projectCopy' -> +export type RepoNavSection = Omit function checkoutDisplayPath(path: string): string { // Recognized per-user roots belong to the checkout's host, not the renderer's host. @@ -73,7 +70,7 @@ export function SettingsProjectTree({ const renderRow = (section: RepoNavSection, child: boolean): React.JSX.Element => { const copy = child ? section.projectCopy : undefined const active = activeSectionId === section.id - const name = copy ? basename(copy.path) || section.title : section.title + const name = copy ? basename(copy.path) || copy.projectTitle : section.title const hostLabel = copy ? (hostLabels.get(copy.hostId) ?? getExecutionHostLabel(copy.hostId)) : ''