Commit Graph

21 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
049acd069e Refactor: Split transacaoService.ts into smaller files
Refactors transacaoService.ts into smaller, more manageable files to improve code organization and maintainability.
2025-05-21 10:49:36 +00:00
gpt-engineer-app[bot]
1c78451e07 Fix: TransactionForm prop type and service errors
Fixes the type error in `Transacoes.tsx` by ensuring the `TransactionForm` component receives the correct props, specifically addressing the missing `transaction` prop. Also resolves the type errors in `transacaoService.ts` related to incorrect argument types for number parameters.
2025-05-20 20:17:38 +00:00
gpt-engineer-app[bot]
c5f3a3d161 Feat: Add group name input and transaction actions
- Added an input field in the GruposWhatsApp menu for users to name their WhatsApp groups, and store the name in the database.
- Added delete and edit buttons to the transactions table, with database integration.
2025-05-20 20:13:08 +00:00
gpt-engineer-app[bot]
6a38fd0bf1 Refactor: Use email (login) for user identification
Update the system to use the user's email (login) as the primary identifier for linking users, WhatsApp groups, and transactions. This includes changes to the `grupos_whatsapp` and `transacoes` tables, as well as adjustments to queries and data retrieval logic. The `user_id` field is maintained for compatibility.
2025-05-20 01:08:48 +00:00
gpt-engineer-app[bot]
5a16246b23 Apply Supabase schema changes
Apply the SQL schema changes to Supabase, including the creation of the `grupos_whatsapp` table and the addition of the `grupo_id` column to the `transacoes` table.
2025-05-20 00:04:49 +00:00
gpt-engineer-app[bot]
e288c9262d Fix: Persist metas, fix category display, add category labels
- Fixed the issue where metas disappeared after navigating away and back.
- Fixed the category display in the dashboard and category menu.
- Added category names to the pie chart labels.
2025-05-19 12:55:27 +00:00
gpt-engineer-app[bot]
0f5e9e7d72 Fix user-specific data and UI issues
- Display user's real name in the header.
- Fix category menu and transaction filters.
- Implement a split view for transactions.
- Ensure each user uses their own database.
- Update database naming.
2025-05-19 12:08:55 +00:00
gpt-engineer-app[bot]
416074060d Implement user-specific data separation
Configure the application to associate each user with a distinct database or data scope, ensuring that users like Rodrigo and Rejane access only their own transactions and data, preventing shared data access.
2025-05-19 11:52:23 +00:00
gpt-engineer-app[bot]
746083c7ed Disable RLS to resolve errors
The user requested to disable Row Level Security (RLS) to address persistent authorization errors.
2025-05-19 01:30:03 +00:00
gpt-engineer-app[bot]
c5d3e51a34 Fix: Authentication error on transaction save
The AI addressed an authentication error that occurred when saving new transactions. It updated `TransactionForm.tsx` to correctly retrieve the user ID, get the session, and insert data into the user-specific table, ensuring proper authentication and data insertion according to Supabase's security policies.
2025-05-18 13:25:43 +00:00
gpt-engineer-app[bot]
22136fc8a1 Fix: Transaction save error
Investigate and resolve an issue where saving new transactions fails, potentially unrelated to the database.
2025-05-18 13:19:36 +00:00
gpt-engineer-app[bot]
6bed5a8fc4 Run SQL to fix column name
The SQL was reviewed and approved. This commit runs the SQL to fix the column name issue.
2025-05-18 13:13:28 +00:00
gpt-engineer-app[bot]
b02d7f29e6 Fix: Supabase table name issue
The errors indicate a problem with the Supabase table names being passed as strings instead of the correct type. This is causing type errors in `TransactionForm.tsx` and `transacaoService.ts`. The fix will involve ensuring the correct table names are used when calling Supabase functions.
2025-05-18 13:10:04 +00:00
gpt-engineer-app[bot]
c05ba05353 Run SQL to create user and transaction tables. 2025-05-18 13:06:18 +00:00
gpt-engineer-app[bot]
98fb2f72ec Fix: Apply responsiveness adjustments
The AI addressed responsiveness issues, ensuring the changes are reflected on the live URL.
2025-05-18 02:27:44 +00:00
gpt-engineer-app[bot]
0df3fc10ee Fix: Dashboard and Categorias page data
The dashboard was not displaying expenses correctly, and the categorias menu was empty. This commit revises the code to ensure expenses are correctly calculated and displayed, and that the categorias menu populates with data.
2025-05-18 02:24:03 +00:00
gpt-engineer-app[bot]
254b231ec8 Refactor: Sum category values in Categorias page
Use the 'categoria' column to sum values in the Categorias menu.
2025-05-17 23:54:56 +00:00
gpt-engineer-app[bot]
14f970f191 Fix: Use transaction type for sign
Updated `transacaoService.ts` to determine the sign of the transaction value based on the 'tipo' column instead of 'categoria'.
2025-05-17 23:51:21 +00:00
gpt-engineer-app[bot]
d7bf29cf60 Fix: Implement income/expense logic and icon activation
-   Adjusted the display of transaction values to be positive for income and negative for expenses, based on the category.
-   Activated the icons for "Receitas", "Despesas", "Saldo", and "Economia" in the dashboard.
2025-05-17 23:49:54 +00:00
gpt-engineer-app[bot]
22ce38db82 Fix: Display existing transactions
The dashboard was not displaying the existing transactions from the Supabase table. This commit ensures that the transactions are correctly fetched and displayed on the front end.
2025-05-17 23:40:27 +00:00
gpt-engineer-app[bot]
a4f8efc420 Connect to transactions table 2025-05-17 23:37:48 +00:00