Skip to content

Commit e95a0cc

Browse files
juliusmarmingecodex
andcommitted
fix mobile grouping preference handoff
Co-authored-by: codex <[email protected]>
1 parent b38c09f commit e95a0cc

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/mobile/src/App.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ if (process.env.EXPO_PUBLIC_SHOWCASE === "1") {
2929
prepareNativeShowcaseCapture();
3030
}
3131

32+
void SplashScreen.preventAutoHideAsync().catch(() => {
33+
// The native module can be unavailable in non-native test environments.
34+
});
35+
3236
const appLinking = {
3337
prefixes: [Linking.createURL("/"), "t3code://", "t3code-dev://", "t3code-preview://"],
3438
// The Expo dev client launches the app via

‎apps/mobile/src/features/home/home-list-options.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ describe("home list options", () => {
2424
expect(
2525
hasCustomHomeListOptions({ ...defaults, selectedEnvironmentId: "environment-1" as never }),
2626
).toBe(true);
27-
expect(hasCustomHomeListOptions({ ...defaults, projectGroupingMode: "separate" })).toBe(true);
2827
expect(
2928
hasCustomHomeListOptions({ ...defaults, selectedProjectKey: "environment-1:project-1" }),
3029
).toBe(true);

‎apps/mobile/src/features/home/home-list-options.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export function HomeListOptionsProvider({
8888
export function hasCustomHomeListOptions(
8989
options: HomeListOptions & {
9090
readonly selectedProjectKey?: string | null;
91-
readonly projectGroupingMode?: SidebarProjectGroupingMode;
9291
},
9392
): boolean {
9493
const defaultProjectSortOrder =
@@ -97,7 +96,6 @@ export function hasCustomHomeListOptions(
9796
: DEFAULT_SIDEBAR_PROJECT_SORT_ORDER;
9897
return (
9998
options.selectedEnvironmentId !== null ||
100-
(options.projectGroupingMode !== undefined && options.projectGroupingMode !== "repository") ||
10199
(options.selectedProjectKey !== null && options.selectedProjectKey !== undefined) ||
102100
options.projectSortOrder !== defaultProjectSortOrder ||
103101
options.threadSortOrder !== DEFAULT_SIDEBAR_THREAD_SORT_ORDER

0 commit comments

Comments
 (0)