Commit Graph

391 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
428e9e9fec Changes 2025-11-25 23:10:45 +00:00
gpt-engineer-app[bot]
bac21bec6d Ajustar CSV parsing
Refactor do parser CSV para suportar CSV com delimitador ponto-e-vírgula, cabeçalhos de várias linhas, e formato brasileiro de números (ponto para milhares, vírgula para decimal). Adicionado mapeamento de colunas robusto e tratamento de valores negativos, garantindo que as transações importadas não gerem duplicatas com o estado atual.

X-Lovable-Edit-ID: edt-7c96a5a4-c4c5-4829-843c-babdb3755a30
2025-11-25 23:08:16 +00:00
gpt-engineer-app[bot]
d118161389 Changes 2025-11-25 23:08:15 +00:00
gpt-engineer-app[bot]
40c8d44778 Add Importar Extrato item
Integrate bank statement import feature into NewModernLayout by adding the "Importar Extrato" entry to the AppSidebar after Transações, ensuring the route /importar-extrato is visible in the sidebar. Also import FileUp icon for the menu item.

X-Lovable-Edit-ID: edt-a8ff7123-e83f-4dc3-96df-5161b0563aec
2025-11-25 23:00:24 +00:00
gpt-engineer-app[bot]
76877ebc20 Changes 2025-11-25 23:00:24 +00:00
gpt-engineer-app[bot]
e7b163eb2d Add bank statement import flow
Implement initial structure for bank statement import:
- add parsing services for OFX, CSV, XLSX, and groundwork for PDF
- create types, utilities (hashing, categorization, normalization)
- build import hooks/services UI scaffolding (upload, wizard, preview)
- add accounts and import logs tables scaffolding and related service hooks
- integrate duplicate detection and category mapping
- wire up parsing container and import flow with toast feedback

X-Lovable-Edit-ID: edt-e54ea264-ca3c-43e3-afea-c078875db0b2
2025-11-25 22:52:26 +00:00
gpt-engineer-app[bot]
86396dfd1a Changes 2025-11-25 22:52:26 +00:00
gpt-engineer-app[bot]
d978fd4d15 Sync Database types
Database types have been updated to reflect recent database schema changes made outside of Lovable.

X-Lovable-Edit-ID: edt-578f3035-6773-4311-85b5-5b569015fe23
2025-11-25 22:39:55 +00:00
gpt-engineer-app[bot]
22110c6616 Changes 2025-11-25 22:39:55 +00:00
gpt-engineer-app[bot]
b686d583af Applied theme Default
Applied theme in Lovable
2025-11-25 22:32:12 +00:00
gpt-engineer-app[bot]
12e1c50f4b Fix Google login redirect
Corrected the redirection flow after Google sign-up. Previously, users were redirected to the landing page after completing their profile, instead of being directed into the app. This change ensures that after a user completes their profile following a Google sign-up, they are correctly directed into the application.
2025-09-02 21:22:43 +00:00
gpt-engineer-app[bot]
423b96af6c Fix Google login redirect issue
Corrected the redirection logic for Google sign-in. Previously, users were being sent to the landing page instead of the profile completion page after logging in with Google. This change ensures that Google-signed-in users are correctly directed to the `/complete-profile` route to finish their registration.
2025-09-02 21:15:20 +00:00
gpt-engineer-app[bot]
f9e15c066b Update background and add password visibility
Updated the background of the authentication page to a modern design without the previous grid effect. Added a password visibility toggle (eye icon) to the password and confirm password fields in the registration form.
2025-09-02 20:44:36 +00:00
gpt-engineer-app[bot]
13261836a0 Fix manual signup flow
Adjusted the manual signup flow to prevent users from being redirected to the profile completion page after logging in. This resolves an issue where users who registered manually were repeatedly prompted for information they had already provided.
2025-09-02 20:40:51 +00:00
gpt-engineer-app[bot]
dc896299ca Fix manual signup redirect loop
Adjusted the profile completion flow to only prompt for additional information (name and WhatsApp) when a user signs up via Google. Manually registered users will now be directly redirected to the dashboard after login, as their necessary information is already captured during manual registration.
2025-09-02 20:39:34 +00:00
gpt-engineer-app[bot]
01ae3d877b Apply modern design theme
Update app's visual theme to be modern and dynamic, using a blue color palette and dynamic styling.
2025-08-08 07:49:29 +00:00
gpt-engineer-app[bot]
317596e4ae Fix user profile completion flow
The user is experiencing an issue where after manually signing up, verifying their email, and attempting to complete their profile, they are redirected to the landing page instead of the dashboard. The profile completion form reappears upon subsequent attempts, and the user record is not being created in the database. This commit addresses the issue by ensuring that user data is correctly created in the `usuarios` table upon profile completion, resolving the redirection and access problems.
2025-08-05 16:33:43 +00:00
gpt-engineer-app[bot]
1af58e1605 Fix dashboard card calculations
The dashboard cards were not correctly summing transactions for August 2025. This commit ensures that the dashboard accurately reflects the total transactions for the selected month, matching the sum displayed on the transactions page.
2025-08-02 01:32:43 +00:00
gpt-engineer-app[bot]
aed875b18d Fix dashboard card calculations
The dashboard's expense card is showing an incorrect total. This commit revises the calculations for all summary cards to accurately reflect the transaction data.
2025-08-02 01:29:21 +00:00
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