https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129

--- Comment #73 from Paul Derscheid <[email protected]> ---
Created attachment 203652
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203652&action=edit
Bug 41129: Add accessible booking calendar and Vue type checking

Add a booking date-range picker that presents availability and booking rules in
the calendar.

- display bookings, checkouts, holidays, lead and trail periods, and booking
  limits on Flatpickr dates
- recalculate item and date availability when the selected range or calendar
  month changes
- retain existing booking ranges while editing
- keep restricted dates keyboard-focusable and announce why they cannot be
  selected
- support keyboard selection and day, week, month, and year navigation
- exclude Koha's Flatpickr date-shortcut plugins because they bypass booking
  range validation
- add Cypress support and component tests for the calendar and availability
  maps
- enable TypeScript parsing and vue-tsc checking for booking Vue components

Test plan:
1. Open the booking modal for a record with a bookable item.
2. Open the booking period calendar and verify that it does not display the
   Yesterday, Today, and Tomorrow shortcuts.
3. Verify that past dates and dates occupied by a booking or checkout cannot be
   selected and display the appropriate marker and explanation.
4. Use the keyboard to open the calendar, select a date range, and navigate by
   day, week, month, and year.
5. Verify that closing the calendar returns focus to the booking period field.
6. Run:
   `yarn cypress run --component --browser electron --spec
   't/cypress/component/BookingCalendar_spec.ts,
   t/cypress/component/useBookingCalendarMaps_spec.ts'`

Sponsored-by: Büchereizentrale Schleswig-Holstein <https://www.bz-sh.de/>
Assisted-by: Opus 4.8 (Anthropic)
Assisted-by: GPT 5.6 (OpenAI)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to