From 2dbf8de089c3c051c7bed117adad8008b0cfb91b Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Fri, 11 Apr 2025 18:32:36 -0700 Subject: [PATCH] feat: Revamp layout and notification components for improved user experience - Replaced icons with images and updated text labels in the layout template for better clarity. - Enhanced mobile menu structure and added logo for consistent branding. - Removed deprecated notification form and dialog components to streamline the codebase. - Improved notification handling in the backend, ensuring correct URL formatting and payload structure for notifications. - Added debug logging for notification requests to facilitate troubleshooting. --- components/layout.templ | 105 +-- components/notification_form.templ | 985 --------------------- components/notifications.templ | 483 ---------- components/notifications/form/form.templ | 46 +- internal/scheduler/notification.go | 9 +- internal/web/handlers/settings_handlers.go | 153 +++- 6 files changed, 211 insertions(+), 1570 deletions(-) delete mode 100644 components/notification_form.templ delete mode 100644 components/notifications.templ diff --git a/components/layout.templ b/components/layout.templ index c318405..a6fcac0 100644 --- a/components/layout.templ +++ b/components/layout.templ @@ -151,27 +151,27 @@ templ LayoutWithContext(title string, ctx context.Context) {