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,8 +1,8 @@
|
||||
{{define "content"}}{{with .Data}}{{$d := .}}{{$e := .E}}
|
||||
<p><a href="/inventory">← Inventory</a></p>
|
||||
<p><a href="/market">← Market</a></p>
|
||||
<h1>{{if $e.ID}}{{$e.Name}}{{else}}New entry{{end}}</h1>
|
||||
|
||||
<form method="post" action="/inventory/save" data-busy-on="fill" data-busy="Reading their website…">
|
||||
<form method="post" action="/market/save" data-busy-on="fill" data-busy="Reading their website…">
|
||||
<input type="hidden" name="id" value="{{$e.ID}}">
|
||||
<section class="card">
|
||||
<h2>Fill in with AI</h2>
|
||||
@@ -10,7 +10,7 @@
|
||||
{{if .NoAI}}<p class="warn-text">This needs the AI: first <a href="/settings/ai">set up the AI</a>, then come back. Or fill in the form by hand.</p>{{end}}
|
||||
<div class="row">
|
||||
<input name="draft_url" type="text" inputmode="url" value="{{.DraftURL}}" placeholder="https://example.com" aria-label="Their website">
|
||||
<button type="submit" name="action" value="fill" class="secondary" formaction="/inventory/fill" formnovalidate {{if .NoAI}}disabled{{end}}>Fill in the empty boxes</button>
|
||||
<button type="submit" name="action" value="fill" class="secondary" formaction="/market/fill" formnovalidate {{if .NoAI}}disabled{{end}}>Fill in the empty boxes</button>
|
||||
</div>
|
||||
<p class="help">Takes up to a minute or two.</p>
|
||||
{{if .Drafted}}{{if .Filled}}<p class="flash">Filled in: {{join .Filled ", "}}. Check them, correct what's wrong, then Save.</p>{{else}}<p class="muted">Nothing to fill in: every box the website could answer is already filled, or the site doesn't say.</p>{{end}}{{end}}
|
||||
@@ -97,7 +97,7 @@
|
||||
</form>
|
||||
|
||||
{{if $e.ID}}
|
||||
<form method="post" action="/inventory/{{$e.ID}}/delete" class="danger-zone" data-confirm="Delete {{$e.Name}} from the inventory?">
|
||||
<form method="post" action="/market/{{$e.ID}}/delete" class="danger-zone" data-confirm="Delete {{$e.Name}} from the Market?">
|
||||
<button type="submit" class="danger">Delete {{$e.Name}}</button>
|
||||
</form>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user