History

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

Cursor Agent committed 7 months ago

Commit 12dd1bc1 parent 3d3e8472 files · +0 −47Browse files

Unified · Split

2 files
  1. apps/mobile/src/features/connection/ConnectionSheetButton.tsx +0 −22
  2. apps/mobile/src/features/threads/new-task-flow-provider.tsx +0 −25
apps/mobile/src/features/connection/ConnectionSheetButton.tsx+0−22
@@ -5,28 +5,6 @@ import { useThemeColor } from "../../lib/useThemeColor"; · 4 unmodified lines
5import { AppText as Text } from "../../components/AppText";5import { AppText as Text } from "../../components/AppText";
6import { cn } from "../../lib/cn";6import { cn } from "../../lib/cn";
7 7
8const CARD_SHADOW = Platform.select({
9 ios: {
10 shadowColor: "rgba(23,23,23,0.08)",
11 shadowOffset: { width: 0, height: 4 },
12 shadowOpacity: 1,
13 shadowRadius: 16,
14 },
15 android: { elevation: 3 },
16});
17
18const CARD_SHADOW_DARK = Platform.select({
19 ios: {
20 shadowColor: "#000",
21 shadowOffset: { width: 0, height: 2 },
22 shadowOpacity: 0.18,
23 shadowRadius: 8,
24 },
25 android: { elevation: 4 },
26});
27
28export { CARD_SHADOW, CARD_SHADOW_DARK };
29
30export function ConnectionSheetButton(props: {8export function ConnectionSheetButton(props: {
31 readonly icon: React.ComponentProps<typeof SymbolView>["name"];9 readonly icon: React.ComponentProps<typeof SymbolView>["name"];
32 readonly label: string;10 readonly label: string;
apps/mobile/src/features/threads/new-task-flow-provider.tsx+0−25
@@ -189,10 +189,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { · 188 unmodified lines
189 }, []);189 }, []);
190 190
191 const reset = useCallback(() => {191 const reset = useCallback(() => {
192 console.log("[new task flow] reset", {
193 defaultEnvironmentId: projects[0]?.environmentId ?? null,
194 projectCount: projects.length,
195 });
196 setSelectedEnvironmentId(projects[0]?.environmentId ?? "");192 setSelectedEnvironmentId(projects[0]?.environmentId ?? "");
197 setSelectedProjectKey(null);193 setSelectedProjectKey(null);
198 setSelectedModelKey(null);194 setSelectedModelKey(null);
@@ -216,9 +212,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { · 17 unmodified lines
216 return;212 return;
217 }213 }
218 214
219 console.log("[new task flow] initializing environment", {
220 environmentId: projects[0]!.environmentId,
221 });
222 setSelectedEnvironmentId(projects[0]!.environmentId);215 setSelectedEnvironmentId(projects[0]!.environmentId);
223 }, [projects, selectedEnvironmentId]);216 }, [projects, selectedEnvironmentId]);
224 217
@@ -470,24 +463,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { · 245 unmodified lines
470 ],463 ],
471 );464 );
472 465
473 useEffect(() => {
474 console.log("[new task flow] state", {
475 availableBranchCount: availableBranches.length,
476 environmentCount: environments.length,
477 logicalProjectCount: logicalProjects.length,
478 selectedEnvironmentId,
479 selectedProjectKey,
480 selectedProjectTitle: selectedProject?.title ?? null,
481 });
482 }, [
483 availableBranches.length,
484 environments.length,
485 logicalProjects.length,
486 selectedEnvironmentId,
487 selectedProject?.title,
488 selectedProjectKey,
489 ]);
490
491 return <NewTaskFlowContext.Provider value={value}>{props.children}</NewTaskFlowContext.Provider>;466 return <NewTaskFlowContext.Provider value={value}>{props.children}</NewTaskFlowContext.Provider>;
492}467}
493 468