mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
Replaces the /automations placeholder with a full feature: - Migration 006 adds automations, automation_steps, automation_logs, and automation_pending_executions with RLS matching existing tables. - List page with active/inactive switch, quick-start templates, duplicate, delete, and View Logs actions. - Full-screen vertical flow builder with Trigger + Action + Condition (Yes/No branches) + Wait cards. Inline edit forms, up/down reorder, dotted-grid canvas. - Execution engine (src/lib/automations/engine.ts) dispatched from the WhatsApp webhook for new_message_received, new_contact_created, and keyword_match. Wait steps enqueue to automation_pending_executions; /api/automations/cron drains them behind AUTOMATION_CRON_SECRET. - Logs viewer with per-step checkmarks and expandable detail. Existing files touched only in webhook/route.ts (fire-and-forget trigger dispatch) and types/index.ts (appended automation types). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| accordion.tsx | ||
| alert.tsx | ||
| avatar.tsx | ||
| badge.tsx | ||
| button.tsx | ||
| card.tsx | ||
| dialog.tsx | ||
| dropdown-menu.tsx | ||
| input.tsx | ||
| label.tsx | ||
| popover.tsx | ||
| radio-group.tsx | ||
| scroll-area.tsx | ||
| select.tsx | ||
| separator.tsx | ||
| sheet.tsx | ||
| switch.tsx | ||
| table.tsx | ||
| tabs.tsx | ||
| textarea.tsx | ||
| tooltip.tsx | ||