From 1c8246a60edfff8ca9ea03793505bb8d9e4a6b23 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Fri, 27 Mar 2026 11:07:15 -0400 Subject: [PATCH] style(ui): format files for enforced prettier rules --- .../cliproxy/extended-context-toggle.tsx | 4 +++- .../account/add-account-dialog.test.tsx | 16 ++++++---------- .../provider-editor/use-provider-editor.test.tsx | 4 +--- .../ui/code-editor-usage-contract.test.ts | 16 ++++++++-------- ui/tests/unit/components/ui/code-editor.test.tsx | 6 +----- 5 files changed, 19 insertions(+), 27 deletions(-) diff --git a/ui/src/components/cliproxy/extended-context-toggle.tsx b/ui/src/components/cliproxy/extended-context-toggle.tsx index 435d3d90..c695e36b 100644 --- a/ui/src/components/cliproxy/extended-context-toggle.tsx +++ b/ui/src/components/cliproxy/extended-context-toggle.tsx @@ -73,7 +73,9 @@ export function ExtendedContextToggle({
-

Applies the explicit [1m] long-context suffix to compatible saved mappings.

+

+ Applies the explicit [1m] long-context suffix to compatible saved mappings. +

{behaviorHint}

CCS only saves [1m]. Provider pricing and entitlement are separate, and diff --git a/ui/tests/unit/components/account/add-account-dialog.test.tsx b/ui/tests/unit/components/account/add-account-dialog.test.tsx index b56aa08a..e39e271a 100644 --- a/ui/tests/unit/components/account/add-account-dialog.test.tsx +++ b/ui/tests/unit/components/account/add-account-dialog.test.tsx @@ -68,9 +68,7 @@ describe('AddAccountDialog power user mode', () => { it('skips the Gemini typed acknowledgement when power user mode is enabled', async () => { fetchMock.mockResolvedValue(createJsonResponse({ antigravityAckBypass: true })); - render( - - ); + render(); await waitFor(() => expect(fetchMock).toHaveBeenCalledWith('/api/settings/auth/antigravity-risk') @@ -95,9 +93,7 @@ describe('AddAccountDialog power user mode', () => { it('keeps the Gemini typed acknowledgement when power user mode is disabled', async () => { fetchMock.mockResolvedValue(createJsonResponse({ antigravityAckBypass: false })); - render( - - ); + render(); await waitFor(() => expect(fetchMock).toHaveBeenCalledWith('/api/settings/auth/antigravity-risk') @@ -114,9 +110,7 @@ describe('AddAccountDialog power user mode', () => { it('surfaces a power user mode fetch failure and fails closed for Gemini', async () => { fetchMock.mockRejectedValue(new Error('network down')); - render( - - ); + render(); await waitFor(() => expect(toast.error).toHaveBeenCalledWith( @@ -125,7 +119,9 @@ describe('AddAccountDialog power user mode', () => { ); expect( - screen.getByText('Failed to load power user mode settings. Check Settings > Proxy and try again.') + screen.getByText( + 'Failed to load power user mode settings. Check Settings > Proxy and try again.' + ) ).toBeInTheDocument(); expect(screen.getByText(/Type exact phrase to continue/i)).toBeInTheDocument(); expect(screen.getByRole('button', { name: 'Authenticate' })).toBeDisabled(); diff --git a/ui/tests/unit/components/cliproxy/provider-editor/use-provider-editor.test.tsx b/ui/tests/unit/components/cliproxy/provider-editor/use-provider-editor.test.tsx index 31391e58..c1546fb2 100644 --- a/ui/tests/unit/components/cliproxy/provider-editor/use-provider-editor.test.tsx +++ b/ui/tests/unit/components/cliproxy/provider-editor/use-provider-editor.test.tsx @@ -11,9 +11,7 @@ function createJsonResponse(body: Record, status = 200): Respon }); } -const wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const wrapper = ({ children }: { children: ReactNode }) => {children}; describe('useProviderEditor', () => { beforeEach(() => { diff --git a/ui/tests/unit/components/ui/code-editor-usage-contract.test.ts b/ui/tests/unit/components/ui/code-editor-usage-contract.test.ts index 57c638c6..f38a0dc8 100644 --- a/ui/tests/unit/components/ui/code-editor-usage-contract.test.ts +++ b/ui/tests/unit/components/ui/code-editor-usage-contract.test.ts @@ -51,15 +51,15 @@ const boundedLayoutContracts = [ ] as const; describe('bounded CodeEditor consumers', () => { - it.each(boundedConsumers)('$file opts into fill-parent mode for every bounded editor', ({ - file, - expectedCount, - }) => { - const source = readFileSync(resolve(process.cwd(), file), 'utf8'); - const matches = source.match(/heightMode="fill-parent"/g) ?? []; + it.each(boundedConsumers)( + '$file opts into fill-parent mode for every bounded editor', + ({ file, expectedCount }) => { + const source = readFileSync(resolve(process.cwd(), file), 'utf8'); + const matches = source.match(/heightMode="fill-parent"/g) ?? []; - expect(matches).toHaveLength(expectedCount); - }); + expect(matches).toHaveLength(expectedCount); + } + ); it.each(boundedLayoutContracts)( '$file keeps bounded editor ancestors shrinkable', diff --git a/ui/tests/unit/components/ui/code-editor.test.tsx b/ui/tests/unit/components/ui/code-editor.test.tsx index 67e8b4c8..e19f6df4 100644 --- a/ui/tests/unit/components/ui/code-editor.test.tsx +++ b/ui/tests/unit/components/ui/code-editor.test.tsx @@ -50,11 +50,7 @@ describe('CodeEditor', () => { it('preserves content mode as the default layout contract', () => { const { container } = render( - + ); expect(container.querySelector('[data-slot="code-editor-viewport"]')).not.toBeInTheDocument();