Feat/cal 95/date range on event types (#353)

* add edit links to events on dashboard

* fit elements on screen for mobile

* initialize components for consistent text styles

* add more fine grained width/height settings

* add higher level setting for when an event is available

- db: add supporting values to period allow setting an amount of days,
 a range, or unlimited number days an event is available

* fix issue where periodDates are null

* return minimal required data, handle date parsing

* [ui] limit booking days based on user period settings

* api: validate user period settings

* [db] migration for event type period settings
This commit is contained in:
Femi Odugbesan authored and GitHub committed 2021-07-15 09:10:26 -05:00
1 parent ecd0360d9a
commit 45689059c7
42 files changed
+1455 -380

No files matched your search

@@ -0,0 +1,6 @@
-- AlterTable
ALTER TABLE "EventType" ADD COLUMN "periodCountCalendarDays" BOOLEAN,
ADD COLUMN "periodDays" INTEGER,
ADD COLUMN "periodEndDate" TIMESTAMP(3),
ADD COLUMN "periodStartDate" TIMESTAMP(3),
ADD COLUMN "periodType" TEXT DEFAULT E'unlimited';
+5
View File
@@ -25,6 +25,11 @@ model EventType {
eventName String?
customInputs EventTypeCustomInput[]
timeZone String?
periodType String? @default("unlimited") // unlimited | rolling | range
periodStartDate DateTime?
periodEndDate DateTime?
periodDays Int?
periodCountCalendarDays Boolean?
}
model Credential {