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,39 @@
|
||||
{{define "content"}}{{with .Data}}
|
||||
<h1>Overview</h1>
|
||||
|
||||
<section class="card">
|
||||
<h2>Setup</h2>
|
||||
<ul class="steps">
|
||||
{{range .Steps}}
|
||||
<li class="{{if .Done}}done{{else}}todo{{end}}">
|
||||
<a href="{{.Link}}"><strong>{{.Label}}</strong></a>
|
||||
<span>{{.Detail}}</span>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
{{if .ImportErr}}
|
||||
<section class="card warn">
|
||||
<h2>Import from the old app failed</h2>
|
||||
<p>{{.ImportErr}}</p>
|
||||
<p>The old files are untouched in the data folder's <code>import/</code> directory. Fix the file named above and restart Supermarket (<code>supermarket restart</code>) to try again.</p>
|
||||
</section>
|
||||
{{else if .ImportStatus}}
|
||||
<details class="card">
|
||||
<summary>Imported from the old terminal app {{ago .ImportStatus.At}}</summary>
|
||||
<ul>{{range .ImportStatus.Summary}}<li>{{.}}</li>{{end}}</ul>
|
||||
{{if .QueuedPosts}}<p>{{.QueuedPosts}} queued posts are kept for the Content module (Phase 1).</p>{{end}}
|
||||
</details>
|
||||
{{end}}
|
||||
|
||||
<h2>Modules</h2>
|
||||
<div class="grid">
|
||||
{{range .Modules}}
|
||||
<section class="card module">
|
||||
<h3>{{.Name}} <span class="badge">{{.Phase}}</span></h3>
|
||||
<p>{{.Body}}</p>
|
||||
</section>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}{{end}}
|
||||
Reference in New Issue
Block a user