From 82a6d11d955d801da6ea8092b63b69a8bffbee8f Mon Sep 17 00:00:00 2001 From: david kiania Date: Fri, 26 Jun 2026 00:20:23 +0300 Subject: [PATCH] feat(tickets): INC | CRQ dataset sub-tabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a sub-tab bar under the Tickets tab (INC | CRQ). A DS dataset variable repoints the dashboard/search/filter-options calls to /webhook/${DS}-* and updates the overview / map / legend labels; switching resets the per-dataset dropdowns + explorer and reloads. Map, SLA legend, popups and the vehicle overlay are dataset-agnostic, so CRQ renders "just like INC" off reporting.fn_crq_* (fleettickets migration 16). NOT pushed yet — pushing staging auto-deploys; holding until the CRQ API + DB land. Co-Authored-By: Claude Opus 4.8 --- src/index.html | 61 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/src/index.html b/src/index.html index b3b0f22..9284de8 100644 --- a/src/index.html +++ b/src/index.html @@ -99,6 +99,18 @@ } .tab:hover { color: var(--text); } .tab.active { background: var(--accent); color: #1a1009; } + /* Tickets dataset sub-tabs (INC | CRQ) — same look as the header tabs. */ + .subtabs { + display: inline-flex; gap: 4px; background: var(--bg); + border: 1px solid var(--border); border-radius: 8px; padding: 3px; margin-bottom: 10px; + } + .subtab { + background: transparent; color: var(--muted); border: 0; border-radius: 6px; + padding: 6px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; + cursor: pointer; white-space: nowrap; + } + .subtab:hover { color: var(--text); } + .subtab.active { background: var(--accent); color: #1a1009; } /* ── Tabbed views ────────────────────────────────────────────────────── */ .view { display: none; } @@ -391,11 +403,15 @@
+
+ + +
-

INC overview

+

INC overview

Loading…
@@ -425,7 +441,7 @@
-

Live INC map open (SLA-coloured) · closed (faded same colour) · ISP vehicles

+

Live INC map open (SLA-coloured) · closed (faded same colour) · ISP vehicles