- 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>
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
{{define "content"}}{{with .Data}}
|
|
<div class="page-head">
|
|
<h1>Search</h1>
|
|
<p class="lede">Posts, fetched items, the inventory, your products and settings.</p>
|
|
</div>
|
|
<form class="search-page" action="/search" method="get" role="search">
|
|
<input type="search" name="q" value="{{.Q}}" placeholder="e.g. a company, a product, or words from a post" aria-label="Search for" autofocus>
|
|
<button type="submit">Search</button>
|
|
</form>
|
|
|
|
{{if .Q}}
|
|
{{if .Groups}}
|
|
{{$limit := .Limit}}
|
|
{{range .Groups}}
|
|
<h2>{{.Name}} <span class="muted small">{{len .Hits}}{{if ge (len .Hits) $limit}}+{{end}}</span></h2>
|
|
<ul class="results">
|
|
{{range .Hits}}
|
|
<li><a href="{{.Link}}">
|
|
<span class="title"><span>{{truncate 140 .Title}}</span>{{with .Badge}}<span class="badge {{.}}">{{.}}</span>{{end}}</span>
|
|
{{with .Detail}}<span class="detail">{{truncate 200 .}}</span>{{end}}
|
|
</a></li>
|
|
{{end}}
|
|
</ul>
|
|
{{end}}
|
|
{{else}}
|
|
<section class="card empty"><p>Nothing matches “{{.Q}}”. Every word has to appear; try fewer words.</p></section>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}{{end}}
|