From 6d3db17cf5ee9e9d8e6b550d869553681d464770 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 28 Jan 2026 11:03:17 -0500 Subject: [PATCH] feat: update frontend for library system - Redesign dashboard to show library selection first - Add media browsing within selected library - Implement library management interface - Add user visibility controls for libraries - Support library type icons and metadata - Add create library modal with type selection - Include folder management for each library - Implement user-specific library access controls Replaces single ebook library with flexible multi-library system --- templates/admin_library.templ | 319 ++++++++++++++++++++++++++++------ templates/dashboard.templ | 230 ++++++++++++++++++------ 2 files changed, 440 insertions(+), 109 deletions(-) diff --git a/templates/admin_library.templ b/templates/admin_library.templ index 064d46b..e633da1 100644 --- a/templates/admin_library.templ +++ b/templates/admin_library.templ @@ -79,93 +79,295 @@ templ AdminLibrary(user User) {
-
+
-
+
← Back to Dashboard +

Library Management

-

Configure library scanning settings and manage ebook folders

+

Manage libraries and configure media scanning

-
+
+
-

Ebook Folders

-

Manage folders that Bookmann scans for ebooks

+

Libraries

+

Manage media libraries and their folders

-
- +
+
- -
- - -
-
+
-

Scan Settings

+

Library Visibility

+

Control which libraries are visible to users

-
-

Scan Frequency

-
- - -
-
+
+
+
+
-
-

Auto Scan

-
- - - -
-
-
+ +
+

User Library Access

+

Manage individual user access to specific libraries

+ +
+ +
+ +
+
+ + + diff --git a/templates/dashboard.templ b/templates/dashboard.templ index fc7c168..1e9d003 100644 --- a/templates/dashboard.templ +++ b/templates/dashboard.templ @@ -95,52 +95,60 @@ templ Dashboard(user User) {
-
-
-

Your Ebook Library

-

Manage your ebook collection and reading progress

+
+

Your Media Library

+

Browse and manage your media collections

+
+
+ + +
+ +
+ + + - -
-
- - + +
+
- -
- -
-
- Loading your ebooks... + Loading your media libraries...