-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use client"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
import Link from "next/link"; | ||
import { completedAppOnboardingAction } from "@/utils/actions/user"; | ||
import { env } from "@/env"; | ||
import { appHomePath } from "@/utils/config"; | ||
|
||
export const OnboardingFinish = () => { | ||
return ( | ||
<Button asChild> | ||
<Link | ||
onClick={() => completedAppOnboardingAction()} | ||
href={ | ||
env.NEXT_PUBLIC_WELCOME_UPGRADE_ENABLED | ||
? "/welcome-upgrade" | ||
: appHomePath | ||
} | ||
> | ||
Continue | ||
</Link> | ||
</Button> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
apps/web/prisma/migrations/20241020163727_app_onboarding/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- AlterTable | ||
ALTER TABLE "User" | ||
ADD COLUMN "completedAppOnboardingAt" TIMESTAMP(3), | ||
ADD COLUMN "completedOnboardingAt" TIMESTAMP(3); | ||
|
||
-- UpdateData | ||
UPDATE "User" | ||
SET "completedOnboardingAt" = CASE | ||
WHEN "completedOnboarding" = true THEN "createdAt" | ||
ELSE NULL | ||
END; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters