From 72c75d0db4e9a32bcb27a2298c7b6f8006c20ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Th=C6=B0=C6=A1ng?= Date: Sat, 23 May 2026 04:37:08 +0700 Subject: [PATCH 1/4] Fix public pricing route crash in auth fallback --- artifacts/sandbox-ai/src/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artifacts/sandbox-ai/src/App.tsx b/artifacts/sandbox-ai/src/App.tsx index a75ffb9..6c1e2b8 100644 --- a/artifacts/sandbox-ai/src/App.tsx +++ b/artifacts/sandbox-ai/src/App.tsx @@ -277,7 +277,9 @@ function PublicOnlyRouter() { - + + + From 5a03294eb6c2cc2df7d39f7f4e0bc1a3c114c211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Th=C6=B0=C6=A1ng?= Date: Sat, 23 May 2026 04:50:46 +0700 Subject: [PATCH 2/4] Fix public auth portal redirects for sign-in/up --- artifacts/sandbox-ai/src/App.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/artifacts/sandbox-ai/src/App.tsx b/artifacts/sandbox-ai/src/App.tsx index a75ffb9..a68e114 100644 --- a/artifacts/sandbox-ai/src/App.tsx +++ b/artifacts/sandbox-ai/src/App.tsx @@ -277,7 +277,9 @@ function PublicOnlyRouter() { - + + + @@ -287,10 +289,10 @@ function PublicOnlyRouter() { - + - + From ad84e1dde4e4812839801908e9a63224f1202def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Th=C6=B0=C6=A1ng?= Date: Sat, 23 May 2026 05:00:40 +0700 Subject: [PATCH 3/4] Improve auth portal behavior in public auth mode --- artifacts/sandbox-ai/src/App.tsx | 8 +++++--- artifacts/sandbox-ai/src/pages/auth-portal.tsx | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/artifacts/sandbox-ai/src/App.tsx b/artifacts/sandbox-ai/src/App.tsx index a75ffb9..a68e114 100644 --- a/artifacts/sandbox-ai/src/App.tsx +++ b/artifacts/sandbox-ai/src/App.tsx @@ -277,7 +277,9 @@ function PublicOnlyRouter() { - + + + @@ -287,10 +289,10 @@ function PublicOnlyRouter() { - + - + diff --git a/artifacts/sandbox-ai/src/pages/auth-portal.tsx b/artifacts/sandbox-ai/src/pages/auth-portal.tsx index 29f3f09..edba467 100644 --- a/artifacts/sandbox-ai/src/pages/auth-portal.tsx +++ b/artifacts/sandbox-ai/src/pages/auth-portal.tsx @@ -1,16 +1,26 @@ import { Link } from "wouter"; +import { isAuthEnabled } from "@/config/auth-mode"; export default function AuthPortal() { + const signInHref = isAuthEnabled ? "/sign-in" : "/health-config"; + const signUpHref = isAuthEnabled ? "/sign-up" : "/health-config"; + return (

Đăng nhập / Đăng ký

- Quy trình OAuth (Google/GitHub) được xử lý qua Clerk. Bấm nút bên dưới để vào trang xác thực chính thức. + {isAuthEnabled + ? "Quy trình OAuth (Google/GitHub) được xử lý qua Clerk. Bấm nút bên dưới để vào trang xác thực chính thức." + : "Auth đang chạy ở chế độ public nên đăng nhập/đăng ký tạm thời không khả dụng. Mở Health Config để xem biến môi trường cần thiết."}

- Tiếp tục với Google / GitHub - Tạo tài khoản mới + + {isAuthEnabled ? "Tiếp tục với Google / GitHub" : "Mở Health Config"} + + + {isAuthEnabled ? "Tạo tài khoản mới" : "Xem cấu hình auth"} +
From 09b90a7a1683e1cfc58f2877ed5033e138e8475e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Th=C6=B0=C6=A1ng?= <252359928+Huynhthuongg@users.noreply.github.com> Date: Wed, 3 Jun 2026 03:57:34 +0700 Subject: [PATCH 4/4] Update artifacts/sandbox-ai/src/pages/termux-lab.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- artifacts/sandbox-ai/src/pages/termux-lab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/sandbox-ai/src/pages/termux-lab.tsx b/artifacts/sandbox-ai/src/pages/termux-lab.tsx index 425287e..54d1c37 100644 --- a/artifacts/sandbox-ai/src/pages/termux-lab.tsx +++ b/artifacts/sandbox-ai/src/pages/termux-lab.tsx @@ -10,7 +10,7 @@ export default function TermuxLab() { {logs.map((l, i) =>
{l}
)}
- setCmd(e.target.value)} className="flex-1 bg-white/10 text-white px-3 py-2 rounded" /> + setCmd(e.target.value)} className="flex-1 bg-white/10 text-white px-3 py-2 rounded" />