fix(helpdesk): replace ticket detail KPI tiles with unified label/value list
Remove the Status and Age KPI metric tiles from the ticket aside. Merge all information into a single definition list: Status, Description, Company, Contact, Category, Support, Created, Last activity, Age. Consistent with the label/value pattern used across all detail views. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -87,24 +87,12 @@ $backUrl = $ticketCustomerNo !== '' ? lurl('helpdesk/debitor/' . rawurlencode($t
|
||||
?>
|
||||
<aside id="app-details-aside-section">
|
||||
<div class="app-details-aside-section helpdesk-ticket-aside">
|
||||
<!-- KPI tiles: Status + Age — stacked vertically -->
|
||||
<h3 class="helpdesk-support-section-title"><?php e(t('Ticket details')); ?></h3>
|
||||
<div class="helpdesk-support-metrics helpdesk-support-metrics-aside">
|
||||
<article class="helpdesk-support-metric">
|
||||
<p class="helpdesk-support-metric-label"><?php e(t('Status')); ?></p>
|
||||
<p class="helpdesk-support-metric-value"><?php e($ticketState); ?></p>
|
||||
<p class="helpdesk-support-metric-trend"><?php e(t('Last activity')); ?>: <?php e($lastActivityFormatted); ?></p>
|
||||
</article>
|
||||
<article class="helpdesk-support-metric">
|
||||
<p class="helpdesk-support-metric-label"><?php e(t('Age')); ?></p>
|
||||
<p class="helpdesk-support-metric-value"><?php e($ageLabel); ?></p>
|
||||
<p class="helpdesk-support-metric-trend"><?php e(t('Created')); ?>: <?php e($createdFormatted); ?></p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<!-- Compact key-value details -->
|
||||
<h3 class="helpdesk-support-section-title"><?php e(t('Details')); ?></h3>
|
||||
<dl class="helpdesk-ticket-meta">
|
||||
<div class="helpdesk-ticket-meta-item">
|
||||
<dt><?php e(t('Status')); ?></dt>
|
||||
<dd><?php e($ticketState); ?></dd>
|
||||
</div>
|
||||
<div class="helpdesk-ticket-meta-item">
|
||||
<dt><?php e(t('Description')); ?></dt>
|
||||
<dd><?php e((string) ($ticket['Description'] ?? '—')); ?></dd>
|
||||
@@ -132,8 +120,16 @@ $backUrl = $ticketCustomerNo !== '' ? lurl('helpdesk/debitor/' . rawurlencode($t
|
||||
<dd><?php e((string) ($ticket['Support_User_Name'] ?? '—')); ?></dd>
|
||||
</div>
|
||||
<div class="helpdesk-ticket-meta-item">
|
||||
<dt><?php e(t('Debtor No.')); ?></dt>
|
||||
<dd><?php e($ticketCustomerNo !== '' ? $ticketCustomerNo : '—'); ?></dd>
|
||||
<dt><?php e(t('Created')); ?></dt>
|
||||
<dd><?php e($createdFormatted); ?></dd>
|
||||
</div>
|
||||
<div class="helpdesk-ticket-meta-item">
|
||||
<dt><?php e(t('Last activity')); ?></dt>
|
||||
<dd><?php e($lastActivityFormatted); ?></dd>
|
||||
</div>
|
||||
<div class="helpdesk-ticket-meta-item">
|
||||
<dt><?php e(t('Age')); ?></dt>
|
||||
<dd><?php e($ageLabel); ?></dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user