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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-08-19 00:20:52 +00:00
committed by GitHub
parent 4ac938ddec
commit 2163f7f8ca
6 changed files with 9 additions and 7 deletions
@@ -692,6 +692,7 @@ registry.register(
const hideOnlyPanes = registry
.getArea('panes')
.filter(c => (c.data as { hideOnly?: boolean } | undefined)?.hideOnly)
const wanted = new Set(hideOnlyPanes.map(c => c.id))
for (const [paneId, dispose] of stripTabToggles) {
@@ -106,9 +106,7 @@ describe('hide-only strip tabs', () => {
registerPane('sessions', { placement: 'left', hideOnly: true })
registerPane('hermes-bots:pane', { placement: 'left', hideOnly: true })
registerPane('session-tile:x', { placement: 'main' })
$layoutTree.set(
group(['sessions', 'hermes-bots:pane', 'session-tile:x'], { active: 'sessions', id: 'g-mixed' })
)
$layoutTree.set(group(['sessions', 'hermes-bots:pane', 'session-tile:x'], { active: 'sessions', id: 'g-mixed' }))
expect(isHideOnlyPane('sessions')).toBe(true)
// Close-others measured from the tile must not sweep standing chrome.
@@ -336,8 +336,7 @@ export function TreeGroup({
// close gesture: its tabs are shown/hidden (zone menu, ⌘K), never closed —
// an accidental ✕ on standing chrome removed Bot Mode until the next launch.
const closeableTab = (paneId: string) =>
!paneChrome(paneFor(paneId)).hideOnly &&
(!paneChrome(paneFor(paneId)).uncloseable || panesWithCloser.has(paneId))
!paneChrome(paneFor(paneId)).hideOnly && (!paneChrome(paneFor(paneId)).uncloseable || panesWithCloser.has(paneId))
// A pane's own live label when it has one, else its registered string.
const tabLabel = (paneId: string) => paneChrome(paneFor(paneId)).tabTitle?.() ?? paneFor(paneId)?.title ?? paneId
@@ -1903,11 +1903,13 @@ export function resetLayoutTree() {
// placement back to the app (user-placed pins cleared).
saveDismissed(new Set())
saveUserPlaced(new Set())
// Hide-only chrome tabs (sessions / Bots) come back too — clear their
// persisted hides through the setter so $hiddenTreePanes agrees.
for (const paneId of [...$hiddenStripTabs.get()]) {
setStripTabHidden(paneId, false)
}
$layoutTree.set(defaultTree)
markActivePreset('default')
// Owners PRE-PLACE their panes into the fresh default (session tiles stack
+2 -1
View File
@@ -2330,7 +2330,8 @@ export const ar = defineLocale({
showStripTab: title => `إظهار ${title}`,
hideStripTab: title => `إخفاء ${title}`,
lastTabKeptTitle: 'يبقى آخر تبويب',
lastTabKeptBody: 'تحتاج هذه المنطقة إلى تبويب مرئي واحد على الأقل. أظهر تبويبا آخر أولا، أو اطو الشريط الجانبي بأكمله.',
lastTabKeptBody:
'تحتاج هذه المنطقة إلى تبويب مرئي واحد على الأقل. أظهر تبويبا آخر أولا، أو اطو الشريط الجانبي بأكمله.',
toggleStripTab: title => `تبديل تبويب ${title}`,
minimize: 'تصغير',
restore: 'استعادة',
+2 -1
View File
@@ -2621,7 +2621,8 @@ export const ja = defineLocale({
showStripTab: title => `${title} を表示`,
hideStripTab: title => `${title} を隠す`,
lastTabKeptTitle: '最後のタブは残ります',
lastTabKeptBody: 'このゾーンには少なくとも 1 つの表示タブが必要です。先に別のタブを表示するか、サイドバー全体を折りたたんでください。',
lastTabKeptBody:
'このゾーンには少なくとも 1 つの表示タブが必要です。先に別のタブを表示するか、サイドバー全体を折りたたんでください。',
toggleStripTab: title => `${title} タブを切り替え`,
minimize: '最小化',
restore: '復元',