Commit Graph

12 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
f91efb3823 Fix: Edge Function non-2xx status code
The "Assinar Agora" button was not working, returning a non-2xx status code.
2025-06-15 20:12:02 +00:00
gpt-engineer-app[bot]
de3dc3363f Fix: Implement "Assinar Agora" button action
Implemented the `handleSubscribe` function to handle the "Assinar Agora" button click, but the action was not being triggered. Fixed the issue.
2025-06-15 20:09:35 +00:00
gpt-engineer-app[bot]
47e003213d Run SQL to create credit card tables. 2025-06-11 00:33:12 +00:00
gpt-engineer-app[bot]
bd322c9f45 Fix: Resolve TypeScript error in RegisterForm
The commit addresses a TypeScript error in `RegisterForm.tsx` related to the `whatsapp` field. The error message "Object literal may only specify known properties, and 'whatsapp' does not exist in type" indicates that the `whatsapp` field is not correctly recognized within the object being used.
2025-05-24 12:15:00 +00:00
gpt-engineer-app[bot]
d304d5c9c6 Fix: Add WhatsApp to registration form type
The `RegisterForm.tsx` component was updated to include a WhatsApp field. The TypeScript error was resolved by adding the `whatsapp` property to the type definition used for the registration form data. This ensures that the object literal used to pass data to the `supabase.rpc('registrar_usuario')` function includes the `whatsapp` field, resolving the type error.
2025-05-23 16:15:10 +00:00
gpt-engineer-app[bot]
e75d0058d6 Run SQL to add WhatsApp column
Adds the WhatsApp column to the usuarios table in the Supabase database.
2025-05-23 16:11:31 +00:00
gpt-engineer-app[bot]
67c4d2e318 Refactor: Use Supabase Edge Function for workflow creation
Implement workflow creation using a Supabase Edge Function, addressing CORS issues and enhancing security. The frontend now calls the Edge Function, which handles the n8n API interaction and Supabase updates.
2025-05-20 11:40:32 +00:00
gpt-engineer-app[bot]
9d35dfb518 Fix: Prevent modification of package.json
The AI was attempting to modify the `package.json` file, which is not allowed. This commit removes any changes that would have affected this file.
2025-05-20 11:12:52 +00:00
gpt-engineer-app[bot]
8ec8b4a5c6 Refactor: Move n8n workflow creation to backend
The frontend now calls a backend endpoint to create n8n workflows, addressing CORS issues. The backend handles the n8n API request, updates Supabase, and returns the result to the frontend.
2025-05-20 10:54:37 +00:00
gpt-engineer-app[bot]
90b3030ebb Reverted to commit b8d0db98bb 2025-05-19 18:42:59 +00:00
gpt-engineer-app[bot]
119a8af96a Run SQL migration
Apply the provided SQL to create the `rodrigo_audio_messages` table.
2025-05-19 18:29:45 +00:00
gpt-engineer-app[bot]
cfabf6e503 Connect to Supabase project
Add Supabase configuration and types to the project.
2025-05-17 23:33:22 +00:00