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:
@@ -0,0 +1,27 @@
|
||||
{{define "content"}}{{template "settings-start" .}}{{with .Data}}
|
||||
<h2>Domain</h2>
|
||||
<p class="lede">This team works on <strong>{{.Team.Domain}}</strong> and its subdomains. Before Supermarket crawls the website, reads its Search Console data or publishes to it, prove the domain is yours, one of three ways.</p>
|
||||
{{with .Problem}}<p class="error" role="alert">{{.}}</p>{{end}}
|
||||
{{if .Team.Proved}}
|
||||
<section class="card"><p><span class="pill ok">Proved</span> {{ago .Team.Verified}}, {{if eq .Team.VerifiedBy "dns"}}by a DNS record{{else if eq .Team.VerifiedBy "file"}}by a file on the site{{else}}through Search Console{{end}}. You can remove the record or the file now.</p></section>
|
||||
{{else}}
|
||||
{{if .Holder}}<p class="warn-text">Another team has proved {{.Team.Domain}}. If it's yours, ask the platform's admins to release it.</p>{{end}}
|
||||
<section class="card">
|
||||
<h3>1. A DNS record</h3>
|
||||
<p>Add a <strong>TXT</strong> record to <code>{{.Team.Domain}}</code> holding:</p>
|
||||
<pre id="txt">{{.Token}}</pre> <button type="button" class="secondary small" data-copy="txt">Copy</button>
|
||||
<form method="post" action="/settings/domain/check/dns"><button type="submit">Check the record</button></form>
|
||||
</section>
|
||||
<section class="card">
|
||||
<h3>2. A file on the website</h3>
|
||||
<p>Publish <code>https://{{.Team.Domain}}{{.Path}}</code> (or on <code>www.</code>) holding the same line:</p>
|
||||
<pre>{{.Token}}</pre>
|
||||
<form method="post" action="/settings/domain/check/file"><button type="submit">Check the file</button></form>
|
||||
</section>
|
||||
<section class="card">
|
||||
<h3>3. Search Console</h3>
|
||||
<p>If the Google account connected under <a href="/settings/search">Settings → Search engines</a> is an <em>owner</em> of the domain's property in Search Console, that's proof enough.</p>
|
||||
<form method="post" action="/settings/domain/check/search-console"><button type="submit">Check Search Console</button></form>
|
||||
</section>
|
||||
{{end}}
|
||||
{{end}}{{template "settings-end"}}{{end}}
|
||||
@@ -151,6 +151,7 @@
|
||||
{{if $.Can "admin"}}
|
||||
<div class="nav-label">Company</div>
|
||||
<a href="/settings/profile" {{if eq .Nav "settings/profile"}}aria-current="page"{{end}}>{{template "icon" "profile"}}Profile</a>
|
||||
{{if $.Multi}}<a href="/settings/domain" {{if eq .Nav "settings/domain"}}aria-current="page"{{end}}>{{template "icon" "sites"}}Domain</a>{{end}}
|
||||
<div class="nav-label">Connections</div>
|
||||
<a href="/settings/connections" {{if eq .Nav "settings/connections"}}aria-current="page"{{end}}>{{template "icon" "core"}}All connections</a>
|
||||
<a href="/settings/agents" {{if eq .Nav "settings/agents"}}aria-current="page"{{end}}>{{template "icon" "ai"}}Agents</a>
|
||||
|
||||
Reference in New Issue
Block a user