feat(web): console pages for monitors, incidents and notification channels
The dashboard lists monitors with status, latency and 24-hour uptime bars rendered as SVG on the server; monitor pages add 90-day uptime, latency and recent checks; an editor shows the settings of the selected check type. Closes #17 Closes #19 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
9a050ea712
commit
b831478143
18 files changed
+4268
-323
No files matched your search
@@ -145,6 +145,24 @@ func TestEveryMailEventHasTexts(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Templates build these IDs from a prefix and a value.
|
||||
func TestDynamicFamilies(t *testing.T) {
|
||||
en := catalogKeys(t)["en"]
|
||||
families := map[string][]string{
|
||||
"status.": {"up", "degraded", "down", "unknown", "paused"},
|
||||
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp"},
|
||||
"channels.type_": {"webhook", "email"},
|
||||
"agents.kind_": {"checker", "statuspage"},
|
||||
}
|
||||
for prefix, values := range families {
|
||||
for _, v := range values {
|
||||
if !en[prefix+v] {
|
||||
t.Errorf("en.json is missing %q", prefix+v)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The language switcher builds "lang.<code>" dynamically.
|
||||
func TestEveryLanguageHasAName(t *testing.T) {
|
||||
c, err := Load()
|
||||
|
||||
Reference in new issue
Block a user