Inventory is now the Market
Everything the user sees says Market: the sidebar, titles, breadcrumbs, help text, messages, suggestions and the agent tool's description; the export downloads as supermarket-market.yaml. Its pages live under /market, and the old /inventory addresses redirect there (308, so a form's POST stays a POST). The YAML format (inventory:), the database and the code's names are unchanged, so exported files still import. A breadcrumb no longer repeats the page's own title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -154,7 +154,7 @@ func MentionSuggestions(ms []Mention, p *profile.Profile) []Suggestion {
|
||||
kind, label, link := "Product page", "Set up its page", "/sites/pages?kind=product¬es="+url.QueryEscape("A page for "+m.Name+": people name it in their replies.")+"#new"
|
||||
if p != nil && slices.ContainsFunc(p.Targets.Technologies, func(t string) bool { return strings.EqualFold(t, m.Name) }) {
|
||||
kind, label = "Alternative page", "Set up an alternative page"
|
||||
link = "/sites/pages?kind=alternative¬es=" + url.QueryEscape("For people leaving "+m.Name+": they name it in their replies. Add "+m.Name+" to the Inventory as a competitor first.") + "#new"
|
||||
link = "/sites/pages?kind=alternative¬es=" + url.QueryEscape("For people leaving "+m.Name+": they name it in their replies. Add "+m.Name+" to the Market as a competitor first.") + "#new"
|
||||
}
|
||||
why := fmt.Sprintf("%s named it in their replies, and the site has no page for it.", count(m.People, "person", "people"))
|
||||
if m.Example != "" {
|
||||
@@ -420,7 +420,7 @@ func SectionIdeas(pages []SectionPage, searches map[string][]seo.QueryRow, siteT
|
||||
Key: "section:table:" + pg.Path, Kind: "Add a comparison", Title: pg.Path + " " + pg.Title,
|
||||
Why: fmt.Sprintf("Google shows it %s times in 90 days for searches that compare: %s.", seo.Thousands(vsImpr), quoteList(vs, 3)),
|
||||
Score: sectionScore(vsImpr, rate),
|
||||
Action: link(table, "Compare, for the searches that bring people here: "+strings.Join(vs[:min(5, len(vs))], "; ")+". Say only what the Inventory and the profile say."),
|
||||
Action: link(table, "Compare, for the searches that bring people here: "+strings.Join(vs[:min(5, len(vs))], "; ")+". Say only what the Market and the profile say."),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user