From ff1a3089bb1b5bf412f902d56e7ed68fe5ec558c Mon Sep 17 00:00:00 2001 From: NguyenND Date: Fri, 7 Aug 2026 09:42:26 -0400 Subject: [PATCH] Aug 7 - Update the AI Suport button --- app/static/css/theme_modern.css | 3 +++ app/templates/ui/support_center.html | 28 +++++++++++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/app/static/css/theme_modern.css b/app/static/css/theme_modern.css index 8c75052..bf6fbc2 100644 --- a/app/static/css/theme_modern.css +++ b/app/static/css/theme_modern.css @@ -400,6 +400,9 @@ a.jqc-kpi:hover { box-shadow: var(--jqc-shadow-md); transform: translateY(-1px); .jqc-modern .jqc-hub-card.dark .jqc-hub-title, .jqc-modern .jqc-hub-card.dark .jqc-hub-text { color: #fff; } .jqc-modern .jqc-hub-card.dark .jqc-tile-icon { background: #fff; } +/* The default .jqc-hub-open is brand-coloured, which is invisible on the dark + (brand-filled) card — it needs its own colour. */ +.jqc-modern .jqc-hub-card.dark .jqc-hub-open { color: #fff; } /* ── 7. Tables — dark teal header, as in the deck ────────────────────────── */ .jqc-modern .table { --bs-table-border-color: var(--jqc-border); margin-bottom: 0; } diff --git a/app/templates/ui/support_center.html b/app/templates/ui/support_center.html index 448605d..5a5b7d2 100644 --- a/app/templates/ui/support_center.html +++ b/app/templates/ui/support_center.html @@ -113,16 +113,38 @@ {% endfor %} + {# The AI chat is customer-only (support.chat redirects staff to the ticket + queue, which is itself @supervisor_required). So the destination is chosen + per role rather than pointed at support.chat for everyone — an inspector + following that chain would land on the dashboard with an access-denied + flash, and this page is meant never to dead-end. Roles with no support + destination get no card; the how-to guides below are their support. #} + {% if current_user.role == 'customer' %}
- +
Open →
+
+ {% elif current_user.role in ['admin', 'director'] %} +
+ +
+ +
+
AI Support
+
Review the AI chat conversations customers have had.
+
+
+
Open →
+
+
+ {% endif %} {% endblock %}