Commit Graph

73 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
259ac13e6d feat: Send group creation data to webhook
Send all data returned from Evolution API to the criargrupofinance webhook, including the remoteJID.
2025-07-02 01:26:16 +00:00
gpt-engineer-app[bot]
3800e5818b Fix: Ensure webhooks are sent
The webhooks for workflow activation and general configuration are not being sent. This commit addresses the issue.
2025-07-02 01:14:09 +00:00
gpt-engineer-app[bot]
e930b9384a Code edited in Lovable Code Editor
Edited UI in Lovable
2025-07-01 23:36:00 +00:00
gpt-engineer-app[bot]
0e0b0919c4 Refactor: Send group creation webhook
Send a webhook to create a group instead of making a direct request. The webhook includes the user's email and WhatsApp information.
2025-07-01 23:29:41 +00:00
gpt-engineer-app[bot]
b8375b3aad Reverted to commit 09ffd66b47 2025-07-01 22:39:12 +00:00
gpt-engineer-app[bot]
ddff46b4bd Reverted to commit 17810e5c86 2025-07-01 22:38:44 +00:00
gpt-engineer-app[bot]
09ffd66b47 Fix: Redirect after Google login and webhook timing
Redirect users to the dashboard after Google login. Move webhook calls for workflow and Evolution API activation to the "Cadastrar grupo" button click in CreateGroupFormSimple.tsx, removing them from instance creation.
2025-07-01 22:21:42 +00:00
gpt-engineer-app[bot]
17810e5c86 Fix: Ensure activate workflow webhook is sent
Check and adjust the logic to ensure the "ativarworkflow" webhook is sent correctly.
2025-07-01 21:21:16 +00:00
gpt-engineer-app[bot]
e5082b807c Fix: Resolve webhook loop and 500 errors
The webhook was looping due to incorrect placement of the webhook configuration. This commit moves the webhook configuration to the correct location. Also fixes the 500 errors.
2025-07-01 21:11:47 +00:00
gpt-engineer-app[bot]
8400de1baa Fix: Webhook issues and improve group creation
-   Investigate and correct the timing and data sent to the `/ativarworkflow` webhook.
-   Address the looping issue with the `/hook` webhook, ensuring it's only triggered once during group creation.
2025-07-01 20:58:09 +00:00
gpt-engineer-app[bot]
b1e48398c2 Feat: Trigger webhook on group creation
Trigger the webhook to notify N8N when a WhatsApp group is created by the user.
2025-06-25 17:56:24 +00:00
gpt-engineer-app[bot]
4e8972cb55 Enhance dashboard cards and charts
- Implemented year-long view for "Receitas vs Despesas" chart.
- Improved dashboard card design and functionality, including navigation to filtered transactions on click.
- Verified the accuracy of the "Despesa por Categoria" chart.
2025-06-24 18:38:44 +00:00
gpt-engineer-app[bot]
9a14d62b1a Fix: Use useAuthStore in multiple components
Replaced incorrect import of `authStore` with `useAuthStore` in `MeuCadastroForm.tsx`, `useProfileCompletion.ts`, and `CompleteProfile.tsx` to resolve TypeScript errors.
2025-06-23 21:43:25 +00:00
gpt-engineer-app[bot]
c2e115412a Refactor: Split EmailConfirmation page
Refactors the EmailConfirmation page into smaller, reusable components to improve maintainability.
2025-06-23 05:45:48 +00:00
gpt-engineer-app[bot]
247c510f48 Fix: App crashes after login and subscription page
The AI addressed the app crashing after login and investigated the subscription page issue, focusing on resolving the problem to display the purchase page, without providing logs.
2025-06-22 02:21:13 +00:00
gpt-engineer-app[bot]
503b193e30 Fix: Dashboard data and onboarding tour
- Fixed dashboard data not loading from the database.
- Fixed onboarding tour looping and showing repeated banners.
- Fixed "Assinar Agora" button not redirecting to payment page.
2025-06-22 02:08:40 +00:00
gpt-engineer-app[bot]
07d370b1b8 Reverted to commit 937b27de6c 2025-06-22 02:01:00 +00:00
gpt-engineer-app[bot]
e16f23afea Fix: Onboarding tour multiple displays
The onboarding tour was displaying multiple times in a row. This commit fixes the issue to ensure each step of the tour appears only once.
2025-06-22 01:55:59 +00:00
gpt-engineer-app[bot]
937b27de6c Fix: Onboarding tour not showing after login
The AI fixed the onboarding tour logic to ensure it appears on login if the user has no registered groups, addressing the issue of the tour not appearing despite the conditions being met.
2025-06-22 01:49:11 +00:00
gpt-engineer-app[bot]
c5dbc236a1 Fix: Onboarding tour and subscription page issues
The AI addressed the 404 error on the subscription page and investigated the onboarding tour not starting after login when no groups are registered. It also reviewed the code for potential errors in the tour logic.
2025-06-22 01:41:03 +00:00
gpt-engineer-app[bot]
bc4e03e7c2 Fix: Onboarding tour not starting on login
The onboarding tour was not starting correctly after login. This commit reviews the logic to ensure the tour starts when the user logs in and has no registered groups. Also, it moves the "Assinatura" menu item to the end of the sidebar, after "Calendário".
2025-06-22 01:34:41 +00:00
gpt-engineer-app[bot]
d4eabdb831 Remove debug tour button
Remove the debug button from the WhatsApp page and ensure the onboarding tour only appears on initial login if no groups are present.
2025-06-22 00:55:55 +00:00
gpt-engineer-app[bot]
a7b65653ac Fix: Ensure onboarding tour activates
The onboarding tour should activate for users without a WhatsApp instance.
2025-06-22 00:52:30 +00:00
gpt-engineer-app[bot]
71026e9b63 Fix: Onboarding tour behavior and button style
Fixes the onboarding tour looping issue and adjusts the button style for better visibility. The tour now correctly opens only once per session until the required conditions are met (connected instance and active group).
2025-06-22 00:26:44 +00:00
gpt-engineer-app[bot]
6a9e57eb9a Add onboarding tour for WhatsApp and Groups
Implement an onboarding tour that guides users through connecting WhatsApp and creating a group. The tour should only appear until the user has created at least one instance and one group.
2025-06-22 00:10:51 +00:00
gpt-engineer-app[bot]
dcdfa9ae9c Fix: Send webhook on group creation
Ensure the webhook is sent to the correct URL with the user's email when a group is created.
2025-06-21 21:04:32 +00:00
gpt-engineer-app[bot]
e41618415d Refactor: Split WhatsApp page into components
Split the WhatsApp page into smaller, reusable components to improve code organization and readability.
2025-06-21 18:57:20 +00:00
gpt-engineer-app[bot]
a9769b76db Fix: Inconsistent WhatsApp instance detection
Unifies instance verification logic using `useExistingInstanceCheck` across components, corrects the Supabase query, and adds re-verification after instance creation to resolve inconsistencies in WhatsApp instance detection and group creation.
2025-06-21 16:19:14 +00:00
gpt-engineer-app[bot]
7fbce3ca0b Fix WhatsApp instance detection
Centralize instance check, remove debug, and fix UI.
2025-06-21 16:07:11 +00:00
gpt-engineer-app[bot]
ec9c883bf0 Fix: Instance detection and group creation
The app incorrectly allows new instance creation and prevents group creation despite a connected instance. This commit addresses the issue.
2025-06-21 15:32:26 +00:00
gpt-engineer-app[bot]
25aa661bca Fix WhatsApp instance connection logic
The AI identified that the WhatsApp connection page was not updating correctly, and the previous fixes were not working. It suggests a new approach, analyzing the old and current logic, and checking for other potential issues.
2025-06-21 15:29:13 +00:00
gpt-engineer-app[bot]
3889badb7b Fix: Prevent new instance creation
The app was incorrectly allowing new WhatsApp instance creation even when a connected instance already existed. This commit addresses this issue.
2025-06-21 15:23:35 +00:00
gpt-engineer-app[bot]
61e154ed02 Fix: Improve WhatsApp instance and group creation logic
Analyze and fix the logic for WhatsApp instance and group creation, ensuring correct instance detection based on user email and status. Also, check for any exposed API keys or sensitive information.
2025-06-21 15:18:42 +00:00
gpt-engineer-app[bot]
11768cba9f Fix WhatsApp instance logic
Ensure instance creation logic checks 'instancia_zap' and 'status_instancia' in the 'usuarios' table. Allow group creation only when 'status_instancia' is 'conectado'.
2025-06-21 15:07:13 +00:00
gpt-engineer-app[bot]
c06f108d6e Refactor: Split CreateGroupForm.tsx
Refactors CreateGroupForm.tsx into smaller, more manageable components and hooks to improve code organization and readability. This includes creating new files for specific functionalities and logic, enhancing maintainability.
2025-06-21 14:50:28 +00:00
gpt-engineer-app[bot]
630b535bf4 Refactor: Split CreateInstanceForm.tsx into smaller components
This commit refactors the CreateInstanceForm.tsx component into smaller, more manageable files to improve code organization and maintainability. This includes splitting the form into logical sub-components and potentially moving related hooks or utilities into separate files. Unused imports and files are also removed.
2025-06-21 14:48:47 +00:00
gpt-engineer-app[bot]
4950dae761 Fix: Enforce profile completion and webhook trigger
The user reported that the app allows navigation without completing the profile (Name, WhatsApp) after Google login, and the N8N webhook is not triggered. This commit addresses these issues by ensuring the `/complete-profile` page is shown until the required data is provided, and the `sendNewUserWebhook` is called after successful profile completion.
2025-06-21 14:25:52 +00:00
gpt-engineer-app[bot]
9ac63c926b Implement authentication flow
Implement mandatory data collection after Google login, including a dedicated page and webhook integration.
2025-06-21 12:30:18 +00:00
gpt-engineer-app[bot]
ec390787c6 Implement WhatsApp connection flow
- Updated database on instance creation.
- Added n8n workflow activation.
- Filtered instance display by user email.
2025-06-19 22:28:40 +00:00
gpt-engineer-app[bot]
a930b755eb Add webhook creation on WhatsApp connect
Implement POST request to Evolution API to create a webhook after successful WhatsApp QR code connection, including correct endpoint, headers, and body formatting. Log request status.
2025-06-19 09:48:06 +00:00
gpt-engineer-app[bot]
7f202972b2 feat: Implement WhatsApp group creation and instance management
- Implemented POST request to Evolution API for WhatsApp group creation on "Cadastrar Grupo" button click.
- Added "Desconectar Instância" button with disconnection logic and Supabase update.
- Hid debug information in the "Grupos" menu.
- Changed app name to "Finance Home".
- Added hover color to sidebar menu items.
2025-06-16 20:36:23 +00:00
gpt-engineer-app[bot]
b0bbce2637 Add permanent access feature
- Added a boolean field `liberado_permanente` to the `usuarios` table.
- Updated the RLS policy to allow inserts if `liberado_permanente` is true.
- Updated the frontend to show a custom message if the insert is blocked.
2025-06-15 21:54:18 +00:00
gpt-engineer-app[bot]
528714622a Implement trial period and access restrictions
Implement a 30-day trial period for new users. After the trial, restrict the ability to add new transactions if no payment is detected. Use `usuarios.created_at` for the registration date and consider a payment active if a record exists in `pagamentos_mercadopago` with status "approved".
2025-06-15 21:43:16 +00:00
gpt-engineer-app[bot]
7cb41a4f9c Fix: Use existing table for credit cards
The SQL was updated to use the existing `cartoes_credito` table instead of creating a new one. This resolves the error and ensures compatibility with the existing database structure.
2025-06-11 09:20:21 +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]
bfdd935853 Fix: Resolve "Nova Despesa" button issue
The AI will address the issue where the "Nova Despesa" button causes problems, specifically for the user "leopootz10@gmail.com". The changes will focus on the `TransactionForm.tsx`, `useTransactionForm.ts`, and `TransactionDialogs.tsx` files.
2025-06-06 18:50:28 +00:00
gpt-engineer-app[bot]
c25272b68f Fix: Nova Despesa button issue for specific user
The AI will investigate and resolve a bug that occurs when the "Nova Despesa" button is clicked by the user leopootz10@gmail.com.
2025-06-06 18:48:39 +00:00
gpt-engineer-app[bot]
3cc9ca31c8 Fix: Bug when creating new expense
The AI will investigate and fix a bug that occurs when the "Nova Despesa" button is pressed in production.
2025-06-06 18:44:28 +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]
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