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.
- 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.
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.
- 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.
- 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.
- 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.
- 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.
Modified `src/services/transacao/summaryService.ts` to categorize transactions with NULL categories as "Despesas Sem Categoria" in the category summary.