Commit Graph

375 Commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
d2070e6b34 Refactor: Send user email to N8N webhook
Modify `createEvolutionWebhook` to send only the user's email to the N8N webhook for processing.  Update the webhook URL to `https://webhookn8n.innova1001.com.br/webhook/hook`.
2025-06-25 17:53:26 +00:00
gpt-engineer-app[bot]
31659a2157 feat: Implement category and transaction card styling
Styled the category page and transaction summary cards to match the provided print.
2025-06-25 00:39:07 +00:00
gpt-engineer-app[bot]
13c4fb0760 Fix: Implement card deletion and display card details
Added card deletion functionality. Improved card details display to show the month and the total expenses for each card. Fixed dashboard card layout issues on smaller screens. Separated expenses and credit card expenses in the dashboard summary.
2025-06-24 18:56:23 +00:00
gpt-engineer-app[bot]
c2c12ae5b3 Refactor: Split TransactionsTable into components
Refactors the TransactionsTable component into smaller, more manageable components for improved code organization and readability.
2025-06-24 18:44:40 +00:00
gpt-engineer-app[bot]
47e301c9bf Refactor: Split Index.tsx into smaller components
This commit refactors the `src/pages/Index.tsx` file into smaller, more manageable components to improve code organization and readability. Unused imports and files will be removed.
2025-06-24 18:42:46 +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]
45234a1a61 Fix: Improve dashboard charts and card styles
- Replace the "Receitas vs Despesas" section with a chart.
- Ensure all expense categories are displayed in the "Gastos por Categoria" chart, and fix the color issue.
- Apply circular card styles with colors to the dashboard cards.
2025-06-24 18:26:37 +00:00
gpt-engineer-app[bot]
5c3280f64e Refactor dashboard layout and card effects
- Reordered dashboard components.
- Removed card spotlight effect from expense category card.
- Applied hover effect from account alerts page to transaction and category cards.
- Added 3D card effect to landing page images.
- Added 3d card component.
2025-06-24 18:18:46 +00:00
gpt-engineer-app[bot]
2990ab9d30 Fix type and import errors
Fixes import errors in `src/pages/Index.tsx` and `src/pages/Metas.tsx`. Addresses missing properties and incorrect function calls.
2025-06-24 18:07:54 +00:00
gpt-engineer-app[bot]
583136ca75 Fix: Remove duplicate menu and category page effect
Removed the duplicate menu from the Dashboard, Transações, Cartões de Credito, Metas, Calendário, Conectar WhatsApp, and Grupos pages. Also removed the background effect from the Categorias page.
2025-06-24 18:04:25 +00:00
gpt-engineer-app[bot]
99a4758dc8 Fix: Remove duplicate menu in other pages
The menu is duplicated in all pages except the "avisos" page. This commit removes the duplicated menu.
2025-06-23 22:40:18 +00:00
gpt-engineer-app[bot]
03547c19b5 Fix: Resolve syntax error in Categorias.tsx
Fixes a syntax error related to the Layout component in Categorias.tsx, ensuring proper JSX structure.
2025-06-23 22:36:32 +00:00
gpt-engineer-app[bot]
483cd907c8 Fix: Remove duplicate menu and apply card effect
Removed duplicate menu and applied card spotlight effect to category cards.
2025-06-23 22:35:03 +00:00
gpt-engineer-app[bot]
5d096818d7 Fix duplicate menu and landing page button
- Fixed the duplicate menu issue.
- Replaced the landing page "Entrar" button with a more modern, permanent style.
2025-06-23 22:21:42 +00:00
gpt-engineer-app[bot]
c6cfabd840 Fix: Implement card hover effect and image display
- Implemented card hover effect using the provided component.
- Addressed image display issues on the landing page.
2025-06-23 22:09:11 +00:00
gpt-engineer-app[bot]
1c372aa03b Run SQL to add user email and WhatsApp
Adds email and WhatsApp columns to the contas_recorrentes table and updates existing records.
2025-06-23 21:58:48 +00:00
gpt-engineer-app[bot]
7661a8ccf3 Fix: Remove duplicate menu item
Removed the duplicated menu item in the sidebar, as shown in the provided screenshot.
2025-06-23 21:52:42 +00:00
gpt-engineer-app[bot]
2d978827e9 Fix: Remove duplicate menu and add missing page
Removed the duplicate menu and confirmed the "Avisos de contas a pagar" page was not created.
2025-06-23 21:50:19 +00:00
gpt-engineer-app[bot]
ea7e7fdfe3 Fix: Use useAuthStore in MeuCadastroForm
Corrected a TypeScript error in `src/components/settings/MeuCadastroForm.tsx` where `authStore` was incorrectly used instead of `useAuthStore`.
2025-06-23 21:45:01 +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]
7ba2d39ab0 Fix: AuthStore import and component props
- Corrected import of `useAuthStore` in `src/App.tsx`, `src/components/avisos/ContaRecorrenteForm.tsx`, and `src/components/avisos/ContasRecorrentesList.tsx`.
- Added `children` prop to `ProtectedRoute` and `Layout` components in `src/App.tsx`.
- Fixed type error in `src/components/layout/Layout.tsx` related to `Sidebar` props.
2025-06-23 21:41:18 +00:00
gpt-engineer-app[bot]
ee2273383b Apply SQL schema changes
Apply the SQL schema changes to create tables for recurring payment reminders, including tables for recurring accounts and sent reminders, along with necessary indexes and RLS policies.
2025-06-23 21:39:47 +00:00
gpt-engineer-app[bot]
f01ed29305 Fix: Image loading issues on landing page
Corrected image paths and added error handling to prevent broken images in the "How it works" section of the landing page.
2025-06-23 19:13:23 +00:00
gpt-engineer-app[bot]
dd8881da28 Fix: Landing page image display
The images in the "How it works" section of the landing page were not displaying. This commit addresses the issue.
2025-06-23 19:07:56 +00:00
gpt-engineer-app[bot]
fb94c571d3 Add "How it works" section
Add the "How it works" section to the landing page, including images for text, audio, receipt, dashboard, and calendar.
2025-06-23 18:34:34 +00:00
gpt-engineer-app[bot]
52ba4b115a Reverted to commit 41946a7e9c 2025-06-23 18:10:13 +00:00
gpt-engineer-app[bot]
8ade69c438 feat: Add app usage showcase to landing page
Implemented a section on the landing page to showcase app usage with images representing audio, text, receipts, dashboard, and calendar views. Also added a background effect using the provided `background-paths.tsx` component and dependencies.
2025-06-23 17:59:59 +00:00
gpt-engineer-app[bot]
41946a7e9c Fix: Incorrect redirect URL in signup
Ensures the correct `redirectTo` URL is passed to `supabase.auth.signUp()` to generate valid email confirmation links.
2025-06-23 06:08:36 +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]
806696d733 Fix: Email confirmation error
Review `src/pages/EmailConfirmation.tsx` and `src/components/auth/ProtectedRoute.tsx` to address email confirmation issues. Ensure the user is not considered logged in during email confirmation.
2025-06-23 04:33:40 +00:00
gpt-engineer-app[bot]
d5ad1b0f50 Fix: Incorrect email confirmation message
Corrected the email confirmation message in `src/pages/EmailConfirmation.tsx` to accurately reflect the user's login status.
2025-06-23 04:28:51 +00:00
gpt-engineer-app[bot]
54410cd937 Fix: Email confirmation link issue
The email confirmation page still displays an "invalid link" message. This commit addresses the issue.
2025-06-23 04:26:26 +00:00
gpt-engineer-app[bot]
866b4850ca Fix email confirmation flow
Corrected the email confirmation page to handle the token from the URL hash, authenticate the user, and display success/error messages. Added redirection to the dashboard after successful confirmation.
-edited src/pages/EmailConfirmation.tsx
2025-06-23 04:18:31 +00:00
gpt-engineer-app[bot]
6809553751 Fix: Redirect to dashboard after login
Adjusted the login flow to redirect users to the dashboard upon successful authentication, instead of the landing page. This ensures users are directed to the application's core functionality after logging in.
2025-06-23 03:38:53 +00:00
gpt-engineer-app[bot]
749624e7a4 Remove profile from dashboard, add landing page
- Removed the user profile button from the dashboard and added it to the menu bar.
- Implemented a landing page with the specified features and styling.
2025-06-23 03:31:43 +00:00
gpt-engineer-app[bot]
85443ff55a Fix: Restore user profile in menu
Re-added the user profile with the logged-in user's email and logout option to the fixed menu bar.
2025-06-23 03:17:15 +00:00
gpt-engineer-app[bot]
a18f73d1f1 Fix: Keep sidebar visible on scroll
Make the sidebar stick to the top of the screen when scrolling.
2025-06-23 03:15:58 +00:00
gpt-engineer-app[bot]
ffb0f5d71e Add menu label to sidebar trigger
Added a label to the sidebar trigger button to indicate its function.
2025-06-23 03:12:31 +00:00
gpt-engineer-app[bot]
c8083adb8a Fix: Resolve syntax error in ContactForm.tsx
Corrected a syntax error in ContactForm.tsx that was causing a build error.
2025-06-23 03:09:57 +00:00
gpt-engineer-app[bot]
035484ff38 Fix: Apply color adjustments and UI improvements
- Apply color adjustments to transaction values, icons, and dashboard cards.
- Fix the visibility of the "Nova Receita" and "Nova Despesa" buttons.
- Address the issue of the site adopting a black color scheme.
- Add an indicator to the menu toggle button.
2025-06-23 03:07:38 +00:00
gpt-engineer-app[bot]
87b6669e50 Refactor: Replace sidebar component
Replaced the existing sidebar with a new implementation for improved mobile compatibility and functionality. Also, addressed the webhook issue and provided guidance on manual verification.
2025-06-23 02:50:07 +00:00
gpt-engineer-app[bot]
a7e5c700ab Fix:
Adjusted the menu for mobile devices and addressed the webhook issue.
2025-06-23 02:39:48 +00:00
gpt-engineer-app[bot]
763d9a6104 Fix: Implement user profile button and contact form webhook
- Moved the user profile button back to the dashboard, above the month filter.
- Configured the "Fale Conosco" form to send data to the specified webhook and display a success message to the user.
- Fixed build error in `src/components/help/ContactForm.tsx` by correcting the import of `enviarFaleConoscoParaWebhook`.
2025-06-23 02:31:56 +00:00
gpt-engineer-app[bot]
1f3197caf5 feat: Move user button and integrate webhook
Move the logged-in user button above the month filter on the dashboard. Integrate a webhook call to send contact form data to a specified URL.
2025-06-23 02:25:49 +00:00
gpt-engineer-app[bot]
6f6292f857 Fix: User profile dropdown and icon display
The user profile dropdown was not working correctly, and the icon was cut off. This commit fixes the dropdown functionality and ensures the icon is fully visible.
2025-06-23 01:26:54 +00:00
gpt-engineer-app[bot]
4b954b4d59 Refactor: Remove hover effect and add user profile
- Removed the blue hover effect from the menu items.
- Added user profile with email and logout button.
- Installed necessary dependencies.
- Created button component.
2025-06-23 01:13:18 +00:00
gpt-engineer-app[bot]
5b7df8445e Refactor: Adapt limelight nav to sidebar
Adapt the provided limelight navigation component to the existing vertical sidebar, adjusting spacing and layout for improved aesthetics.
2025-06-23 01:05:56 +00:00
gpt-engineer-app[bot]
31cff64a24 Fix: Framer motion type error in sidebar
Fixes a type error related to `onAnimationStart` in `MobileSidebar` component.
2025-06-23 00:51:29 +00:00
gpt-engineer-app[bot]
771f0af1cb feat: Implement design changes and add component
- Replace the blue rectangle with the logo.
- Extend the sidebar menu.
- Change the login/password screen background.
- Add and integrate the BackgroundBoxesDemo component.
2025-06-23 00:50:28 +00:00
gpt-engineer-app[bot]
576b6e5307 feat: Integrate auto-collapsing sidebar component
Integrate the provided sidebar component, ensuring it functions correctly on both desktop and mobile devices with automatic collapsing and expanding functionality.
2025-06-23 00:40:45 +00:00
gpt-engineer-app[bot]
a9ab6d566f Fix: Pass user email to subscription function
The AI corrected the `Assinatura` page to pass the user's email and ID in the request body when calling the `mercado-pago-subscribe` Supabase function, resolving the "E-mail ou ID do usuário não fornecido" error.
2025-06-22 02:41:51 +00:00
gpt-engineer-app[bot]
490404d22b Fix: Subscription page error handling
The AI addressed the subscription page error, which seems to originate from the Supabase edge function.
2025-06-22 02:33:12 +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]
1b4a148142 Fix: Dashboard not showing transaction values
The AI fixed the dashboard not displaying transaction values by reviewing the data fetching and display logic. It also addressed the "Assinar Agora" button not working by checking the Mercado Pago integration and subscription page.
2025-06-22 02:14:04 +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]
9a4b6a2a9e Fix: Resolve onboarding tour error
The AI fixed a runtime error related to `removeHighlightStyle` in `src/components/onboarding/OnboardingTour.tsx` and addressed the issue of the app page not appearing.
2025-06-22 01:58:25 +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]
641e4c4d11 Fix: Restore help icon and move subscription page
Restore the help icon with its original functionality.
Move the subscription page to the sidebar.
Improve category chart percentage display.
2025-06-22 00:45:38 +00:00
gpt-engineer-app[bot]
36b64f7e5c Fix: Restore user identification and improve chart
Restore the user identification section in the header. Improve the category chart by removing the value from the center and improving the tooltip display.
2025-06-22 00:37:45 +00:00
gpt-engineer-app[bot]
bfad740ccb Fix: Improve onboarding tour UI and button styles
- Added an arrow connecting the text in the banner to the button in the onboarding tour.
- Adjusted the "Grupos" button style to match the original design, ensuring a white background and black text.
2025-06-22 00:32:29 +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]
27788bfbbe Refactor AdminFAQ page
Refactors `src/pages/AdminFAQ.tsx` into smaller, reusable components to improve code organization and maintainability.
2025-06-21 20:03:30 +00:00
gpt-engineer-app[bot]
352bb9aa59 Refactor: Split ContactForm into smaller components
Refactors ContactForm.tsx into smaller, more manageable components for improved code organization and maintainability.
2025-06-21 19:50:38 +00:00
gpt-engineer-app[bot]
c323023e28 Run SQL to create tables and policies
This commit executes the provided SQL script to create the necessary tables (`faqs`, `faq_feedback`, `contatos`) and associated policies for the help system, as reviewed by the user. It also creates a storage bucket for contact form attachments.
2025-06-21 19:44:53 +00:00
gpt-engineer-app[bot]
1d22b504a0 Add help icon and FAQ functionality
Implement a help icon with a "Fale com a gente" button, linking to an email form. Add admin functionality to create FAQs with text and image support, including a feedback mechanism.
2025-06-21 19:33:18 +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]
8bedfeb33c Fix: Implement instance detection logic
The previous changes did not fully resolve the issue. This commit ensures the correct instance detection logic is implemented, based on the user's email and the instance status in the database. This affects the creation of new instances and group creation.
2025-06-21 15:09:59 +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]
9a3e2ac4fb Fix: Incorrect instance detection
The previous fix for instance detection was not fully effective. This commit further refines the logic in `src/components/whatsapp/CreateInstanceForm.tsx` and `src/components/whatsappGroups/CreateGroupForm.tsx` to ensure that the app correctly identifies existing WhatsApp instances and prevents the creation of duplicate instances or groups.
2025-06-21 14:44:28 +00:00
gpt-engineer-app[bot]
be3ceeaeb2 Fix WhatsApp group creation logic
The logic for enabling WhatsApp group creation was not correctly recognizing when a WhatsApp instance was created, allowing users to attempt to create multiple instances. This commit addresses the issue.
2025-06-21 14:38:27 +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]
9427d396b6 Fix Google OAuth redirect in production
The Google OAuth redirect was failing in production due to `window.location.origin` resolving to `localhost:3000`. This commit fixes the redirect logic in `src/components/auth/SocialLoginButtons.tsx` and updates the `public.handle_new_user()` function via a SQL migration (`supabase/migrations/20250621141237-fix-google-user-data.sql`) to capture the user's name from Google metadata.
2025-06-21 14:19:52 +00:00