[object Object]

← back to Ventura Claw

chat: surface Admin link in topbar for admin users

5b582d2228659019142f4b9da2c6a1f2a6808dc3 · 2026-05-06 12:52:07 -0700 · SteveStudio2

Files touched

Diff

commit 5b582d2228659019142f4b9da2c6a1f2a6808dc3
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 6 12:52:07 2026 -0700

    chat: surface Admin link in topbar for admin users
---
 server/public/chat.html | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/server/public/chat.html b/server/public/chat.html
index ffcac17..886babf 100644
--- a/server/public/chat.html
+++ b/server/public/chat.html
@@ -18,6 +18,7 @@
     <a href="/connections" class="btn btn-ghost">Connections</a>
     <a href="/connections/import" class="btn btn-ghost" title="Import tokens from ~/.claude.json or .env">Import</a>
     <a href="/brand" class="btn btn-ghost">Brand</a>
+    <a href="/admin" id="adm-nav" class="btn btn-ghost" style="display:none;border-color:var(--gold);color:var(--gold)">Admin →</a>
     <a href="#" id="logout" class="btn btn-ghost">Sign out</a>
   </div>
 </header>
@@ -108,7 +109,10 @@ let CONNECTORS = [];
 (async () => {
   const me = await (await fetch('/api/me')).json();
   who.textContent = me.user.email + (me.user.role === 'admin' ? ' · admin' : '');
-  if (me.user.role === 'admin') document.getElementById('adm-link').style.display = 'inline-flex';
+  if (me.user.role === 'admin') {
+    document.getElementById('adm-link').style.display = 'inline-flex';
+    document.getElementById('adm-nav').style.display = 'inline-flex';
+  }
   const d = await (await fetch('/api/connectors')).json();
   CONNECTORS = d.connectors;
   cc.textContent = CONNECTORS.length;

← 37b29cb sync-tokens: strip hardcoded password fallback (was leaked i  ·  back to Ventura Claw  ·  Snapshot: ElevenLabs + Shopify connectors + coming-soon page 45dc5f6 →