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

56 lines
3.6 KiB
HTML

{{define "content"}}{{template "settings-start" .}}{{with .Data}}
<h2>Lead sources</h2>
<p class="lede">The prospecting tools you test buying signals in. Supermarket only reads from them: campaigns and their numbers, who was contacted, who replied, who was interested and who unsubscribed. It never starts, changes or sends anything there. Results appear on <a href="/signals">Signals</a>.</p>
<form method="post" action="/settings/sources" autocomplete="off">
{{range .Sources}}
<section class="card">
<h3>{{.Name}}</h3>
{{template "key-field" (dict "F" .Key "Set" .Set)}}
{{if eq .ID "origami"}}
<label>Project <span class="muted small">(optional)</span> <input name="origami_project" value="{{$.Data.Project}}" placeholder="a project ID, to read only that project">
<span class="help">If your organization has projects, the ID of the one to read. Leave empty to read the whole organization.</span></label>
{{end}}
{{if .Set}}
<button hx-disabled-elt="this" type="button" class="secondary small" hx-post="/settings/sources/test/{{.ID}}" hx-target="#test-{{.ID}}" hx-indicator="#testing-{{.ID}}">Test</button>
<span id="testing-{{.ID}}" class="htmx-indicator">Checking…</span>
<div id="test-{{.ID}}"></div>
{{end}}
</section>
{{end}}
{{with .Hunter}}
<h2 id="hunter">Enrichment</h2>
<section class="card">
<h3>Hunter.io</h3>
<p class="small">Finds the people in the roles you sell to at a prospect's website domain, the work address of a person whose name you know, and whether an address receives mail. You start each search from <a href="/prospects">Review</a>; nothing runs on its own. A search costs a credit when it finds someone, a verification half a credit.{{if ne .Used "0"}} Used in the last 30 days: <strong>{{.Used}}</strong> credits.{{end}}</p>
{{template "key-field" (dict "F" .Key "Set" .Set)}}
<fieldset>
<legend>Whom to look for at a company</legend>
<p class="help">Departments (none ticked: all of them)</p>
<div class="check-grid">{{$set := .Settings}}{{range .Departments}}<label class="check"><input type="checkbox" name="hunter_department" value="{{.ID}}" {{if has $set.Departments .ID}}checked{{end}}> {{.Label}}</label>{{end}}</div>
<p class="help">Seniority (none ticked: any)</p>
<div class="check-grid">{{range .Seniorities}}<label class="check"><input type="checkbox" name="hunter_seniority" value="{{.ID}}" {{if has $set.Seniority .ID}}checked{{end}}> {{.Label}}</label>{{end}}</div>
<label>At most
<select name="hunter_per_company">{{range .PerCompany}}<option value="{{.}}" {{if eq . $set.PerCompany}}selected{{end}}>{{.}} people a company</option>{{end}}</select>
<span class="help">Hunter.io's free plan returns at most 10 a search.</span>
</label>
</fieldset>
{{if .Set}}
<button hx-disabled-elt="this" type="button" class="secondary small" hx-post="/settings/sources/test/hunter" hx-target="#test-hunter" hx-indicator="#testing-hunter">Test</button>
<span id="testing-hunter" class="htmx-indicator">Checking…</span>
<div id="test-hunter"></div>
{{end}}
</section>
{{end}}
<div class="actions"><button type="submit">Save</button></div>
</form>
{{end}}{{template "settings-end"}}{{end}}
{{define "test-result"}}
{{with .Error}}<p class="error">{{.}}</p>{{end}}
{{with .OK}}<p class="ok">{{.}}</p>{{end}}
{{with .Sample}}<details><summary>What the API sends</summary>
<p class="help">origami.chat doesn't document its responses, so Supermarket looks fields up by the names its docs use. If an import misses replies or contacts, this shows the real names.</p>
<pre class="sample">{{.}}</pre></details>{{end}}
{{end}}