- Left sidebar as in brain: search at the top (press /), Overview, Inventory, the modules (Content with Inbox, Sources, Scheduled and Published; later phases greyed out), Settings at the bottom; a top bar with breadcrumbs, and a menu that slides in on narrow screens. - brain's colour tokens, type, radius and shadows, with a dark theme that follows the system setting. - Settings as grouped tabs: Profile; Social accounts (was Credentials, now keys and sign-in together per network); Core & Hermes; AI, which now holds the API keys too. Old addresses redirect. - /search matches every word across posts, fetched items, the inventory, products and settings pages. - Overview: a card per module, then the setup checklist, folded once done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.4 KiB
HTML
32 lines
1.4 KiB
HTML
{{define "content"}}{{with .Data}}{{$conn := .Connected}}
|
|
<h1>Scheduled</h1>
|
|
<p class="lede">Approved posts, in the order they go out ({{.Zone}}). Supermarket publishes them on time as long as it's running; one more than 12 hours late goes back to the Inbox instead.</p>
|
|
|
|
{{if .Drafts}}
|
|
<table class="list">
|
|
<thead><tr><th>When</th><th>Channel</th><th>Entry</th><th>Post</th><th></th></tr></thead>
|
|
<tbody>
|
|
{{range .Drafts}}
|
|
<tr>
|
|
<td>{{.PublishAt.Local.Format "Mon 2 Jan 15:04"}}</td>
|
|
<td>{{.Where}}{{if not (index $conn .Channel)}}<br><span class="warn-text small">not connected</span>{{end}}</td>
|
|
<td>{{.InventoryName}}</td>
|
|
<td class="post-text">{{if .Title}}<strong>{{.Title}}</strong> {{end}}{{truncate 200 .Content}}</td>
|
|
<td class="row-actions">
|
|
<form method="post" action="/drafts/{{.ID}}/publish" data-busy="Publishing…">
|
|
<input type="hidden" name="from" value="scheduled">
|
|
<button type="submit" class="small" {{if not (index $conn .Channel)}}disabled{{end}}>Publish now</button>
|
|
</form>
|
|
<form method="post" action="/drafts/{{.ID}}/unschedule">
|
|
<button type="submit" class="secondary small">Unschedule</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<section class="card empty"><p>Nothing scheduled. Schedule drafts from the <a href="/inbox">Inbox</a>.</p></section>
|
|
{{end}}
|
|
{{end}}{{end}}
|