feat(whatsapp): mensajes automáticos semanales con proveedor intercambiable

- Puerto MessagingProvider con adaptadores OpenWA (MVP, QR) y Kapso
  (setup link de Meta + templates), elegido con WHATSAPP_PROVIDER.
- Vinculación del WhatsApp del profesor en el onboarding y en Ajustes.
- Job semanal (lunes 10:00 AR): recordatorio de pago y reenganche a
  alumnos en riesgo (cooldown 14 días), con switches por grupo.
- Idempotencia por (kind, attendee, semana ISO), webhooks firmados con
  HMAC y deduplicados, normalización de teléfonos a E.164.
- Servicio openwa en docker-compose y guía en docs/whatsapp.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-10-22 08:38:09 -03:00
parent 8c5caecdda
commit ec65c2198d
90 changed files with 6784 additions and 117 deletions

View File

@@ -3,9 +3,13 @@ import { Fingerprint } from 'lucide-react'
import { Button } from '../../components/ui'
import { signOut } from '../../lib/auth-client'
import { MpStatusCard } from '../mp'
import { WhatsappStatusCard } from '../whatsapp'
import { AppearanceCard } from './AppearanceCard'
import { useCallbackFeedbackToast } from './useCallbackFeedbackToast'
export function SettingsView() {
useCallbackFeedbackToast()
const handleSignOut = async () => {
await signOut({
fetchOptions: { headers: { 'Cache-Control': 'no-cache' } },
@@ -34,6 +38,8 @@ export function SettingsView() {
<MpStatusCard />
<WhatsappStatusCard />
<AppearanceCard />
<Button variant="outline" onClick={handleSignOut}>