Commit Graph

403 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
e1087e22c6 Fix: Improve monthly chart readability
The AI improved the monthly chart to prevent overlapping labels. It adjusted the display of revenue and expense values for better clarity.
2025-06-03 22:39:12 +00:00
gpt-engineer-app[bot]
cb2d335aab feat: Add month filter to dashboard and transactions
Implement month filtering for the dashboard and transactions pages, allowing users to select a month and view data accordingly.
2025-05-31 18:00:30 +00:00
gpt-engineer-app[bot]
e7b414724b Fix: Debug info not showing correct data
The AI will investigate why the debug information is not reflecting the expected data from the database, potentially due to incorrect database connection or data retrieval issues.
2025-05-24 14:44:09 +00:00
gpt-engineer-app[bot]
ea7398237e Fix: Resolve 'instanceData' not found error
The code was throwing a "Cannot find name 'instanceData'" error in `CreateGroupForm.tsx`. This commit resolves the error by ensuring that the `instanceData` variable is correctly defined and accessible within the component's scope.
2025-05-24 14:37:32 +00:00
gpt-engineer-app[bot]
497c27c7f1 Fix: Enable group creation button
The group creation button should be enabled when the user has a connected WhatsApp instance. The code was updated to check if the user's instance is connected.
2025-05-24 14:36:08 +00:00
gpt-engineer-app[bot]
7ea5009fbd Fix: Enable "Cadastrar Grupo" button logic
The "Cadastrar Grupo" button should be enabled when the user's WhatsApp instance name is filled in the "usuarios" table and the status is "connected". This commit implements this logic.
2025-05-24 14:31:23 +00:00
gpt-engineer-app[bot]
9afd8b4457 Fix: Resolve import error in CreateGroupForm
The CreateGroupForm component was importing a non-existent function `cadastrarGrupoWhatsApp` from `gruposWhatsAppService.ts`. This commit corrects the import to use the available `findOrCreateWhatsAppGroup` function, which is more appropriate for the intended functionality of creating a group.
2025-05-24 14:23:31 +00:00
gpt-engineer-app[bot]
b2cee3d1e5 Fix: Instance data not matching database
The AI investigated the discrepancy between the database and debug information, ensuring the correct database connection and column usage.
2025-05-24 14:21:31 +00:00
gpt-engineer-app[bot]
c004980163 feat: Save WhatsApp instance on creation
- Save the WhatsApp instance name to the 'instancia_zap' column in the 'usuarios' table when a new instance is created.
- Update the instance status based on connection status.
- Prevent the creation of multiple instances per user.
2025-05-24 14:15:57 +00:00
gpt-engineer-app[bot]
ead6400404 Fix: Enable "Cadastrar Grupo" button
The "Cadastrar Grupo" button in the Grupos menu was not enabled after connecting a WhatsApp instance. This commit reviews the logic in `CreateGroupForm.tsx` to ensure the button is correctly enabled when a WhatsApp instance is connected and the user is logged in.
2025-05-24 14:09:31 +00:00
gpt-engineer-app[bot]
417c24089b Run SQL to add WhatsApp columns
Adds `instancia_zap` and `status_instancia` columns to the `usuarios` table.
2025-05-24 14:02:02 +00:00
gpt-engineer-app[bot]
80cd8a1517 Run SQL to update database function
The SQL command to update the `registrar_usuario` function has been reviewed and approved. This commit runs the SQL.
2025-05-24 13:11:05 +00:00
gpt-engineer-app[bot]
354c53212d Refactor: Split RegisterForm.tsx into smaller components
Refactor RegisterForm.tsx into smaller, reusable components to improve code organization and maintainability.
2025-05-24 13:07:24 +00:00
gpt-engineer-app[bot]
bd322c9f45 Fix: Resolve TypeScript error in RegisterForm
The commit addresses a TypeScript error in `RegisterForm.tsx` related to the `whatsapp` field. The error message "Object literal may only specify known properties, and 'whatsapp' does not exist in type" indicates that the `whatsapp` field is not correctly recognized within the object being used.
2025-05-24 12:15:00 +00:00
gpt-engineer-app[bot]
13db2b6b01 Run SQL to add remote_jid column
The SQL commands to add the `remote_jid` column to the `usuarios` table have been approved and should be executed.
2025-05-23 16:41:37 +00:00
gpt-engineer-app[bot]
47ce122c02 Fix: TypeScript error in RegisterForm.tsx
The TypeScript error in `RegisterForm.tsx` is caused by the `whatsapp` field not being included in the type definition. This commit will address the error by updating the type definition to include the `whatsapp` field.
2025-05-23 16:40:11 +00:00
gpt-engineer-app[bot]
d304d5c9c6 Fix: Add WhatsApp to registration form type
The `RegisterForm.tsx` component was updated to include a WhatsApp field. The TypeScript error was resolved by adding the `whatsapp` property to the type definition used for the registration form data. This ensures that the object literal used to pass data to the `supabase.rpc('registrar_usuario')` function includes the `whatsapp` field, resolving the type error.
2025-05-23 16:15:10 +00:00
gpt-engineer-app[bot]
e75d0058d6 Run SQL to add WhatsApp column
Adds the WhatsApp column to the usuarios table in the Supabase database.
2025-05-23 16:11:31 +00:00
gpt-engineer-app[bot]
af6bfe3177 Fix: Redirect to dashboard after login
The app was incorrectly redirecting to a 404 page after login. This commit fixes the redirect to the dashboard after a successful login.
2025-05-22 22:00:44 +00:00
gpt-engineer-app[bot]
9a2f18c74e Add delete meta option to menu
Adds a delete option to the meta menu for deleting registered metas.
2025-05-22 21:54:38 +00:00
gpt-engineer-app[bot]
002836773d Fix: React refresh preamble error
The error "React refresh preamble was not loaded" in `sonner.tsx` suggests a problem with the Vite configuration or React refresh setup. The AI will investigate the Vite configuration (`vite.config.ts`) and the component's import/export structure to ensure proper React refresh functionality.
2025-05-22 14:15:37 +00:00
gpt-engineer-app[bot]
006c2dacc4 Add WhatsApp number to registration
Adds a WhatsApp number field to the registration form and includes it in the data sent to the webhook.
2025-05-22 12:30:35 +00:00
gpt-engineer-app[bot]
6750ecd20e Update registration webhook URL
Update the webhook URL in `src/utils/webhookService.ts` to the new URL provided by the user.
2025-05-21 19:58:14 +00:00
gpt-engineer-app[bot]
74ec708d37 Refactor: Split Auth.tsx into smaller components
Refactor src/pages/Auth.tsx into smaller, more manageable components to improve readability and maintainability.
2025-05-21 19:54:31 +00:00
gpt-engineer-app[bot]
63fd48a4a9 Fix: History replaceState overuse
The commit addresses a "SecurityError: Attempt to use history.replaceState() more than 100 times per 10 seconds" error, likely caused by excessive calls to `history.replaceState()`.
2025-05-21 18:30:26 +00:00
gpt-engineer-app[bot]
36a045d899 Feat: Send user data to webhook on signup
Implement a webhook call to send user registration data to a specified URL after successful signup.
2025-05-21 18:27:03 +00:00
gpt-engineer-app[bot]
17e570de84 Fix: Resolve module import error
The error "TypeError: Importing a module script failed" suggests an issue with module loading in the frontend. This commit aims to address the error, likely by reviewing and correcting module imports, especially in `src/main.tsx` and `index.html`, to ensure proper module loading and prevent runtime errors.
2025-05-21 17:50:06 +00:00
gpt-engineer-app[bot]
96237c4c37 Fix: Resolve module import errors
The commit fixes module import errors in `DespesaCartaoForm.tsx` and `useDespesaCartaoForm.ts` by ensuring the correct path to `despesasService` is used. This resolves the "cannot find module" errors.
2025-05-21 12:55:13 +00:00
gpt-engineer-app[bot]
70c125715a Refactor despesasService.ts
Refactor `despesasService.ts` into smaller, modular files to improve code organization and maintainability.
2025-05-21 11:47:11 +00:00
gpt-engineer-app[bot]
e58db1bb1a Fix: Incorrect card total calculation
The card total in `CartaoDetalhes.tsx` was not correctly reflecting the sum of transactions. This commit addresses the issue.
2025-05-21 10:54:12 +00:00
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]
1e9117cbd2 Refactor: Use login and nome for expense association
Update the frontend logic to display credit card expenses based on a combination of the 'login' and 'nome' columns, instead of 'cartao_id', for associating expenses with cards and users.
2025-05-21 10:44:46 +00:00
gpt-engineer-app[bot]
e6d6f5c2b3 Refactor: Split TransactionForm into smaller components
Refactors TransactionForm.tsx into smaller, reusable components and a custom hook to improve code organization and maintainability.
2025-05-21 09:54:05 +00:00
gpt-engineer-app[bot]
1cb5be29cc Refactor: Split DespesaCartaoFormSelect.tsx
Split DespesaCartaoFormSelect.tsx into smaller, more manageable components.
2025-05-21 09:50:32 +00:00
gpt-engineer-app[bot]
5e9b6ca74a Run SQL to add columns
Add `login` and `nome` columns to `despesas_cartao` table.
2025-05-21 09:45:27 +00:00
gpt-engineer-app[bot]
a7506e7070 Fix: Ensure despesas_cartao database connection
Check and resolve issues preventing credit card expense inclusion, verifying the database connection.
2025-05-21 09:25:21 +00:00
gpt-engineer-app[bot]
80835c6ca0 Fix: Include new transactions in Transacoes menu
The changes ensure that credit card expenses, new expenses, and new income are correctly included in the transactions menu.
2025-05-21 01:19:35 +00:00
gpt-engineer-app[bot]
1843cd56b2 Fix TypeScript errors in cartao and despesas services
Resolve errors related to missing properties and type inconsistencies in cartoesService.ts, despesasService.ts, and cartaoTypes.ts. Address the infinite type instantiation error.
2025-05-21 01:08:33 +00:00
gpt-engineer-app[bot]
0d7e56b168 Fix TypeScript errors in services 2025-05-21 01:04:01 +00:00
gpt-engineer-app[bot]
1c529d1310 Fix cartao service type errors
Fixes TypeScript errors related to missing properties in `cartoesService.ts` and `despesasService.ts`, specifically addressing issues with `cartao_codigo`, `bandeira`, and `banco` properties. Also addresses the infinite type instantiation error.
2025-05-21 00:59:44 +00:00
gpt-engineer-app[bot]
18e751ca31 feat: Add pagination to DespesasList
Adds pagination to the DespesasList component to improve handling of large expense lists.
2025-05-21 00:57:41 +00:00
gpt-engineer-app[bot]
4798390546 feat: Add pagination to expenses list
Adds pagination to the DespesasList component to improve handling of large expense lists. Uses the Pagination component from ui/pagination.tsx.
2025-05-21 00:56:16 +00:00
gpt-engineer-app[bot]
df6ee93e01 Refactor: Split CartoesCredito.tsx into components
Refactors the CartoesCreditoPage into smaller, reusable components to improve code organization and maintainability.
2025-05-21 00:54:15 +00:00
gpt-engineer-app[bot]
8253e603a6 Refactor: Split cartaoCreditoService.ts into smaller files
Split the cartaoCreditoService.ts file into smaller, more manageable files to improve code organization and maintainability.
2025-05-21 00:51:28 +00:00
gpt-engineer-app[bot]
8b64a56cd5 Fix TypeScript errors in credit card features
The commit addresses multiple TypeScript errors related to the credit card functionality. It corrects an argument count mismatch in `CartaoCreditoForm.tsx`, resolves missing property errors for `cartao_codigo` in `cartaoCreditoService.ts`, and fixes type instantiation issues.
2025-05-21 00:48:59 +00:00
gpt-engineer-app[bot]
586f831b30 Fix: Resolve TypeScript errors in credit card features
This commit addresses multiple TypeScript errors related to the credit card features. It fixes an argument count mismatch in `DespesaCartaoForm.tsx`, type mismatches in `cartaoCreditoService.ts` related to missing `cartao_codigo` properties, and excessively deep type instantiations. These changes ensure the correct data types are used throughout the application, resolving the build errors and improving code stability.
2025-05-21 00:34:28 +00:00
gpt-engineer-app[bot]
0d58128969 Implement credit card and expense features.
Add credit card registration form with required fields and auto-generated code. Implement expense registration form with card selection and required fields. Establish association logic between expenses and cards based on user and card codes. Ensure data privacy and validation.
2025-05-21 00:21:30 +00:00
gpt-engineer-app[bot]
04ed74ac61 Fix: WhatsApp instance refresh and expense summary
- Fixed an issue where the "Atualizar Lista" button in the WhatsApp connect menu was not correctly displaying created instances.
- Implemented the display of credit card expenses in the transaction and dashboard summaries. The summaries now include the total expenses for each credit card, aggregated with other transaction expenses.
2025-05-20 23:26:56 +00:00
gpt-engineer-app[bot]
afb53c1429 Refactor: Split Transacoes.tsx into smaller components
Refactored the `TransacoesPage` component into smaller, more manageable components to improve code organization and readability. This includes extracting the table, form, and dialog related logic into separate files. Unused imports and files were also removed.
2025-05-20 23:11:39 +00:00
gpt-engineer-app[bot]
9d02a2203d feat: Add credit card expense to transactions
Adds the functionality to include credit card expenses within the transactions menu, mirroring the existing "Nova Despesa" button functionality. This allows users to select a credit card when adding a new expense.
2025-05-20 20:26:48 +00:00