fix mobile grouping preference handoff
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
b38c09fa07
commit
e95a0cc3cc
3 files changed
+4
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user