Dashboard: - Dark theme by default (zinc-950 background, high-contrast status colors) - Layout: sticky header with live status, hero HealthBanner, FailuresPanel, AnomaliesPanel, 2-col grid (Workflows + Activity), StatsStrip footer - Auto-detected anomalies: stale active workflows, 100% fail rate, stuck running - Click any failure/activity row → links to n8n execution view (VITE_N8N_URL) - VITE_N8N_URL env var threaded through Dockerfile + compose Poller (poller.n8n.json): - Fetch n8n Executions: includeData false → true (now includes execution data) - Create/Update Execution Record: extract error_message from data.resultData.error using a safe IIFE that JSON.parses the data field Also: - Added vite-env.d.ts so VITE_* env vars are typed - docker-compose.yml: VITE_N8N_URL added to build args - .env.example: documented VITE_N8N_URL at root and dashboard level
9 lines
485 B
Text
9 lines
485 B
Text
# PocketBase URL the dashboard reads from.
|
|
# In dev: leave at the default (http://127.0.0.1:8090) and run PB locally.
|
|
# In prod (Coolify / Cloudflare Tunnel / reverse proxy): set to your public PB URL.
|
|
# Example: VITE_POCKETBASE_URL=https://pocketbase.yourdomain.com
|
|
VITE_POCKETBASE_URL=http://127.0.0.1:8090
|
|
|
|
# n8n base URL — used for deep-links from each failure/execution back to n8n.
|
|
# Example: VITE_N8N_URL=https://wfdash.n8n.apphub.co.za
|
|
VITE_N8N_URL=http://localhost:5678
|