Skip to content

Commit 12dd1bc

Browse files
committed
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
1 parent 3d3e847 commit 12dd1bc

2 files changed

Lines changed: 0 additions & 47 deletions

File tree

apps/mobile/src/features/connection/ConnectionSheetButton.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@ import { useThemeColor } from "../../lib/useThemeColor";
55
import { AppText as Text } from "../../components/AppText";
66
import { cn } from "../../lib/cn";
77

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-
308
export function ConnectionSheetButton(props: {
319
readonly icon: React.ComponentProps<typeof SymbolView>["name"];
3210
readonly label: string;

apps/mobile/src/features/threads/new-task-flow-provider.tsx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
189189
}, []);
190190

191191
const reset = useCallback(() => {
192-
console.log("[new task flow] reset", {
193-
defaultEnvironmentId: projects[0]?.environmentId ?? null,
194-
projectCount: projects.length,
195-
});
196192
setSelectedEnvironmentId(projects[0]?.environmentId ?? "");
197193
setSelectedProjectKey(null);
198194
setSelectedModelKey(null);
@@ -216,9 +212,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
216212
return;
217213
}
218214

219-
console.log("[new task flow] initializing environment", {
220-
environmentId: projects[0]!.environmentId,
221-
});
222215
setSelectedEnvironmentId(projects[0]!.environmentId);
223216
}, [projects, selectedEnvironmentId]);
224217

@@ -470,24 +463,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
470463
],
471464
);
472465

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-
491466
return <NewTaskFlowContext.Provider value={value}>{props.children}</NewTaskFlowContext.Provider>;
492467
}
493468

0 commit comments

Comments
 (0)