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>
34 lines
1.6 KiB
HTML
34 lines
1.6 KiB
HTML
{{define "content"}}{{with .Data}}
|
|
<p><a href="/inventory">← Inventory</a></p>
|
|
<h1>Import inventory</h1>
|
|
|
|
{{with .Result}}
|
|
<section class="card {{if .Errors}}warn{{end}}">
|
|
<p>{{.Added}} added, {{.Updated}} updated, {{.Skipped}} skipped (already in the inventory).</p>
|
|
{{if .Errors}}<ul>{{range .Errors}}<li>{{.}}</li>{{end}}</ul>{{end}}
|
|
<p><a href="/inventory">See the inventory</a></p>
|
|
</section>
|
|
{{end}}
|
|
|
|
<form class="card" method="post" action="/inventory/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
|
|
relationship: competitor
|
|
twitter_handle: example
|
|
hashtags: ['#Example']">{{.YAML}}</textarea></label>
|
|
<label>…or choose a file <input type="file" name="file" accept=".yaml,.yml,text/yaml"></label>
|
|
<div class="cols">
|
|
<label>Relationship for entries without one
|
|
<select name="relationship">{{range .Relationships}}<option value="{{.}}">{{.}}</option>{{end}}</select>
|
|
</label>
|
|
<label class="check"><input type="checkbox" name="overwrite"> Replace entries that already exist</label>
|
|
</div>
|
|
<div class="actions">
|
|
<button type="submit">Import</button>
|
|
<button type="submit" name="example" value="federated" class="secondary">Load the Federated example</button>
|
|
</div>
|
|
<p class="help">The Federated example is the 21 open source applications on a Federated Core, as partners.</p>
|
|
</form>
|
|
{{end}}{{end}}
|