From 418fbf13e02d19dc0bc5eec37eb54bfe7a97253e Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Tue, 25 Mar 2025 13:54:15 +0000 Subject: [PATCH] refactor: remove debug log and improve button layout in SupabaseConnection Remove console.log statement for debugging purposes in the API route and enhance the layout of buttons in the SupabaseConnection component by grouping them and adding a refresh button --- app/components/chat/SupabaseConnection.tsx | 24 +++++++++++++++------- app/routes/api.supabase.ts | 5 ----- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/app/components/chat/SupabaseConnection.tsx b/app/components/chat/SupabaseConnection.tsx index a9261f4d..dc73973a 100644 --- a/app/components/chat/SupabaseConnection.tsx +++ b/app/components/chat/SupabaseConnection.tsx @@ -214,13 +214,23 @@ export function SupabaseConnection() { )} /> - +
+ + +
{isProjectsExpanded && ( diff --git a/app/routes/api.supabase.ts b/app/routes/api.supabase.ts index 955ae44e..f21da60f 100644 --- a/app/routes/api.supabase.ts +++ b/app/routes/api.supabase.ts @@ -34,11 +34,6 @@ export const action: ActionFunction = async ({ request }) => { } } - console.log( - 'Unique projects:', - Array.from(uniqueProjectsMap.values()).map((p) => ({ id: p.id, name: p.name })), - ); - const uniqueProjects = Array.from(uniqueProjectsMap.values()); uniqueProjects.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime());