Wachato CRM: versión marca blanca configurable por entorno

CRM de WhatsApp, Instagram, Messenger y TikTok de Wachato, basado en Vocero
CRM (MIT), listo para desplegar un negocio por instancia:

- Marca blanca: nombre, color, moneda y giro del negocio desde el .env
  (BRAND_NAME, BRAND_ACCENT, BRAND_CURRENCY, BUSINESS_DESCRIPTION); se
  aplican una vez y luego manda Ajustes → Marca.
- Superadmin sembrado al arrancar (SUPERADMIN_*), idempotente.
- Servicios y precios, campos personalizados, exportación a Excel/PDF,
  respaldos, agenda, atribución de anuncios y transcripción de notas de voz.
- Diseño con contraste AAA, tema claro y oscuro.
- Despliegue: docker compose (Caddy opcional), plantillas para paneles con
  reverse proxy (deploy/aapanel), imagen publicada en GHCR por la CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andres Corazon Santana AquinoandClaude Opus 5.5 committed 2026-12-04 15:54:58 -04:00
commit 6edc6020d5
1316 files changed
+308543

No files matched your search

@@ -0,0 +1,50 @@
# Approved flow for Meta App Review
Use this reference when the task is to script, review, or rebuild the exact flow that should appear in the submission video.
## Approved narrative pattern
The strongest flow is:
1. Introduce the product and use case in one sentence.
2. Run the full Meta Embedded Signup flow.
3. Return to the app and show the connected phone number and IDs.
4. Create a new reminder template.
5. Show the template in pending or approved state.
6. Send the approved template to a test recipient.
7. Show the message on the recipient device.
## Approved example script
Use this exact sequence as a baseline:
```text
This is Suscripta, a SaaS for subscription payment reminders on WhatsApp.
First, the business connects its own WhatsApp Business account through Meta Embedded Signup.
After the connection, Suscripta reads the connected phone numbers and their IDs.
Here is the connection established.
I will create a new template of a subscription reminder.
Now I will send this template to the approval process in Meta.
Here I can see this template with the pending status.
Now I will send the approved template to a test recipient.
The message was sent successfully and here it is on the recipient device.
```
## What each step proves
- Embedded Signup proves the user is connecting their own business account.
- Reading the phone number and IDs proves asset access through `whatsapp_business_management`.
- Creating and listing templates proves the app is operating on real WhatsApp Business assets.
- Sending the approved template proves `whatsapp_business_messaging`.
- Showing the recipient device proves the end-to-end use case.
## Video constraints
- Keep it linear.
- Avoid detours into debugging tools.
- Avoid admin setup that the reviewer does not need.
- Target 2 to 4 minutes.
- Show the real recipient device whenever possible.
@@ -0,0 +1,65 @@
# Common rejection patterns and fixes
Use this reference when the user already submitted for App Review and needs to understand why Meta rejected the request.
## Pattern: "The screencast does not match the use case details"
Typical cause:
- The app notes describe a full flow, but the video only shows onboarding or only shows a dashboard.
Fix:
- Re-record the screencast so the product behavior and the written notes match exactly.
- Include onboarding, asset reading, sending, and the recipient device.
## Pattern: Incomplete permission proof
Typical cause:
- `whatsapp_business_management` was requested, but the app never visibly loads phone assets or templates.
- `whatsapp_business_messaging` was requested, but the app never shows a real template send.
Fix:
- Make the critical areas real before reapplying.
- Show those areas clearly in the product UI.
## Pattern: Product looks mocked
Typical cause:
- Core screens contain only static data.
Fix:
- Replace the permission-critical sections with real data:
- connected number,
- template list,
- recent message activity,
- or real send outcome.
## Pattern: Review build breaks during the flow
Typical cause:
- missing environment variables,
- OAuth mismatch,
- failed code exchange,
- number not operational,
- no approved template available.
Fix:
- Make the review build boringly reliable.
- Remove debug UI from the screencast surface after troubleshooting.
## Approval checklist
- Production route exists and loads.
- Embedded Signup completes.
- Connection persists.
- Number appears in app.
- Template exists and is approved.
- Message is sent from the app.
- Recipient device shows the message.
@@ -0,0 +1,43 @@
# Submission copy for Meta App Review
Use this reference when asked to draft permission notes, reviewer explanations, or English copy for the submission form.
## `whatsapp_business_messaging`
```text
This app uses whatsapp_business_messaging to send subscription payment reminder messages from the customer's own connected WhatsApp Business phone number.
Our users are businesses that manage recurring subscriptions or renewals. Inside the app, the business connects its own WhatsApp Business account through the official Meta Embedded Signup flow. After the connection is completed, the app stores the connected WhatsApp Business Account ID and Phone Number ID and then uses approved WhatsApp message templates to send payment reminder notifications to opted-in end customers.
This permission is used only after the business connects its account and only for sending business notifications related to subscription renewal or payment reminder use cases.
```
## `whatsapp_business_management`
```text
This app uses whatsapp_business_management to retrieve and manage the WhatsApp Business assets required for the platform after the business connects through Meta Embedded Signup.
After the user completes the Embedded Signup flow, the app reads the connected WhatsApp Business Account information, the connected Phone Number ID, and the WhatsApp message templates associated with that account. This information is used to configure the workspace inside the app and allow the business to select approved templates and operate its reminder workflows.
This permission is used only to read and manage the WhatsApp Business assets necessary for the business to operate its own connected account inside the platform.
```
## Video notes block
```text
The video shows:
1. The complete Meta Embedded Signup flow.
2. The user granting access to the requested permissions.
3. The connected business phone number displayed inside the app.
4. The list of WhatsApp templates loaded from the connected account.
5. A live approved template message being sent to a test recipient.
6. The final message received on the recipient device.
```
## Writing rules
- Describe product behavior, not generic API usage.
- Mention the business connects its own account.
- Mention approved templates.
- Mention the connected phone number and IDs.
- Match the video exactly.