feat(helpdesk): add Stripe-style inline bars, badges, and muted zeros to team tables
Current tab: proportional bars behind open ticket counts for instant visual comparison, warning badges for critical counts (>0), muted styling for zero values. Performance tab: success-colored bars behind resolved counts. Unassigned row gets muted bar variant. Adds tabular-nums for aligned numbers, smooth bar transitions, and de-emphasized table borders for a cleaner visual hierarchy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -130,12 +130,23 @@
|
||||
.helpdesk-team-table {
|
||||
width: 100%;
|
||||
margin-top: calc(var(--app-spacing) * 0.75);
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.helpdesk-team-table th {
|
||||
text-align: left;
|
||||
padding: calc(var(--app-spacing) * 0.3) calc(var(--app-spacing) * 0.5);
|
||||
font-size: var(--text-sm, 0.875rem);
|
||||
font-weight: 500;
|
||||
color: var(--app-muted-color);
|
||||
border-bottom: 1px solid var(--app-muted-border-color);
|
||||
}
|
||||
|
||||
.helpdesk-team-table th,
|
||||
.helpdesk-team-table td {
|
||||
text-align: left;
|
||||
padding: calc(var(--app-spacing) * 0.35) calc(var(--app-spacing) * 0.5);
|
||||
padding: calc(var(--app-spacing) * 0.5) calc(var(--app-spacing) * 0.5);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--app-muted-border-color) 50%, transparent);
|
||||
}
|
||||
|
||||
.helpdesk-team-table th:not(:first-child),
|
||||
@@ -143,11 +154,82 @@
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.helpdesk-team-table tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.helpdesk-team-agent-name {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.helpdesk-team-row-unassigned {
|
||||
opacity: 0.7;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.helpdesk-team-row-unassigned .helpdesk-team-agent-name {
|
||||
font-weight: 400;
|
||||
color: var(--app-muted-color);
|
||||
}
|
||||
|
||||
/* Muted zero values — de-emphasize non-information */
|
||||
.helpdesk-team-muted {
|
||||
color: var(--app-muted-color);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* Inline proportional bar — Stripe-style visual comparison */
|
||||
.helpdesk-team-bar-cell {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: calc(var(--app-spacing) * 0.35);
|
||||
min-width: 5rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.helpdesk-team-bar {
|
||||
height: 0.5rem;
|
||||
border-radius: 999px;
|
||||
flex-shrink: 0;
|
||||
min-width: 2px;
|
||||
width: 0;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.helpdesk-team-bar-primary {
|
||||
background: var(--app-primary, #0d6efd);
|
||||
}
|
||||
|
||||
.helpdesk-team-bar-success {
|
||||
background: var(--app-success, #198754);
|
||||
}
|
||||
|
||||
.helpdesk-team-bar-muted {
|
||||
background: var(--app-muted-color);
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.helpdesk-team-bar-value {
|
||||
font-variant-numeric: tabular-nums;
|
||||
min-width: 2ch;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Critical badge — draws attention to non-zero values */
|
||||
.helpdesk-team-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 1.5em;
|
||||
padding: 0.1em 0.45em;
|
||||
font-size: var(--text-sm, 0.875rem);
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.3;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--app-warning, #f59e0b) 15%, transparent);
|
||||
color: var(--app-warning, #f59e0b);
|
||||
}
|
||||
|
||||
/* Clickable rows — shared between search results and ticket list */
|
||||
.app-clickable-row {
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user