fmt(js): npm run fix on merge (#74814)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-30 12:31:53 +00:00 committed by GitHub
parent 3eebb99ca8
commit 84d71fb88f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 14 deletions

View file

@ -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
)

View file

@ -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

View file

@ -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

View file

@ -232,6 +232,7 @@ export function filterVisibleProjects<T extends { id: string; isAuto?: boolean }
}
const dismissed = new Set(dismissedIds)
return projects.filter(project => !(project.isAuto && dismissed.has(project.id)))
}