Jul 9 - Update Dashboard separate open issue by Handled by

This commit is contained in:
2026-07-09 12:12:07 -04:00
parent 138e44c47d
commit 53ba27370d
3 changed files with 36 additions and 9 deletions
+1 -1
View File
@@ -1029,7 +1029,7 @@ The dashboard cards are organised into two labelled sections separated by a divi
4. Pending Follow-ups — inspections with `follow_up_required=True`; links to `inspections.index?status=follow_up`
**Issues section** (customers see first 3; staff see all 5):
1. Open Issues — `status=open` with severity breakdown badges
1. Open Issues — `status=open` with severity breakdown badges (C/H/M/L) **and** a "Handled by" split (Janitorial Staff / Facility Staff / External Vendor) from `handler_breakdown`; each handler chip links to `issues.index?status=open&handler_type=...`. Both breakdowns are derived from the already-loaded `open_issues_all` list (no extra queries). The card is no longer a single wrapping anchor — the count and each handler chip are separate links (nested anchors are invalid).
2. Issues Opened Today — links to `issues.index` with `date_from=today&date_to=today` (uses the date filter added to `issues.index`)
3. Resolved Today — `status=resolved` + today's date range
4. Pending Verification — `status=pending_verification`