feat: simplify uptime page to single auto-managed monitor with toggle

Rewrites uptime page from 978 to ~370 lines. Removes all monitor CRUD
UI (modals, monitor list, selection state). Adds enable/disable toggle
and empty state. Reads the single auto-managed monitor.
This commit is contained in:
Usman Baig
2026-03-22 16:51:42 +01:00
parent 5c30043550
commit 1d26819727
2 changed files with 209 additions and 586 deletions

View File

@@ -25,6 +25,8 @@ export interface Site {
data_retention_months?: number
// Script feature toggles
script_features?: Record<string, unknown>
// Uptime monitoring toggle
uptime_enabled: boolean
is_verified?: boolean
created_at: string
updated_at: string
@@ -53,6 +55,8 @@ export interface UpdateSiteRequest {
filter_bots?: boolean
// Script feature toggles
script_features?: Record<string, unknown>
// Uptime monitoring toggle
uptime_enabled?: boolean
// Hide unknown locations from stats
hide_unknown_locations?: boolean
// Data retention (months); 0 = keep forever