Thursday, March 31, 2022
3 changes · master
Enhancements to existing features
The Helpdesk website pages have been visually streamlined with simpler styling and a cleaner search results layout. This makes it easier for visitors to scan help content and find relevant answers across helpdesk-related pages.
Original PR description
This PR simplifies the SCSS of `website_helpdesk` & `website_helpdesk_*` modules. It also improves the overall layout of the search results. task-2777615
Appointment slot times are now automatically corrected when possible if a saved interval is too short or ends before it starts. This reduces disruptive error popups and helps users save valid appointment availability more smoothly.
Original PR description
Automatically adapt invalid slot interval if possible when saving to avoid in most cases a popup saying that something is incorrect in the slot list. The slot interval is invalid when it ends before it starts or its length is less than the appointment_duration. In that case, we try to change in priority the bound that was not changed by the user and if both were changed, we adapt the end bound. Adaptation is either [start, start + appointment_duration] or [end - appointment_duration, end]. Note that there are example where the interval cannot be adapted. For example: [22, 8] with an appointment time of 10h because [22, 22+10] and [8-10, 8] are not valid interval. Technical note: when an update is performed on multiple records at once, the auto correction is disabled because there is most of the time not one solution. Task-2791265
The appointment app now offers a clearer booking experience, better preservation of filters, and more flexible slot availability controls. Users benefit from fewer confusing past-time slots, improved sharing options, and refreshed backend and website screens.
Original PR description
# Purpose Improves the global design of the app and some fields to improve the usability # Specifications - Add a boolean field on each appointment type that allows the user to enable/disable the check of the work_hours of the users for the slots computation - Add a field that is hidden by default in the slot tree view to restrict some slots to some users. - Keep the filters and params in URL when clicking on "All Appointments" - Add an overlay when in slots-selection mode that encompasses the past - Improve design on the backend and frontend - Provide some fixes and slightly improve tests - For more info see each commit # Links Task-2695730