Onboarding Flow (#503)

* wip

* wip

* db: schedule schema

* fix adding time goes into new day

fix adding new time not keeping updating ranges

fix updating ranges not maintaining changed values

* remove photo upload

* remove unused code

* remove more unused code

* undo time lib

* didnt actually change this

* dont show onboardi
ng flow for users created before sept 1 2021

* use more consistent max-widths

* align all inputs in scheduler component

* allow overriding of default styles

* match figma designs

implement goto previous step

* add more types, match figma

Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
Femi OdugbesanandBailey Pumfleet authored and GitHub committed 2021-09-02 13:13:19 +01:00
1 parent f63c9311e5
commit 2d23a8b7db
24 files changed
+1358 -158

No files matched your search

@@ -0,0 +1,19 @@
-- AlterTable
ALTER TABLE "users" ADD COLUMN "completedOnboarding" BOOLEAN DEFAULT false;
-- CreateTable
CREATE TABLE "Schedule" (
"id" SERIAL NOT NULL,
"userId" INTEGER,
"eventTypeId" INTEGER,
"title" TEXT,
"freeBusyTimes" JSONB,
PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "Schedule" ADD FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "Schedule" ADD FOREIGN KEY ("eventTypeId") REFERENCES "EventType"("id") ON DELETE SET NULL ON UPDATE CASCADE;