Commit Graph

285 Commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
34968ee74a Fix: Select.Item value prop error
The Select.Item component requires a non-empty string value prop. This commit addresses the error by ensuring that the value prop is not an empty string.
2025-05-20 20:22:16 +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]
6d6734c17d Refactor: Split GruposWhatsApp.tsx into smaller components
Split the large GruposWhatsApp.tsx file into smaller, more manageable components to improve readability and maintainability. This refactoring aims to improve code organization without altering existing functionality.
2025-05-20 20:15:21 +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]
a12e1411ef Fix: Restore WhatsApp menu and fix groups menu
Reverts the WhatsApp menu item name change and addresses the non-functional groups menu.
2025-05-20 20:05:31 +00:00
gpt-engineer-app[bot]
ecaa65fdf5 Fix: Sidebar overlapping content
Adjust the sidebar's positioning to prevent it from overlapping content on the screen.
2025-05-20 20:02:46 +00:00
gpt-engineer-app[bot]
ff772429f7 Fix: Resolve import error in App.tsx
Fixes an import error in `App.tsx` related to the `authStore`.  The error message "Failed to resolve import "./stores/authStore" from "src/App.tsx". Does the file exist?" indicates that the specified module could not be found.  This commit addresses the issue by ensuring the correct import path or by creating the missing file.
2025-05-20 20:00:20 +00:00
gpt-engineer-app[bot]
ea18d3488d Run SQL for credit card and expenses
This commit executes the provided SQL script to create tables for credit cards and their associated expenses in the Supabase database.
2025-05-20 19:57:53 +00:00
gpt-engineer-app[bot]
c461f132fb Fix: Check QR code generation
Investigate and address potential issues with QR code generation for WhatsApp connections.
2025-05-20 19:49:35 +00:00
gpt-engineer-app[bot]
03bb67872a Revert instance creation changes
Reverts changes to the instance creation form and related hooks, restoring the functionality to create and connect instances as it was before the recent changes.
2025-05-20 19:37:49 +00:00
gpt-engineer-app[bot]
a9ee70ccb6 feat: Implement "Atualizar Lista" button
The "Connect WhatsApp" menu now loads instances only on clicking the "Atualizar Lista" button. The button fetches instances from the API, filters by the user's instance name, and displays the results. It also shows an appropriate message if no instances are found and addresses potential rendering errors.
2025-05-20 19:26:10 +00:00
gpt-engineer-app[bot]
66e18c3988 Fix: Resolve React error #301
The error is a minified React error, likely caused by a problem with the component's rendering. The error occurs on the /whatsapp route.
2025-05-20 17:30:32 +00:00
gpt-engineer-app[bot]
57d71c73af Fix: Remove unnecessary login message
The login message was appearing even when the user was logged in. The request on app load is only to fetch existing instances.
2025-05-20 17:07:26 +00:00
gpt-engineer-app[bot]
4da7b28d1a Refactor: Split InstanceCard into smaller components
Refactors the InstanceCard component into smaller, more manageable components to improve code organization and readability. This includes extracting parts of the UI and logic into separate components.
2025-05-20 17:03:04 +00:00
gpt-engineer-app[bot]
d9a804c36a Refactor: Break down WhatsApp.tsx into smaller components
Refactors WhatsApp.tsx into smaller, more manageable components and hooks to improve readability and maintainability. This reduces the overall complexity of the file.
2025-05-20 17:01:02 +00:00
gpt-engineer-app[bot]
62e2acbf4e Fix: WhatsApp instance search trigger
The instance search was incorrectly triggered on every keystroke in the instance name input field. The fix ensures that the search uses the saved instance name from local storage, and is only triggered when the "Conectar WhatsApp" menu is opened. The instance name input field is now only used for creating new instances.
2025-05-20 16:57:16 +00:00
gpt-engineer-app[bot]
12e6cda1df Feat: Fetch WhatsApp instance on mount
Adds functionality to fetch a WhatsApp instance from the Evolution API when the "Conectar WhatsApp" menu is accessed. The request uses the instance name entered in the form, includes the necessary headers, and displays the instance information. It also handles cases where the user is not logged in and when the instance is not found.
2025-05-20 16:01:08 +00:00
gpt-engineer-app[bot]
002103e676 Refactor: Improve chart visuals
Improve the visual appearance of the pie chart and the "Receitas vs Despesas" chart, aiming for a more modern look, without affecting other functionalities.
2025-05-20 14:35:43 +00:00