From 665e2533f67a3d58abc733904f327e19898b2698 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 24 Feb 2026 10:26:31 -0500 Subject: [PATCH] build: compile templates and JavaScript after theme fixes - Regenerate admin_library_templ.go with admin sidebar integration - Regenerate admin_users_templ.go with sidebar layout and theme fixes - Regenerate bookshelf_templ.go with dynamic theme rendering - Regenerate index_templ.go with progressive enhancement script - Regenerate login_templ.go with progressive enhancement script - Regenerate register_templ.go with progressive enhancement script - Compile header.js with consolidated theme logic --- ADMIN_SIDEBAR_PLAN.md | 318 ------------------------------- templates/admin_library_templ.go | 4 +- templates/admin_users_templ.go | 2 +- templates/bookshelf_templ.go | 2 +- templates/index_templ.go | 2 +- templates/login_templ.go | 2 +- templates/register_templ.go | 2 +- web/static/header.js | 32 +--- 8 files changed, 10 insertions(+), 354 deletions(-) delete mode 100644 ADMIN_SIDEBAR_PLAN.md diff --git a/ADMIN_SIDEBAR_PLAN.md b/ADMIN_SIDEBAR_PLAN.md deleted file mode 100644 index 7ce7c1c..0000000 --- a/ADMIN_SIDEBAR_PLAN.md +++ /dev/null @@ -1,318 +0,0 @@ -# Admin Panel Sidebar Reusable Component Plan - -## Problem Statement - -The admin panel sidebar is currently implemented with code duplication and inconsistencies: - -### Current Issues - -1. **Code Duplication**: Sidebar markup is duplicated across templates: - - `admin.templ` (lines 17-32) - - `admin_library.templ` (lines 14-29) - -2. **Inconsistent Navigation Links**: - - `admin.templ`: Dashboard β†’ **"User Administration"** β†’ Library Management - - `admin_library.templ`: Dashboard β†’ **"Profile Settings"** β†’ Library Management - - "Profile Settings" link points to `/admin/profile` (doesn't exist) - - "User Administration" link points to `/admin/users` (correct) - -3. **Missing Sidebar**: `admin_users.templ` has **no sidebar at all** - only uses main `@Header` component - -4. **Inconsistent Layouts**: - - `admin.templ` & `admin_library.templ`: Full sidebar layout with `