From a84333901a61f6cb395ec5d55eb497a47465a655 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Tue, 12 Dec 2023 13:11:32 -0800 Subject: [PATCH] feat: implement questionnaire during onboarding (optional) (#429) fix: PFP url check --- frontend/src/index.css | 6 + .../Steps/CreateFirstWorkspace/index.jsx | 9 +- .../Steps/DataHandling/index.jsx | 2 +- .../Steps/LLMSelection/index.jsx | 2 +- .../Steps/UserQuestionnaire/index.jsx | 239 ++++++++++++++++++ .../OnboardingFlow/OnboardingModal/index.jsx | 17 +- frontend/src/utils/constants.js | 1 + server/utils/files/pfp.js | 2 +- 8 files changed, 269 insertions(+), 9 deletions(-) create mode 100644 frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/UserQuestionnaire/index.jsx diff --git a/frontend/src/index.css b/frontend/src/index.css index 937631be..f0f04bbc 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -379,3 +379,9 @@ dialog::backdrop { opacity: 0; } } + +@layer components { + .radio-container:has(input:checked) { + @apply border-blue-500 bg-blue-400/10 text-blue-800; + } +} diff --git a/frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/CreateFirstWorkspace/index.jsx b/frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/CreateFirstWorkspace/index.jsx index 3c9949f8..d2624ef6 100644 --- a/frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/CreateFirstWorkspace/index.jsx +++ b/frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/CreateFirstWorkspace/index.jsx @@ -3,7 +3,7 @@ import { useNavigate } from "react-router-dom"; import paths from "@/utils/paths"; import Workspace from "@/models/workspace"; -function CreateFirstWorkspace() { +function CreateFirstWorkspace({ prevStep }) { const navigate = useNavigate(); const handleCreate = async (e) => { @@ -47,6 +47,13 @@ function CreateFirstWorkspace() {
+ + +
+ + +
+
+ + ); + } + + return ( +
+
+
+
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ + + +
+
+ + + +
+
+ + + +
+
+
+
+ +
+
+
+ +
+