fix: mobile dashboard priority labels now join priorities table

- API: replaced hardcoded wrong map (1=Critical etc) with JOIN on priorities table
- API: sorted by count DESC instead of priority value
- Frontend: PRIORITY_COLOR/TEXT maps updated to cover all 10 actual Autotask values (1-11)
- Middleware: added /api/mobile to publicRoutes (was getting auth-redirected)
This commit is contained in:
lorentz 2026-03-17 23:44:00 -04:00
parent 5be7b22953
commit 5719daa84b
3 changed files with 26 additions and 6 deletions

View file

@ -20,6 +20,8 @@ const publicRoutes = [
"/api/integrations/status",
// Legal pages required by Intuit
"/legal",
// Mobile app API endpoints
"/api/mobile",
// OpenClaw external agent API (auth via x-openclaw-key header)
"/api/openclaw",
// Sync endpoints called by scheduler