From abe7a2514151549f490631b9fa18ffe5ab77be1b Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Thu, 11 Jun 2026 18:10:42 +0000 Subject: [PATCH] Fix duplicate CAT_COLORS const breaking admin login Rename memory section CAT_COLORS to MEM_CAT_COLORS to avoid SyntaxError that prevented doLogin from being defined, locking users out of admin. Co-Authored-By: Claude Sonnet 4.6 --- public_html/admin/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/admin/index.php b/public_html/admin/index.php index d1b7008..0421920 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -4049,7 +4049,7 @@ async function syncCalNow() { } // ── MEMORY CORE ─────────────────────────────────────────────────────────────── -const CAT_COLORS = { +const MEM_CAT_COLORS = { preference:'var(--cyan)', person:'#a78bfa', place:'#00ff88', routine:'#ffd700', goal:'#ff9900', fact:'var(--text)', instruction:'#ff6680' }; @@ -4090,7 +4090,7 @@ async function loadMemory() { const allCats = [...new Set([...catOrder, ...Object.keys(grouped)])]; for (const cat of allCats) { if (!grouped[cat]) continue; - const color = CAT_COLORS[cat] || 'var(--text)'; + const color = MEM_CAT_COLORS[cat] || 'var(--text)'; html += `
${cat.toUpperCase()} (${grouped[cat].length})