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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user