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,8 +1,8 @@
|
||||
{{define "content"}}{{with .Data}}
|
||||
<h1>Company profile</h1>
|
||||
{{define "content"}}{{template "settings-start" .}}{{with .Data}}
|
||||
<h2>Company profile</h2>
|
||||
<p class="lede">Everything Supermarket writes, targets and audits starts here.</p>
|
||||
|
||||
<form class="card inline-form" method="post" action="/profile/draft">
|
||||
<form class="card inline-form" method="post" action="/settings/profile/draft">
|
||||
<label for="draft_url"><strong>Draft from your website</strong></label>
|
||||
<p class="help">Reads your home page and a few pages it links to (about, products, pricing), and fills in what's empty below. Nothing is saved until you press Save.</p>
|
||||
{{if .NoAI}}<p class="warn-text">This uses the AI: first <a href="/settings/ai">choose an AI provider</a> (for Anthropic, add your API key), then come back. Or fill in the form below by hand.</p>{{end}}
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
{{if .Drafted}}<p class="flash">Here's a draft. Check every field, correct what's wrong, then Save.</p>{{end}}
|
||||
|
||||
<form method="post" action="/profile">
|
||||
<form method="post" action="/settings/profile">
|
||||
{{with .P}}
|
||||
<section class="card">
|
||||
<h2>The company</h2>
|
||||
@@ -105,4 +105,4 @@
|
||||
|
||||
<div class="actions"><button type="submit">Save</button></div>
|
||||
</form>
|
||||
{{end}}{{end}}
|
||||
{{end}}{{template "settings-end"}}{{end}}
|
||||
|
||||
Reference in New Issue
Block a user