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:
@@ -1,16 +1,16 @@
|
||||
{{define "content"}}{{with .Data}}
|
||||
<p><a href="/inventory">← Inventory</a></p>
|
||||
<h1>Import inventory</h1>
|
||||
<p><a href="/market">← Market</a></p>
|
||||
<h1>Import into the Market</h1>
|
||||
|
||||
{{with .Result}}
|
||||
<section class="card {{if .Errors}}warn{{end}}">
|
||||
<p>{{.Added}} added, {{.Updated}} updated, {{.Skipped}} skipped (already in the inventory).</p>
|
||||
<p>{{.Added}} added, {{.Updated}} updated, {{.Skipped}} skipped (already in the Market).</p>
|
||||
{{if .Errors}}<ul>{{range .Errors}}<li>{{.}}</li>{{end}}</ul>{{end}}
|
||||
<p><a href="/inventory">See the inventory</a></p>
|
||||
<p><a href="/market">See the Market</a></p>
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
<form class="card" method="post" action="/inventory/import" enctype="multipart/form-data">
|
||||
<form class="card" method="post" action="/market/import" enctype="multipart/form-data">
|
||||
<p>YAML: a list of entries, or a document with an <code>inventory:</code> list. The old app's <code>config.yaml</code> works too (its <code>applications:</code> list).</p>
|
||||
<label>Paste <textarea name="yaml" rows="12" placeholder="inventory:
|
||||
- name: Example
|
||||
|
||||
Reference in New Issue
Block a user