Commit Graph

4 Commits

Author SHA1 Message Date
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]
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]
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