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
@@ -46,6 +46,12 @@ templ consoleShell(p Page, me Me) {
|
||||
<span class="text-muted">{ me.Orgs[0].Name }</span>
|
||||
}
|
||||
<nav class="ml-auto flex items-center gap-5">
|
||||
if me.Can["incidents.read"] {
|
||||
<a href="/incidents" class="text-muted hover:text-ink">{ i18n.T(ctx, "incidents.title") }</a>
|
||||
}
|
||||
if me.Can["notifications.read"] {
|
||||
<a href="/settings/channels" class="text-muted hover:text-ink">{ i18n.T(ctx, "channels.title") }</a>
|
||||
}
|
||||
if me.Can["members.read"] {
|
||||
<a href="/settings/members" class="text-muted hover:text-ink">{ i18n.T(ctx, "console.nav.members") }</a>
|
||||
<a href="/settings/roles" class="text-muted hover:text-ink">{ i18n.T(ctx, "console.nav.roles") }</a>
|
||||
@@ -80,13 +86,6 @@ templ consoleShell(p Page, me Me) {
|
||||
}
|
||||
}
|
||||
|
||||
templ Dashboard(p Page, me Me) {
|
||||
@consoleShell(p, me) {
|
||||
<h1 class="text-lg font-semibold">{ i18n.T(ctx, "console.monitors.title") }</h1>
|
||||
<p class="mt-2 text-sm text-muted">{ i18n.T(ctx, "console.monitors.empty") }</p>
|
||||
}
|
||||
}
|
||||
|
||||
// Identity is an SSO sign-in linked to the user in the active organization.
|
||||
type Identity struct {
|
||||
Provider string
|
||||
|
||||
Reference in new issue
Block a user