forked from fa/breadcrumb-the-shire
fix(helpdesk): edge-to-edge table in cards, larger avatar, sort by urgency
- Remove card padding, table goes full-width inside card border - Section title gets own padding + subtle background as card header - Avatar inline size increased from 1.6rem to 2rem - Sort agents by critical tickets first (most urgent on top), then by open tickets. Unassigned queue stays last. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1696,6 +1696,7 @@ class DebitorDetailService
|
||||
];
|
||||
}
|
||||
|
||||
// Sort: unassigned last, then critical_tickets desc, then open_tickets desc
|
||||
usort($members, static function (array $a, array $b): int {
|
||||
if ($a['support_user'] === '') {
|
||||
return 1;
|
||||
@@ -1704,6 +1705,10 @@ class DebitorDetailService
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ($a['critical_tickets'] !== $b['critical_tickets']) {
|
||||
return $b['critical_tickets'] <=> $a['critical_tickets'];
|
||||
}
|
||||
|
||||
return $b['open_tickets'] <=> $a['open_tickets'];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user