Commit Graph

21 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
681cf5aa26 Changes 2025-11-25 23:23:04 +00:00
gpt-engineer-app[bot]
86396dfd1a Changes 2025-11-25 22:52:26 +00:00
gpt-engineer-app[bot]
2990ab9d30 Fix type and import errors
Fixes import errors in `src/pages/Index.tsx` and `src/pages/Metas.tsx`. Addresses missing properties and incorrect function calls.
2025-06-24 18:07:54 +00:00
gpt-engineer-app[bot]
e47501cfa1 Reverted to commit aeb9fa261d 2025-06-20 16:50:23 +00:00
gpt-engineer-app[bot]
3e3b931ca7 Fix CreateInstanceForm and userOperations errors
Fixed type errors in CreateInstanceForm.tsx and userOperations.ts related to argument counts, property definitions, and Supabase update calls. Corrected the WhatsAppInstance type definition and ensured correct data passing to Supabase.
2025-06-20 16:47:37 +00:00
gpt-engineer-app[bot]
47e003213d Run SQL to create credit card tables. 2025-06-11 00:33:12 +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]
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]
4f84ab9a9f Add workflow integration for WhatsApp groups
Integrate n8n workflow cloning upon WhatsApp group registration.  Adds a `workflow_id` column to the `grupos_whatsapp` table and updates the `cadastrarGrupoWhatsApp` function to call the n8n webhook, capturing the returned workflow ID and saving it to the database.  The button "Cadastrar Grupo" is only visible when the user is logged in.
2025-05-20 02:24:58 +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]
8435c03464 Run SQL to add WhatsApp group features. 2025-05-20 00:59:19 +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]
90b3030ebb Reverted to commit b8d0db98bb 2025-05-19 18:42:59 +00:00
gpt-engineer-app[bot]
b06373115b Fix: Resolve import error in Sidebar.tsx
The commit fixes an import error in `Sidebar.tsx` related to the `@/config/site` module. The error message indicates that the module cannot be resolved. The fix likely involves ensuring the correct path to the module or creating the missing file.
2025-05-19 18:30:40 +00:00
gpt-engineer-app[bot]
b8d0db98bb Fix: Type mismatch in useWhatsAppInstances
The commit fixes a TypeScript error in `useWhatsAppInstances.ts` where the `setInstances` function was receiving an array with incorrect types. The error occurred because the `connectionState` property was sometimes a string instead of the expected union type. The fix ensures that the `connectionState` is always of the correct type.
2025-05-19 18:10:59 +00:00
gpt-engineer-app[bot]
b0d6e88a76 Add advanced instance management features
Implement instance listing, restart, disconnect, delete, and presence setting functionalities with confirmation dialogs and UI updates.
2025-05-19 15:07:24 +00:00
gpt-engineer-app[bot]
926d3a37ef Refactor: Split WhatsApp.tsx into smaller components
This commit refactors the `WhatsApp.tsx` file into smaller, more manageable components. The form, instance list, QR code dialog, and API functions are separated into their own files to improve code organization and maintainability. No functionality changes were made.
2025-05-19 14:57:22 +00:00
gpt-engineer-app[bot]
e66b0342b7 Run SQL to create financial goals table. 2025-05-19 12:47:41 +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]
c59ba67daa feat: Create finance dashboard
Implement a dashboard to display financial information from a Supabase database. The data will be fetched from the 'transacoes' table, which includes columns like id, user, created_at, valor, quando, detalhes, estabelecimento, tipo, and categoria.
2025-05-17 23:25:52 +00:00