diff --git a/apps/mobile/src/components/organization/credit-activity-screen.mounted.test.tsx b/apps/mobile/src/components/organization/credit-activity-screen.mounted.test.tsx index b59bcafe20..cf07767863 100644 --- a/apps/mobile/src/components/organization/credit-activity-screen.mounted.test.tsx +++ b/apps/mobile/src/components/organization/credit-activity-screen.mounted.test.tsx @@ -344,7 +344,7 @@ describe('OrganizationCreditActivityScreen pagination', () => { const texts = await renderScreen(); expect(texts).toContain('Top-up'); - expect(texts).toContain("Couldn't load more."); + expect(texts).toContain("Couldn't load more"); expect(texts).not.toContain('Older credit activity is available.'); const retry = buttons.rendered.find(button => button.accessibilityLabel === 'Retry'); @@ -383,7 +383,7 @@ describe('OrganizationCreditActivityScreen pagination', () => { expect(texts).toContain('Top-up'); expect(texts).toContain('Older credit activity is available.'); - expect(texts).not.toContain("Couldn't load more."); + expect(texts).not.toContain("Couldn't load more"); expect(buttons.rendered.some(button => button.accessibilityLabel === 'Load more')).toBe(true); }); }); diff --git a/apps/mobile/src/components/organization/invoices-screen.mounted.test.tsx b/apps/mobile/src/components/organization/invoices-screen.mounted.test.tsx index 4253a7c429..4238a04490 100644 --- a/apps/mobile/src/components/organization/invoices-screen.mounted.test.tsx +++ b/apps/mobile/src/components/organization/invoices-screen.mounted.test.tsx @@ -331,7 +331,7 @@ describe('OrganizationInvoicesScreen pagination', () => { const texts = await renderScreen(); expect(texts).toContain('INV-0001'); - expect(texts).toContain("Couldn't load more."); + expect(texts).toContain("Couldn't load more"); expect(texts).not.toContain('Older invoices are available.'); const retry = buttons.rendered.find(button => button.accessibilityLabel === 'Retry'); @@ -370,7 +370,7 @@ describe('OrganizationInvoicesScreen pagination', () => { expect(texts).toContain('INV-0001'); expect(texts).toContain('Older invoices are available.'); - expect(texts).not.toContain("Couldn't load more."); + expect(texts).not.toContain("Couldn't load more"); expect(buttons.rendered.some(button => button.accessibilityLabel === 'Load more')).toBe(true); }); }); diff --git a/apps/mobile/src/components/pr-review/merge/pr-merge-sheet.tsx b/apps/mobile/src/components/pr-review/merge/pr-merge-sheet.tsx index d9b1067fe1..6c9539bc7f 100644 --- a/apps/mobile/src/components/pr-review/merge/pr-merge-sheet.tsx +++ b/apps/mobile/src/components/pr-review/merge/pr-merge-sheet.tsx @@ -144,7 +144,7 @@ export function staleHeadRejectionMessage(error: unknown): string | null { * through the existing term-parameterized key; GitHub keeps the exact * pre-s6 copy. */ -export function mergeForbiddenCopy( +function mergeForbiddenCopy( platform: ProviderPrPlatform | undefined, t: ReturnType['t'] ): string { diff --git a/apps/mobile/src/lib/hooks/use-settings-back-guard.mounted.test.tsx b/apps/mobile/src/lib/hooks/use-settings-back-guard.mounted.test.tsx index 766decdec9..15eb067fc0 100644 --- a/apps/mobile/src/lib/hooks/use-settings-back-guard.mounted.test.tsx +++ b/apps/mobile/src/lib/hooks/use-settings-back-guard.mounted.test.tsx @@ -132,7 +132,7 @@ describe('useSettingsBackGuard', () => { }); }); - it('shows Save / Discard / Keep Editing for a dirty-valid screen', () => { + it('shows Save / Discard / Keep editing for a dirty-valid screen', () => { const { renderer } = mountGuard(true, true, noOpSave); triggerPreventRemove(); @@ -141,7 +141,7 @@ describe('useSettingsBackGuard', () => { expect(lastAlertButtons()?.map(button => button.text)).toEqual([ 'Save changes', 'Discard', - 'Keep Editing', + 'Keep editing', ]); act(() => { @@ -149,12 +149,12 @@ describe('useSettingsBackGuard', () => { }); }); - it('shows Discard / Keep Editing for a dirty-invalid screen', () => { + it('shows Discard / Keep editing for a dirty-invalid screen', () => { const { renderer } = mountGuard(true, false, noOpSave); triggerPreventRemove(); expect(alertMock).toHaveBeenCalledTimes(1); - expect(lastAlertButtons()?.map(button => button.text)).toEqual(['Discard', 'Keep Editing']); + expect(lastAlertButtons()?.map(button => button.text)).toEqual(['Discard', 'Keep editing']); act(() => { renderer.unmount(); @@ -233,14 +233,14 @@ describe('useSettingsBackGuard', () => { }); }); - it('Keep Editing leaves the screen untouched', () => { + it('Keep editing leaves the screen untouched', () => { const onSave = vi.fn(async () => { await Promise.resolve(); }); const { renderer } = mountGuard(true, true, onSave); triggerPreventRemove(); - const keep = lastAlertButtons()?.find(button => button.text === 'Keep Editing'); + const keep = lastAlertButtons()?.find(button => button.text === 'Keep editing'); // The cancel button carries no handler: dismissing it must not save or leave. expect(keep?.onPress).toBeUndefined(); expect(onSave).not.toHaveBeenCalled(); diff --git a/apps/mobile/src/lib/pr-review/use-check-provider-connection.ts b/apps/mobile/src/lib/pr-review/use-check-provider-connection.ts index abf336f341..38c0460b46 100644 --- a/apps/mobile/src/lib/pr-review/use-check-provider-connection.ts +++ b/apps/mobile/src/lib/pr-review/use-check-provider-connection.ts @@ -13,7 +13,7 @@ import { toast } from 'sonner-native'; import { useTRPC } from '@/lib/trpc'; -export type ProviderConnectionPlatform = 'gitlab' | 'bitbucket'; +type ProviderConnectionPlatform = 'gitlab' | 'bitbucket'; export type CheckProviderConnectionInput = { platform: ProviderConnectionPlatform; diff --git a/apps/mobile/src/lib/pr-review/use-pr-review-mutations.ts b/apps/mobile/src/lib/pr-review/use-pr-review-mutations.ts index cae7de5ae1..f32f2356d5 100644 --- a/apps/mobile/src/lib/pr-review/use-pr-review-mutations.ts +++ b/apps/mobile/src/lib/pr-review/use-pr-review-mutations.ts @@ -186,7 +186,7 @@ export type SubmitReviewComment = NonNullable[num * user tapped, with `startLine` marking the first line of a multi-line * range ending at `line`. Absent, the comment is a top-level note. */ -export type ProviderCommentAnchor = { +type ProviderCommentAnchor = { path: string; side: 'LEFT' | 'RIGHT'; line: number; @@ -216,7 +216,7 @@ export function formatPendingCommentBody(item: { } /** One anchored item in a provider `submitReview` batch (c3). */ -export type ProviderSubmitReviewComment = ProviderCommentAnchor & { body: string }; +type ProviderSubmitReviewComment = ProviderCommentAnchor & { body: string }; /** * The provider `submitReview` intent the submit sheet builds: every pending