Increase upcoming events window from 72 hours to 5 days
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 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@ strSQL = "SELECT n.notificationid, n.notification, n.starttime, n.endtime, " & _
|
|||||||
" ELSE 0 " & _
|
" ELSE 0 " & _
|
||||||
"END as is_resolved, " & _
|
"END as is_resolved, " & _
|
||||||
"CASE " & _
|
"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 " & _
|
" ELSE 0 " & _
|
||||||
"END as is_upcoming, " & _
|
"END as is_upcoming, " & _
|
||||||
"TIMESTAMPDIFF(MINUTE, n.endtime, NOW()) as minutes_since_end " & _
|
"TIMESTAMPDIFF(MINUTE, n.endtime, NOW()) as minutes_since_end " & _
|
||||||
|
|||||||
@@ -885,7 +885,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
html += '<div class="events-section">';
|
html += '<div class="events-section">';
|
||||||
html += '<div class="section-title upcoming">UPCOMING (Next 72 Hours)</div>';
|
html += '<div class="section-title upcoming">UPCOMING (Next 5 Days)</div>';
|
||||||
html += '<div class="upcoming-carousel-container">';
|
html += '<div class="upcoming-carousel-container">';
|
||||||
html += '<div class="upcoming-carousel-wrapper" id="upcomingCarousel">';
|
html += '<div class="upcoming-carousel-wrapper" id="upcomingCarousel">';
|
||||||
|
|
||||||
@@ -917,7 +917,7 @@
|
|||||||
|
|
||||||
// No events message
|
// No events message
|
||||||
if ((!data.current || data.current.length === 0) && (!data.upcoming || data.upcoming.length === 0)) {
|
if ((!data.current || data.current.length === 0) && (!data.upcoming || data.upcoming.length === 0)) {
|
||||||
html += '<div class="no-events">No scheduled events for the next 72 hours</div>';
|
html += '<div class="no-events">No scheduled events for the next 5 days</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
container.innerHTML = html;
|
container.innerHTML = html;
|
||||||
|
|||||||
Reference in New Issue
Block a user