From 97731070845bef335bbf189565b6eb91c35486a9 Mon Sep 17 00:00:00 2001 From: agessaman Date: Wed, 4 Nov 2026 21:18:34 -0800 Subject: [PATCH] fix(web_viewer): tidy the schedule editor's new controls The date range and Weeks fields now sit behind a "Date range and weeks" toggle right under the timing controls, with a summary of any limits beside it, so the common path is shorter on a phone and a limited schedule still shows its limits when collapsed. The section opens for entries that have limits, and once when Weeks is combined with one day a month so the warning is seen. The "no 5th one" hint only shows for a 5th weekday and names it. In the table, cron fields and dates no longer break at a hyphen, an open-ended range reads "from" or "until", the message column keeps a readable width on phones, and the page header wraps instead of squeezing the button. The monthly warning is only in the Weeks description while it shows, and the toggle reads out the summary. --- modules/web_viewer/templates/schedule.html | 160 +++++++++++++++------ 1 file changed, 116 insertions(+), 44 deletions(-) diff --git a/modules/web_viewer/templates/schedule.html b/modules/web_viewer/templates/schedule.html index 6d17fde2..e1fb0780 100644 --- a/modules/web_viewer/templates/schedule.html +++ b/modules/web_viewer/templates/schedule.html @@ -2,11 +2,23 @@ {% block title %}Scheduled Messages - MeshCore Bot{% endblock %} +{% block extra_css %} + +{% endblock %} + {% block content %}
-
+

Scheduled Messages

@@ -112,7 +124,7 @@
-
A month with no 5th one is skipped.
+
@@ -134,6 +146,46 @@
+
+ + Not limited +
+
+
+ + +
+
+ + +
+
+
+ The end date is included in full. Leave both blank to run indefinitely. +
+ + + +
+ With one day a month, Weeks keeps that day only in matching ISO weeks, + so most months are skipped. It is not "every other month". +
+
+ For a fortnightly net. Weeks are ISO week numbers, so in a 53-week year + the odd setting runs two weeks in a row at New Year. +
+
+
+
@@ -145,38 +197,6 @@
Leave blank for global flood.
-
-
- - -
-
- - -
-
- Limit this schedule to a date range. The end date is included in full. - Leave both blank to run indefinitely. -
-
- -
- - -
- With one day a month, Weeks keeps that day only in matching ISO weeks, - so most months are skipped. It is not "every other month". -
-
- For a strict fortnightly net. Weeks are ISO week numbers, so in a year - with 53 weeks the odd setting runs two weeks running at New Year. -
-
-