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:
2026-11-24 12:38:50 -07:00
co-authored by Claude Opus 5.5
parent 98f8788f18
commit a81ced3503
25 changed files with 105 additions and 79 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ func (s *Server) search(q string) ([]hitGroup, error) {
if matches(e.Name, e.Description, e.TwitterHandle, e.TalkingPoints, strings.Join(e.Websites, " "),
strings.Join(e.Hashtags, " "), strings.Join(e.Keywords, " "), strings.Join(e.Subreddits, " ")) {
inv = append(inv, hit{Title: e.Name, Detail: e.Description,
Link: "/inventory/" + strconv.FormatInt(e.ID, 10), Badge: e.Relationship})
Link: "/market/" + strconv.FormatInt(e.ID, 10), Badge: e.Relationship})
}
}
entryLink := func(name string) string {
@@ -202,7 +202,7 @@ func (s *Server) search(q string) ([]hitGroup, error) {
}
var groups []hitGroup
for _, g := range []hitGroup{{"Posts", posts}, {"Fetched items", found}, {"Inventory", inv}, {"Prospects", prospectHits}, {"Settings", settings}} {
for _, g := range []hitGroup{{"Posts", posts}, {"Fetched items", found}, {"Market", inv}, {"Prospects", prospectHits}, {"Settings", settings}} {
if len(g.Hits) > 0 {
groups = append(groups, g)
}