From c91281e31e729a2fbce770372ffd33bcd4c9525f Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Thu, 5 Feb 2026 19:55:13 -0500 Subject: [PATCH] Allow admins to update the Start/End date for default Seasonal sections --- configuration/homeScreen-configuration.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configuration/homeScreen-configuration.js b/configuration/homeScreen-configuration.js index 3d9455e..4cfbaa3 100644 --- a/configuration/homeScreen-configuration.js +++ b/configuration/homeScreen-configuration.js @@ -1997,6 +1997,17 @@ // Additional fields for default sections let additionalFieldsHTML = ''; if (isDefaultSection) { + // Check if this is a seasonal section based on the section id and add the Start Date and End Date fields + if (section.id.startsWith('seasonal.')) { + additionalFieldsHTML += ` +
+
Seasonal
+ ${buildTextInput('section-startDate', section.startDate || '', 'Start Date (MM-DD)', 'text')} + ${buildTextInput('section-endDate', section.endDate || '', 'End Date (MM-DD)', 'text')} +
+ `; + } + if (defaultFields.includeSortOrder) { const sortBy = section.queries?.[0]?.queryOptions?.SortBy || 'Random'; const sortOrder = section.queries?.[0]?.queryOptions?.SortOrder || 'Ascending'; @@ -2700,6 +2711,12 @@ if (discoveryEnabledToggle) { section.discoveryEnabled = discoveryEnabledToggle.dataset.enabled === 'true'; } + + // Check if this is a seasonal section based on the section id and add the Start Date and End Date fields + if (section.id.startsWith('seasonal.')) { + section.startDate = dialog.querySelector('#section-startDate')?.value || section.startDate; + section.endDate = dialog.querySelector('#section-endDate')?.value || section.endDate; + } return section; }