Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"react-native-pdf-jsi": "6.1.0",
"react-native-reanimated": "4.8.0",
"react-native-safe-area-context": "~5.11.1",
"react-native-screens": "file:deps/react-native-screens-5.0.0-t3.62.tgz",
"react-native-screens": "file:deps/react-native-screens-5.0.0-t3.63.tgz",
"react-native-svg": "15.16.1",
"react-native-webview": "14.0.1",
"react-native-worklets": "0.14.0",
Expand Down
45 changes: 27 additions & 18 deletions apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import { threadSelectionDeferral } from "./deferred-navigation";
import { uuidv4 } from "../../lib/uuid";
import { EnvironmentId, ThreadId, type SidebarProjectGroupingMode } from "@t3tools/contracts";
import { useAtomValue } from "@effect/atom-react";
import { NavigationContext, NavigationRouteContext, useNavigation } from "@react-navigation/native";
import {
CommonActions,
NavigationContext,
NavigationRouteContext,
useNavigation,
} from "@react-navigation/native";
import {
use,
useEffect,
Expand Down Expand Up @@ -637,23 +642,27 @@ function AdaptiveWorkspaceLayoutContent(
.filter((environment) => environment.connectionState === "connected")
.map((environment) => environment.environmentId),
);
handleSelectThreadRoute(
newTaskDestination({
projects,
requestId: uuidv4(),
useLastProject: saved?.useLastProjectForNewThreads,
currentProject: environmentId && projectId ? { environmentId, projectId } : undefined,
filteredProject: filteredScope
? newTaskFilteredProject(
filteredScope,
listEnvironmentId,
connectedEnvironmentIds,
saved?.lastThreadProject,
)
: undefined,
lastProject: saved?.lastThreadProject,
}),
);
const destination = newTaskDestination({
projects,
requestId: uuidv4(),
useLastProject: saved?.useLastProjectForNewThreads,
currentProject: environmentId && projectId ? { environmentId, projectId } : undefined,
filteredProject: filteredScope
? newTaskFilteredProject(
filteredScope,
listEnvironmentId,
connectedEnvironmentIds,
saved?.lastThreadProject,
)
: undefined,
lastProject: saved?.lastThreadProject,
});
// Without a project the draft would only push the picker over itself a frame later; open it directly.
if (destination.draft.projectId === undefined) {
navigation.dispatch(CommonActions.navigate("NewTaskProject"));
return;
}
handleSelectThreadRoute(destination);
};

useHardwareKeyboardCommand("newTask", () => {
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading