From 00a6e326e5631659fbfbed08bc8b351d1e79059a Mon Sep 17 00:00:00 2001 From: Lluis Agusti Date: Tue, 1 Jul 2025 20:28:16 +0400 Subject: [PATCH] chore: wip --- .../app/(platform)/reset-password/page.tsx | 2 +- .../src/app/(platform)/signup/page.tsx | 27 ++++-------- .../frontend/src/components/auth/AuthCard.tsx | 2 +- .../components/auth/EmailNotAllowedModal.tsx | 42 +++++++++---------- .../components/auth/GoogleLoadingModal.tsx | 40 ++++++++---------- 5 files changed, 48 insertions(+), 65 deletions(-) diff --git a/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx b/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx index 720d70102b..a2e6e193e5 100644 --- a/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx @@ -157,7 +157,7 @@ export default function ResetPasswordPage() { } return ( -
+
{user ? (
0; const termsError = form.formState.errors.agreeToTerms?.message; return ( @@ -111,24 +110,14 @@ export default function SignupPage() { control={form.control} name="confirmPassword" render={({ field }) => ( -
- - {!confirmPasswordError && !withConfirmPassword ? ( - - Password needs to be at least 12 characters long - - ) : null} -
+ )} /> diff --git a/autogpt_platform/frontend/src/components/auth/AuthCard.tsx b/autogpt_platform/frontend/src/components/auth/AuthCard.tsx index 40552b2bc9..3b55ee9a23 100644 --- a/autogpt_platform/frontend/src/components/auth/AuthCard.tsx +++ b/autogpt_platform/frontend/src/components/auth/AuthCard.tsx @@ -42,7 +42,7 @@ interface Props { export function AuthCard({ children, title }: Props) { return ( - + {title} diff --git a/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx b/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx index 7fabe7eeef..23d4ce56f5 100644 --- a/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx +++ b/autogpt_platform/frontend/src/components/auth/EmailNotAllowedModal.tsx @@ -1,11 +1,6 @@ -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, -} from "@/components/ui/dialog"; import { Button } from "../atoms/Button/Button"; +import { Text } from "../atoms/Text/Text"; +import { Dialog } from "../molecules/Dialog/Dialog"; interface Props { isOpen: boolean; @@ -14,23 +9,26 @@ interface Props { export function EmailNotAllowedModal({ isOpen, onClose }: Props) { return ( - - - - Access Restricted - + + +
+ Access Restricted + We're currently in a limited access phase. Your email address - isn't on our current allowlist for early access. -
-
- If you believe this is an error or would like to request access, - please contact our support team. - - -
- + isn't on our current allowlist for early access. If you believe + this is an error or would like to request access, please contact our + support team. + +
+ +
- +
); } diff --git a/autogpt_platform/frontend/src/components/auth/GoogleLoadingModal.tsx b/autogpt_platform/frontend/src/components/auth/GoogleLoadingModal.tsx index 4376a4eed5..af4678ed8d 100644 --- a/autogpt_platform/frontend/src/components/auth/GoogleLoadingModal.tsx +++ b/autogpt_platform/frontend/src/components/auth/GoogleLoadingModal.tsx @@ -1,11 +1,7 @@ -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, -} from "@/components/ui/dialog"; -import { GoogleLogoIcon } from "@phosphor-icons/react/dist/ssr"; +import { CircleNotchIcon } from "@phosphor-icons/react/dist/ssr"; +import Image from "next/image"; +import { Text } from "../atoms/Text/Text"; +import { Dialog } from "../molecules/Dialog/Dialog"; interface GoogleLoadingModalProps { isOpen: boolean; @@ -13,25 +9,25 @@ interface GoogleLoadingModalProps { export function GoogleLoadingModal({ isOpen }: GoogleLoadingModalProps) { return ( - - - + + +
- - Signing in with Google + Google + Signing in with Google
- + + You're being redirected to Google to complete the sign-in process. -
-
- Please don't close this tab or navigate away from this page. -
- -
-
+
Please don't close this tab or navigate away from this + page. +
- +
); }