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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user