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:
@@ -9,11 +9,11 @@ import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"supermarket/internal/db"
|
||||
"supermarket/internal/slug"
|
||||
)
|
||||
|
||||
// Statuses of a signal, in order.
|
||||
@@ -60,11 +60,9 @@ const timeFormat = time.RFC3339
|
||||
|
||||
func formatTime(t time.Time) string { return t.UTC().Format(timeFormat) }
|
||||
|
||||
var nonSlug = regexp.MustCompile(`[^a-z0-9]+`)
|
||||
|
||||
// Slugify makes a utm_campaign-safe slug from a name.
|
||||
func Slugify(name string) string {
|
||||
s := strings.Trim(nonSlug.ReplaceAllString(strings.ToLower(name), "-"), "-")
|
||||
s := slug.Make(name)
|
||||
if len(s) > 60 {
|
||||
s = strings.TrimRight(s[:60], "-")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user