Show what Uptime Kuma reported for each maintenance window in the sync result

Each window in the "Sync schedule" result now lists how many monitors it
covers and the time slots Kuma sent for it, so an empty result can be traced
to missing monitors, missing slots or monitors that match no server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-12 00:04:46 +02:00
1 parent 9e483f2163
commit 27a191b54c
3 files changed
+13

No files matched your search

+6
View File
@@ -298,6 +298,12 @@ export default function Maintenance({ user }: { user: CurrentUser }) {
</span>
{m.servers.length > 0 ? ` → ${m.servers.join(", ")}` : m.note ? ` — nothing to schedule: ${m.note}` : ""}
{m.unmatched.length > 0 && <span className="text-secondary"> · no server for {m.unmatched.join(", ")}</span>}
<div className="text-secondary small">
Covers {m.monitorCount} monitor{m.monitorCount === 1 ? "" : "s"} in Uptime Kuma ·{" "}
{m.slots.length === 0
? "Uptime Kuma gave no time slot"
: m.slots.map((s) => `${formatDateTime(new Date(s.start))} – ${formatDateTime(new Date(s.end))}`).join("; ")}
</div>
</li>
))}
</ul>