155 Commits

Author SHA1 Message Date
vchikalkin
5641a13890 exact types for Slot components & page 2025-06-24 10:54:52 +03:00
vchikalkin
25f6e26901 move OrderCard types close to component 2025-06-24 10:52:25 +03:00
vchikalkin
efebc9d8ef hooks/services: rename input -> variables 2025-06-24 10:30:48 +03:00
vchikalkin
f69aeb2353 hide ClientsOrdersList for non masters 2025-06-23 22:08:19 +03:00
vchikalkin
ff68ffbb6a fix floating panel overflows content 2025-06-23 21:25:48 +03:00
vchikalkin
c8ea506dc5 fix blur & colors 2025-06-23 21:12:07 +03:00
vchikalkin
4ed010056a slot page: replace buttons with floating panel 2025-06-23 20:55:07 +03:00
vchikalkin
2ba56c5949 order page 2025-06-23 20:15:19 +03:00
vchikalkin
6a2678653c fix show actual slot status after slot update 2025-06-23 16:19:46 +03:00
vchikalkin
085263654f fix create order query 2025-06-11 14:55:36 +03:00
vchikalkin
a7f00a3811 graphql: remove rename operations files 2025-06-10 17:15:31 +03:00
vchikalkin
25c90984dc fix queries, using formatDate & formatTime on client 2025-06-10 17:11:55 +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
1b1963e5d9 prefetchQuery customer profile pages 2025-06-10 13:25:45 +03:00
vchikalkin
f6285d6ebf contacts: mark inactive contacts 2025-06-10 13:02:38 +03:00
vchikalkin
07d878214c SlotPage: add page header title 2025-06-08 17:42:24 +03:00
vchikalkin
16d448bab6 stores/schedule: export useScheduleStore 2025-06-08 17:41:31 +03:00
vchikalkin
ca8d88bfc3 SlotCard: use SlotComponentProps type 2025-06-08 17:30:22 +03:00
vchikalkin
d085a3d24d horizontal-calendar: switch months by arrow buttons 2025-06-08 17:21:31 +03:00
vchikalkin
0cb9e6b6ee graphql/api: remove throw new Error 2025-06-08 17:17:08 +03:00
vchikalkin
e4ec942a9c fix orders list in slot page 2025-06-08 17:13:53 +03:00
vchikalkin
f63ca6d93e add numberOfDaysBefore param 2025-06-08 15:14:55 +03:00
vchikalkin
a9efcfccf2 optimize orders list fetching 2025-06-08 14:59:13 +03:00
vchikalkin
1e84b4ec0e remove context/date.tsx 2025-06-08 14:36:48 +03:00
vchikalkin
f4609eb8d1 add horizontal calendar 2025-06-08 14:32:01 +03:00
vchikalkin
d0efd133f2 add launch.json 2025-06-08 14:17:39 +03:00
Vlad Chikalkin
3589ab974a
Refactor/components folder structure (#24)
* refactor components/navigation

* refactor components/orders

* refactor components/profile

* refactor components/schedule

* remove components/common/spinner
2025-05-23 17:35:13 +03:00
vchikalkin
2510e0bcae move order-card & time-range to @/components/shared 2025-05-23 16:48:20 +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
c710537727 replace ScheduleTimeContext with ScheduleStore 2025-05-23 14:32:39 +03:00
vchikalkin
2bb85af46b move order store -> orders\order-store 2025-05-23 13:55:53 +03:00
vchikalkin
1b99f7f18d components/orders: remove nested components dirs 2025-05-23 13:35:45 +03:00
vchikalkin
4160ed4540 stores/order: split into slices 2025-05-23 13:14:26 +03:00
vchikalkin
d8f853180b app/orders: fill page with content 2025-05-21 18:40:53 +03:00
vchikalkin
ebe8ee5437 fix build 2025-05-21 17:47:53 +03:00
vchikalkin
0698242257 take into existing orders when computing times 2025-05-21 17:26:10 +03:00
vchikalkin
f0b63a5e7e fix GetSlotsOrders order 2025-05-21 16:30:44 +03:00
vchikalkin
52d68964f1 take into service duration when computing times 2025-05-21 16:27:56 +03:00
vchikalkin
0b867a9136 getAvailableTimeSlots: add filter by orders 2025-05-20 19:53:51 +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
vchikalkin
fda1a0a531 packages/graphql: add eslint 2025-05-10 15:46:33 +03:00
vchikalkin
f2f7138c67 add result pages (success, error) 2025-05-09 18:26:18 +03:00
vchikalkin
0ed90d5451 split next-button into two buttons 2025-05-09 17:56:53 +03:00
vchikalkin
1528cc25b8 create order works! 2025-05-08 19:30:00 +03:00
vchikalkin
24fb2103f7 apps/web: rename actions/service -> actions/services 2025-05-08 16:47:02 +03:00
vchikalkin
3738c4e2a9 select time feature & get final order values 2025-05-07 17:33:35 +03:00