Add ticket types, move Asiakaspalvelu tab first, hide closed tickets
- Asiakaspalvelu tab moved to first position in navigation - Added ticket type field (Laskutus, Tekniikka, Vika, Muu) with type filter dropdown and type column in ticket list - Type selector in ticket detail view with API endpoint - Closed tickets hidden by default (selectable via "Kaikki tilat") - Käsittelyssä rows highlighted with green background - Type badges with color coding per category Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
39
style.css
39
style.css
@@ -1124,6 +1124,45 @@ span.empty {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* Ticket type badges */
|
||||
.ticket-type {
|
||||
display: inline-block;
|
||||
padding: 2px 10px;
|
||||
border-radius: 10px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ticket-type-laskutus {
|
||||
background: #e8f5e9;
|
||||
color: #2e7d32;
|
||||
}
|
||||
|
||||
.ticket-type-tekniikka {
|
||||
background: #e3f2fd;
|
||||
color: #1565c0;
|
||||
}
|
||||
|
||||
.ticket-type-vika {
|
||||
background: #fce4ec;
|
||||
color: #c62828;
|
||||
}
|
||||
|
||||
.ticket-type-muu {
|
||||
background: #f5f5f5;
|
||||
color: #757575;
|
||||
}
|
||||
|
||||
/* Active (käsittelyssä) ticket row — green tint */
|
||||
.ticket-row-active {
|
||||
background: #e8f8e8 !important;
|
||||
}
|
||||
|
||||
.ticket-row-active:hover {
|
||||
background: #d5f0d5 !important;
|
||||
}
|
||||
|
||||
/* Ticket thread */
|
||||
.ticket-thread {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user