mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 04:17:24 +00:00
QoL 68: a client's Open tickets on its overview use the dashboard's grid, so the SLA, status and last activity line up down the card
This commit is contained in:
@@ -205,7 +205,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
|
||||
- Lists: a row shows its tags only when it has some, so untagged rows are a line shorter. To tag one, use Tags in its ⋮ menu - its tags show on the row as you tick them, no reload. Cards on the tickets board and the Files grid have it in their menu too. To tag several together, tick them and use Tags in Bulk Action. A client's other pages show the client's tags without the +; change them on the client's overview or the clients list.
|
||||
- Lists: the page numbers stay on one row - the first and last page and the ones next to yours - however long the list, with the record count in the middle of the footer above them or beside them.
|
||||
- Tickets: Unassigned is amber, as the Unassigned view and the dashboard's tile are, and Not billable a light gray - red is kept for what is late.
|
||||
- Dashboard and client overview: when the last row of Needs attention is short, its tiles keep their width rather than one stretching across, and a count of one reads 1 Draft invoice, not 1 Draft invoices.
|
||||
- Dashboard and client overview: when the last row of Needs attention is short, its tiles keep their width rather than one stretching across, and a count of one reads 1 Draft invoice, not 1 Draft invoices. A client's Open tickets line up their SLA, status and last activity down the card, as My tickets on the dashboard does.
|
||||
- Unbilled Time: the time logged is under the hours to bill rather than a column of its own, so the list fits beside Bill these clients.
|
||||
- Forms: the + beside a picker and the Cancel button look the same in every window, a vendor's What they are is Description as on other records, and a few notes under fields that only said where a value shows are gone.
|
||||
- Starter Content and the demo data are in US spelling - license, authorized, organization, fiber and the like. Where you loaded them before, nothing is added twice: the Authorised Contacts Only vendor tag and the Licence assigned canned response you have count as loaded, and bringing the starter canned responses up to date gives the response its new name. Bringing the starter ticket templates up to date has New Hire Onboarding ask for the License. Loading the demo data again, or removing it, still finds what an earlier load made.
|
||||
|
||||
@@ -170,22 +170,20 @@ $money_format = function ($amount) use ($currency_format, $client_currency_code,
|
||||
<?php if ($open_tickets['total']) { ?><a class="small ms-2" href="tickets.php?client_id=<?= $client_id ?>">View all <?= $open_tickets['total'] ?></a><?php } ?>
|
||||
</div>
|
||||
<?php if ($open_tickets['tickets']) { ?>
|
||||
<div class="list-group list-group-flush">
|
||||
<div class="list-group list-group-flush itflow-dash-mine">
|
||||
<?php foreach ($open_tickets['tickets'] as $ticket) {
|
||||
$last_activity = $ticket['ticket_updated_at'] ?: $ticket['ticket_created_at'];
|
||||
$ticket_who = trim(implode(', ', array_filter([$ticket['contact_name'], $ticket['user_name'] ? 'assigned to ' . $ticket['user_name'] : 'unassigned'])));
|
||||
?>
|
||||
<a href="ticket.php?client_id=<?= $client_id ?>&ticket_id=<?= intval($ticket['ticket_id']) ?>" class="list-group-item list-group-item-action d-flex align-items-center gap-3 py-2">
|
||||
<a href="ticket.php?client_id=<?= $client_id ?>&ticket_id=<?= intval($ticket['ticket_id']) ?>" class="list-group-item list-group-item-action py-2">
|
||||
<span class="itflow-dash-dot bg-<?= $priority_colors[$ticket['ticket_priority']] ?? 'secondary' ?>" title="<?= escapeHtml($ticket['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(ucfirst($ticket_who)) ?></span>
|
||||
</span>
|
||||
<?php if ($ticket['sla_breached']) { ?>
|
||||
<span class="badge rounded-pill text-bg-danger" title="Past SLA"><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="Past SLA"><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>
|
||||
|
||||
@@ -3061,8 +3061,9 @@ 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.
|
||||
/* Open tickets - yours on the dashboard, a client's on its overview: 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;
|
||||
|
||||
Reference in New Issue
Block a user