cal.pub0.org/lib/hooks
Alex van Andel ffdf0b9217
Fixes user availability to be contextual to the user timezone (#1166)
* WIP, WIP, WIP, WIP

* Adds missing types

* Type fixes for useSlots

* Type fixes

* Fixes periodType 500 error when updating

* Adds missing dayjs plugin and type fixes

* An attempt was made to fix tests

* Save work in progress

* Added UTC overflow to days

* Update lib/availability.ts

Co-authored-by: Alex Johansson <alexander@n1s.se>

* No more magic numbers

* Fixed slots.test & added getWorkingHours.test

* Tests pass, simpler logic, profit?

* Timezone shifting!

* Forgot to unskip tests

* Updated the user page

* Added American seed user, some fixes

* tmp fix so to continue testing availability

* Removed timeZone parameter, fix defaultValue auto-scroll

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-11-18 01:03:19 +00:00
..
useFileReader.ts Chore: Resolves TS errors related to FileReader/ImageUploader (#965) 2021-10-16 10:42:28 +00:00
useInViewObserver.ts feat: add infinite scroll on bookings tabs (#1059) 2021-10-28 15:02:22 +00:00
useLocale.ts Refactors useLocale (#908) 2021-10-12 13:11:33 +00:00
useSlots.ts Fixes user availability to be contextual to the user timezone (#1166) 2021-11-18 01:03:19 +00:00
useTheme.tsx Zomars/fixes trpc typo (#957) 2021-10-14 19:22:01 +00:00
useToggleQuery.tsx add free plan (#549) 2021-09-06 13:51:15 +00:00