Files
davidandClaude Opus 5.5 c36f786ae9 Fixes from the first round of TEST.md
SEO: a domain property (sc-domain:) covers every subdomain, so the shop,
Gitea and forum were counted as the website. What ranks, the morning
check, the Monday report, keywords, change candidates and the audit's
traffic now read only the website's own host (with or without www).
The report keeps pages worth a proposal apart from "Waiting for your
yes", explains only moves past the thresholds, and says "places up/down".

Also:
- Feed summaries drop the posts' scripts and styles.
- Spend you log can't be negative.
- Test and check buttons can't be clicked twice while they run.
- Previews show the site's web fonts and icon sprites.
- Backups are read without leaving -wal/-shm files; deleting one removes
  them, and leftovers are swept at start.
- The Overview's setup flags a CRM that Hermes can't reach.
- Import now says what came in; adding a prospect that exists says so;
  prospects can be deleted.
- Signal tags and brief addresses keep accented letters (Ü → u).
- Page errors start with a capital; clearer messages for bad uploads,
  CRM retry and cancel, keywords, and the finished audit.
- The module you're in stays unfolded in the sidebar.
- A picked keyword can be unpicked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:31:42 -07:00

57 lines
3.9 KiB
HTML

{{define "content"}}{{with .Data}}{{$d := .}}
<div class="heading">
<h1>Next keywords</h1>
{{if .Current}}<div class="buttons">
<form method="post" action="/seo/keywords?site={{.Current.Index}}" data-busy="Looking…"><button type="submit" class="secondary">Look for keywords</button></form>
</div>{{end}}
</div>
<p class="lede">Searches your site has no page for yet, from four places: what Google already shows you for but weakly (below page two), your profile's keywords and your customers' problems, your signals' search lines, and the topics your competitors' sites cover. Each is checked against your own pages, so “no page” means no page. Buyer searches (best, price, vs, alternative, hosting…) come first. Search volume and difficulty aren't available; what counts is who you'd have to beat, so read a keyword's live top 3 before you pick it. Then pick one: not ten.</p>
{{if not .Sites}}
<section class="card empty"><p>Add your websites to the <a href="/settings/profile">profile</a> first.</p></section>
{{else}}
{{if gt (len .Sites) 1}}<nav class="tabs">{{range .Sites}}<a href="/seo/keywords?site={{.Index}}" {{if eq .Index $d.Current.Index}}aria-current="page"{{end}}>{{.URL}}</a>{{end}}</nav>{{end}}
{{with .picked}}
<h2>Picked</h2>
{{range .}}{{template "keyword" .}}{{end}}
{{end}}
<h2>Candidates</h2>
{{with .NoSearch}}<p class="help">Reading the top results needs Claude with web search: {{.}}</p>{{end}}
{{range .new}}{{template "keyword" .}}{{else}}
<section class="card empty"><p>No candidates yet. <em>Look for keywords</em> gathers them; it reads your competitors' sitemaps, so it can take a minute.</p></section>
{{end}}
{{with .dismissed}}
<details><summary>Dismissed ({{len .}})</summary>{{range .}}{{template "keyword" .}}{{end}}</details>
{{end}}
{{end}}
{{end}}{{end}}
{{define "keyword"}}
<section class="card keyword" id="k-{{.ID}}">
<div class="prospect-head">
<div>
<h3>{{.Keyword}} {{if eq .Intent "buyer"}}<span class="badge published">buyer</span>{{end}}</h3>
<p class="small muted">From {{range $i, $s := .Sources}}{{if $i}}, {{end}}{{$s}}{{end}}.
{{if .Impressions}}Google already shows you for it: {{num .Impressions}} impressions in 90 days at position {{dec1 .Position}}{{with .ShownOn}}, on <a href="{{.}}" target="_blank" rel="noopener noreferrer">{{pagePath .}}</a>{{end}}.{{end}}
Volume and difficulty: not available.</p>
</div>
<div class="row-actions">
{{if ne .Status "picked"}}<form method="post" action="/seo/keywords/{{.ID}}/pick"><button type="submit" class="small">Pick this one</button></form>
{{else}}<form method="post" action="/seo/briefs" data-busy="Writing the brief…"><input type="hidden" name="site_url" value="{{.Site}}"><input type="hidden" name="keyword" value="{{.Keyword}}"><button type="submit" class="small">Write the brief</button></form>{{end}}
{{if eq .Status "dismissed"}}<form method="post" action="/seo/keywords/{{.ID}}/restore"><button type="submit" class="secondary small">Bring back</button></form>
{{else}}{{if eq .Status "picked"}}<form method="post" action="/seo/keywords/{{.ID}}/restore"><button type="submit" class="secondary small">Unpick</button></form>{{end}}
<form method="post" action="/seo/keywords/{{.ID}}/dismiss"><button type="submit" class="secondary small">Dismiss</button></form>{{end}}
</div>
</div>
{{if .Top}}
<p class="small"><strong>The live top 3</strong> ({{ago .TopAt}}){{if ge .Hard 0}}: {{if le .Hard 3}}winnable for a small site{{else if le .Hard 6}}a fight{{else}}held by the big ones{{end}}{{end}}</p>
<ol class="small">{{range .Top}}<li><a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.Title}}</a> <span class="badge">{{.Kind}}</span> {{.Note}}</li>{{end}}</ol>
{{else}}
<form method="post" action="/seo/keywords/{{.ID}}/top" data-busy="Searching…" class="inline"><button type="submit" class="link small">Read the live top 3 (up to 3 web searches)</button></form>
{{end}}
</section>
{{end}}