Skip to content

Commit cd8b9fc

Browse files
Revert "Add T3 Connect onboarding for mobile and web" (#3776)
1 parent fa6073e commit cd8b9fc

26 files changed

Lines changed: 720 additions & 1546 deletions

apps/mobile/src/Stack.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import { AppText as Text } from "./components/AppText";
1717
import { ArchivedThreadsRouteScreen } from "./features/archive/ArchivedThreadsRouteScreen";
1818
import { useAgentNotificationNavigation } from "./features/agent-awareness/notificationNavigation";
1919
import { ClerkSettingsSheetDetentProvider } from "./features/cloud/ClerkSettingsSheetDetent";
20-
import { ConnectOnboardingRouteScreen } from "./features/cloud/ConnectOnboardingRouteScreen";
21-
import { useConnectOnboardingNavigation } from "./features/cloud/connectOnboardingNavigation";
2220
import { ThreadFilesTreeScreen, ThreadFileScreen } from "./features/files/ThreadFilesRouteScreen";
2321
import { AdaptiveWorkspaceLayout } from "./features/layout/AdaptiveWorkspaceLayout";
2422
import { HardwareKeyboardCommandProvider } from "./features/keyboard/HardwareKeyboardCommandProvider";
@@ -222,7 +220,6 @@ const NewTaskSheetStack = createNativeStackNavigator({
222220
// influence the adaptive workspace layout: opening Settings over Home should
223221
// not flip the sidebar in or change the active thread.
224222
const WORKSPACE_OVERLAY_ROUTES = new Set([
225-
"ConnectOnboarding",
226223
"Connections",
227224
"ConnectionsNew",
228225
"GitBranches",
@@ -254,8 +251,6 @@ function RootStackLayout(props: {
254251
}) {
255252
useAgentNotificationNavigation();
256253
useThreadOutboxDrain();
257-
// Presents the T3 Connect onboarding sheet after an in-session sign-in.
258-
useConnectOnboardingNavigation();
259254
// Full pathname (sheets included) for keyboard-command scoping; the
260255
// workspace layout only reacts to the underlying non-overlay route.
261256
const path = getPathFromState(props.state, navigationPathConfig);
@@ -417,20 +412,6 @@ export const RootStack = createNativeStackNavigator({
417412
sheetGrabberVisible: true,
418413
},
419414
}),
420-
ConnectOnboarding: createNativeStackScreen({
421-
screen: ConnectOnboardingRouteScreen,
422-
linking: "connect-onboarding",
423-
options: {
424-
// Root screenOptions hide headers; formSheets that want the native
425-
// title bar opt back in with the sheet header preset.
426-
...SHEET_SOLID_HEADER_OPTIONS,
427-
title: "Set up T3 Connect",
428-
gestureEnabled: true,
429-
presentation: "formSheet",
430-
sheetAllowedDetents: [0.6, 0.95],
431-
sheetGrabberVisible: true,
432-
},
433-
}),
434415
Connections: createNativeStackScreen({
435416
screen: ConnectionsRouteScreen,
436417
linking: "connections",

apps/mobile/src/connection/platform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const capabilitiesLayer = Layer.succeedContext(
9292
if (session === null) {
9393
return yield* new ConnectionBlockedError({
9494
reason: "authentication",
95-
detail: "Sign in to T3 Connect to connect this environment.",
95+
detail: "Sign in to T3 Cloud to connect this environment.",
9696
});
9797
}
9898
const token = yield* session.readClerkToken().pipe(
@@ -107,7 +107,7 @@ const capabilitiesLayer = Layer.succeedContext(
107107
if (token === null) {
108108
return yield* new ConnectionBlockedError({
109109
reason: "authentication",
110-
detail: "The T3 Connect session is unavailable.",
110+
detail: "The T3 Cloud session is unavailable.",
111111
});
112112
}
113113
return token;

apps/mobile/src/features/cloud/CloudAuthProvider.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
setAgentAwarenessRelayTokenProvider,
1919
unregisterAgentAwarenessDeviceForCurrentUser,
2020
} from "../agent-awareness/remoteRegistration";
21-
import { requestConnectOnboarding } from "./connectOnboarding";
2221
import { resolveCloudPublicConfig, resolveRelayClerkTokenOptions } from "./publicConfig";
2322

2423
function resetManagedRelayTokenCache() {
@@ -68,14 +67,6 @@ function CloudAuthBridge(props: { readonly children: ReactNode }) {
6867
const nextAccount = isSignedIn && userId ? userId : null;
6968
observedAccountRef.current = nextAccount;
7069

71-
// Every sign-in that completes during this session (a cold start observes
72-
// undefined → account and must not re-prompt) requests the T3 Connect
73-
// onboarding sheet — sign-out clears the connected environments, so each
74-
// new session starts with no devices to reach.
75-
if (previousObservedAccount === null && nextAccount !== null) {
76-
requestConnectOnboarding(nextAccount);
77-
}
78-
7970
const queueAccountCleanup = (
8071
previous: {
8172
readonly userId: string;

apps/mobile/src/features/cloud/CloudWaitlistEnrollment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function CloudWaitlistEnrollment(props: { readonly onSignIn: () => void }
3939
You are on the waitlist
4040
</Text>
4141
<Text className="text-center font-sans text-base text-foreground-secondary">
42-
We will email you when your T3 Connect access is ready.
42+
We will email you when your T3 Cloud access is ready.
4343
</Text>
4444
<SignInAction onPress={props.onSignIn} />
4545
</View>

apps/mobile/src/features/cloud/ConnectOnboardingRouteScreen.tsx

Lines changed: 0 additions & 111 deletions
This file was deleted.

apps/mobile/src/features/cloud/connectOnboarding.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/mobile/src/features/cloud/connectOnboardingNavigation.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

apps/mobile/src/features/cloud/connectOnboardingOptOut.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)