diff --git a/apps/mobile/src/App.tsx b/apps/mobile/src/App.tsx index aa266441b4..06bd4bc577 100644 --- a/apps/mobile/src/App.tsx +++ b/apps/mobile/src/App.tsx @@ -29,6 +29,10 @@ if (process.env.EXPO_PUBLIC_SHOWCASE === "1") { prepareNativeShowcaseCapture(); } +void SplashScreen.preventAutoHideAsync().catch(() => { + // The native module can be unavailable in non-native test environments. +}); + const appLinking = { prefixes: [Linking.createURL("/"), "t3code://", "t3code-dev://", "t3code-preview://"], // The Expo dev client launches the app via diff --git a/apps/mobile/src/features/home/home-list-options.test.ts b/apps/mobile/src/features/home/home-list-options.test.ts index bc3c515214..ac3893956c 100644 --- a/apps/mobile/src/features/home/home-list-options.test.ts +++ b/apps/mobile/src/features/home/home-list-options.test.ts @@ -24,7 +24,6 @@ describe("home list options", () => { expect( hasCustomHomeListOptions({ ...defaults, selectedEnvironmentId: "environment-1" as never }), ).toBe(true); - expect(hasCustomHomeListOptions({ ...defaults, projectGroupingMode: "separate" })).toBe(true); expect( hasCustomHomeListOptions({ ...defaults, selectedProjectKey: "environment-1:project-1" }), ).toBe(true); diff --git a/apps/mobile/src/features/home/home-list-options.ts b/apps/mobile/src/features/home/home-list-options.ts index 11583e0977..d70e2537ba 100644 --- a/apps/mobile/src/features/home/home-list-options.ts +++ b/apps/mobile/src/features/home/home-list-options.ts @@ -88,7 +88,6 @@ export function HomeListOptionsProvider({ export function hasCustomHomeListOptions( options: HomeListOptions & { readonly selectedProjectKey?: string | null; - readonly projectGroupingMode?: SidebarProjectGroupingMode; }, ): boolean { const defaultProjectSortOrder = @@ -97,7 +96,6 @@ export function hasCustomHomeListOptions( : DEFAULT_SIDEBAR_PROJECT_SORT_ORDER; return ( options.selectedEnvironmentId !== null || - (options.projectGroupingMode !== undefined && options.projectGroupingMode !== "repository") || (options.selectedProjectKey !== null && options.selectedProjectKey !== undefined) || options.projectSortOrder !== defaultProjectSortOrder || options.threadSortOrder !== DEFAULT_SIDEBAR_THREAD_SORT_ORDER