Calendar: every agent has a color picked in Account Preferences or Admin Users, and their booked tickets and assigned events are drawn in it with their first name beside the time; events are assigned to agents from New Event, Edit and the quick look, with contacts and anyone else under Invite; Left behind under the calendar lists open tickets booked on a day that has gone, to drag back on; a 7 days view moves a day at a time and bookings at the same time sit side by side; Holidays shows the SLA closure days; what the calendar shows is kept to the account, and To schedule with Everyone lists everyone's unbooked tickets; database 3.8.4 adds user_settings.user_config_calendar_color and user_config_calendar_state; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 20:53:03 -05:00
parent d69015e2c7
commit bf1124570b
16 changed files with 812 additions and 65 deletions

View File

@@ -5614,6 +5614,58 @@ img.itflow-contact-avatar {
.itflow-cal-done {
opacity: .6;
}
/* Who it is for, on the time's line - the agent's first name */
.itflow-cal-when {
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: .35rem;
min-width: 0;
}
.itflow-cal-when .itflow-cal-time {
white-space: nowrap;
}
.itflow-cal-event.is-timegrid .itflow-cal-when .itflow-cal-time {
display: inline;
}
.itflow-cal-agent {
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.itflow-cal-event.is-list .itflow-cal-when {
display: inline-flex;
}
/* Booked on a day gone by and still open */
#itflowCalendar .itflow-cal-left-behind {
outline: 2px dashed var(--bs-danger);
outline-offset: -2px;
}
/* One row of them under the calendar - the rest scroll - and the calendar makes room */
#calendarLeftBehind {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
gap: .5rem;
max-height: 3.6rem;
overflow-y: auto;
}
@media (min-width: 768px) {
.itflow-calendar-page:has(#calendarLeftBehindCard:not(.is-empty)) #calendar {
min-height: calc(100vh - 19rem);
}
}
#calendarLeftBehind > .itflow-cal-unscheduled {
margin: 0;
}
#calendarLeftBehindCard.is-empty .card-body {
display: none;
}
/* The Calendar colour field's presets */
.itflow-cal-swatch {
width: 1.5rem;
height: 1.5rem;
}
/* To schedule - open tickets to drag onto the calendar */
.itflow-cal-unscheduled {
display: flex;