Phase 13, part 8: a team's data is theirs

The owner exports everything from Settings → Your data (the keys only with
their password), and can delete the team: it closes at once, everyone in it
is told, it can be undone for 30 days, and then its schema, files, agents
and memberships go for good.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:40:28 -07:00
co-authored by Claude Opus 5.5
parent d35ed7cbb2
commit b8a64e258a
11 changed files with 501 additions and 4 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
<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}}
{{else}}<p>This team is being deleted. Its owner can still undo it, until {{.DeleteAt.Local.Format "2 Jan 2006"}}.</p>
{{with $.Viewer}}{{if eq (print .Member.Role) "owner"}}<form method="post" action="/teams/undelete"><button type="submit">Undo: keep the team</button></form>{{end}}{{end}}{{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}}