Commit Graph

184 Commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
24bd10f6a4 Fix Transactions page loading issue
Addresses a problem where the Transactions page was failing to load.
2025-03-15 11:14:51 +00:00
gpt-engineer-app[bot]
3be0a0decb Use budget context data in Analytics
Replaced hardcoded data with actual budget context data in Analytics.tsx.
2025-03-15 11:10:57 +00:00
gpt-engineer-app[bot]
ca4c9da26e Refactor Transactions page
Refactor Transactions page to utilize the useTransactions hook for improved code reusability and reduced redundancy.
2025-03-15 11:09:13 +00:00
gpt-engineer-app[bot]
8c403f9761 Refactor BudgetContext file
Refactor BudgetContext.tsx into smaller components and hooks to improve code readability and maintainability.
2025-03-15 11:08:35 +00:00
gpt-engineer-app[bot]
6e02282383 Fix budget discrepancies
The budget amounts displayed on the home page were inconsistent with those shown on the transactions and analytics pages. This commit addresses this issue.
2025-03-15 11:06:23 +00:00
gpt-engineer-app[bot]
81a950a96c Revert to three expense categories
Reverted the number of expense categories back to the original three. Future feature additions or changes will require confirmation.
2025-03-15 11:00:35 +00:00
gpt-engineer-app[bot]
bbf0f75b66 Fix type errors in BudgetContext
Addresses type errors related to category budgets in BudgetContext and Index page. Specifically, ensures correct type assignment for category budget updates.
2025-03-15 10:54:24 +00:00
gpt-engineer-app[bot]
53096ae26e Implement additional improvements
This commit implements additional improvements as requested.
2025-03-15 10:52:53 +00:00
gpt-engineer-app[bot]
cc0af1aee0 Fix rendering issue
Addresses a problem where the screen was not rendering correctly.
2025-03-15 10:27:42 +00:00
gpt-engineer-app[bot]
f22e99ecef Refactor TransactionCard component
Refactor TransactionCard component into smaller, more manageable components without changing functionality.
2025-03-15 10:27:01 +00:00
gpt-engineer-app[bot]
cb6c792d86 Refactor TransactionEditDialog component
Refactor TransactionEditDialog.tsx into smaller, more manageable components for improved code organization and maintainability. No functional changes were made.
2025-03-15 10:25:48 +00:00
gpt-engineer-app[bot]
477e1ccbc0 Refactor: Split useTransactions hook
Splits the `useTransactions` hook into smaller, more manageable files for improved code organization and maintainability. No functional changes are included.
2025-03-15 10:22:51 +00:00
gpt-engineer-app[bot]
8e1f2de87e Remove demo mode
Removes demo mode to ensure proper Supabase functionality.
2025-03-15 10:20:14 +00:00
gpt-engineer-app[bot]
7b2ce776e4 Add Supabase settings route
Adds a new route to the App component for the SupabaseSettings page.
2025-03-15 08:11:58 +00:00
gpt-engineer-app[bot]
01e71d1219 Document on-premise Supabase setup
Adds documentation on how to connect to an on-premise Supabase instance.
2025-03-15 08:11:00 +00:00
gpt-engineer-app[bot]
fbd9924004 Implement transaction history page
This commit implements the transaction history page.
2025-03-15 07:41:09 +00:00