diff --git a/ADMIN_SIDEBAR_PLAN.md b/ADMIN_SIDEBAR_PLAN.md new file mode 100644 index 0000000..7ce7c1c --- /dev/null +++ b/ADMIN_SIDEBAR_PLAN.md @@ -0,0 +1,318 @@ +# 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 `