Phase 13, part 4: proving a team's domain

Before Supermarket crawls a team's website, reads its Search Console data
or publishes to it, the team proves the domain is theirs: a DNS TXT
record, a file on the site, or owning its Search Console property. One
team holds a domain at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:21:42 -07:00
co-authored by Claude Opus 5.5
parent d5fb1898e8
commit 47cc8b2b10
11 changed files with 444 additions and 8 deletions
+4
View File
@@ -452,6 +452,8 @@ func (s *Server) Handler() (http.Handler, error) {
mux.HandleFunc("POST /settings/backups/upload", (*Server).backupUpload)
mux.HandleFunc("GET /settings/about", (*Server).aboutPage)
mux.HandleFunc("GET /settings/connections", (*Server).connectionsPage)
mux.HandleFunc("GET /settings/domain", (*Server).domainPage)
mux.HandleFunc("POST /settings/domain/check/{method}", (*Server).domainCheck)
mux.HandleFunc("GET /settings/activity", (*Server).activityPage)
mux.HandleFunc("GET /api/v1/docs", (*Server).apiDocs)
mux.HandleFunc("GET /api/v1/tools", (*Server).apiTools)
@@ -835,6 +837,8 @@ var flashes = map[string]string{
"agent-resumed": "Resumed.",
"team-created": "Your team is set up. Start with the company's profile.",
"added": "Added: they're told by email, and sign in as they do.",
"prove-first": "First prove the team's domain is yours: Supermarket only crawls, reads or publishes to a website its team has proved.",
"domain-proved": "Proved: the domain is the team's.",
"account-removed": "Signed out: posts scheduled to it are back in Posts.",
"own-account-connected": "Connected: you can post as it, and an admin can let others.",
"deleted": "Deleted.",