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
+8 -8
View File
@@ -1,10 +1,10 @@
{{define "content"}}{{with .Data}}
<div class="heading">
<h1>Inventory</h1>
<h1>Market</h1>
<div class="buttons">
<a class="button" href="/inventory/new">New entry</a>
<a class="button secondary" href="/inventory/import">Import</a>
<a class="button secondary" href="/inventory/export">Export</a>
<a class="button" href="/market/new">New entry</a>
<a class="button secondary" href="/market/import">Import</a>
<a class="button secondary" href="/market/export">Export</a>
</div>
</div>
<p class="lede"><strong>Partners</strong>: Supermarket amplifies their news.
@@ -12,9 +12,9 @@
<strong>Watch</strong>: news to curate, no promotion either way.</p>
<nav class="tabs">
<a href="/inventory" {{if eq .Relationship ""}}aria-current="page"{{end}}>All</a>
<a href="/market" {{if eq .Relationship ""}}aria-current="page"{{end}}>All</a>
{{$cur := .Relationship}}
{{range .Relationships}}<a href="/inventory?relationship={{.}}" {{if eq $cur .}}aria-current="page"{{end}}>{{.}}</a>{{end}}
{{range .Relationships}}<a href="/market?relationship={{.}}" {{if eq $cur .}}aria-current="page"{{end}}>{{.}}</a>{{end}}
</nav>
{{if .Entries}}
@@ -23,7 +23,7 @@
<tbody>
{{range .Entries}}
<tr>
<td><a href="/inventory/{{.ID}}">{{.Name}}</a></td>
<td><a href="/market/{{.ID}}">{{.Name}}</a></td>
<td><span class="badge {{.Relationship}}">{{.Relationship}}</span></td>
<td>{{if .TwitterHandle}}@{{.TwitterHandle}}{{end}}</td>
<td>{{if .YouTubeChannelID}}✓{{end}}</td>
@@ -34,7 +34,7 @@
</table>
{{else}}
<section class="card empty">
<p>Nothing here yet. Add the partners and competitors you post about, or <a href="/inventory/import">import a list</a>.</p>
<p>Nothing here yet. Add the partners and competitors you post about, or <a href="/market/import">import a list</a>.</p>
</section>
{{end}}
{{end}}{{end}}