From 4cabc823efc1bc40774f6febb5b3359ebdc3b94b Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 19 Nov 2025 08:15:34 -0500 Subject: [PATCH] Increase upcoming events window from 72 hours to 5 days MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extended the shopfloor dashboard upcoming events window to show more advance notice of scheduled changes and incidents. Changes: - api_shopfloor.asp: Changed INTERVAL 72 HOUR to INTERVAL 5 DAY - Dashboard display: "Next 72 Hours" → "Next 5 Days" - No events message: Updated to reflect 5-day window Benefits: - Better visibility for weekly planned maintenance - More advance notice for upcoming changes - Aligns with typical weekly planning cycles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- api_shopfloor.asp | 2 +- shopfloor-dashboard/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api_shopfloor.asp b/api_shopfloor.asp index 82fded6..75b50e4 100644 --- a/api_shopfloor.asp +++ b/api_shopfloor.asp @@ -25,7 +25,7 @@ strSQL = "SELECT n.notificationid, n.notification, n.starttime, n.endtime, " & _ " ELSE 0 " & _ "END as is_resolved, " & _ "CASE " & _ - " WHEN n.starttime > NOW() AND n.starttime <= DATE_ADD(NOW(), INTERVAL 72 HOUR) THEN 1 " & _ + " WHEN n.starttime > NOW() AND n.starttime <= DATE_ADD(NOW(), INTERVAL 5 DAY) THEN 1 " & _ " ELSE 0 " & _ "END as is_upcoming, " & _ "TIMESTAMPDIFF(MINUTE, n.endtime, NOW()) as minutes_since_end " & _ diff --git a/shopfloor-dashboard/index.html b/shopfloor-dashboard/index.html index 9b6af95..5038d8a 100644 --- a/shopfloor-dashboard/index.html +++ b/shopfloor-dashboard/index.html @@ -885,7 +885,7 @@ } html += '
'; - html += '
UPCOMING (Next 72 Hours)
'; + html += '
UPCOMING (Next 5 Days)
'; html += '