Commit Graph

372 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
abfa433caf Fix: Resolve 'gerarCartaoCodigo' import errors
Corrected import statements in `src/services/cartoesService.ts` and `src/services/cartaoCreditoService.ts` to properly import `gerarCartaoCodigo` from `cartaoCodigoUtils.ts`.
2025-07-03 19:56:27 +00:00
gpt-engineer-app[bot]
bac0aa1fb9 Fix: Google login redirect and credit card issues
Corrected Google login redirection to dashboard after profile completion. Fixed credit card data retrieval in the credit card form, implementing a fuzzy search for card names.
2025-07-02 19:50:44 +00:00
gpt-engineer-app[bot]
4007805f28 Fix: Use WhatsApp number in webhook
The webhook for group creation was sending the user's email instead of their WhatsApp number. This commit updates the `useGroupCreation` hook to send the WhatsApp number (retrieved from the `usuarios` table) in the webhook body.
2025-07-02 18:45:17 +00:00
gpt-engineer-app[bot]
9a179d136e Fix: Redirect to dashboard after login
- Redirect to dashboard after successful login.
- Created `/auth/reset` page for password reset functionality.
2025-07-02 18:29:30 +00:00
gpt-engineer-app[bot]
95207e71ef Fix: Resolve blank page issue in ForgotPasswordForm
The `ForgotPasswordForm` component was causing a blank page. This commit addresses the issue.
2025-07-02 18:11:40 +00:00
gpt-engineer-app[bot]
3a1bc74f34 Fix: Remove WhatsApp instance dependency.
Removed WhatsApp instance connection requirement for group creation. Removed "Reconectar WhatsApp" button. Fixed Google sign-in redirect issue to complete profile and then dashboard. Added password recovery option.
2025-07-02 18:07:51 +00:00
gpt-engineer-app[bot]
05a8186a19 Feat: Disable group creation if group exists
Disable the "Cadastrar Grupo" button and the input field for the group name if the user already has a group registered.
2025-07-02 05:46:39 +00:00
gpt-engineer-app[bot]
1690076355 Fix: Dashboard percentage calculation and tooltips
Refactored dashboard percentage calculations for income and expenses to accurately reflect performance compared to the previous month, including handling zero values and displaying tooltips with clear interpretations.
2025-07-02 05:41:55 +00:00
gpt-engineer-app[bot]
37fbe839f7 Fix: Resolve import and type errors
The commit addresses two TypeScript errors in `src/components/layout/NewModernLayout.tsx`: a conflict in the import of `SidebarContent` and a type mismatch in the `children` prop. The changes should resolve these errors and ensure the application functions correctly.
2025-07-02 05:30:42 +00:00
gpt-engineer-app[bot]
bc075c8fff Fix: Resolve blank screen issue
Investigate and fix the issue causing the app to display a blank screen.
2025-07-02 05:29:39 +00:00
gpt-engineer-app[bot]
b18ebd96c7 Remove admin page and WhatsApp menu, fix dashboard percentages, and add menu toggle
- Removed the admin page and the "Conectar WhatsApp" menu item from the front end for all users.
- Adjusted the dashboard percentage calculations to accurately reflect the revenue and expense variations compared to the same day of the previous month.
- Added a tooltip to explain the percentage calculation on hover.
- Implemented menu toggle functionality when clicking the "Menu" name.
2025-07-02 05:27:25 +00:00
gpt-engineer-app[bot]
991922432d Fix: Implement filters and calculations
- Added a filter to the AvisosContas page to search for recurring accounts by name.
- Adjusted the dashboard calculations for balance and economy to reflect the transactions of the selected month.
- Fixed the Admin page not opening correctly.
- Corrected the economy card logic on the dashboard.
2025-07-02 05:07:35 +00:00
gpt-engineer-app[bot]
33f2d389cd feat: Implement onboarding tour and admin features
- Activate onboarding tour for new users without groups.
- Remove WhatsApp connection steps from the tour.
- Add admin menu and button to hide WhatsApp connect button for all users.
- Disable Finance Home icon redirect to landing page.
- Adjust tour to teach menu open/close.
- Edited: src/hooks/useOnboardingTour.ts, src/components/onboarding/OnboardingTour.tsx, src/components/layout/NewModernLayout.tsx, src/components/layout/Header.tsx, src/App.tsx
2025-07-02 04:56:21 +00:00
gpt-engineer-app[bot]
9f634a7a6e Reverted to commit 3800e5818b 2025-07-02 01:44:30 +00:00
gpt-engineer-app[bot]
24a293da29 Fix: Populate group and user tables
Populate the `grupos_whatsapp` and `usuarios` tables with the necessary data when creating a group, specifically adding data to the `remote_jid` column in the `usuarios` table.
2025-07-02 01:37:56 +00:00
gpt-engineer-app[bot]
c8075b9f34 Reverted to commit 3800e5818b 2025-07-02 01:30:43 +00:00
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]
8f5151655c Code edited in Lovable Code Editor
Edited UI in Lovable
2025-07-02 00:03:29 +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]
7420bec9cc Reverted to commit 09ffd66b47 2025-07-01 22:37:49 +00:00
gpt-engineer-app[bot]
3c9cf4de12 Fix: Send webhooks on group creation
Move webhook calls to the "Cadastrar Grupo" button click in `CreateGroupFormSimple.tsx` to ensure they are sent when a group is created.
2025-07-01 22:32:33 +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]
f16f2f4a49 Fix: Resolve TypeScript error in ContasRecorrentesList
The error "Property 'email' does not exist on type '{ id: string; }'" in `src/components/avisos/ContasRecorrentesList.tsx` is addressed. This likely involves correcting the type definition or accessing the correct property within the component's logic.
2025-07-01 21:14:34 +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]
0f9549556c Fix: Increase menu icon size
Increased menu icon size in `src/components/ui/modern-sidebar.tsx` to `h-14 w-14` with padding and hover effect.
2025-06-27 15:51:18 +00:00
gpt-engineer-app[bot]
9cf58548c0 Reverted to commit 4aaeebc28c 2025-06-27 15:49:18 +00:00
gpt-engineer-app[bot]
e5ea61feee Reverted to commit 7f3dad4f08 2025-06-27 15:48:46 +00:00
gpt-engineer-app[bot]
d8cd64c871 Fix: Resolve type errors in ContasRecorrentesList
Corrected type errors in `src/components/avisos/ContasRecorrentesList.tsx` related to the `ContaRecorrente` interface and the `setContas` state update. This resolves the "Type instantiation is excessively deep" and "Type is not assignable to ContaRecorrente[]" errors.
2025-06-27 15:47:02 +00:00
gpt-engineer-app[bot]
7f3dad4f08 Fix: Increase mobile menu button size
Increased the size of the menu button on mobile devices for improved usability.
2025-06-27 15:42:03 +00:00
gpt-engineer-app[bot]
4aaeebc28c Implement account alerts features
-   Filter recurring accounts by logged-in user's email.
-   Add payment status tags based on month/year filter.
-   Add sent alert tags based on month/year filter.
-   Combine month/year and user filters.
2025-06-26 13:00:29 +00:00
gpt-engineer-app[bot]
0c6978b710 Run SQL for webhook trigger
Applies the SQL script to create the webhook trigger.
2025-06-26 11:51:33 +00:00
gpt-engineer-app[bot]
4c744e5314 Code edited in Lovable Code Editor
Edited UI in Lovable
2025-06-26 10:19:04 +00:00
gpt-engineer-app[bot]
3f543ba400 Fix: Dashboard header and webhook issues
-   Corrected the duplicated "Dashboard" text in the header.
-   Verified and adjusted the webhook for sending financial alerts, ensuring it triggers on the specified days and times (Brazil timezone).
-   Tested the webhook functionality with test accounts.
2025-06-25 20:15:05 +00:00
gpt-engineer-app[bot]
59a0175b8c Fix: Improve category summary function
- Implement case-insensitive filtering for transaction types.
- Ensure NULL/empty categories are displayed as "Sem Categoria".
- Include categories with zero values in the results.
- Maintain month/year filtering.
- Ensure the output format matches the frontend's expectations.
2025-06-25 19:51:20 +00:00
gpt-engineer-app[bot]
43292f9b17 Fix: Implement category summary endpoint
- Modified `src/services/transacao/summaryService.ts` to address issues with the `getCategorySummary` endpoint.
- Implemented handling of NULL categories, transaction type filtering, and month/year filtering.
- Ensures the endpoint returns the correct category summaries, including "Sem Categoria" for NULL values, filtered by type and month/year.
2025-06-25 19:22:32 +00:00
gpt-engineer-app[bot]
9bfdc3efc7 Fix: Category totals mismatch with dashboard
Ensured the Categories page sums all transactions, resolving the discrepancy between category totals and the dashboard's total expenses.
2025-06-25 18:50:12 +00:00
gpt-engineer-app[bot]
099af14499 Fix: Handle NULL categories in category summary
Modified `src/services/transacao/summaryService.ts` to categorize transactions with NULL categories as "Despesas Sem Categoria" in the category summary.
2025-06-25 18:44:14 +00:00
gpt-engineer-app[bot]
ea97f94a54 Fix: Category page total mismatch
Corrected category calculations to align with the dashboard's total expenses, ensuring accurate financial data display.
2025-06-25 18:40:29 +00:00
gpt-engineer-app[bot]
45e0bd3c71 Fix: Incorrect card expense and category page issues
Corrected the expense card on the dashboard to accurately reflect card expenses. Added month/year filter to the categories page. Verified and adjusted the category summary to ensure all transactions are included and correctly categorized.
2025-06-25 18:33:15 +00:00
gpt-engineer-app[bot]
386ceb6792 Fix: Ensure expense card shows monthly expenses
The expense card on the dashboard should display expenses for the selected month, not a general total.
2025-06-25 18:26:33 +00:00
gpt-engineer-app[bot]
436fc843fa Fix: Improve pie chart visualization
Removed category labels with 0% values from the pie chart in the dashboard, aligning the visualization with the production app.
2025-06-25 18:22:11 +00:00
gpt-engineer-app[bot]
7b39bcd5aa Fix: Dashboard and Transactions page improvements
- Fixed missing "Despesas" category in the pie chart.
- Re-added month/year filter to Dashboard and Transactions pages.
- Improved responsiveness of summary cards on smaller screens.
2025-06-25 18:18:03 +00:00
gpt-engineer-app[bot]
1d1135cbe4 Fix: Dashboard pie chart missing categories
Corrected the category filtering in the dashboard pie chart to include 'despesas' and 'serviços'.
2025-06-25 18:08:56 +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