Commit Graph

224 Commits

Author SHA1 Message Date
Thomas Ruoff
7fcdf680d3 show when logged in 2020-11-08 23:39:30 +01:00
Thomas Ruoff
bd32cfb90b enrich description in calendar 2020-11-08 23:10:18 +01:00
Thomas Ruoff
0f518138cc change link to admin in ical 2020-11-08 23:04:35 +01:00
Thomas Ruoff
650a7374ff add phone 2020-11-08 23:04:14 +01:00
Thomas Ruoff
242a636379 remove babel-jest
babel-jest ran but caused build issues. replaced with ts-jest
2020-11-07 00:52:36 +01:00
Thomas Ruoff
c232a20835 use dateRange formatter in FE 2020-11-07 00:44:31 +01:00
Thomas Ruoff
eeb8beba0a show booking date in mails 2020-11-07 00:38:29 +01:00
Thomas Ruoff
c223b05011 enable jest 2020-11-07 00:38:03 +01:00
Thomas Ruoff
e80c095770 show booking date range on admin booking page 2020-11-06 23:59:21 +01:00
Thomas Ruoff
088ca3ea5b use strings for startDate endDate
all the way to the FE
2020-11-06 23:52:00 +01:00
Thomas Ruoff
e4e56ce96a update all the things \o/ 2020-11-06 23:51:37 +01:00
Thomas Ruoff
195da65cd9 remove *Document intefaces from FE code 2020-11-06 23:37:04 +01:00
Thomas Ruoff
71c16a289d clean up type mess in SSR functions 2020-11-06 22:51:56 +01:00
Thomas Ruoff
ecfa0c2c06 slight reject mail adjustments 2020-11-04 00:42:14 +01:00
Thomas Ruoff
7ee9803adc make isAdminSession usable by api routes 2020-11-04 00:33:35 +01:00
Thomas Ruoff
1dfd1f1f8b add a proper login page 2020-11-04 00:14:29 +01:00
Thomas Ruoff
b283ffe476 send mail when booking is confirmed or rejected 2020-11-03 21:50:12 +01:00
Thomas Ruoff
acf0366d9b add calendar to admin booking page 2020-11-03 21:06:05 +01:00
Thomas Ruoff
0a75eb0404 extract non-interactive calendar 2020-11-03 21:05:47 +01:00
Thomas Ruoff
8715e09563 Revert "move daysbooked fetch to context"
This reverts commit 87b38e6d30.
2020-11-02 23:30:19 +01:00
Thomas Ruoff
cb9932240d add confirm and reject buttons to adming/booking 2020-11-02 23:25:00 +01:00
Thomas Ruoff
8c252cca2b make getBookingStatus work without a booking 2020-11-02 23:24:30 +01:00
Thomas Ruoff
19c8bc7be2 move admin api to /admin 2020-11-02 22:44:27 +01:00
Thomas Ruoff
d440d0e07e add bill to booking if there 2020-11-02 22:43:59 +01:00
Thomas Ruoff
ecc3715f27 fix allow header for routes 2020-11-02 22:05:32 +01:00
Thomas Ruoff
c52e3bf921 add useCreateIndex to mongo connection 2020-11-02 22:04:26 +01:00
Thomas Ruoff
92324fc45f disable revalidate on swr 2020-11-01 22:22:59 +01:00
Thomas Ruoff
28035f9516 fix build by making name optional 2020-11-01 22:22:41 +01:00
Thomas Ruoff
aa2c9a9cab set for correctly on labels 2020-10-31 00:15:48 +01:00
Thomas Ruoff
87b38e6d30 move daysbooked fetch to context 2020-10-30 23:57:40 +01:00
Thomas Ruoff
3d29e76b9a populate days on save 2020-10-30 23:57:40 +01:00
Thomas Ruoff
6d290cd6e9 update dev deps 2020-10-29 22:17:29 +01:00
Thomas Ruoff
9f5a7fce37 update deps 2020-10-29 22:17:29 +01:00
Thomas Ruoff
fdff4e5f7c use new Image component 2020-10-29 22:17:29 +01:00
Thomas Ruoff
7d40ffd1da workaround for build error 2020-10-29 22:17:29 +01:00
Thomas Ruoff
d41bad0367 upgrade nextjs 10 and react 17 2020-10-29 22:17:29 +01:00
Thomas Ruoff
e6c6fc72a7 make stored an own page and redirect there 2020-10-28 23:36:31 +01:00
Thomas Ruoff
02a3702837 move org from reason to contact 2020-10-28 23:36:10 +01:00
Thomas Ruoff
84026c2576 extract getServerSideBooking 2020-10-28 23:35:31 +01:00
Thomas Ruoff
e1ebc86ca1 add info-message styles 2020-10-28 23:34:22 +01:00
Thomas Ruoff
9b3ea665f9 fix type warning in session 2020-10-28 23:33:29 +01:00
Thomas Ruoff
ae8ed9912a header links to home 2020-10-26 23:43:47 +01:00
Thomas Ruoff
e2aab12cdf add email to customer as well 2020-10-26 23:43:39 +01:00
Thomas Ruoff
ef4d9e6ff1 pull emails from env vars 2020-10-26 22:59:02 +01:00
Thomas Ruoff
c55f8f8b3a Admin page for bill wit iron-session (#13) 2020-10-22 00:40:09 +02:00
Thomas Ruoff
42b2dc675b add missing import 2020-10-11 22:03:37 +02:00
Thomas Ruoff
9d69225d46 fix coloring of selected and hovered 2020-10-10 22:11:00 +02:00
Thomas Ruoff
36226a7fa9 allow booking today 2020-10-10 21:56:52 +02:00
Thomas Ruoff
ef9a699da6 style date select 2020-10-10 21:49:40 +02:00
Thomas Ruoff
a5b47a7311 add booking status to bill 2020-10-10 01:01:46 +02:00