diff options
| author | Dhravya Shah <[email protected]> | 2024-08-06 11:05:02 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2024-08-06 11:05:02 -0700 |
| commit | be3e13b4bfb847af410f2159be462cc912141fc3 (patch) | |
| tree | a3783a7e7798de60f599ea0f0a5db24c5c30395f /apps/web/app/(auth) | |
| parent | changes for prod (diff) | |
| parent | Merge pull request #219 from Deepakchowdavarapu/readme-issue (diff) | |
| download | supermemory-be3e13b4bfb847af410f2159be462cc912141fc3.tar.xz supermemory-be3e13b4bfb847af410f2159be462cc912141fc3.zip | |
merged latest changes with queue branch and ready for prod
Diffstat (limited to 'apps/web/app/(auth)')
| -rw-r--r-- | apps/web/app/(auth)/onboarding/page.tsx | 18 | ||||
| -rw-r--r-- | apps/web/app/(auth)/signin/page.tsx | 3 |
2 files changed, 20 insertions, 1 deletions
diff --git a/apps/web/app/(auth)/onboarding/page.tsx b/apps/web/app/(auth)/onboarding/page.tsx index c311ea13..9a6ac481 100644 --- a/apps/web/app/(auth)/onboarding/page.tsx +++ b/apps/web/app/(auth)/onboarding/page.tsx @@ -392,6 +392,24 @@ function Navbar() { const router = useRouter(); const handleSkip = async () => { await completeOnboarding(); + toast.info("Creating memory...", { + icon: <PlusCircleIcon className="w-4 h-4 text-white animate-spin" />, + duration: 7500, + }); + + const cont = await createMemory({ + content: "https://supermemory.ai", + spaces: undefined, + }); + + if (cont.success) { + toast.success("Memory created", { + richColors: true, + }); + } else { + toast.error(`Memory creation failed: ${cont.error}`); + } + router.push("/home?q=what%20is%20supermemory"); }; diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx index 3b563b90..35e6bab6 100644 --- a/apps/web/app/(auth)/signin/page.tsx +++ b/apps/web/app/(auth)/signin/page.tsx @@ -15,10 +15,11 @@ async function Signin({ }: { searchParams: Record<string, string>; }) { + const telegramUser = searchParams.telegramUser; const user = await auth(); if (user) { - redirect("/home"); + redirect(`/home` + (telegramUser ? `?telegramUser=${telegramUser}` : "")); } return ( |