@devries-cameron20 / t3code-1 / commits / 3433ba15fd
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): select the correct draft after adding a project (#24269)

Julius Marminge committed Oct 26, 2026 at 03:04 UTC 3433ba15fdfec1acaad273f293098e773fc97bee
9 files changed +685 -110
apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz
Binary files a/apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz and /dev/null differ
apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz
Binary files /dev/null and b/apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz differ
apps/mobile/package.json
+1 -1
@@ -134,7 +134,7 @@
134 "react-native-pdf-jsi": "5.0.0",
135 "react-native-reanimated": "4.7.1",
136 "react-native-safe-area-context": "~5.10.1",
137 - "react-native-screens": "file:deps/react-native-screens-5.0.0-t3.44.tgz",
137 + "react-native-screens": "file:deps/react-native-screens-5.0.0-t3.45.tgz",
138 "react-native-svg": "15.16.0",
139 "react-native-webview": "14.0.1",
140 "react-native-worklets": "0.13.0",
apps/mobile/src/features/projects/AddProjectScreen.test.ts
+548 -31
@@ -2,25 +2,61 @@ import * as NodeFS from "node:fs";
2 import * as NodeFSP from "node:fs/promises";
3 import * as NodeOS from "node:os";
4 import * as NodePath from "node:path";
5 +import * as NodeModule from "node:module";
6 +import type { EnvironmentConnectionPhase } from "@t3tools/client-runtime/connection";
7 +import { workspaceDetailRouter } from "../workspace/workspace-detail-selection";
8 +import type { NavigationState } from "@react-navigation/native";
9 import { AuthOrchestrationOperateScope, AuthSourceControlWriteScope } from "@t3tools/contracts";
10 import * as Cause from "effect/Cause";
11 import { AsyncResult } from "effect/reactivity";
8 -import { isValidElement, type ReactNode } from "react";
12 +import { act, createElement, isValidElement, type ReactNode } from "react";
13 +import { createRoot } from "react-dom/client";
14 import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";
15
16 const state = vi.hoisted(() => ({
17 scopes: new Set<string>(),
18 baseDirectory: "",
19 projects: [] as string[],
20 + existingProjects: [] as {
21 + environmentId: string;
22 + id: string;
23 + title: string;
24 + workspaceRoot: string;
25 + }[],
26 + createResult: null as Promise<unknown> | null,
27 + cloneResult: null as Promise<unknown> | null,
28 + createNewResult: null as Promise<unknown> | null,
29 + startCloneResult: null as Promise<unknown> | null,
30 + connectionStates: {} as Record<string, EnvironmentConnectionPhase>,
31 + newProjectsRoot: null as string | null,
32 + supportsCloneTracking: false,
33 + waitForProject: vi.fn(),
34 + dispatch: vi.fn(),
35 + alert: vi.fn(),
36 + navigationState: undefined as NavigationState | undefined,
37 + environments: [{ environmentId: "environment", environmentLabel: "Environment" }],
38 }));
39
17 -vi.mock("react", async (importOriginal) => ({
18 - ...(await importOriginal<typeof import("react")>()),
19 - useCallback: (callback: unknown) => callback,
20 - useMemo: (factory: () => unknown) => factory(),
21 - useState: (initial: unknown) => [typeof initial === "function" ? initial() : initial, () => {}],
22 - useRef: (current: unknown) => ({ current }),
23 - useEffect: () => {},
40 +function loadRouters() {
41 + const requireNavigation = NodeModule.createRequire(
42 + NodeModule.createRequire(import.meta.url).resolve("@react-navigation/native/package.json"),
43 + );
44 + return requireNavigation("@react-navigation/routers") as {
45 + StackRouter: typeof import("@react-navigation/native").StackRouter;
46 + StackActions: typeof import("@react-navigation/native").StackActions;
47 + CommonActions: typeof import("@react-navigation/native").CommonActions;
48 + };
49 +}
50 +
51 +vi.mock("../workspace/useSelectWorkspaceDetail", async () => {
52 + const { selectWorkspaceDetail } = await import("../workspace/workspace-detail-selection");
53 + return {
54 + useSelectWorkspaceDetail: () => (detail: Parameters<typeof selectWorkspaceDetail>[0]) =>
55 + state.dispatch(selectWorkspaceDetail(detail)),
56 + };
57 +});
58 +vi.mock("../../native/StackHeader", () => ({
59 + nativeHeaderScrollEdgeEffects: () => undefined,
60 }));
61 vi.mock("../../components/ui/NavigationRow", () => ({ NavigationRow: "NavigationRow" }));
62 vi.mock("../../components/ui/Button", () => ({ Button: "Button" }));
@@ -30,15 +66,30 @@ vi.mock("../../components/ui/ThemedSwitch", () => ({ ThemedSwitch: "Switch" }));
66 vi.mock("react-native", () => ({
67 Platform: { OS: "ios" },
68 ActivityIndicator: "ActivityIndicator",
33 - Alert: { alert: () => {} },
69 + Alert: { alert: state.alert },
70 Pressable: "Pressable",
71 ScrollView: "ScrollView",
72 View: "View",
73 }));
74 vi.mock("@react-navigation/native", () => ({
39 - useNavigation: () => ({ dispatch: () => {} }),
75 + useNavigation: () => ({
76 + dispatch: state.dispatch,
77 + getState: () =>
78 + state.navigationState ?? {
79 + index: 4,
80 + routes: [
81 + { key: "home", name: "Home" },
82 + { key: "draft", name: "Thread", params: { draft: {} } },
83 + { key: "picker", name: "NewTaskProject" },
84 + { key: "add", name: "AddProject" },
85 + { key: "local", name: "AddProjectLocal" },
86 + ],
87 + },
88 + }),
89 CommonActions: { reset: (input: unknown) => input },
41 - StackActions: {},
90 + StackActions: {
91 + push: (name: string, params: unknown) => ({ type: "PUSH", payload: { name, params } }),
92 + },
93 }));
94 vi.mock("react-native-safe-area-context", () => ({
95 useSafeAreaInsets: () => ({ bottom: 0 }),
@@ -56,13 +107,18 @@ vi.mock("../../state/session", () => ({
107 readEnvironmentScope: (_environmentId: string, scope: string) => state.scopes.has(scope),
108 }));
109 vi.mock("../../state/entities", () => ({
59 - useProjects: () => [],
110 + useProjects: () => state.existingProjects,
111 + waitForProject: state.waitForProject,
112 useServerConfigs: () =>
113 new Map([
114 [
115 "environment",
116 {
65 - environment: { platform: { os: "linux" }, capabilities: {} },
117 + environment: {
118 + platform: { os: "linux" },
119 + capabilities: { projectCloneTracking: state.supportsCloneTracking },
120 + },
121 + newProjectsRoot: state.newProjectsRoot,
122 settings: { addProjectBaseDirectory: state.baseDirectory },
123 },
124 ],
@@ -71,12 +127,15 @@ vi.mock("../../state/entities", () => ({
127 vi.mock("../../state/use-remote-environment-registry", () => ({
128 useRemoteEnvironmentRuntime: () => ({ connectionState: "connected" }),
129 useRemoteConnectionStatus: () => ({
74 - connectedEnvironments: [{ environmentId: "environment", connectionState: "connected" }],
130 + connectedEnvironments: state.environments.map((environment) => ({
131 + environmentId: environment.environmentId,
132 + connectionState: state.connectionStates[environment.environmentId] ?? "connected",
133 + })),
134 }),
135 useSavedRemoteConnections: () => ({
77 - savedConnectionsById: {
78 - connection: { environmentId: "environment", environmentLabel: "Environment" },
79 - },
136 + savedConnectionsById: Object.fromEntries(
137 + state.environments.map((environment) => [environment.environmentId, environment]),
138 + ),
139 }),
140 }));
141 vi.mock("../../state/use-atom-command", () => ({ useAtomCommand: (command: unknown) => command }));
@@ -88,7 +147,10 @@ vi.mock("../../state/presentation", () => ({
147 vi.mock("../../state/filesystem", () => ({ filesystemEnvironment: {} }));
148 vi.mock("../../state/sourceControl", () => ({
149 sourceControlEnvironment: {
150 + discovery: (input: unknown) => input,
151 + startProjectClone: () => state.startCloneResult,
152 cloneRepository: async ({ input }: { input: { destinationPath: string } }) => {
153 + if (state.cloneResult) return state.cloneResult;
154 NodeFS.mkdirSync(input.destinationPath);
155 return AsyncResult.success({ cwd: input.destinationPath });
156 },
@@ -96,41 +158,90 @@ vi.mock("../../state/sourceControl", () => ({
158 }));
159 vi.mock("../../state/projects", () => ({
160 projectEnvironment: {
99 - create: async ({ input }: { input: { workspaceRoot: string } }) => {
161 + createNew: () => state.createNewResult,
162 + create: ({ input }: { input: { workspaceRoot: string } }) => {
163 if (!state.scopes.has(AuthOrchestrationOperateScope)) {
101 - return AsyncResult.failure(Cause.fail(new Error("Project creation denied")));
164 + return Promise.resolve(
165 + AsyncResult.failure(Cause.fail(new Error("Project creation denied"))),
166 + );
167 }
168 state.projects.push(input.workspaceRoot);
104 - return AsyncResult.success(undefined);
169 + return state.createResult ?? Promise.resolve(AsyncResult.success(undefined));
170 },
171 },
172 }));
173
109 -import { AddProjectDestinationScreen } from "./AddProjectScreen";
174 +vi.mock("../../state/use-composer-drafts", () => ({
175 + waitForComposerDraftsLoaded: async () => {},
176 + createNewTaskDraft: () => "prompt-draft",
177 + setComposerDraftText: () => {},
178 +}));
179 +
180 +import {
181 + AddProjectNewScreen,
182 + AddProjectDestinationScreen,
183 + AddProjectLocalFolderScreen,
184 + AddProjectSourceScreen,
185 +} from "./AddProjectScreen";
186 +import { AddProjectSourceRoute } from "./AddProjectSourceRoute";
187
111 -function findAction(node: ReactNode, label: string): (() => unknown) | null {
188 +function findAction(
189 + node: ReactNode,
190 + label: string,
191 + includeDisabled = false,
192 +): (() => unknown) | null {
193 if (Array.isArray(node)) {
194 for (const child of node) {
114 - const action = findAction(child, label);
195 + const action = findAction(child, label, includeDisabled);
196 if (action) return action;
197 }
198 return null;
199 }
119 - if (!isValidElement<{ label?: string; onPress?: () => unknown; children?: ReactNode }>(node)) {
200 + if (
201 + !isValidElement<{
202 + label?: string;
203 + title?: string;
204 + onPress?: () => unknown;
205 + disabled?: boolean;
206 + children?: ReactNode;
207 + }>(node)
208 + ) {
209 return null;
210 }
122 - if (node.props.label === label) return node.props.onPress ?? null;
123 - return findAction(node.props.children, label);
211 + if ((node.props.label ?? node.props.title) === label) {
212 + return node.props.disabled && !includeDisabled ? null : (node.props.onPress ?? null);
213 + }
214 + return findAction(node.props.children, label, includeDisabled);
215 +}
216 +
217 +const mountedRoots: ReturnType<typeof createRoot>[] = [];
218 +afterEach(() => {
219 + for (const root of mountedRoots.splice(0)) act(() => root.unmount());
220 +});
221 +function renderScreen(render: () => ReactNode) {
222 + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
223 + const root = createRoot(document.createElement("div"));
224 + mountedRoots.push(root);
225 + let screen: ReactNode;
226 + function Observer() {
227 + screen = render();
228 + return null;
229 + }
230 + act(() => root.render(createElement(Observer)));
231 + return screen;
232 }
233
234 function cloneAction() {
235 const action = findAction(
128 - AddProjectDestinationScreen({
129 - environmentId: "environment",
130 - remoteUrl: "https://example.com/repo.git",
131 - repositoryName: "repo",
132 - }),
236 + renderScreen(() =>
237 + AddProjectDestinationScreen({
238 + environmentId: "environment",
239 + remoteUrl: "https://example.com/repo.git",
240 + repositoryName: "repo",
241 + }),
242 + ),
243 "Clone project",
244 + true,
245 );
246 if (!action) throw new Error("Clone action missing");
247 return action;
@@ -143,6 +254,7 @@ describe("clone project permissions", () => {
254 );
255 state.scopes = new Set([AuthSourceControlWriteScope]);
256 state.projects = [];
257 + state.createResult = null;
258 });
259
260 afterEach(async () => {
@@ -169,3 +281,408 @@ describe("clone project permissions", () => {
281 },
282 );
283 });
284 +
285 +function mountProjectFlow(
286 + withDraft: boolean,
287 + withChooser = true,
288 + withPullRequest = false,
289 + screenName = "AddProjectLocal",
290 +) {
291 + const { StackRouter, StackActions, CommonActions } = loadRouters();
292 + const base = StackRouter({});
293 + const router = { ...base, ...workspaceDetailRouter(base) };
294 + const options = {
295 + routeNames: [
296 + "Home",
297 + "Thread",
298 + "PullRequest",
299 + "PullRequestFile",
300 + "NewTaskProject",
301 + "AddProject",
302 + "AddProjectLocal",
303 + "AddProjectNew",
304 + "AddProjectDestination",
305 + ],
306 + routeParamList: {},
307 + routeGetIdList: {},
308 + };
309 + let current = router.getInitialState(options);
310 + const home = current.routes[0]!;
311 + const apply = (action: Parameters<typeof router.getStateForAction>[1]) => {
312 + const next = router.getStateForAction(current, action, options);
313 + if (!next || next.stale !== false) throw new Error("Navigation action rejected");
314 + current = next;
315 + state.navigationState = current;
316 + };
317 + if (withPullRequest) {
318 + apply(StackActions.push("PullRequest", { number: 123 }));
319 + apply(StackActions.push("PullRequestFile", { path: "file.ts" }));
320 + }
321 + const underlyingRoutes = current.routes;
322 + if (withDraft) {
323 + apply(StackActions.push("Thread", { draft: { projectId: "previous-project" } }));
324 + }
325 + const draftKey = withDraft ? current.routes[current.index]!.key : null;
326 + for (const name of [...(withChooser ? ["NewTaskProject"] : []), "AddProject", screenName]) {
327 + apply(StackActions.push(name));
328 + }
329 + state.navigationState = current;
330 + state.dispatch.mockImplementation((action) =>
331 + apply(
332 + action.type === "PUSH" || action.type === "SELECT_WORKSPACE_DETAIL"
333 + ? action
334 + : CommonActions.reset(action),
335 + ),
336 + );
337 + return {
338 + home,
339 + draftKey,
340 + underlyingRoutes,
341 + flowRoutes: current.routes.slice(underlyingRoutes.length),
342 + getState: () => current,
343 + back: () => apply(StackActions.pop()),
344 + setParams: (params: object) => apply(CommonActions.setParams(params)),
345 + push: (name: string) => apply(StackActions.push(name)),
346 + };
347 +}
348 +
349 +describe("add project source environment", () => {
350 + it("blocks local add on a requested unavailable host until reconnect or manual choice", async () => {
351 + state.scopes = new Set([AuthOrchestrationOperateScope]);
352 + state.dispatch.mockReset();
353 + state.environments = [
354 + { environmentId: "environment", environmentLabel: "Environment" },
355 + { environmentId: "another-environment", environmentLabel: "Another environment" },
356 + ];
357 + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
358 + const root = createRoot(document.createElement("div"));
359 + let screen: ReactNode;
360 + function SourceObserver() {
361 + screen = AddProjectSourceScreen({ environmentId: "environment" });
362 + return null;
363 + }
364 + try {
365 + for (const phase of ["available", "offline", "error"] as const) {
366 + state.connectionStates = { environment: phase };
367 + await act(() => root.render(createElement(SourceObserver)));
368 + expect(findAction(screen, "Local folder")).toBeNull();
369 + expect(state.dispatch).not.toHaveBeenCalled();
370 + }
371 + state.connectionStates = {};
372 + await act(() => root.render(createElement(SourceObserver)));
373 + const reconnectedLocal = findAction(screen, "Local folder");
374 + if (!reconnectedLocal) throw new Error("Reconnected local folder action missing");
375 + reconnectedLocal();
376 + expect(state.dispatch).toHaveBeenLastCalledWith({
377 + type: "PUSH",
378 + payload: { name: "AddProjectLocal", params: { environmentId: "environment" } },
379 + });
380 + state.connectionStates = { environment: "offline" };
381 + await act(() => root.render(createElement(SourceObserver)));
382 + expect(findAction(screen, "Local folder")).toBeNull();
383 + const select = findAction(screen, "Another environment");
384 + if (!select) throw new Error("Connected environment selection missing");
385 + await act(() => select());
386 + const local = findAction(screen, "Local folder");
387 + if (!local) throw new Error("Manually selected local folder action missing");
388 + local();
389 + expect(state.dispatch).toHaveBeenLastCalledWith({
390 + type: "PUSH",
391 + payload: { name: "AddProjectLocal", params: { environmentId: "another-environment" } },
392 + });
393 + } finally {
394 + await act(() => root.unmount());
395 + state.connectionStates = {};
396 + state.environments = [{ environmentId: "environment", environmentLabel: "Environment" }];
397 + }
398 + });
399 +
400 + it("keeps a manual host selection when the requested host finishes connecting", async () => {
401 + state.scopes = new Set([AuthOrchestrationOperateScope]);
402 + state.dispatch.mockReset();
403 + const navigation = mountProjectFlow(false, true, false, "AddProject");
404 + state.environments = [
405 + { environmentId: "environment", environmentLabel: "Environment" },
406 + { environmentId: "another-environment", environmentLabel: "Another environment" },
407 + ];
408 + state.connectionStates = { environment: "connecting" };
409 + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
410 + const root = createRoot(document.createElement("div"));
411 + let screen: ReactNode;
412 + function SourceObserver() {
413 + screen = AddProjectSourceScreen({ environmentId: "environment" });
414 + return null;
415 + }
416 + try {
417 + await act(() => root.render(createElement(SourceObserver)));
418 + expect(findAction(screen, "Local folder")).toBeNull();
419 + expect(navigation.getState().routes.at(-1)?.name).toBe("AddProject");
420 + const select = findAction(screen, "Another environment");
421 + if (!select) throw new Error("Connected environment selection missing");
422 + await act(() => select());
423 + state.connectionStates = {};
424 + await act(() => root.render(createElement(SourceObserver)));
425 + const local = findAction(screen, "Local folder");
426 + if (!local) throw new Error("Local folder action missing");
427 + local();
428 + expect(navigation.getState().routes.at(-1)).toMatchObject({
429 + name: "AddProjectLocal",
430 + params: { environmentId: "another-environment" },
431 + });
432 + } finally {
433 + await act(() => root.unmount());
434 + state.connectionStates = {};
435 + state.environments = [{ environmentId: "environment", environmentLabel: "Environment" }];
436 + }
437 + });
438 +
439 + it("follows warm environment requests while preserving manual selection between requests", async () => {
440 + state.scopes = new Set([AuthOrchestrationOperateScope]);
441 + state.dispatch.mockReset();
442 + const navigation = mountProjectFlow(false, true, false, "AddProject");
443 + state.environments = [
444 + { environmentId: "environment", environmentLabel: "Environment" },
445 + { environmentId: "another-environment", environmentLabel: "Another environment" },
446 + ];
447 + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
448 + const root = createRoot(document.createElement("div"));
449 + let actions: { local: () => unknown; selectEnvironment: () => unknown } | undefined;
450 + function SourceRouteObserver(props: { environmentId?: string | string[] }) {
451 + const route = AddProjectSourceRoute({ route: { params: props } });
452 + const screen = AddProjectSourceScreen(route.props);
453 + const local = findAction(screen, "Local folder");
454 + const selectEnvironment = findAction(screen, "Environment");
455 + if (!local || !selectEnvironment) throw new Error("Source actions missing");
456 + actions = { local, selectEnvironment };
457 + return null;
458 + }
459 + const openLocalFolder = (environmentId: string) => {
460 + state.dispatch.mockClear();
461 + actions!.local();
462 + expect(navigation.getState().routes.at(-1)).toMatchObject({
463 + name: "AddProjectLocal",
464 + params: { environmentId },
465 + });
466 + navigation.back();
467 + };
468 + try {
469 + await act(() =>
470 + root.render(createElement(SourceRouteObserver, { environmentId: "environment" })),
471 + );
472 + openLocalFolder("environment");
473 + await act(() =>
474 + root.render(createElement(SourceRouteObserver, { environmentId: "another-environment" })),
475 + );
476 + openLocalFolder("another-environment");
477 + await act(() => actions!.selectEnvironment());
478 + await act(() =>
479 + root.render(createElement(SourceRouteObserver, { environmentId: ["another-environment"] })),
480 + );
481 + openLocalFolder("environment");
482 + await act(() =>
483 + root.render(createElement(SourceRouteObserver, { environmentId: "environment" })),
484 + );
485 + await act(() =>
486 + root.render(createElement(SourceRouteObserver, { environmentId: "another-environment" })),
487 + );
488 + openLocalFolder("another-environment");
489 + } finally {
490 + await act(() => root.unmount());
491 + state.environments = [{ environmentId: "environment", environmentLabel: "Environment" }];
492 + }
493 + });
494 +});
495 +
496 +describe("local project navigation", () => {
497 + function setup() {
498 + state.navigationState = undefined;
499 + state.scopes = new Set([AuthOrchestrationOperateScope]);
500 + state.baseDirectory = "/tmp/t3-mobile-audit-fixture";
501 + state.projects = [];
502 + state.dispatch.mockReset();
503 + state.alert.mockReset();
504 + state.waitForProject.mockReset();
505 + const created = Promise.withResolvers<ReturnType<typeof AsyncResult.success<void>>>();
506 + const projected = Promise.withResolvers<unknown>();
507 + state.createResult = created.promise;
508 + state.waitForProject.mockReturnValue(projected.promise);
509 + const submit = findAction(
510 + renderScreen(() => AddProjectLocalFolderScreen({ environmentId: "environment" })),
511 + "Add project",
512 + );
513 + if (!submit) throw new Error("Add project action missing");
514 + return { created, projected, submit };
515 + }
516 +
517 + it("keeps navigation in place and explains a project projection timeout", async () => {
518 + const { created, projected, submit } = setup();
519 + const submission = submit();
520 + created.resolve(AsyncResult.success(undefined));
521 + projected.resolve(null);
522 + await submission;
523 +
524 + expect(state.projects).toEqual(["/tmp/t3-mobile-audit-fixture"]);
525 + expect(state.dispatch).not.toHaveBeenCalled();
526 + expect(state.alert).toHaveBeenCalledExactlyOnceWith(
527 + "Project added",
528 + "The project was created but has not reached this device yet. It will appear in the project list once the connection catches up.",
529 + );
530 + });
531 +
532 + it("does not replace a reopened flow when the previous submission finishes", async () => {
533 + const { created, projected, submit } = setup();
534 + const navigation = mountProjectFlow(false);
535 + const submission = submit();
536 + created.resolve(AsyncResult.success(undefined));
537 + await created.promise;
538 + navigation.back();
539 + navigation.push("AddProjectLocal");
540 + const remaining = navigation.getState();
541 + projected.resolve({ environmentId: "environment", id: "project" });
542 + await submission;
543 +
544 + expect(state.projects).toEqual(["/tmp/t3-mobile-audit-fixture"]);
545 + expect(navigation.getState()).toEqual(remaining);
546 + expect(state.dispatch).not.toHaveBeenCalled();
547 + });
548 +
549 + it("does not replace a warm-linked flow sharing the original route key", async () => {
550 + const { created, projected, submit } = setup();
551 + const navigation = mountProjectFlow(false);
552 + const submission = submit();
553 + created.resolve(AsyncResult.success(undefined));
554 + await created.promise;
555 + const originalKey = navigation.getState().routes.at(-1)!.key;
556 + navigation.setParams({ environmentId: "other-environment" });
557 + const remaining = navigation.getState();
558 + expect(remaining.routes.at(-1)!.key).toBe(originalKey);
559 + projected.resolve({ environmentId: "environment", id: "project" });
560 + await submission;
561 +
562 + expect(navigation.getState()).toEqual(remaining);
563 + expect(state.dispatch).not.toHaveBeenCalled();
564 + });
565 +
566 + it("does not redirect a reopened flow when an earlier legacy clone finishes", async () => {
567 + const { created, projected } = setup();
568 + state.scopes.add(AuthSourceControlWriteScope);
569 + const cloned = Promise.withResolvers<unknown>();
570 + state.cloneResult = cloned.promise;
571 + const navigation = mountProjectFlow(false, true, true, "AddProjectDestination");
572 + try {
573 + const submission = cloneAction()();
574 + navigation.back();
575 + navigation.push("AddProjectDestination");
576 + const remaining = navigation.getState();
577 + cloned.resolve(AsyncResult.success({ cwd: "/tmp/t3-mobile-audit-fixture/repo" }));
578 + created.resolve(AsyncResult.success(undefined));
579 + projected.resolve({ environmentId: "environment", id: "project" });
580 + await submission;
581 +
582 + expect(state.projects).toEqual(["/tmp/t3-mobile-audit-fixture/repo"]);
583 + expect(navigation.getState()).toEqual(remaining);
584 + expect(state.dispatch).not.toHaveBeenCalled();
585 + } finally {
586 + state.cloneResult = null;
587 + }
588 + });
589 +
590 + it("does not redirect a reopened flow when an earlier new project finishes", async () => {
591 + const { projected } = setup();
592 + state.newProjectsRoot = "/projects";
593 + const created = Promise.withResolvers<unknown>();
594 + const waitingForProject = Promise.withResolvers<void>();
595 + state.createNewResult = created.promise;
596 + state.waitForProject.mockImplementation(() => {
597 + waitingForProject.resolve();
598 + return projected.promise;
599 + });
600 + const navigation = mountProjectFlow(false, true, true, "AddProjectNew");
601 + (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
602 + const root = createRoot(document.createElement("div"));
603 + let screen: ReactNode;
604 + function NewProjectObserver() {
605 + screen = AddProjectNewScreen({ environmentId: "environment" });
606 + return null;
607 + }
608 + function enterName(node: ReactNode): boolean {
609 + if (Array.isArray(node)) return node.some(enterName);
610 + if (
611 + !isValidElement<{
612 + placeholder?: string;
613 + onChangeText?: (text: string) => void;
614 + children?: ReactNode;
615 + }>(node)
616 + )
617 + return false;
618 + if (node.props.placeholder === "Project name") {
619 + node.props.onChangeText!("new-project");
620 + return true;
621 + }
622 + return enterName(node.props.children);
623 + }
624 + try {
625 + await act(() => root.render(createElement(NewProjectObserver)));
626 + await act(() => {
627 + expect(enterName(screen)).toBe(true);
628 + });
629 + const submit = findAction(screen, "Create project");
630 + if (!submit) throw new Error("Create project action missing");
631 + await act(async () => {
632 + submit();
633 + created.resolve(
634 + AsyncResult.success({
635 + projectId: "project",
636 + workspaceRoot: "/projects/new-project",
637 + }),
638 + );
639 + await waitingForProject.promise;
640 + });
641 + navigation.back();
642 + navigation.push("AddProjectNew");
643 + const remaining = navigation.getState();
644 + await act(async () => {
645 + projected.resolve({ environmentId: "environment", id: "project" });
646 + await projected.promise;
647 + });
648 +
649 + expect(navigation.getState()).toEqual(remaining);
650 + expect(state.dispatch).not.toHaveBeenCalled();
651 + } finally {
652 + await act(() => root.unmount());
653 + state.newProjectsRoot = null;
654 + state.createNewResult = null;
655 + }
656 + });
657 +
658 + it.each([
659 + { origin: "Thread", withDraft: true, withChooser: true },
660 + { origin: "NewTaskProject", withDraft: false, withChooser: true },
661 + { origin: "AddProject", withDraft: false, withChooser: false },
662 + ])(
663 + "waits for projection then selects the draft from $origin",
664 + async ({ withDraft, withChooser }) => {
665 + const { created, projected, submit } = setup();
666 + const navigation = mountProjectFlow(withDraft, withChooser, true);
667 + const before = navigation.getState();
668 + const submission = submit();
669 + created.resolve(AsyncResult.success(undefined));
670 + await created.promise;
671 + expect(state.projects).toEqual(["/tmp/t3-mobile-audit-fixture"]);
672 + expect(navigation.getState()).toBe(before);
673 + projected.resolve({ environmentId: "environment", id: "project" });
674 + await submission;
675 + expect(state.dispatch).toHaveBeenCalledTimes(1);
676 + expect(navigation.getState().routes.map((route) => route.name)).toEqual(["Home", "Thread"]);
677 + expect(navigation.getState().routes[1]?.params).toEqual({
678 + draft: {
679 + environmentId: "environment",
680 + projectId: "project",
681 + title: "t3-mobile-audit-fixture",
682 + },
683 + });
684 + navigation.back();
685 + expect(navigation.getState().routes).toEqual([navigation.home]);
686 + },
687 + );
688 +});
apps/mobile/src/features/projects/AddProjectScreen.tsx
+116 -66
@@ -1,3 +1,5 @@
1 +import type { NativeStackNavigationProp } from "@react-navigation/native-stack";
2 +import { useSelectWorkspaceDetail } from "../workspace/useSelectWorkspaceDetail";
3 import * as Dialog from "../../components/ui/Dialog";
4 import { AppActivityIndicator } from "../../components/ui/AppActivityIndicator";
5 import { NavigationRow } from "../../components/ui/NavigationRow";
@@ -56,7 +58,6 @@ import {
58 SourceControlProviderKind,
59 } from "@t3tools/contracts";
60 import {
59 - CommonActions,
61 StackActions,
62 useNavigation,
63 type NavigationState,
@@ -370,7 +371,9 @@ function useBrowsePathInput(environment: EnvironmentOption | null, pinnedDirecto
371 return { isBrowseNavigating, pathInput, setPathInput, navigateToBrowsePath };
372 }
373
373 -function useEnvironmentOptions(): ReadonlyArray<EnvironmentOption> {
374 +function useEnvironmentOptions(
375 + selectedEnvironmentId: EnvironmentId | null = null,
376 +): ReadonlyArray<EnvironmentOption> {
377 const serverConfigByEnvironmentId = useServerConfigs();
378 const { savedConnectionsById } = useSavedRemoteConnections();
379 const { connectedEnvironments } = useRemoteConnectionStatus();
@@ -396,25 +399,30 @@ function useEnvironmentOptions(): ReadonlyArray<EnvironmentOption> {
399 };
400 });
401 return Arr.sort(
399 - options.filter((environment) => canCreateProjectInEnvironment(environment.connectionState)),
402 + options.filter(
403 + (environment) =>
404 + canCreateProjectInEnvironment(environment.connectionState) ||
405 + environment.environmentId === selectedEnvironmentId,
406 + ),
407 environmentOptionOrder,
408 );
409 })();
410 }
411
405 -function useSelectedEnvironment(): {
412 +function useSelectedEnvironment(requestedEnvironmentId: EnvironmentId | null): {
413 readonly environmentOptions: ReadonlyArray<EnvironmentOption>;
414 readonly selectedEnvironment: EnvironmentOption | null;
415 readonly setSelectedEnvironmentId: (environmentId: EnvironmentId) => void;
416 } {
410 - const [selectedEnvironmentId, setSelectedEnvironmentId] = useState<EnvironmentId | null>(null);
411 - const environmentOptions = useEnvironmentOptions();
417 + const [selectedEnvironmentId, setSelectedEnvironmentId] = useState(requestedEnvironmentId);
418 + const [previousRequest, setPreviousRequest] = useState(requestedEnvironmentId);
419 + if (previousRequest !== requestedEnvironmentId) {
420 + setPreviousRequest(requestedEnvironmentId);
421 + setSelectedEnvironmentId(requestedEnvironmentId);
422 + }
423 + const environmentOptions = useEnvironmentOptions(selectedEnvironmentId);
424 const selectedEnvironment =
413 - environmentOptions.find(
414 - (environment) =>
415 - environment.environmentId === selectedEnvironmentId &&
416 - canCreateProjectInEnvironment(environment.connectionState),
417 - ) ??
425 + environmentOptions.find((environment) => environment.environmentId === selectedEnvironmentId) ??
426 environmentOptions.find((environment) =>
427 canCreateProjectInEnvironment(environment.connectionState),
428 ) ??
@@ -501,10 +509,10 @@ function SourceControlRow(props: {
509 );
510 }
511
504 -export function AddProjectSourceScreen() {
512 +export function AddProjectSourceScreen(props: { readonly environmentId?: string | string[] }) {
513 const navigation = useNavigation();
514 const { environmentOptions, selectedEnvironment, setSelectedEnvironmentId } =
507 - useSelectedEnvironment();
515 + useSelectedEnvironment(stringParam(props.environmentId) as EnvironmentId | null);
516 const canWriteSourceControl = useEnvironmentScope(
517 selectedEnvironment?.environmentId ?? null,
518 AuthSourceControlWriteScope,
@@ -513,9 +521,10 @@ export function AddProjectSourceScreen() {
521 selectedEnvironment?.environmentId ?? null,
522 AuthOrchestrationOperateScope,
523 );
516 - const canCloneProject = canWriteSourceControl && canCreateProject;
524 + const isConnected = canCreateProjectInEnvironment(selectedEnvironment?.connectionState);
525 + const canCloneProject = isConnected && canWriteSourceControl && canCreateProject;
526 const discoveryState = useEnvironmentQuery(
518 - selectedEnvironment === null
527 + selectedEnvironment === null || !isConnected
528 ? null
529 : sourceControlEnvironment.discovery({
530 environmentId: selectedEnvironment.environmentId,
@@ -528,7 +537,7 @@ export function AddProjectSourceScreen() {
537 <AddProjectShell title="Add project">
538 {selectedEnvironment === null ? <EmptyEnvironmentState /> : null}
539
531 - {environmentOptions.length > 1 ? (
540 + {environmentOptions.length > 1 || (selectedEnvironment !== null && !isConnected) ? (
541 <>
542 <SectionTitle>Environments</SectionTitle>
543 <ListSection>
@@ -579,6 +588,7 @@ export function AddProjectSourceScreen() {
588 <ListRow
589 title="New project"
590 subtitle="Start a new Git repository from a name"
591 + disabled={!isConnected}
592 icon={
593 <SymbolView
594 name="plus"
@@ -613,7 +623,7 @@ export function AddProjectSourceScreen() {
623 />
624 }
625 isFirst={selectedEnvironment.newProjectsRoot === null}
616 - disabled={!canCreateProject}
626 + disabled={!isConnected || !canCreateProject}
627 onPress={() =>
628 navigation.dispatch(
629 StackActions.push("AddProjectLocal", {
@@ -650,27 +660,37 @@ export function AddProjectSourceScreen() {
660 );
661 }
662
653 -function openNewTaskDraft(
654 - navigation: {
655 - dispatch: (action: ReturnType<typeof CommonActions.reset>) => void;
656 - getState: () => NavigationState<ParamListBase> | undefined;
657 - },
658 - params: {
659 - environmentId: EnvironmentId;
660 - projectId: ProjectId;
661 - title: string;
662 - cloning?: "1";
663 - draftId?: string;
664 - },
665 -) {
663 +function getActiveRoute(navigation: {
664 + getState: () => NavigationState<ParamListBase> | undefined;
665 +}) {
666 const state = navigation.getState();
667 - if (!state) return;
668 - const threadIndex = state.routes.findLastIndex((route) => route.name === "Thread");
669 - const routes = [
670 - ...state.routes.slice(0, threadIndex < 0 ? state.index : threadIndex),
671 - { key: uuidv4(), name: "Thread", params: { draft: params } },
672 - ];
673 - navigation.dispatch(CommonActions.reset({ ...state, index: routes.length - 1, routes }));
667 + return state?.routes[state.index];
668 +}
669 +
670 +function useOpenNewTaskDraft() {
671 + const navigation = useNavigation<NativeStackNavigationProp<ReactNavigation.RootParamList>>();
672 + const selectDetail = useSelectWorkspaceDetail();
673 + return (
674 + params: {
675 + environmentId: EnvironmentId;
676 + projectId: ProjectId;
677 + title: string;
678 + cloning?: "1";
679 + draftId?: string;
680 + },
681 + originRoute: NavigationState<ParamListBase>["routes"][number] | undefined,
682 + ) => {
683 + const activeRoute = getActiveRoute(navigation);
684 + // A warm link can change the task without replacing its native route key.
685 + if (
686 + !originRoute ||
687 + activeRoute?.key !== originRoute.key ||
688 + activeRoute.name !== originRoute.name ||
689 + activeRoute.params !== originRoute.params
690 + )
691 + return;
692 + selectDetail({ name: "Thread", params: { draft: params } });
693 + };
694 }
695
696 async function draftWithPrompt(
@@ -685,11 +705,12 @@ async function draftWithPrompt(
705 }
706
707 function useCreateProject(environment: EnvironmentOption | null) {
708 + const openNewTaskDraft = useOpenNewTaskDraft();
709 const navigation = useNavigation();
710 const createProject = useAtomCommand(projectEnvironment.create, { reportFailure: false });
711 const projects = useProjects();
712
692 - return async (workspaceRoot: string) => {
713 + return async (workspaceRoot: string, originRoute = getActiveRoute(navigation)) => {
714 if (
715 !environment ||
716 !canCreateProjectInEnvironment(environment.connectionState) ||
@@ -709,11 +730,14 @@ function useCreateProject(environment: EnvironmentOption | null) {
730 });
731 if (existing) {
732 Dialog.alert("Project already exists", existing.title);
712 - openNewTaskDraft(navigation, {
713 - environmentId: existing.environmentId,
714 - projectId: existing.id,
715 - title: existing.title,
716 - });
733 + openNewTaskDraft(
734 + {
735 + environmentId: existing.environmentId,
736 + projectId: existing.id,
737 + title: existing.title,
738 + },
739 + originRoute,
740 + );
741 return;
742 }
743
@@ -730,11 +754,27 @@ function useCreateProject(environment: EnvironmentOption | null) {
754 if (AsyncResult.isFailure(result)) {
755 return result;
756 }
733 - openNewTaskDraft(navigation, {
734 - environmentId: environment.environmentId,
735 - projectId,
736 - title: inferProjectTitleFromPath(workspaceRoot),
737 - });
757 + // A successful command can precede its project in the client store. The
758 + // draft treats a missing project as a reason to return to the chooser.
759 + const project = await waitForProject(
760 + { environmentId: environment.environmentId, projectId },
761 + 15_000,
762 + );
763 + if (project === null) {
764 + Dialog.alert(
765 + "Project added",
766 + "The project was created but has not reached this device yet. It will appear in the project list once the connection catches up.",
767 + );
768 + return result;
769 + }
770 + openNewTaskDraft(
771 + {
772 + environmentId: environment.environmentId,
773 + projectId,
774 + title: inferProjectTitleFromPath(workspaceRoot),
775 + },
776 + originRoute,
777 + );
778 return result;
779 };
780 }
@@ -943,6 +983,7 @@ function FolderBrowser(props: {
983 }
984
985 export function AddProjectNewScreen(props: { readonly environmentId?: string | string[] }) {
986 + const openNewTaskDraft = useOpenNewTaskDraft();
987 const navigation = useNavigation();
988 const environmentOptions = useEnvironmentOptions().filter(
989 (option) => option.newProjectsRoot !== null,
@@ -1017,6 +1058,7 @@ export function AddProjectNewScreen(props: { readonly environmentId?: string | s
1058 const submittingRef = useRef(false);
1059 const submit = async () => {
1060 if (!environment || trimmedName.length === 0 || submittingRef.current) return;
1061 + const originRoute = getActiveRoute(navigation);
1062 submittingRef.current = true;
1063 setError(null);
1064 setIsSubmitting(true);
@@ -1067,11 +1109,14 @@ export function AddProjectNewScreen(props: { readonly environmentId?: string | s
1109 );
1110 return;
1111 }
1070 - openNewTaskDraft(navigation, {
1071 - environmentId: environment.environmentId,
1072 - projectId,
1073 - title: trimmedName,
1074 - });
1112 + openNewTaskDraft(
1113 + {
1114 + environmentId: environment.environmentId,
1115 + projectId,
1116 + title: trimmedName,
1117 + },
1118 + originRoute,
1119 + );
1120 };
1121
1122 return (
@@ -1262,6 +1307,7 @@ export function AddProjectDestinationScreen(props: {
1307 readonly repositoryName?: string | string[];
1308 readonly prompt?: string | string[];
1309 }) {
1310 + const openNewTaskDraft = useOpenNewTaskDraft();
1311 const cloneRepository = useAtomCommand(sourceControlEnvironment.cloneRepository, {
1312 reportFailure: false,
1313 });
@@ -1313,6 +1359,7 @@ export function AddProjectDestinationScreen(props: {
1359 return;
1360 }
1361
1362 + const originRoute = getActiveRoute(navigation);
1363 setIsSubmitting(true);
1364 if (environment.supportsCloneTracking) {
1365 const projectId = ProjectId.make(uuidv4());
@@ -1340,18 +1387,21 @@ export function AddProjectDestinationScreen(props: {
1387 "The project was created but has not reached this device yet. It will appear in the project list once the connection catches up.",
1388 );
1389 } else {
1343 - openNewTaskDraft(navigation, {
1344 - environmentId: environment.environmentId,
1345 - projectId,
1346 - title,
1347 - cloning: "1",
1348 - ...(prompt
1349 - ? await draftWithPrompt(environment.environmentId, projectId, prompt).then(
1350 - (draftId) => ({ draftId }),
1351 - () => ({}),
1352 - )
1353 - : {}),
1354 - });
1390 + openNewTaskDraft(
1391 + {
1392 + environmentId: environment.environmentId,
1393 + projectId,
1394 + title,
1395 + cloning: "1",
1396 + ...(prompt
1397 + ? await draftWithPrompt(environment.environmentId, projectId, prompt).then(
1398 + (draftId) => ({ draftId }),
1399 + () => ({}),
1400 + )
1401 + : {}),
1402 + },
1403 + originRoute,
1404 + );
1405 }
1406 }
1407 setIsSubmitting(false);
@@ -1367,7 +1417,7 @@ export function AddProjectDestinationScreen(props: {
1417 if (AsyncResult.isFailure(cloneResult)) {
1418 setError(errorMessage(Cause.squash(cloneResult.cause)));
1419 } else {
1370 - const createResult = await createProject(cloneResult.value.cwd);
1420 + const createResult = await createProject(cloneResult.value.cwd, originRoute);
1421 if (createResult && AsyncResult.isFailure(createResult)) {
1422 setError(errorMessage(Cause.squash(createResult.cause)));
1423 }
apps/mobile/src/features/projects/AddProjectSourceRoute.tsx
+9 -2
@@ -1,5 +1,12 @@
1 +import type { StaticScreenProps } from "@react-navigation/native";
2 import { AddProjectSourceScreen } from "./AddProjectScreen";
3
3 -export function AddProjectSourceRoute() {
4 - return <AddProjectSourceScreen />;
4 +type AddProjectSourceRouteParams = {
5 + readonly environmentId?: string | string[];
6 +};
7 +
8 +export function AddProjectSourceRoute({
9 + route,
10 +}: StaticScreenProps<AddProjectSourceRouteParams | undefined>) {
11 + return <AddProjectSourceScreen {...(route.params ?? {})} />;
12 }
apps/mobile/vite.config.ts
+1
@@ -4,6 +4,7 @@ import { defineConfig, normalizePath } from "vite-plus";
4 import "vite-plus/test/config";
5
6 const reactTests = [
7 + "src/features/projects/AddProjectScreen.test.ts",
8 "src/lib/useMediaVideoPlayback.test.tsx",
9 "src/features/pull-requests/usePullRequestEnvironmentFallback.test.tsx",
10 "src/lib/filePreview.test.ts",
docs/operations/mobile-screens-fork.md
+1 -1
@@ -1,7 +1,7 @@
1 # Building the mobile Screens dependency
2
3 The mobile v5 stack uses a committed tarball from the
4 -[T3 Screens fork](https://github.com/pingdotgg/react-native-screens/tree/t3-v5.0.0-t3.44).
4 +[T3 Screens fork](https://github.com/pingdotgg/react-native-screens/tree/t3-v5.0.0-t3.45).
5 The fork owns the integration changes; the app does not patch this package.
6 Each archive includes compiled JavaScript, declarations, native source and
7 `t3-fork.json` recording its version, source commit and upstream base.
pnpm-lock.yaml
+9 -9
@@ -560,7 +560,7 @@ importers:
560 version: 7.5.1(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
561 '@react-navigation/native-stack':
562 specifier: 7.21.0
563 - version: 7.21.0(patch_hash=990d575444c4af2ce8218b3b7a8280fe244c03abbdb32b822a2e862f791dbf42)(90b832078186123c182216792ec43c25)
563 + version: 7.21.0(patch_hash=990d575444c4af2ce8218b3b7a8280fe244c03abbdb32b822a2e862f791dbf42)(fedae76d040d2e46f454f147f7fa3a09)
564 '@t3tools/client-runtime':
565 specifier: workspace:*
566 version: link:../../packages/client-runtime
@@ -763,8 +763,8 @@ importers:
763 specifier: ~5.10.1
764 version: 5.10.1(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
765 react-native-screens:
766 - specifier: file:deps/react-native-screens-5.0.0-t3.44.tgz
767 - version: file:apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
766 + specifier: file:deps/react-native-screens-5.0.0-t3.45.tgz
767 + version: file:apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
768 react-native-svg:
769 specifier: 15.16.0
770 version: 15.16.0(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
@@ -10850,9 +10850,9 @@ packages:
10850 react: '*'
10851 react-native: '*'
10852
10853 - react-native-screens@file:apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz:
10854 - resolution: {integrity: sha512-hs8Q9FodRg8JWPk7QeohJwaNrndgxHajgXdTfVH1RpwFhmyWSJV0/mMzqYKh3qX/jTD7TBnRWKyKuvMFwHGF6w==, tarball: file:apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz}
10855 - version: 5.0.0-t3.44
10853 + react-native-screens@file:apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz:
10854 + resolution: {integrity: sha512-FgmMB7T2tb0pEKgdsRs5sRCIRfIOHFqEk3lqaRA53dYb51rxlE9utrAoxbUPHcAROAAP2QA55KUTD9V71SoNqA==, tarball: file:apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz}
10855 + version: 5.0.0-t3.45
10856 peerDependencies:
10857 react: '*'
10858 react-native: '*'
@@ -15832,7 +15832,7 @@ snapshots:
15832 optionalDependencies:
15833 '@react-native-masked-view/masked-view': 0.3.2(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
15834
15835 - '@react-navigation/native-stack@7.21.0(patch_hash=990d575444c4af2ce8218b3b7a8280fe244c03abbdb32b822a2e862f791dbf42)(90b832078186123c182216792ec43c25)':
15835 + '@react-navigation/native-stack@7.21.0(patch_hash=990d575444c4af2ce8218b3b7a8280fe244c03abbdb32b822a2e862f791dbf42)(fedae76d040d2e46f454f147f7fa3a09)':
15836 dependencies:
15837 '@react-navigation/elements': 2.9.45(d8845bac868f4d8a58c8a8f12ad0d4a5)
15838 '@react-navigation/native': 7.5.1(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
@@ -15840,7 +15840,7 @@ snapshots:
15840 react: 19.3.0
15841 react-native: 0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6)
15842 react-native-safe-area-context: 5.10.1(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
15843 - react-native-screens: file:apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
15843 + react-native-screens: file:apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
15844 sf-symbols-typescript: 2.2.0
15845 warn-once: 0.1.1
15846 transitivePeerDependencies:
@@ -21414,7 +21414,7 @@ snapshots:
21414 react: 19.3.0
21415 react-native: 0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6)
21416
21417 - react-native-screens@file:apps/mobile/deps/react-native-screens-5.0.0-t3.44.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0):
21417 + react-native-screens@file:apps/mobile/deps/react-native-screens-5.0.0-t3.45.tgz(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0):
21418 dependencies:
21419 react: 19.3.0
21420 react-freeze: 1.0.4(react@19.3.0)