feat: show which checker ran a check and what it is doing
Every recent check on a monitor page names and links the checker instance that ran it. The checker page shows whether it is active, its version, the checks it runs right now and has queued, and the viewer's latest results on it, refreshing every five seconds. Platform checkers serve all organizations, so other organizations' work appears only as a count. Checks in progress are tracked in Redis between handing out a job and receiving its result. Closes #82 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
53ff2a628d
commit
0c2155fdc2
15 files changed
+1909
-523
No files matched your search
@@ -1,6 +1,10 @@
|
||||
package web
|
||||
|
||||
import "git.zb-server.de/ZB-Server/uptimesebi/internal/i18n"
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"git.zb-server.de/ZB-Server/uptimesebi/internal/i18n"
|
||||
)
|
||||
|
||||
// Page carries what every rendered page needs besides its own content.
|
||||
type Page struct {
|
||||
@@ -13,6 +17,8 @@ type Page struct {
|
||||
NoticeID string
|
||||
// Legal links the platform's legal notice and privacy policy.
|
||||
Legal []LegalLink
|
||||
// RefreshSeconds reloads pages that show live state.
|
||||
RefreshSeconds int
|
||||
}
|
||||
|
||||
templ Layout(p Page) {
|
||||
@@ -24,6 +30,9 @@ templ Layout(p Page) {
|
||||
if p.CSRF != "" {
|
||||
<meta name="csrf-token" content={ p.CSRF }/>
|
||||
}
|
||||
if p.RefreshSeconds > 0 {
|
||||
<meta http-equiv="refresh" content={ strconv.Itoa(p.RefreshSeconds) }/>
|
||||
}
|
||||
<title>{ i18n.T(ctx, p.TitleID) } · uptimesebi</title>
|
||||
<link rel="stylesheet" href="/static/dist/app.css"/>
|
||||
<script src="/static/dist/axios.min.js" defer></script>
|
||||
|
||||
Reference in new issue
Block a user