[object Object]

← back to Wallco Ai

design page admin sheet: add ⎋ Logout button next to close

c6011e806f11a2c50731d4541f6d681113bbbfc9 · 2026-05-25 00:46:11 -0700 · Steve Abrams

Steve's ask — admin hamburger sheet now has Logout pill in the header. Hits
the unified /logout endpoint that clears every auth cookie (dw_auth, trade,
admin) + sets view_mode=live so localhost-auto-admin actually lands on the
public view. The main site hamburger nav-panel also gained the same Logout
link in the prior commit.

Files touched

Diff

commit c6011e806f11a2c50731d4541f6d681113bbbfc9
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon May 25 00:46:11 2026 -0700

    design page admin sheet: add ⎋ Logout button next to close
    
    Steve's ask — admin hamburger sheet now has Logout pill in the header. Hits
    the unified /logout endpoint that clears every auth cookie (dw_auth, trade,
    admin) + sets view_mode=live so localhost-auto-admin actually lands on the
    public view. The main site hamburger nav-panel also gained the same Logout
    link in the prior commit.
---
 server.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 00a876b..b97657d 100644
--- a/server.js
+++ b/server.js
@@ -9176,7 +9176,12 @@ ${htmlHeader('/designs')}
       <aside id="admin-sheet" class="admin-sheet" role="dialog" aria-modal="false" aria-label="Admin tools">
         <div class="admin-sheet-head">
           <h3>Admin · this design</h3>
-          <button class="admin-sheet-close" data-close-admin="1" aria-label="Close">✕</button>
+          <div style="display:flex;gap:6px;align-items:center">
+            <a href="/logout" class="admin-sheet-logout"
+               style="font:11px var(--sans,system-ui);color:#a0a0a0;text-decoration:none;padding:4px 10px;border:1px solid rgba(160,160,160,.35);border-radius:14px;letter-spacing:.06em"
+               title="Clear auth cookies + flip to public view">⎋ Logout</a>
+            <button class="admin-sheet-close" data-close-admin="1" aria-label="Close">✕</button>
+          </div>
         </div>
         <div id="admin-sheet-body"><!-- tone-on-tone block hydrated client-side --></div>
       </aside>

← bcbd379 feat(design page): move Curated Rating into admin drawer + a  ·  back to Wallco Ai  ·  gen-luxe v2: 5 heritage-house variants + DW-texture ground a 77c507c →