From a2d9782d8f834e7247eec6208c5988bcfa326554 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Tue, 21 Apr 2026 21:43:17 -0400 Subject: [PATCH] refactor(ui): switch surfaces to shared shadow tokens --- src/app/auth/error/page.tsx | 2 +- src/app/auth/signin/sign-in-form.tsx | 2 +- src/app/auth/signout/page.tsx | 4 ++-- src/app/page.tsx | 4 ++-- src/components/ai-toolbar.tsx | 10 ++++++---- src/components/event-card.tsx | 2 +- src/components/event-dialog.tsx | 16 +++++++++++----- src/components/location-autocomplete.tsx | 2 +- src/components/settings-panel.tsx | 11 +++++------ src/components/ui/badge.tsx | 7 +++---- src/components/ui/button.tsx | 5 ++--- src/components/ui/card.tsx | 2 +- src/components/ui/dialog.tsx | 7 +++++-- src/components/ui/dropdown-menu.tsx | 4 ++-- src/components/ui/input.tsx | 2 +- src/components/ui/textarea.tsx | 2 +- src/lib/ui-shell-contract.ts | 14 ++++++-------- tests/ai-toolbar.test.ts | 2 +- tests/event-dialog.test.tsx | 2 +- tests/ui-shell-contract.test.ts | 15 ++++++++++----- 20 files changed, 63 insertions(+), 52 deletions(-) diff --git a/src/app/auth/error/page.tsx b/src/app/auth/error/page.tsx index a9a04d7..5383860 100644 --- a/src/app/auth/error/page.tsx +++ b/src/app/auth/error/page.tsx @@ -25,7 +25,7 @@ function ErrorMessage() { export default function AuthErrorPage() { return (
-
+

Authentication Error

diff --git a/src/app/auth/signin/sign-in-form.tsx b/src/app/auth/signin/sign-in-form.tsx index 36bb041..38fef50 100644 --- a/src/app/auth/signin/sign-in-form.tsx +++ b/src/app/auth/signin/sign-in-form.tsx @@ -144,7 +144,7 @@ export function SignInForm({ providers }: SignInFormProps) { initial={{ opacity: 0, y: 16 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3 }} - className="w-full max-w-sm rounded-[10px] bg-card p-8 shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_12px_40px_rgba(0,0,0,0.12)]" + className="w-full max-w-sm rounded-[10px] bg-card p-8 shadow-xl" > {/* Header */}
diff --git a/src/app/auth/signout/page.tsx b/src/app/auth/signout/page.tsx index bd46921..fd51c69 100644 --- a/src/app/auth/signout/page.tsx +++ b/src/app/auth/signout/page.tsx @@ -28,7 +28,7 @@ export default function SignOutPage() { return (
-
+

Sign Out

@@ -37,7 +37,7 @@ export default function SignOutPage() {

-
+
Signed in as
diff --git a/src/app/page.tsx b/src/app/page.tsx index afedd7c..1d48b9e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -516,8 +516,8 @@ export default function HomePage() { Capture from text or files.

- Start with a prompt, screenshots, or both. Review happens in the - timeline rather than a separate flow. + Start with a prompt, screenshots, or both. Review happens + in the timeline rather than a separate flow.

diff --git a/src/components/ai-toolbar.tsx b/src/components/ai-toolbar.tsx index 68a1c95..b9a8076 100644 --- a/src/components/ai-toolbar.tsx +++ b/src/components/ai-toolbar.tsx @@ -283,7 +283,7 @@ export const AIToolbar = ({ ) : isAuthenticated ? (
-
+