From 406d0fb607d46667af835582318204236d89bfdc Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 20 Nov 2026 19:55:02 -0500 Subject: [PATCH] Line up the SLA, status and last activity in columns down the dashboard Open and assigned to you card, so rows no longer shift with status or time width or a missing SLA pill --- CHANGELOG.md | 1 + agent/dashboard.php | 15 +++++++-------- css/itflow_custom.css | 28 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11df69a50..f82f726d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -270,6 +270,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - Card payments: once a client's Stripe customer was deleted in Stripe - or the Stripe keys were changed to another Stripe account, or between test and live - every card payment for that client failed, and only an edit to the database put it right. The portal's card form never loaded, the invoice pay page showed Stripe's error, Charge Saved Card failed, and autopay failed every night. Now when Stripe says the customer isn't there, ITFlow forgets it along with the cards saved on it, which Stripe dropped too. A payment with a new card, from an invoice's pay link or the portal, still goes through. The client is asked to add their card again to save one, agents get a notification, and each recurring invoice whose autopay stopped says why. Reported on the forum. - Windows: opening one put a focus ring round its X in the corner. Focus now goes to the window itself. - Tickets: the tickets list and board showed how long ago a ticket's SLA was due, in grey, until cron next marked it breached, and showed the time left on one that had already missed its first response. A ticket past its deadline or that missed a target now says Breached, as the SLA breached view counts it. +- Dashboard: in Open and assigned to you, the SLA, status and last activity didn't line up from one ticket to the next - each row moved them by the width of its own status or time, and by whether it had an SLA. They now sit in columns down the card. ### Developer Updates diff --git a/agent/dashboard.php b/agent/dashboard.php index af81ded45..c0a28490b 100644 --- a/agent/dashboard.php +++ b/agent/dashboard.php @@ -181,7 +181,8 @@ if ($getting_started) { -
+ + diff --git a/css/itflow_custom.css b/css/itflow_custom.css index 612322e37..8955021a2 100644 --- a/css/itflow_custom.css +++ b/css/itflow_custom.css @@ -3151,6 +3151,34 @@ a.itflow-dash-rail-item:focus-visible { [data-bs-theme=dark] .itflow-dash-dot.bg-dark { background-color: var(--bs-emphasis-color) !important; } +/* Open and assigned to you: each row takes its columns from the list (subgrid), so the SLA + pills, the statuses and the last activity line up down the card whatever their widths. + The status shows from sm and the last activity from md, so the columns do too. */ +.itflow-dash-mine { + display: grid; + grid-template-columns: auto minmax(0, 1fr) auto; +} +@media (min-width: 576px) { + .itflow-dash-mine { + grid-template-columns: auto minmax(0, 1fr) auto auto; + } +} +@media (min-width: 768px) { + .itflow-dash-mine { + grid-template-columns: auto minmax(0, 1fr) auto auto auto; + } +} +.itflow-dash-mine > .list-group-item { + display: grid; + grid-column: 1 / -1; + grid-template-columns: subgrid; + column-gap: 1rem; + align-items: center; +} +.itflow-dash-mine-cell { + display: flex; + align-items: center; +} .itflow-dash-chart { position: relative; height: 240px;