From 59d330fd15a692b439219e505bc704fcde0b2b6f Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 18:28:32 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#103110) Co-authored-by: github-actions[bot] --- apps/desktop/electron/main.ts | 2 ++ apps/desktop/electron/plugin-compat-notice.test.ts | 1 + apps/desktop/electron/plugin-compat-notice.ts | 3 +++ apps/desktop/src/components/ui/pane-tab.test.tsx | 2 ++ apps/desktop/src/components/ui/pane-tab.tsx | 3 ++- 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts index 90ec7faf49..fb7fd8987c 100644 --- a/apps/desktop/electron/main.ts +++ b/apps/desktop/electron/main.ts @@ -6733,6 +6733,7 @@ async function showPluginCompatNoticeOnce() { if (!mainWindow || mainWindow.isDestroyed()) { return } + let notice try { @@ -6746,6 +6747,7 @@ async function showPluginCompatNoticeOnce() { if (!notice) { return } + pluginCompatNoticeShown = true rememberLog(`[plugins] compat notice shown (${notice.key})`) diff --git a/apps/desktop/electron/plugin-compat-notice.test.ts b/apps/desktop/electron/plugin-compat-notice.test.ts index e4032690ed..e474879f15 100644 --- a/apps/desktop/electron/plugin-compat-notice.test.ts +++ b/apps/desktop/electron/plugin-compat-notice.test.ts @@ -73,6 +73,7 @@ test('dismissal is remembered for the same report and forgotten for a different ...REPORT, plugins: { ...REPORT.plugins, gamma: [{ file: 'g.py', line: 1, old: 'x.y', new: 'z.y' }] } } + fs.writeFileSync(path.join(home, REPORT_FILE), JSON.stringify(grown)) const second = pendingNotice(home, userData) assert.ok(second) diff --git a/apps/desktop/electron/plugin-compat-notice.ts b/apps/desktop/electron/plugin-compat-notice.ts index 2e01f3e8b6..5cd56f3f60 100644 --- a/apps/desktop/electron/plugin-compat-notice.ts +++ b/apps/desktop/electron/plugin-compat-notice.ts @@ -87,6 +87,7 @@ export function recordDismissed(userData: string, key: string): void { if (!keys.includes(key)) { keys.push(key) } + fs.mkdirSync(userData, { recursive: true }) fs.writeFileSync(file, JSON.stringify({ keys: keys.slice(-20) }, null, 2)) } @@ -105,11 +106,13 @@ export function pendingNotice(hermesHome: string, userData: string): PendingNoti if (!report) { return null } + const key = reportKey(report) if (wasDismissed(userData, key)) { return null } + const names = Object.keys(report.plugins).sort() const list = names diff --git a/apps/desktop/src/components/ui/pane-tab.test.tsx b/apps/desktop/src/components/ui/pane-tab.test.tsx index fbd11c552f..1e297761b4 100644 --- a/apps/desktop/src/components/ui/pane-tab.test.tsx +++ b/apps/desktop/src/components/ui/pane-tab.test.tsx @@ -136,6 +136,7 @@ describe('PaneTab hover close button', () => { BROWSER ) + const withClose = classesOf('BROWSER') closeable.unmount() @@ -162,6 +163,7 @@ describe('PaneTab hover close button', () => { BROWSER ) + const withClose = classesOf('BROWSER') railed.unmount() diff --git a/apps/desktop/src/components/ui/pane-tab.tsx b/apps/desktop/src/components/ui/pane-tab.tsx index b115563a66..51a8893f74 100644 --- a/apps/desktop/src/components/ui/pane-tab.tsx +++ b/apps/desktop/src/components/ui/pane-tab.tsx @@ -36,7 +36,8 @@ const TAB_CLOSEABLE = 'min-w-13' const TAB_VERTICAL = 'w-full max-h-48 justify-center not-first:border-t not-first:border-t-(--ui-stroke-quaternary) [writing-mode:vertical-rl]' -const TAB_ACTIVE = 'h-full text-foreground [--tab-surface:var(--pane-tab-active-bg,var(--ui-editor-surface-background))]' +const TAB_ACTIVE = + 'h-full text-foreground [--tab-surface:var(--pane-tab-active-bg,var(--ui-editor-surface-background))]' // Horizontal only: the active tab is the sole seam on the strip — a // theme-primary underline drawn as an inset shadow in its own last pixel row,