From 406f0db52db9f6a16d403c6fe0fe92f6cfb8a28d Mon Sep 17 00:00:00 2001
From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com>
Date: Wed, 2 Sep 2026 10:32:11 -0700
Subject: [PATCH] fix: hide SHA when unavailable (show CI fallback), Home
scrolls to top
---
components/CIStatusIndicator.tsx | 20 ++++++++++++--------
components/Header.tsx | 4 ++--
next.config.js | 5 +----
3 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/components/CIStatusIndicator.tsx b/components/CIStatusIndicator.tsx
index 07ced98..0f705ce 100644
--- a/components/CIStatusIndicator.tsx
+++ b/components/CIStatusIndicator.tsx
@@ -77,14 +77,18 @@ export function CIStatusIndicator() {
className={`flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/90 dark:bg-gray-900/90 backdrop-blur-sm border border-gray-200 dark:border-gray-700 shadow-sm ${getStatusColor()}`}
>
-
- {process.env.NEXT_PUBLIC_COMMIT_SHA || 'dev'}
-
+ {process.env.NEXT_PUBLIC_COMMIT_SHA ? (
+
+ {process.env.NEXT_PUBLIC_COMMIT_SHA}
+
+ ) : (
+ CI
+ )}
{getStatusIcon()}
{getStatusText()}
diff --git a/components/Header.tsx b/components/Header.tsx
index 2e779c1..cd1c243 100644
--- a/components/Header.tsx
+++ b/components/Header.tsx
@@ -60,7 +60,7 @@ export default function Header() {