Phase 13, part 7: the platform's own admin

The people running the multi-tenant service (SUPERMARKET_PLATFORM_ADMINS,
with two-factor sign-in) see every team at /platform with its size, people
and what failed lately, and can suspend or restore a team, resend its
invitations and release its domain. They don't see a team's data unless
they view as it: with a reason, for at most an hour, read-only, recorded in
the team's own audit log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:35:53 -07:00
co-authored by Claude Opus 5.5
parent 76407cdea8
commit d35ed7cbb2
15 changed files with 459 additions and 10 deletions
+8
View File
@@ -0,0 +1,8 @@
{{define "content"}}{{with .Data}}
<h1>{{.Name}} is {{.Status}}</h1>
<section class="card">
{{if eq .Status "suspended"}}<p>The people running Supermarket have suspended this team. Its data is kept, and its work waits. Ask them why, or for it to be restored.</p>
{{else}}<p>This team is being deleted. Its owner can still undo it, until {{.DeleteAt.Local.Format "2 Jan 2006"}}.</p>{{end}}
<p><a href="/settings/account">Your account</a> · <form class="inline" method="post" action="/signout"><button type="submit" class="secondary small">Sign out</button></form></p>
</section>
{{end}}{{end}}