From 2f6c95dd511cf6c45aa8d171e6112ef7573495c9 Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Fri, 11 Apr 2025 07:29:29 -0700 Subject: [PATCH 1/7] feat: Add schedule builder functionality to job form - Introduced a new scheduling interface allowing users to select between interval, daily, weekly, monthly, or custom cron expressions. - Implemented dynamic UI updates to show relevant input fields based on the selected schedule type. - Enhanced cron expression parsing to pre-fill the form based on existing values. - Updated job form layout to accommodate the new scheduling options and improve user experience. --- components/job_form.templ | 662 ++++++++++++++++++++++++++++++- internal/web/handlers/handler.go | 8 +- 2 files changed, 656 insertions(+), 14 deletions(-) diff --git a/components/job_form.templ b/components/job_form.templ index ddc5314..c6df338 100644 --- a/components/job_form.templ +++ b/components/job_form.templ @@ -242,9 +242,250 @@ templ configSearchScript() { } +templ scheduleBuilderScript() { + +} + templ JobForm(ctx context.Context, data JobFormData) { @LayoutWithContext(getJobFormTitle(data.IsNew), ctx) { @configSearchScript() + @scheduleBuilderScript()
@@ -310,10 +551,210 @@ templ JobForm(ctx context.Context, data JobFormData) {
-
From 2dbf8de089c3c051c7bed117adad8008b0cfb91b Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Fri, 11 Apr 2025 18:32:36 -0700 Subject: [PATCH 6/7] 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) {