Melhora parser CSV para extrair dados corretamente, incluindo detecção de cabeçalho, mapeamento de colunas (data, descrição, valor), suporte a formato brasileiro e prevenção de duplicatas. AdicionaLoading/ animação de carregamento durante o processamento.
X-Lovable-Edit-ID: edt-8e8b5436-baeb-463b-815d-f542f108e1c0
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
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
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
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
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.
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.
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.
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.
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.
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.
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.
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.
Corrected import statements in `src/services/cartoesService.ts` and `src/services/cartaoCreditoService.ts` to properly import `gerarCartaoCodigo` from `cartaoCodigoUtils.ts`.
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.
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.
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.
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.
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.
- 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.
- 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.
- 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
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.
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.
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.
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.