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>
This commit is contained in:
2026-11-24 06:31:42 -07:00
co-authored by Claude Opus 5.5
parent 3ddf716e71
commit c36f786ae9
52 changed files with 796 additions and 128 deletions
+20 -3
View File
@@ -100,6 +100,22 @@ func unreachableError(actions []crm.Action) string {
return ""
}
// crmBroken says whether the newest finished action failed because
// EspoCRM couldn't be reached (and nothing has got through since).
func crmBroken(actions []crm.Action) bool {
for _, a := range actions { // newest first
switch a.Status {
case crm.StatusDone:
return false
case crm.StatusFailed:
if connErr.MatchString(a.Error) {
return true
}
}
}
return false
}
// crmReach is an htmx fragment shown when Hermes couldn't reach EspoCRM.
// Hermes goes through the Core's MCP hub, which connects to EspoCRM with
// its own settings; checking EspoCRM from here tells the user which side
@@ -167,11 +183,12 @@ func (s *Server) crmAction(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r)
return
}
msg := ""
switch r.PathValue("action") {
case "retry":
err = crm.Retry(s.DB, id)
err, msg = crm.Retry(s.DB, id), "crm-retried"
case "cancel":
err = crm.Cancel(s.DB, id)
err, msg = crm.Cancel(s.DB, id), "crm-cancelled"
default:
http.NotFound(w, r)
return
@@ -184,6 +201,6 @@ func (s *Server) crmAction(w http.ResponseWriter, r *http.Request) {
s.serverError(w, err)
return
}
redirect(w, r, "/crm", "saved")
redirect(w, r, "/crm", msg)
}
}