Redesign the UI on brain's look: sidebar with search, Overview, modules, grouped Settings
- 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>
This commit is contained in:
@@ -1,21 +1,16 @@
|
||||
{{define "content"}}{{with .Data}}
|
||||
<nav class="tabs">
|
||||
<a href="/content" aria-current="page">Sources</a>
|
||||
<a href="/content/scheduled">Scheduled</a>
|
||||
<a href="/content/published">Published</a>
|
||||
</nav>
|
||||
<div class="heading">
|
||||
<h1>{{.Name}} <span class="badge {{.Entry.Relationship}}">{{.Entry.Relationship}}</span></h1>
|
||||
<div class="buttons">
|
||||
<form method="post" action="{{.Base}}/fetch" data-busy="Fetching…">
|
||||
<button type="submit" {{if not .Sources}}disabled{{end}}>Fetch new</button>
|
||||
</form>
|
||||
{{if .Own}}<a class="button secondary" href="/profile">Edit profile</a>{{else}}<a class="button secondary" href="/inventory/{{.Entry.ID}}">Edit entry</a>{{end}}
|
||||
{{if .Own}}<a class="button secondary" href="/settings/profile">Edit profile</a>{{else}}<a class="button secondary" href="/inventory/{{.Entry.ID}}">Edit entry</a>{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<p class="lede">
|
||||
{{if .Own}}Posts that promote your own work: pick a product, or fetch your feeds and new pages on your websites.
|
||||
{{if .Sources}}Reads {{join .Sources ", "}}.{{else}}Add your blog and release feeds, and your websites, to the <a href="/profile">profile</a> to fetch them.{{end}}
|
||||
{{if .Sources}}Reads {{join .Sources ", "}}.{{else}}Add your blog and release feeds, and your websites, to the <a href="/settings/profile">profile</a> to fetch them.{{end}}
|
||||
{{else}}{{if .Sources}}Reads {{join .Sources ", "}}.{{else}}This entry has no sources yet: add an X handle, hashtags, a YouTube channel or RSS feeds to it.{{end}}{{end}}
|
||||
Last fetched {{ago .LastChecked}}; the next fetch looks for posts since {{.Since.Local.Format "2 Jan 15:04"}}.
|
||||
</p>
|
||||
@@ -25,7 +20,7 @@
|
||||
<p><strong>{{if .NewItems}}{{.NewItems}} new item{{if ne .NewItems 1}}s{{end}}.{{else}}Nothing new.{{end}}</strong></p>
|
||||
{{if .Errors}}<p class="warn-text">Some sources failed; they'll be read from the same point next time:</p>
|
||||
<ul>{{range .Errors}}<li>{{.}}</li>{{end}}</ul>{{end}}
|
||||
{{if .Skipped}}<p class="muted">Skipped, for lack of credentials (<a href="/settings/credentials">add them</a>): {{join .Skipped "; "}}.</p>{{end}}
|
||||
{{if .Skipped}}<p class="muted">Skipped, for lack of credentials (<a href="/settings/accounts">add them</a>): {{join .Skipped "; "}}.</p>{{end}}
|
||||
</section>
|
||||
{{end}}
|
||||
|
||||
@@ -78,7 +73,7 @@
|
||||
{{else}}
|
||||
<section class="card">
|
||||
<h2>Write drafts from the selected items</h2>
|
||||
{{if not .ProfileSet}}<p class="warn-text">Fill in the <a href="/profile">company profile</a> first: drafts are written in its voice.</p>{{end}}
|
||||
{{if not .ProfileSet}}<p class="warn-text">Fill in the <a href="/settings/profile">company profile</a> first: drafts are written in its voice.</p>{{end}}
|
||||
<fieldset class="choice">
|
||||
<legend>Channels</legend>
|
||||
{{range .Channels}}
|
||||
@@ -105,7 +100,7 @@
|
||||
</form>
|
||||
{{else}}
|
||||
<section class="card empty">
|
||||
<p>{{if .ShowDismissed}}Nothing dismissed.{{else if .Own}}No products or news yet: add products, feeds or websites to your <a href="/profile">profile</a>, then fetch.{{else}}No items yet. Fetch to see what {{.Name}} has been up to.{{end}}</p>
|
||||
<p>{{if .ShowDismissed}}Nothing dismissed.{{else if .Own}}No products or news yet: add products, feeds or websites to your <a href="/settings/profile">profile</a>, then fetch.{{else}}No items yet. Fetch to see what {{.Name}} has been up to.{{end}}</p>
|
||||
</section>
|
||||
{{end}}
|
||||
{{end}}{{end}}
|
||||
|
||||
Reference in New Issue
Block a user