From a1e9ec49efdb4cdb2f78fc2d662c6b336daad351 Mon Sep 17 00:00:00 2001 From: k Date: Wed, 27 May 2026 16:28:05 +0800 Subject: [PATCH] fix: 3 display bugs found in full-page audit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. MacroVibesPageClient — funding stats rendered "undefined%" when latest_rate_pct / last_24h_avg_pct were null. `?.toFixed()` returns undefined inside a template literal → shows as the string "undefined%". Fixed: explicit null check → '—' fallback. 2. SettingsClient — broken internal anchor: href="#btc-settings-panel" but the section id is "btc-settings". "Open panel ↓" link did nothing. Fixed: corrected href to "#btc-settings". 3. KolPageClient — undefined CSS variables throughout the file: --bg-card (transparent) and --border (no border) were never defined in the design system (globals.css uses --surface and --line). KOL cards rendered with transparent bg and invisible borders. Fixed: --bg-card → --surface, --border → --line, --accent → --amber. Co-Authored-By: Claude Sonnet 4.6 --- app/[locale]/kol/KolPageClient.tsx | 20 ++++++++++---------- app/[locale]/macro/MacroVibesPageClient.tsx | 4 ++-- app/[locale]/settings/SettingsClient.tsx | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/[locale]/kol/KolPageClient.tsx b/app/[locale]/kol/KolPageClient.tsx index 714f8e6..f7f7ed8 100644 --- a/app/[locale]/kol/KolPageClient.tsx +++ b/app/[locale]/kol/KolPageClient.tsx @@ -163,8 +163,8 @@ function DigestWidget({ return (
@@ -860,7 +860,7 @@ export default function KolPage({