From 84d71fb88f088d4939ea30e88a867a9b05be9354 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 12:31:53 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#74814) Co-authored-by: github-actions[bot] --- apps/desktop/src/app/chat/sidebar/index.tsx | 25 +++++++++---------- .../desktop/src/app/command-palette/index.tsx | 11 +++++++- .../pane-shell/tree/remove-pane.test.ts | 1 + apps/desktop/src/store/layout.ts | 1 + 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/apps/desktop/src/app/chat/sidebar/index.tsx b/apps/desktop/src/app/chat/sidebar/index.tsx index 8ddc72ad835..a2bb3455bae 100644 --- a/apps/desktop/src/app/chat/sidebar/index.tsx +++ b/apps/desktop/src/app/chat/sidebar/index.tsx @@ -611,19 +611,18 @@ export function ChatSidebar({ } const sorted = sortProjectsForOverview( - filterVisibleProjects(projectTree, dismissedAutoProjects) - .map(project => - excludeProjectSessions( - { - ...project, - // Home is synthetic, so its name is ours to translate — every other - // label is a repo basename or a name the user typed. - label: project.isNoProject ? s.projects.home : project.label, - repos: orderRepos(project.repos) - }, - isPinnedSession - ) - ), + filterVisibleProjects(projectTree, dismissedAutoProjects).map(project => + excludeProjectSessions( + { + ...project, + // Home is synthetic, so its name is ours to translate — every other + // label is a repo basename or a name the user typed. + label: project.isNoProject ? s.projects.home : project.label, + repos: orderRepos(project.repos) + }, + isPinnedSession + ) + ), activeProjectId ) diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsx index e643efef513..27ace696942 100644 --- a/apps/desktop/src/app/command-palette/index.tsx +++ b/apps/desktop/src/app/command-palette/index.tsx @@ -942,7 +942,16 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) { // live state through `detail()`, so the groups must rebuild after a select // that kept the palette open — eslint only sees an unused dep. // eslint-disable-next-line react-hooks/exhaustive-deps - }, [contributedItems, dismissedAutoProjects, go, projectTree, selectTick, settingsSectionLabel, t, updateVersionLabel]) + }, [ + contributedItems, + dismissedAutoProjects, + go, + projectTree, + selectTick, + settingsSectionLabel, + t, + updateVersionLabel + ]) // The long, granular lists (settings fields, API keys, MCP servers, archived // chats) only surface once the user types — otherwise they'd bury the diff --git a/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts b/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts index b91b3af4f80..07f1a236b59 100644 --- a/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts +++ b/apps/desktop/src/components/pane-shell/tree/remove-pane.test.ts @@ -33,6 +33,7 @@ describe('removePane close-neighbor selection', () => { group(['workspace'], { active: 'workspace', id: 'main' }), group(['tile:1', 'tile:2', 'tile:3'], { active: 'tile:2', id: 'stack' }) ]) + const next = removePane(tree, 'tile:2') const stack = next ? findGroup(next, 'stack') : null diff --git a/apps/desktop/src/store/layout.ts b/apps/desktop/src/store/layout.ts index 89a39d8d57d..ba9a078920b 100644 --- a/apps/desktop/src/store/layout.ts +++ b/apps/desktop/src/store/layout.ts @@ -232,6 +232,7 @@ export function filterVisibleProjects !(project.isAuto && dismissed.has(project.id))) }