Files
cal.diy/packages/lib
07789ba697 feat: Introduce a 'slot no longer available' message (#18935)
* feat: Don't allow unavailable slot's booking form to be visible - Send back to slots listing

* Improvements

* feat: Add env variables and strategies to prevent booking failures

- Added new environment variables for configuring slot reservation and availability checks
- Implemented strategies to handle concurrent bookings and slot availability
- Updated Booker component and related files to support new reservation and slot checking mechanisms
- Added README with detailed explanation of booking prevention strategies
- Configured dynamic intervals for slot and reservation queries

* docs: Update Booker README with detailed slot reservation and availability explanation

- Clarified slot reservation behavior when multiple users access the same booking page
- Added details about `getSchedule` refetching strategies and timing
- Explained how slot availability is detected and communicated to users

* Support for skip confirmation form flow

* feat: Enhance slot availability and reservation mechanism

- Refactored slot availability checking to support multiple slots
- Added tentative selected timeslots to improve booking UX
- Updated trpc handler to check availability for multiple slots
- Introduced new store methods for managing tentative slot selections
- Improved slot reservation and availability status tracking

* refactor: Improve slot availability quick check mechanism

- Renamed and restructured slot availability check parameters
- Extracted quick availability checks into a separate hook
- Updated type definitions for slot status and availability checks
- Simplified slot availability logic in Booker and related components
- Maintained cached state for quick availability checks

* Support minimu booking check too

* change data-testid

* Rneame

* Fix race condition with uid cookie not set

* fix tests

* Remove unsded variable

---------

Co-authored-by: Hariom Balhara <hariombalhara@gmgmail.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
2025-02-26 16:49:26 +02:00
..
2025-01-18 16:21:12 -03:00
2025-02-21 08:56:23 +00:00
2025-02-18 11:08:10 +05:30
2024-06-11 14:35:53 +00:00
2024-11-13 15:14:31 -05:00
2025-01-18 16:21:12 -03:00
2023-01-20 15:19:12 +01:00
2024-12-18 16:26:59 +00:00
2024-04-27 18:14:37 +02:00
2023-07-28 15:11:44 +00:00
2024-03-08 15:13:29 +00:00
2022-03-09 15:56:05 -07:00
2022-05-26 11:07:14 -06:00
2022-03-23 15:00:30 -07:00
2022-03-23 15:00:30 -07:00
2023-04-25 19:39:47 -03:00
2025-01-12 20:31:43 +00:00
2024-10-04 13:44:50 -07:00
2024-05-10 08:47:57 +01:00
2024-10-24 09:10:27 -04:00
2023-11-11 11:16:35 +00:00