From e09c55ceccb9963a6f39d284cb0e3a94e6b044f6 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 6 Aug 2026 14:48:48 -0400 Subject: [PATCH] feat(devices): reform Add Device modal with KOReader plugin instructions - Add gear icon (proper cog) and use it for device settings button - Replace KOReader manual identifier input with step-by-step plugin setup instructions (clone repo, enter server URL, approve pending reg) - Show server URL with copy button pre-filled from baseURL - Kobo keeps manual registration flow (device name + identifier) - Comment out Web Browser and Mobile App options (not implemented) - Use Alpine x-model on device-type select to toggle between KOReader instructions and Kobo registration form --- templates/devices.templ | 101 ++++++++++++++++++++++++++++--------- templates/devices_templ.go | 68 +++++++++++++++++++++---- templates/icons.templ | 3 ++ templates/icons_templ.go | 89 +++++++++++++++++--------------- web/static/style.css | 2 +- 5 files changed, 186 insertions(+), 77 deletions(-) diff --git a/templates/devices.templ b/templates/devices.templ index e0f11e6..d6592ac 100644 --- a/templates/devices.templ +++ b/templates/devices.templ @@ -63,9 +63,9 @@ templ Devices(user User, devices []handlers.DeviceInfo, pendingRegistrations []P - +

{ device.DeviceName }

@@ -190,14 +190,78 @@ templ Devices(user User, devices []handlers.DeviceInfo, pendingRegistrations []P
-