Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(cloud): improve ui of cloud region selection, remove login error notice (#4978)

Marc Klingence31a806c74b
diff --git a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
index b0c02448e3..c6011ff49c 100644
--- a/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
+++ b/web/src/features/auth/components/AuthCloudRegionSwitch.tsx
@@ -59,8 +59,8 @@ export function CloudRegionSwitch({
);
return (
- <div>
- <div className="mb-6 flex w-full flex-col gap-2">
+ <div className="-mb-10 mt-8 rounded-lg bg-card px-6 py-6 text-sm sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-10">
+ <div className="flex w-full flex-col gap-2">
<div>
<span className="text-sm font-medium leading-none">
Data Region
@@ -126,8 +126,12 @@ const DataRegionInfo = () => (
<div className="flex flex-col gap-2">
<p>Langfuse Cloud is available in two data regions:</p>
<ul className="list-disc pl-5">
- <li>US: Northern California (AWS us-west-1) & Virginia (AWS us-east-1)</li>
- <li>EU: Germany/Frankfurt (AWS eu-central-1) & Ireland (AWS eu-west-1)</li>
+ <li>
+ US: Northern California (AWS us-west-1) & Virginia (AWS us-east-1)
+ </li>
+ <li>
+ EU: Germany/Frankfurt (AWS eu-central-1) & Ireland (AWS eu-west-1)
+ </li>
</ul>
<p>
Regions are strictly separated, and no data is shared across regions.
diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsx
index e9475fae80..b8f3444738 100644
--- a/web/src/pages/auth/sign-in.tsx
+++ b/web/src/pages/auth/sign-in.tsx
@@ -435,17 +435,10 @@ export default function SignIn({
</h2>
</div>
- {env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== undefined && (
- <div className="-mb-10 mt-4 rounded-lg bg-card p-3 text-center text-sm sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-6">
- If you are experiencing issues signing in, please force refresh this
- page (CMD + SHIFT + R) or clear your browser cache. We have made a
- fix that is currently rolling out to all users.
- </div>
- )}
+ <CloudRegionSwitch />
<div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-10">
<div className="space-y-6">
- <CloudRegionSwitch />
{authProviders.credentials ? (
<Form {...credentialsForm}>
<form
diff --git a/web/src/pages/auth/sign-up.tsx b/web/src/pages/auth/sign-up.tsx
index fc595f3333..e7ad773e50 100644
--- a/web/src/pages/auth/sign-up.tsx
+++ b/web/src/pages/auth/sign-up.tsx
@@ -116,8 +116,9 @@ export default function SignIn({
</div>
) : null}
+ <CloudRegionSwitch isSignUpPage />
+
<div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-10">
- <CloudRegionSwitch isSignUpPage />
<Form {...form}>
<form
className="space-y-6"
@@ -201,16 +202,16 @@ export default function SignIn({
</>
)
}
+ <p className="mt-10 text-center text-sm text-muted-foreground">
+ Already have an account?{" "}
+ <Link
+ href="/auth/sign-in"
+ className="font-semibold leading-6 text-primary-accent hover:text-hover-primary-accent"
+ >
+ Sign in
+ </Link>
+ </p>
</div>
- <p className="mt-10 text-center text-sm text-muted-foreground">
- Already have an account?{" "}
- <Link
- href="/auth/sign-in"
- className="font-semibold leading-6 text-primary-accent hover:text-hover-primary-accent"
- >
- Sign in
- </Link>
- </p>
<CloudPrivacyNotice action="creating an account" />
</div>
</>