17 Commits

Author SHA1 Message Date
vchikalkin
f305987f68 hooks: invalidate orders & slots after mutate & delete 2025-06-26 14:12:51 +03:00
vchikalkin
fead5353e7 create useIsMaster hook to prevent duplication 2025-06-26 13:23:03 +03:00
vchikalkin
46f60d969d remove getSlotsOrders fn 2025-06-25 18:22:20 +03:00
vchikalkin
2ca11832a9 highlight days with slots in schedule calendar 2025-06-25 17:57:41 +03:00
vchikalkin
e861e6e917 order page: add buttons 2025-06-24 12:36:43 +03:00
vchikalkin
efebc9d8ef hooks/services: rename input -> variables 2025-06-24 10:30:48 +03:00
vchikalkin
085263654f fix create order query 2025-06-11 14:55:36 +03:00
vchikalkin
d15dd9ada7 packages: radash -> radashi 2025-06-10 15:36:01 +03:00
vchikalkin
8242d186fe fix create slot 2025-06-10 13:51:49 +03:00
vchikalkin
f4609eb8d1 add horizontal calendar 2025-06-08 14:32:01 +03:00
vchikalkin
5e13deecf0 finally organized stores & context 2025-05-23 16:29:42 +03:00
vchikalkin
d0e67a0f8a context: rename contexts properly 2025-05-23 16:22:25 +03:00
vchikalkin
a4608ead43 fix slots queries 2025-05-23 16:08:20 +03:00
vchikalkin
d8f853180b app/orders: fill page with content 2025-05-21 18:40:53 +03:00
vchikalkin
52d68964f1 take into service duration when computing times 2025-05-21 16:27:56 +03:00
vchikalkin
b8880eedee move getAvailableTimeSlots to server 2025-05-20 19:25:25 +03:00
Vlad Chikalkin
9314cdd1cb
merge branch 'refactor-api' (#23)
* refactor customer api

* refactor slots api

* hooks/customers: use invalidateQueries

* refactor services api

* optimize hooks queryKey

* refactor orders api

* typo refactor hooks

* fix telegramId type (number)

* fix bot with new api

* rename customers masters & clients query

* fix useClientsQuery & useMastersQuery query

* new line after 'use client' & 'use server' directives
2025-05-20 14:27:51 +03:00