Phase 0: turn Supermarket into a Dockerized local web app
Replace the old Go TUI with a web app (port 8470) that runs in a container as a CoreDesktop sibling: - cmd/supermarket server with htmx web UI: dashboard, company profile, inventory (partners/competitors), AI and credential settings, and a Core & Hermes page - SQLite storage and a secrets store under ~/.local/share/supermarket - AI providers (Anthropic, OpenAI-compatible) behind one interface - MCP server and a Hermes bridge to the Federated Core MCP hub - Import of the old Coremarketing TUI's state - install.sh / update.sh / lib.sh, Dockerfile, compose.yaml, the bin/supermarket launcher and hermes/setup.sh Posting is not wired back up yet; that comes in Phase 1. See PLAN.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{{define "content"}}{{with .Data}}
|
||||
<div class="heading">
|
||||
<h1>Inventory</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>
|
||||
</div>
|
||||
</div>
|
||||
<p class="lede"><strong>Partners</strong>: Supermarket amplifies their news.
|
||||
<strong>Competitors</strong>: it positions your products against theirs.
|
||||
<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>
|
||||
{{$cur := .Relationship}}
|
||||
{{range .Relationships}}<a href="/inventory?relationship={{.}}" {{if eq $cur .}}aria-current="page"{{end}}>{{.}}</a>{{end}}
|
||||
</nav>
|
||||
|
||||
{{if .Entries}}
|
||||
<table class="list">
|
||||
<thead><tr><th>Name</th><th>Relationship</th><th>X</th><th>YouTube</th><th>Description</th></tr></thead>
|
||||
<tbody>
|
||||
{{range .Entries}}
|
||||
<tr>
|
||||
<td><a href="/inventory/{{.ID}}">{{.Name}}</a></td>
|
||||
<td><span class="badge {{.Relationship}}">{{.Relationship}}</span></td>
|
||||
<td>{{if .TwitterHandle}}@{{.TwitterHandle}}{{end}}</td>
|
||||
<td>{{if .YouTubeChannelID}}✓{{end}}</td>
|
||||
<td>{{truncate 90 .Description}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</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>
|
||||
</section>
|
||||
{{end}}
|
||||
{{end}}{{end}}
|
||||
Reference in New Issue
Block a user