From 4a526c0d7dc0c13907a1e9008cd1e8b8d6ed3ff3 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:01:41 -0700 Subject: [PATCH] Rename WORKTREES to WORKSPACES in sidebar (#576) * chore: rename worktrees to workspaces in sidebar * test: document max-lines exception for worktree slice tests --- src/renderer/src/components/sidebar/SidebarHeader.tsx | 2 +- src/renderer/src/store/slices/worktrees.test.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/sidebar/SidebarHeader.tsx b/src/renderer/src/components/sidebar/SidebarHeader.tsx index f1a9e2865..a7e893841 100644 --- a/src/renderer/src/components/sidebar/SidebarHeader.tsx +++ b/src/renderer/src/components/sidebar/SidebarHeader.tsx @@ -47,7 +47,7 @@ const SidebarHeader = React.memo(function SidebarHeader() { return (
- Worktrees + Workspaces
diff --git a/src/renderer/src/store/slices/worktrees.test.ts b/src/renderer/src/store/slices/worktrees.test.ts index 131bb7ba4..32c497add 100644 --- a/src/renderer/src/store/slices/worktrees.test.ts +++ b/src/renderer/src/store/slices/worktrees.test.ts @@ -1,4 +1,7 @@ -/* eslint-disable max-lines */ +/* eslint-disable max-lines -- + * Why: this slice test keeps the worktree store scenarios in one file so the + * shared mock store setup stays consistent across closely related behaviors. + */ import { beforeEach, describe, expect, it, vi } from 'vitest' import { create } from 'zustand' import type { AppState } from '../types'