Commit Graph

350 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
f25d55690d Refactor supabase client file
Refactor the supabase client file into smaller modules.
2025-03-15 15:44:11 +00:00
gpt-engineer-app[bot]
1c3c4f37e0 Update CORS proxy configuration 2025-03-15 15:41:32 +00:00
gpt-engineer-app[bot]
0f4f426dd4 Debug login issues in lovable app
Investigate and address potential causes of login failures in the lovable app, including API request format discrepancies, cached token issues, and network problems.
2025-03-15 15:36:57 +00:00
gpt-engineer-app[bot]
03fcc7175c Improve sign-in API handling
Improve sign-in API handling to ensure successful login.
2025-03-15 15:33:30 +00:00
gpt-engineer-app[bot]
44b4e456dd Implement code changes
The AI implemented the code changes as requested.
2025-03-15 15:27:27 +00:00
gpt-engineer-app[bot]
9e7cd1f074 Update default API URL
Update the default Supabase API URL to http://a11.ism.kr.
2025-03-15 15:20:26 +00:00
gpt-engineer-app[bot]
0f07edaa98 Fix: Correct signUp type definition
The signUp function in AuthContextType was expecting only two arguments (email, password) but the RegisterForm component was passing three arguments (email, password, username). This commit updates the AuthContextType definition to match the actual usage in the RegisterForm component, resolving the TypeScript error.
2025-03-15 15:18:01 +00:00
gpt-engineer-app[bot]
3c96a9deac Improve authentication error handling
- Enhance error messages for authentication failures.
2025-03-15 15:16:15 +00:00
gpt-engineer-app[bot]
b2d444a9bc Fix type errors in Login page
The properties `isOfflineMode` and `setIsOfflineMode` were missing in the type definition of the `useLogin` hook return value, causing type errors in the Login page. This commit adds these properties to the type definition, resolving the errors. Also, the properties were missing in the LoginFormProps interface, so they were added there as well.
2025-03-15 15:13:21 +00:00
gpt-engineer-app[bot]
60adc4ce1f Remove offline mode
The offline mode was removed to focus on resolving connection issues instead of providing a workaround.
2025-03-15 15:06:37 +00:00
gpt-engineer-app[bot]
e52ca26cef Investigate login/register 404 errors
Investigate and address persistent 404 errors occurring during login and registration processes.
2025-03-15 15:01:48 +00:00
gpt-engineer-app[bot]
a32eb26105 Fix const reassignment error
The code was attempting to reassign a const variable, which is not allowed in JavaScript. This commit fixes the error.
2025-03-15 14:58:21 +00:00
gpt-engineer-app[bot]
8b783c741d Fix Supabase Storage API calls
Corrected endpoint paths and authorization headers for Supabase Storage API calls.
2025-03-15 14:57:10 +00:00
gpt-engineer-app[bot]
09f6f9d5fa Refactor Register page components
Splits the Register page into smaller, more manageable components for better organization and maintainability.
2025-03-15 13:52:41 +00:00
gpt-engineer-app[bot]
4a39c61976 Fix import path in Register
Corrected the import path for auth.utils in Register.tsx to resolve module not found error.
2025-03-15 13:51:31 +00:00
gpt-engineer-app[bot]
30d214b367 Refactor signIn and signUp
Refactor signIn.ts and signUp.ts files to improve maintainability.
2025-03-15 13:50:46 +00:00
gpt-engineer-app[bot]
5b73eddd4f Refactor auth.utils.ts
Refactor auth.utils.ts into smaller modules for better organization and maintainability. Split functions into networkUtils.ts, responseUtils.ts, and toastUtils.ts based on their purpose.
2025-03-15 13:48:29 +00:00
gpt-engineer-app[bot]
76f9b3b4df Update error messages
Update error messages to provide more clarity.
2025-03-15 13:27:38 +00:00
gpt-engineer-app[bot]
dc0e94d352 Investigate Supabase connection issues
Investigate the cause of "Unexpected end of JSON input" error despite successful Supabase connection test.
2025-03-15 13:24:11 +00:00
gpt-engineer-app[bot]
5853e5f51b Remove offline mode option
This commit removes the offline mode functionality and focuses on resolving server-side issues.
2025-03-15 13:20:51 +00:00
gpt-engineer-app[bot]
4f8b1c0189 Fix login and registration issues
Addresses issues preventing successful login and registration.
2025-03-15 13:16:19 +00:00
gpt-engineer-app[bot]
9ab2bf722a Refactor useLogin hook
Refactor the useLogin hook to separate login and table setup logic for better maintainability.
2025-03-15 13:11:33 +00:00
gpt-engineer-app[bot]
f335a381e3 Refactor Supabase setup file
Refactor src/lib/supabase/setup.ts into smaller files for better maintainability and readability.
2025-03-15 13:10:22 +00:00
gpt-engineer-app[bot]
068482e8e6 Refactor authActions module
Refactor authActions.ts into smaller files for better maintainability and readability.
2025-03-15 13:08:22 +00:00
gpt-engineer-app[bot]
8931ee4bb6 Fix TS2339 error in useLogin
The property 'user' might not exist on the returned object from signIn.
Handle the case where user is undefined.
2025-03-15 13:07:14 +00:00
gpt-engineer-app[bot]
a8537d5398 Investigate table creation API
Explore the possibility of creating tables directly via the Supabase API.
2025-03-15 13:05:45 +00:00
gpt-engineer-app[bot]
4bacba4719 Fix login failure after connection
Addresses an issue where login fails with a "Unexpected end of JSON input" error after a successful Supabase connection.
2025-03-15 13:02:55 +00:00
gpt-engineer-app[bot]
5fd4c183eb Update Supabase connection tests
Improve error handling for REST API and database connection tests.
2025-03-15 12:55:36 +00:00
gpt-engineer-app[bot]
b30fb33384 Fix testAuth arguments
The testAuth function in src/lib/supabase/tests/index.ts was called with only one argument, but it expects two. This commit fixes the issue by passing the supabase URL as the second argument to the testAuth function.
2025-03-15 12:51:07 +00:00
gpt-engineer-app[bot]
971a1d29e5 Refactor SupabaseConnectionTest component
The SupabaseConnectionTest component was refactored into smaller, more manageable components to improve readability and maintainability.
2025-03-15 12:45:12 +00:00
gpt-engineer-app[bot]
1e6d360d69 Fix type error in SupabaseConnectionTest
The TestResults type was not assignable to the TestResult type in the SupabaseConnectionTest component. This commit ensures the types are compatible.
2025-03-15 12:43:46 +00:00
gpt-engineer-app[bot]
dc92138a48 Fix TypeScript errors
Fixes TypeScript errors related to missing exports and incorrect function arguments.
2025-03-15 12:41:06 +00:00
gpt-engineer-app[bot]
73184782ec Refactor SupabaseSettingsForm component
The SupabaseSettingsForm component was refactored into smaller, more manageable components to improve readability and maintainability.
2025-03-15 12:39:59 +00:00
gpt-engineer-app[bot]
e687047401 Refactor Login component
Splits the Login component into smaller, more manageable parts and extracts related logic into hooks to improve code organization and readability.
2025-03-15 12:39:09 +00:00
gpt-engineer-app[bot]
511a5bb2da Refactor SupabaseSettingsForm component
The SupabaseSettingsForm component was refactored into smaller, more manageable components to improve readability and maintainability.
2025-03-15 12:37:34 +00:00
gpt-engineer-app[bot]
f9aec98a45 Refactor: Split Supabase tests
Splits the Supabase tests into smaller modules for better readability and maintainability.
2025-03-15 12:35:59 +00:00
gpt-engineer-app[bot]
785e69a42c Improve Supabase connection testing
Enhance the Supabase connection test to provide more detailed error information and handle potential CORS issues.
2025-03-15 12:32:40 +00:00
gpt-engineer-app[bot]
a55e780eec Fix TypeScript error in tests
The `backupProxySuccess` property was being assigned to the `debugInfo` object in the `testSupabaseConnection` function, but it was not defined in the type definition. This commit adds the `backupProxySuccess` property to the type definition of the `debugInfo` object to resolve the TypeScript error.
2025-03-15 12:29:07 +00:00
gpt-engineer-app[bot]
ae1db90d87 Investigate Supabase connection issues
Investigate REST API and database connection failures despite successful authentication.
2025-03-15 12:28:18 +00:00
gpt-engineer-app[bot]
6de30b681a Refactor SupabaseSettings component
The SupabaseSettings component was refactored into smaller, more manageable components to improve code organization and maintainability. The UI and functionality remain unchanged.
2025-03-15 12:24:40 +00:00
gpt-engineer-app[bot]
1623fd7738 Investigate CORS proxy failure
The CORS proxy is failing despite being enabled, resulting in REST API and database connection errors. Investigate the cause of the failure.
2025-03-15 12:23:00 +00:00
gpt-engineer-app[bot]
893e1cf0aa Improve Supabase connection testing
Enhance connection testing to provide more detailed error information.
2025-03-15 12:17:50 +00:00
gpt-engineer-app[bot]
f00c69a4ec Fix: Resolve syncAllData declaration conflict
The `syncAllData` function was declared in both `src/utils/sync/syncSettings.ts` and `src/utils/syncUtils.ts`, causing a conflict. This commit removes the duplicate declaration from `src/utils/sync/syncSettings.ts` to resolve the TypeScript error.
2025-03-15 12:14:15 +00:00
gpt-engineer-app[bot]
6991f5d27f Refactor syncSettings.ts
Refactor syncSettings.ts to improve modularity.
2025-03-15 12:13:19 +00:00
gpt-engineer-app[bot]
2493f958de Refactor supabase.ts into modules
Refactor the supabase.ts file into smaller modules, separating test functionalities and default client configurations while preserving all code functionalities.
2025-03-15 12:12:07 +00:00
gpt-engineer-app[bot]
3a14914482 Fix spread argument type error
The spread argument in the fetch function was causing a TypeScript error. Changed the fetch implementation to resolve the type issue.
2025-03-15 12:10:58 +00:00
gpt-engineer-app[bot]
66c2240bb2 Address error condition
The code has an error that needs to be addressed.
2025-03-15 12:09:51 +00:00
gpt-engineer-app[bot]
5371462b49 Add API test for login
This commit adds an API test to check if the login is working correctly.
2025-03-15 12:06:05 +00:00
gpt-engineer-app[bot]
2f3dda3ca6 Add Supabase settings page
This commit adds a Supabase settings page to configure the Supabase URL and Anon Key.
2025-03-15 12:00:46 +00:00
gpt-engineer-app[bot]
96ffe015ec Update Supabase Anon Key
Updates the Supabase anon key with the provided value.
2025-03-15 12:00:02 +00:00