History

fix mobile grouping preference handoff

Julius Marminge committed 3 months ago

Commit e95a0cc1 parent b38c09f3 files · +4 −3Browse files

Unified · Split

3 files
  1. apps/mobile/src/App.tsx +4 −0
  2. apps/mobile/src/features/home/home-list-options.test.ts +0 −1
  3. apps/mobile/src/features/home/home-list-options.ts +0 −2
apps/mobile/src/App.tsx+4−0
@@ -29,6 +29,10 @@ if (process.env.EXPO_PUBLIC_SHOWCASE === "1") { · 28 unmodified lines
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+0−1
@@ -24,7 +24,6 @@ describe("home list options", () => { · 23 unmodified lines
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+0−2
@@ -88,7 +88,6 @@ export function HomeListOptionsProvider({ · 87 unmodified lines
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( · 2 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t