- 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
Unified · Split
| @@ -5,28 +5,6 @@ import { useThemeColor } from "../../lib/useThemeColor"; · 4 unmodified lines | ||
| 5 | 5 | import { AppText as Text } from "../../components/AppText"; |
| 6 | 6 | import { cn } from "../../lib/cn"; |
| 7 | 7 | |
| 8 | −const 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 | − | |
| 18 | −const 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 | − | |
| 28 | −export { CARD_SHADOW, CARD_SHADOW_DARK }; | |
| 29 | − | |
| 30 | 8 | export function ConnectionSheetButton(props: { |
| 31 | 9 | readonly icon: React.ComponentProps<typeof SymbolView>["name"]; |
| 32 | 10 | readonly label: string; |
| @@ -189,10 +189,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { · 188 unmodified lines | ||
| 189 | 189 | }, []); |
| 190 | 190 | |
| 191 | 191 | const reset = useCallback(() => { |
| 192 | − console.log("[new task flow] reset", { | |
| 193 | − defaultEnvironmentId: projects[0]?.environmentId ?? null, | |
| 194 | − projectCount: projects.length, | |
| 195 | − }); | |
| 196 | 192 | setSelectedEnvironmentId(projects[0]?.environmentId ?? ""); |
| 197 | 193 | setSelectedProjectKey(null); |
| 198 | 194 | setSelectedModelKey(null); |
| @@ -216,9 +212,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) { · 17 unmodified lines | ||
| 216 | 212 | return; |
| 217 | 213 | } |
| 218 | 214 | |
| 219 | − console.log("[new task flow] initializing environment", { | |
| 220 | − environmentId: projects[0]!.environmentId, | |
| 221 | − }); | |
| 222 | 215 | setSelectedEnvironmentId(projects[0]!.environmentId); |
| 223 | 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 | 466 | return <NewTaskFlowContext.Provider value={value}>{props.children}</NewTaskFlowContext.Provider>; |
| 492 | 467 | } |
| 493 | 468 | |