-
{"https://app.plane.so/"}
+
);
};
diff --git a/apps/app/constants/workspace.ts b/apps/app/constants/workspace.ts
index 0feb114cb..8fdc4ee97 100644
--- a/apps/app/constants/workspace.ts
+++ b/apps/app/constants/workspace.ts
@@ -1,3 +1,9 @@
+import Welcome from "public/onboarding/welcome.svg";
+import Issue from "public/onboarding/issue.svg";
+import Cycle from "public/onboarding/cycle.svg";
+import Module from "public/onboarding/module.svg";
+import CommandMenu from "public/onboarding/command-menu.svg";
+
export const ROLE = {
5: "Guest",
10: "Viewer",
@@ -11,3 +17,49 @@ export const COMPANY_SIZE = [
{ value: 25, label: "25" },
{ value: 50, label: "50" },
];
+
+export const USER_ROLE = [
+ { value: "Founder or leadership team", label: "Founder or leadership team" },
+ { value: "Product manager", label: "Product manager" },
+ { value: "Designer", label: "Designer" },
+ { value: "Software developer", label: "Software developer" },
+ { value: "Freelancer", label: "Freelancer" },
+ { value: "Other", label: "Other" },
+];
+
+export const ONBOARDING_CARDS = {
+ welcome: {
+ imgURL: Welcome,
+ step: "1/5",
+ title: "Welcome to Plane",
+ description:
+ "Plane helps you plan your issues, cycles, and product modules to ship faster.",
+ },
+ issue: {
+ imgURL: Issue,
+ step: "2/5",
+ title: "Plan with Issues",
+ description:
+ "The issue is the building block of the Plane. Most concepts in Plane are either associated with issues and their properties.",
+ },
+ cycle: {
+ imgURL: Cycle,
+ step: "3/5",
+ title: "Move with Cycles",
+ description:
+ "Cycles help you and your team to progress faster, similar to the sprints commonly used in agile development.",
+ },
+ module: {
+ imgURL: Module,
+ step: "4/5",
+ title: "Break into Modules ",
+ description:
+ "Modules break your big think into Projects or Features , to help you organize better.",
+ },
+ commandMenu: {
+ imgURL: CommandMenu,
+ step: "5 /5",
+ title: "Command Menu",
+ description: "With Command Menu, you can create, update and navigate across the platform.",
+ },
+};
diff --git a/apps/app/pages/onboarding.tsx b/apps/app/pages/onboarding.tsx
index 9bae9bf9a..b2a7e987f 100644
--- a/apps/app/pages/onboarding.tsx
+++ b/apps/app/pages/onboarding.tsx
@@ -12,14 +12,11 @@ import useUser from "hooks/use-user";
// layouts
import DefaultLayout from "layouts/default-layout";
// components
-import Welcome from "components/onboarding/welcome";
-import PlanWithIssues from "components/onboarding/plan-with-issues";
-import MoveWithCycles from "components/onboarding/move-with-cycles";
-import BreakIntoModules from "components/onboarding/break-into-modules";
-import UserDetails from "components/onboarding/user-details";
-import Workspace from "components/onboarding/workspace";
-import InviteMembers from "components/onboarding/invite-members";
-import CommandMenu from "components/onboarding/command-menu";
+import { InviteMembers, OnboardingCard, UserDetails, Workspace } from "components/onboarding";
+// ui
+import { PrimaryButton } from "components/ui";
+// constant
+import { ONBOARDING_CARDS } from "constants/workspace";
// images
import Logo from "public/onboarding/logo.svg";
// types
@@ -38,9 +35,9 @@ const Onboarding: NextPage = () => {
{step <= 3 ? (
-
-
-
+
+
+
{step === 1 ? (
@@ -51,39 +48,40 @@ const Onboarding: NextPage = () => {
)}
) : (
-
-
+
+
{step === 4 ? (
-
+
) : step === 5 ? (
-
+
) : step === 6 ? (
-
+
) : step === 7 ? (
-
+
) : (
-
+
)}
-
-
-
+
+
{
+ if (step === 8) {
+ userService
+ .updateUserOnBoard()
+ .then(() => {
+ router.push("/");
+ })
+ .catch((err) => {
+ console.log(err);
+ });
+ } else setStep((prevData) => prevData + 1);
+ }}
+ >
+ {step === 4 || step === 8 ? "Get Started" : "Next"}
+
+
)}
diff --git a/apps/app/public/onboarding/command-menu.png b/apps/app/public/onboarding/command-menu.png
deleted file mode 100644
index a9b369023..000000000
Binary files a/apps/app/public/onboarding/command-menu.png and /dev/null differ
diff --git a/apps/app/public/onboarding/command-menu.svg b/apps/app/public/onboarding/command-menu.svg
new file mode 100644
index 000000000..71975d55e
--- /dev/null
+++ b/apps/app/public/onboarding/command-menu.svg
@@ -0,0 +1,7 @@
+
diff --git a/apps/app/public/onboarding/cycle.png b/apps/app/public/onboarding/cycle.png
deleted file mode 100644
index 8a2f2643d..000000000
Binary files a/apps/app/public/onboarding/cycle.png and /dev/null differ
diff --git a/apps/app/public/onboarding/cycle.svg b/apps/app/public/onboarding/cycle.svg
new file mode 100644
index 000000000..6fe945867
--- /dev/null
+++ b/apps/app/public/onboarding/cycle.svg
@@ -0,0 +1,43 @@
+
diff --git a/apps/app/public/onboarding/issue.png b/apps/app/public/onboarding/issue.png
deleted file mode 100644
index d0e251edd..000000000
Binary files a/apps/app/public/onboarding/issue.png and /dev/null differ
diff --git a/apps/app/public/onboarding/issue.svg b/apps/app/public/onboarding/issue.svg
new file mode 100644
index 000000000..d1c2bb364
--- /dev/null
+++ b/apps/app/public/onboarding/issue.svg
@@ -0,0 +1,31 @@
+
diff --git a/apps/app/public/onboarding/module.png b/apps/app/public/onboarding/module.png
deleted file mode 100644
index 201863673..000000000
Binary files a/apps/app/public/onboarding/module.png and /dev/null differ
diff --git a/apps/app/public/onboarding/module.svg b/apps/app/public/onboarding/module.svg
new file mode 100644
index 000000000..87fab93c6
--- /dev/null
+++ b/apps/app/public/onboarding/module.svg
@@ -0,0 +1,48 @@
+
diff --git a/apps/app/public/onboarding/welcome.svg b/apps/app/public/onboarding/welcome.svg
new file mode 100644
index 000000000..d53ed2d77
--- /dev/null
+++ b/apps/app/public/onboarding/welcome.svg
@@ -0,0 +1,5 @@
+