Skip to content

Commit 7ee1b0e

Browse files
committed
remove debugging
1 parent 326490a commit 7ee1b0e

File tree

6 files changed

+21
-82
lines changed

6 files changed

+21
-82
lines changed

components/ai-gateway-consent-modal.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,8 @@ export function AiGatewayConsentModal() {
115115
}, [setShowModal, callbacks]);
116116

117117
const handleManualEntry = useCallback(() => {
118-
console.log("[AiGatewayConsentModal] handleManualEntry called");
119-
console.log(
120-
"[AiGatewayConsentModal] onManualEntry exists:",
121-
!!callbacks.onManualEntry
122-
);
123118
setShowModal(false);
124-
console.log("[AiGatewayConsentModal] Modal closed, calling onManualEntry");
125119
callbacks.onManualEntry?.();
126-
console.log("[AiGatewayConsentModal] onManualEntry completed");
127120
}, [setShowModal, callbacks]);
128121

129122
return (

components/ui/integration-selector.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ export function IntegrationSelector({
206206
!aiGatewayStatus?.hasManagedKey;
207207

208208
const handleConsentSuccess = useCallback(async (integrationId: string) => {
209-
console.log("[IntegrationSelector] handleConsentSuccess called with:", integrationId);
210209
await loadIntegrations();
211210
onChange(integrationId);
212211
setIntegrationsVersion((v) => v + 1);
@@ -220,18 +219,16 @@ export function IntegrationSelector({
220219
onAddConnection();
221220
} else if (shouldUseManagedKeys) {
222221
// For AI Gateway with managed keys enabled, show consent modal
223-
console.log("[IntegrationSelector] Opening global consent modal for type:", integrationType);
224222
openConsentModal({
225223
onConsent: handleConsentSuccess,
226224
onManualEntry: () => {
227-
console.log("[IntegrationSelector] onManualEntry callback for type:", integrationType);
228225
setShowNewDialog(true);
229226
},
230227
});
231228
} else {
232229
setShowNewDialog(true);
233230
}
234-
}, [onAddConnection, shouldUseManagedKeys, integrationType, openConsentModal, handleConsentSuccess]);
231+
}, [onAddConnection, shouldUseManagedKeys, openConsentModal, handleConsentSuccess]);
235232

236233
// Only show loading skeleton if we have no cached data and haven't fetched yet
237234
if (!hasCachedData && !hasFetched) {

components/workflow/config/action-config.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -354,31 +354,19 @@ export function ActionConfig({
354354
aiGatewayStatus?.isVercelUser;
355355

356356
const handleConsentSuccess = (integrationId: string) => {
357-
console.log(
358-
"[ActionConfig] handleConsentSuccess called with:",
359-
integrationId
360-
);
361357
onUpdateConfig("integrationId", integrationId);
362358
setIntegrationsVersion((v) => v + 1);
363359
};
364360

365361
const handleAddSecondaryConnection = () => {
366-
console.log("[ActionConfig] handleAddSecondaryConnection called");
367-
console.log("[ActionConfig] shouldUseManagedKeys:", shouldUseManagedKeys);
368-
console.log("[ActionConfig] integrationType:", integrationType);
369362
if (shouldUseManagedKeys) {
370-
console.log("[ActionConfig] Opening global consent modal");
371363
openConsentModal({
372364
onConsent: handleConsentSuccess,
373365
onManualEntry: () => {
374-
console.log(
375-
"[ActionConfig] onManualEntry callback, opening form dialog"
376-
);
377366
setShowAddConnectionDialog(true);
378367
},
379368
});
380369
} else {
381-
console.log("[ActionConfig] Opening local form dialog");
382370
setShowAddConnectionDialog(true);
383371
}
384372
};

drizzle/meta/0004_snapshot.json

Lines changed: 19 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,8 @@
9393
"name": "accounts_user_id_users_id_fk",
9494
"tableFrom": "accounts",
9595
"tableTo": "users",
96-
"columnsFrom": [
97-
"user_id"
98-
],
99-
"columnsTo": [
100-
"id"
101-
],
96+
"columnsFrom": ["user_id"],
97+
"columnsTo": ["id"],
10298
"onDelete": "no action",
10399
"onUpdate": "no action"
104100
}
@@ -163,12 +159,8 @@
163159
"name": "api_keys_user_id_users_id_fk",
164160
"tableFrom": "api_keys",
165161
"tableTo": "users",
166-
"columnsFrom": [
167-
"user_id"
168-
],
169-
"columnsTo": [
170-
"id"
171-
],
162+
"columnsFrom": ["user_id"],
163+
"columnsTo": ["id"],
172164
"onDelete": "no action",
173165
"onUpdate": "no action"
174166
}
@@ -241,12 +233,8 @@
241233
"name": "integrations_user_id_users_id_fk",
242234
"tableFrom": "integrations",
243235
"tableTo": "users",
244-
"columnsFrom": [
245-
"user_id"
246-
],
247-
"columnsTo": [
248-
"id"
249-
],
236+
"columnsFrom": ["user_id"],
237+
"columnsTo": ["id"],
250238
"onDelete": "no action",
251239
"onUpdate": "no action"
252240
}
@@ -316,12 +304,8 @@
316304
"name": "sessions_user_id_users_id_fk",
317305
"tableFrom": "sessions",
318306
"tableTo": "users",
319-
"columnsFrom": [
320-
"user_id"
321-
],
322-
"columnsTo": [
323-
"id"
324-
],
307+
"columnsFrom": ["user_id"],
308+
"columnsTo": ["id"],
325309
"onDelete": "no action",
326310
"onUpdate": "no action"
327311
}
@@ -331,9 +315,7 @@
331315
"sessions_token_unique": {
332316
"name": "sessions_token_unique",
333317
"nullsNotDistinct": false,
334-
"columns": [
335-
"token"
336-
]
318+
"columns": ["token"]
337319
}
338320
},
339321
"policies": {},
@@ -402,9 +384,7 @@
402384
"users_email_unique": {
403385
"name": "users_email_unique",
404386
"nullsNotDistinct": false,
405-
"columns": [
406-
"email"
407-
]
387+
"columns": ["email"]
408388
}
409389
},
410390
"policies": {},
@@ -551,12 +531,8 @@
551531
"name": "workflow_execution_logs_execution_id_workflow_executions_id_fk",
552532
"tableFrom": "workflow_execution_logs",
553533
"tableTo": "workflow_executions",
554-
"columnsFrom": [
555-
"execution_id"
556-
],
557-
"columnsTo": [
558-
"id"
559-
],
534+
"columnsFrom": ["execution_id"],
535+
"columnsTo": ["id"],
560536
"onDelete": "no action",
561537
"onUpdate": "no action"
562538
}
@@ -639,25 +615,17 @@
639615
"name": "workflow_executions_workflow_id_workflows_id_fk",
640616
"tableFrom": "workflow_executions",
641617
"tableTo": "workflows",
642-
"columnsFrom": [
643-
"workflow_id"
644-
],
645-
"columnsTo": [
646-
"id"
647-
],
618+
"columnsFrom": ["workflow_id"],
619+
"columnsTo": ["id"],
648620
"onDelete": "no action",
649621
"onUpdate": "no action"
650622
},
651623
"workflow_executions_user_id_users_id_fk": {
652624
"name": "workflow_executions_user_id_users_id_fk",
653625
"tableFrom": "workflow_executions",
654626
"tableTo": "users",
655-
"columnsFrom": [
656-
"user_id"
657-
],
658-
"columnsTo": [
659-
"id"
660-
],
627+
"columnsFrom": ["user_id"],
628+
"columnsTo": ["id"],
661629
"onDelete": "no action",
662630
"onUpdate": "no action"
663631
}
@@ -736,12 +704,8 @@
736704
"name": "workflows_user_id_users_id_fk",
737705
"tableFrom": "workflows",
738706
"tableTo": "users",
739-
"columnsFrom": [
740-
"user_id"
741-
],
742-
"columnsTo": [
743-
"id"
744-
],
707+
"columnsFrom": ["user_id"],
708+
"columnsTo": ["id"],
745709
"onDelete": "no action",
746710
"onUpdate": "no action"
747711
}
@@ -764,4 +728,4 @@
764728
"schemas": {},
765729
"tables": {}
766730
}
767-
}
731+
}

drizzle/meta/_journal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"breakpoints": true
3939
}
4040
]
41-
}
41+
}

lib/ai-gateway/state.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ export const aiGatewayConsentCallbacksAtom = atom<AiGatewayConsentCallbacks>(
2929
export const openAiGatewayConsentModalAtom = atom(
3030
null,
3131
(get, set, callbacks: AiGatewayConsentCallbacks) => {
32-
console.log(
33-
"[openAiGatewayConsentModalAtom] Setting callbacks and opening modal"
34-
);
3532
set(aiGatewayConsentCallbacksAtom, callbacks);
3633
set(showAiGatewayConsentModalAtom, true);
3734
}

0 commit comments

Comments
 (0)