From 29e3983fa879186b2122bd6779a2deb266f4acc5 Mon Sep 17 00:00:00 2001 From: nousbot-eng Date: Fri, 17 Jul 2026 14:44:45 -0400 Subject: [PATCH] fmt(js): `npm run fix` on merge (#66457) Co-authored-by: github-actions[bot] --- .../src/app/chat/composer/model-pill.test.tsx | 7 +------ .../src/app/chat/composer/model-pill.tsx | 4 +++- apps/desktop/src/app/chat/index.tsx | 4 +--- apps/desktop/src/store/review.test.ts | 17 ++++++++++------- 4 files changed, 15 insertions(+), 17 deletions(-) diff --git a/apps/desktop/src/app/chat/composer/model-pill.test.tsx b/apps/desktop/src/app/chat/composer/model-pill.test.tsx index 165441dbd46..271a235b21c 100644 --- a/apps/desktop/src/app/chat/composer/model-pill.test.tsx +++ b/apps/desktop/src/app/chat/composer/model-pill.test.tsx @@ -2,12 +2,7 @@ import { cleanup, render, screen } from '@testing-library/react' import { afterEach, describe, expect, it } from 'vitest' import type { ChatBarState } from '@/app/chat/composer/types' -import { - $activeSessionId, - $currentModel, - setCurrentModel, - setCurrentModelSource -} from '@/store/session' +import { $activeSessionId, $currentModel, setCurrentModel, setCurrentModelSource } from '@/store/session' import { ModelPill } from './model-pill' diff --git a/apps/desktop/src/app/chat/composer/model-pill.tsx b/apps/desktop/src/app/chat/composer/model-pill.tsx index e232616ceda..8c225cd0f28 100644 --- a/apps/desktop/src/app/chat/composer/model-pill.tsx +++ b/apps/desktop/src/app/chat/composer/model-pill.tsx @@ -90,7 +90,9 @@ export function ModelPill({ ) : PILL - const baseTitle = currentProvider ? copy.modelTitle(currentProvider, currentModel || copy.modelNone) : copy.switchModel + const baseTitle = currentProvider + ? copy.modelTitle(currentProvider, currentModel || copy.modelNone) + : copy.switchModel const title = pinnedOverride ? `${baseTitle} — ${copy.modelPinned}` : baseTitle if (!model.modelMenuContent) { diff --git a/apps/desktop/src/app/chat/index.tsx b/apps/desktop/src/app/chat/index.tsx index 0d9ea963a73..b47f0dfa990 100644 --- a/apps/desktop/src/app/chat/index.tsx +++ b/apps/desktop/src/app/chat/index.tsx @@ -139,9 +139,7 @@ function ChatHeader({ 'calc(100vw - var(--titlebar-content-inset,0px) - var(--titlebar-tools-right) - var(--titlebar-tools-width) - 1.5rem)' }} > - {showProfileTag && ( - - )} + {showProfileTag && } { await createOrOpenPr() expect(review.createPr).not.toHaveBeenCalled() - expect((window.hermesDesktop as unknown as { openExternal: ReturnType }).openExternal).toHaveBeenCalledWith( - 'https://example.com/pr/9' - ) + expect( + (window.hermesDesktop as unknown as { openExternal: ReturnType }).openExternal + ).toHaveBeenCalledWith('https://example.com/pr/9') }) it('createOrOpenPr creates a PR when none exists, then opens it', async () => { @@ -365,15 +365,18 @@ describe('ship flow', () => { await createOrOpenPr() expect(review.createPr).toHaveBeenCalledWith('/repo') - expect((window.hermesDesktop as unknown as { openExternal: ReturnType }).openExternal).toHaveBeenCalledWith( - 'https://example.com/pr/new' - ) + expect( + (window.hermesDesktop as unknown as { openExternal: ReturnType }).openExternal + ).toHaveBeenCalledWith('https://example.com/pr/new') }) }) describe('refreshShipInfo', () => { it('populates ship info from the bridge', async () => { - const info: HermesReviewShipInfo = { ghReady: true, pr: { url: 'https://example.com/pr/3' } } as HermesReviewShipInfo + const info: HermesReviewShipInfo = { + ghReady: true, + pr: { url: 'https://example.com/pr/3' } + } as HermesReviewShipInfo stubReview({ shipInfo: vi.fn(async () => info) }) await refreshShipInfo()