feat: admins suspend or delete status pages, organizations and accounts
ci / image (pull_request) Successful in 3m20s
ci / build (pull_request) Successful in 8m34s
ci / test (pull_request) Successful in 11m41s
ci / lint (pull_request) Successful in 13m0s

The admin panel lists every published status page, and every suspended
page, organization or account, with the organization and owner behind
it, searchable by title, address, organization or email. Each can be
suspended with a reason, reinstated, or deleted.

A suspended page is not served; status page servers drop it when they
next ask. A suspended organization's monitors leave the schedule, its
pages go offline, heartbeat pings and Alertmanager webhooks are no
longer recorded, and its members and API tokens get 403 org_suspended;
the console explains why. Reinstating restarts heartbeat waits so they
do not fire at once. A suspended account is signed out everywhere and
can neither sign in nor use its tokens; only someone who knows the
password learns of the suspension. Platform admins cannot be suspended
or deleted. Account deletion shares its logic with the GDPR erasure,
including the refusal while the account owns shared organizations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 20:46:46 +01:00
1 parent db37060c70
commit 90e74d091a
37 files changed
+3109 -1140

No files matched your search

+17 -2
View File
@@ -14,6 +14,7 @@ type PageRow struct {
Published bool
URL string
Domain string
Suspended bool
}
// PagesView is the data of the status page list.
@@ -29,7 +30,9 @@ templ StatusPagesPage(p Page, me Me, v PagesView) {
<ul class="mb-12 divide-y divide-rule border-y border-rule text-sm">
for _, pg := range v.Pages {
<li class="flex flex-wrap items-center gap-x-4 gap-y-1 py-2.5">
if pg.Published {
if pg.Suspended {
@statusDot(StatusDown)
} else if pg.Published {
@statusDot(StatusUp)
} else {
@statusDot(StatusPaused)
@@ -39,7 +42,9 @@ templ StatusPagesPage(p Page, me Me, v PagesView) {
if pg.Domain != "" {
<span class="font-mono text-xs text-muted">{ pg.Domain }</span>
}
if pg.Published {
if pg.Suspended {
<span class="ml-auto text-xs text-down">{ i18n.T(ctx, "pages.suspended") }</span>
} else if pg.Published {
<a href={ templ.SafeURL(pg.URL) } class="ml-auto text-muted hover:text-ink" target="_blank" rel="noopener">{ i18n.T(ctx, "pages.open") } ↗</a>
} else {
<span class="ml-auto text-xs text-muted">{ i18n.T(ctx, "pages.draft") }</span>
@@ -98,6 +103,8 @@ type PageEditor struct {
DomainVerified bool
RecordName string
RecordValue string
Suspended bool
SuspendedReason string
Groups []PageGroupRow
HasOrgGroups bool
Monitors []PageMonitorOption
@@ -106,6 +113,14 @@ type PageEditor struct {
templ StatusPageEditor(p Page, me Me, e PageEditor) {
@consoleShell(p, me) {
<p class="mb-4 text-sm"><a href="/statuspages" class="text-muted hover:text-ink">← { i18n.T(ctx, "pages.title") }</a></p>
if e.Suspended {
<p class="mb-6 border-l-2 border-down pl-3 text-sm" role="alert">
{ i18n.T(ctx, "pages.suspended_notice") }
if e.SuspendedReason != "" {
{ " " + i18n.T(ctx, "console.suspended_reason", "Reason", e.SuspendedReason) }
}
</p>
}
<div class="mb-8 flex flex-wrap items-baseline justify-between gap-4">
<h1 class="text-lg font-semibold">{ e.Title }</h1>
<span class="flex gap-5 text-sm">