mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -181,7 +181,8 @@ if ($getting_started) {
|
||||
</div>
|
||||
|
||||
<?php if ($my_tickets['tickets']) { ?>
|
||||
<div class="list-group list-group-flush">
|
||||
<?php // SLA, status and last activity are columns, lined up down the card (.itflow-dash-mine) ?>
|
||||
<div class="list-group list-group-flush itflow-dash-mine">
|
||||
<?php foreach ($my_tickets['tickets'] as $ticket) {
|
||||
$ticket_priority = $ticket['ticket_priority'];
|
||||
$ticket_url = '/agent/ticket.php?' . http_build_query(array_filter([
|
||||
@@ -190,19 +191,17 @@ if ($getting_started) {
|
||||
]));
|
||||
$last_activity = $ticket['ticket_updated_at'] ?: $ticket['ticket_created_at'];
|
||||
?>
|
||||
<a href="<?= escapeHtml($ticket_url) ?>" class="list-group-item list-group-item-action d-flex align-items-center gap-3 py-2">
|
||||
<a href="<?= escapeHtml($ticket_url) ?>" class="list-group-item list-group-item-action py-2">
|
||||
<span class="itflow-dash-dot bg-<?= $priority_colors[$ticket_priority] ?? 'secondary' ?>" title="<?= escapeHtml($ticket_priority) ?> priority"></span>
|
||||
<span class="flex-grow-1 overflow-hidden">
|
||||
<span class="overflow-hidden">
|
||||
<span class="d-block text-truncate">
|
||||
<span class="small text-body-secondary me-2"><?= escapeHtml($ticket['ticket_prefix'] . $ticket['ticket_number']) ?></span><?= escapeHtml($ticket['ticket_subject']) ?>
|
||||
</span>
|
||||
<span class="d-block small text-body-secondary text-truncate"><?= escapeHtml($ticket['client_name'] ?: 'No client') ?></span>
|
||||
</span>
|
||||
<?php if ($ticket['sla_breached']) { ?>
|
||||
<span class="badge rounded-pill text-bg-danger" title="SLA breached"><i class="fas fa-stopwatch me-1" aria-hidden="true"></i>SLA</span>
|
||||
<?php } ?>
|
||||
<span class="d-none d-sm-inline"><?= ticketStatusHtml($ticket['ticket_status_name'], $ticket['ticket_status_color'], 'detail') ?></span>
|
||||
<span class="small text-body-secondary text-nowrap d-none d-md-inline" title="Last activity <?= escapeHtml($last_activity) ?>"><?= escapeHtml(timeAgo($last_activity)) ?></span>
|
||||
<span class="itflow-dash-mine-cell"><?php if ($ticket['sla_breached']) { ?><span class="badge rounded-pill text-bg-danger" title="SLA breached"><i class="fas fa-stopwatch me-1" aria-hidden="true"></i>SLA</span><?php } ?></span>
|
||||
<span class="itflow-dash-mine-cell d-none d-sm-flex"><?= ticketStatusHtml($ticket['ticket_status_name'], $ticket['ticket_status_color'], 'detail') ?></span>
|
||||
<span class="itflow-dash-mine-cell justify-content-end small text-body-secondary text-nowrap d-none d-md-flex" title="Last activity <?= escapeHtml($last_activity) ?>"><?= escapeHtml(timeAgo($last_activity)) ?></span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user