cal.pub0.org/apps/web/lib/hooks
Syed Ali Shahbaz 788e2acaff
Fix for buffer not considering custom interval slots and event duration for slots when using custom intervals (#2079)
* modified buffer checks

* added custom interval consideration in getSlots fn

* further getslot call fixes

* added check for end of day availability slots

* removed debug remnants

* moved slot filtering into a function

* improved readability of code

* improved readability

* extracted getFilteredTimes outside useSlot

* added a buffer test

* added another buffer test

* edge case fix for eod availability and test fix

* removed unnecessary comments

* verbose comment

* fixed eod logic and updated expected test value

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-12 06:52:27 +00:00
..
useFileReader.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
useInViewObserver.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
useLocale.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
usePublicPage.ts Remove intercom from public booking pages (#1835) 2022-02-16 08:26:48 -07:00
useSlots.ts Fix for buffer not considering custom interval slots and event duration for slots when using custom intervals (#2079) 2022-03-12 06:52:27 +00:00
useTheme.tsx Feature: Instant Theme Change, without refresh [Booking Pages Only] (#1807) 2022-02-16 15:53:26 +00:00
useToggleQuery.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00