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
29 prepareNativeShowcaseCapture();29 prepareNativeShowcaseCapture();
30}30}
31 31
32void SplashScreen.preventAutoHideAsync().catch(() => {
33 // The native module can be unavailable in non-native test environments.
34});
35
32const appLinking = {36const appLinking = {
33 prefixes: [Linking.createURL("/"), "t3code://", "t3code-dev://", "t3code-preview://"],37 prefixes: [Linking.createURL("/"), "t3code://", "t3code-dev://", "t3code-preview://"],
34 // The Expo dev client launches the app via38 // 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
24 expect(24 expect(
25 hasCustomHomeListOptions({ ...defaults, selectedEnvironmentId: "environment-1" as never }),25 hasCustomHomeListOptions({ ...defaults, selectedEnvironmentId: "environment-1" as never }),
26 ).toBe(true);26 ).toBe(true);
27 expect(hasCustomHomeListOptions({ ...defaults, projectGroupingMode: "separate" })).toBe(true);
28 expect(27 expect(
29 hasCustomHomeListOptions({ ...defaults, selectedProjectKey: "environment-1:project-1" }),28 hasCustomHomeListOptions({ ...defaults, selectedProjectKey: "environment-1:project-1" }),
30 ).toBe(true);29 ).toBe(true);
apps/mobile/src/features/home/home-list-options.ts+0−2
@@ -88,7 +88,6 @@ export function HomeListOptionsProvider({ · 87 unmodified lines
88export function hasCustomHomeListOptions(88export function hasCustomHomeListOptions(
89 options: HomeListOptions & {89 options: HomeListOptions & {
90 readonly selectedProjectKey?: string | null;90 readonly selectedProjectKey?: string | null;
91 readonly projectGroupingMode?: SidebarProjectGroupingMode;
92 },91 },
93): boolean {92): boolean {
94 const defaultProjectSortOrder =93 const defaultProjectSortOrder =
@@ -97,7 +96,6 @@ export function hasCustomHomeListOptions( · 2 unmodified lines
97 : DEFAULT_SIDEBAR_PROJECT_SORT_ORDER;96 : DEFAULT_SIDEBAR_PROJECT_SORT_ORDER;
98 return (97 return (
99 options.selectedEnvironmentId !== null ||98 options.selectedEnvironmentId !== null ||
100 (options.projectGroupingMode !== undefined && options.projectGroupingMode !== "repository") ||
101 (options.selectedProjectKey !== null && options.selectedProjectKey !== undefined) ||99 (options.selectedProjectKey !== null && options.selectedProjectKey !== undefined) ||
102 options.projectSortOrder !== defaultProjectSortOrder ||100 options.projectSortOrder !== defaultProjectSortOrder ||
103 options.threadSortOrder !== DEFAULT_SIDEBAR_THREAD_SORT_ORDER101 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