From 096204fe51ff9df2adc219cb331e5a4c15204d14 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:11:00 +0000 Subject: [PATCH 1/2] refactor: Improve code structure and apply clean code principles This commit refactors the codebase to improve its structure and adhere to Clean Code principles. - Modularized the Supabase client by breaking down the monolithic `supabaseClient.ts` into smaller, more focused modules for reports, files, profiles, and auth. - Extracted helper functions from components like `Dashboard.tsx`, `AttachmentPreview.tsx`, and `AuthForm.tsx` into separate utility files to improve component readability and reusability. - Created a custom hook `useInactivityTimer` to handle session management, simplifying the `AuthProvider` component. - Extracted the complex `handleSendMessage` logic from `App.tsx` into a dedicated `analysisService.ts`. - Fixed multiple import paths that were broken during the refactoring process. - Renamed `src/frontend/utils/ui.ts` to `ui.tsx` to correctly handle JSX syntax. From 14ece111b6deb2751908cca2e265c6078261587a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:13:54 +0000 Subject: [PATCH 2/2] refactor: Improve code structure and apply clean code principles This commit refactors the codebase to improve its structure and adhere to Clean Code principles. - Modularized the Supabase client by breaking down the monolithic `supabaseClient.ts` into smaller, more focused modules for reports, files, profiles, and auth. - Extracted helper functions from components like `Dashboard.tsx`, `AttachmentPreview.tsx`, and `AuthForm.tsx` into separate utility files to improve component readability and reusability. - Created a custom hook `useInactivityTimer` to handle session management, simplifying the `AuthProvider` component. - Extracted the complex `handleSendMessage` logic from `App.tsx` into a dedicated `analysisService.ts`. - Fixed multiple import paths that were broken during the refactoring process. - Renamed `src/frontend/utils/ui.ts` to `ui.tsx` to correctly handle JSX syntax.