From 12dd1bcb9739b9ec47ba9415c1ddef440f37ddbb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 14 Apr 2026 09:03:00 +0000 Subject: [PATCH] Remove dead CARD_SHADOW exports and debug console.log statements - Remove unused CARD_SHADOW and CARD_SHADOW_DARK constants from ConnectionSheetButton.tsx - Remove three debug console.log statements with [new task flow] prefix from new-task-flow-provider.tsx --- .../connection/ConnectionSheetButton.tsx | 22 ---------------- .../threads/new-task-flow-provider.tsx | 25 ------------------- 2 files changed, 47 deletions(-) diff --git a/apps/mobile/src/features/connection/ConnectionSheetButton.tsx b/apps/mobile/src/features/connection/ConnectionSheetButton.tsx index 1a03061e23..ac22ca82fa 100644 --- a/apps/mobile/src/features/connection/ConnectionSheetButton.tsx +++ b/apps/mobile/src/features/connection/ConnectionSheetButton.tsx @@ -5,28 +5,6 @@ import { useThemeColor } from "../../lib/useThemeColor"; import { AppText as Text } from "../../components/AppText"; import { cn } from "../../lib/cn"; -const CARD_SHADOW = Platform.select({ - ios: { - shadowColor: "rgba(23,23,23,0.08)", - shadowOffset: { width: 0, height: 4 }, - shadowOpacity: 1, - shadowRadius: 16, - }, - android: { elevation: 3 }, -}); - -const CARD_SHADOW_DARK = Platform.select({ - ios: { - shadowColor: "#000", - shadowOffset: { width: 0, height: 2 }, - shadowOpacity: 0.18, - shadowRadius: 8, - }, - android: { elevation: 4 }, -}); - -export { CARD_SHADOW, CARD_SHADOW_DARK }; - export function ConnectionSheetButton(props: { readonly icon: React.ComponentProps["name"]; readonly label: string; diff --git a/apps/mobile/src/features/threads/new-task-flow-provider.tsx b/apps/mobile/src/features/threads/new-task-flow-provider.tsx index 0ddc8a6ef3..736d9f95d9 100644 --- a/apps/mobile/src/features/threads/new-task-flow-provider.tsx +++ b/apps/mobile/src/features/threads/new-task-flow-provider.tsx @@ -189,10 +189,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { }, []); const reset = useCallback(() => { - console.log("[new task flow] reset", { - defaultEnvironmentId: projects[0]?.environmentId ?? null, - projectCount: projects.length, - }); setSelectedEnvironmentId(projects[0]?.environmentId ?? ""); setSelectedProjectKey(null); setSelectedModelKey(null); @@ -216,9 +212,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { return; } - console.log("[new task flow] initializing environment", { - environmentId: projects[0]!.environmentId, - }); setSelectedEnvironmentId(projects[0]!.environmentId); }, [projects, selectedEnvironmentId]); @@ -470,24 +463,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { ], ); - useEffect(() => { - console.log("[new task flow] state", { - availableBranchCount: availableBranches.length, - environmentCount: environments.length, - logicalProjectCount: logicalProjects.length, - selectedEnvironmentId, - selectedProjectKey, - selectedProjectTitle: selectedProject?.title ?? null, - }); - }, [ - availableBranches.length, - environments.length, - logicalProjects.length, - selectedEnvironmentId, - selectedProject?.title, - selectedProjectKey, - ]); - return {props.children}; }