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:
2026-11-21 07:50:24 -07:00
co-authored by Claude Opus 5.5
parent 81a7d0596c
commit a89121f1ec
29 changed files with 1141 additions and 364 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ func TestDraftsPage(t *testing.T) {
body := rec.Body.String()
if rec.Code != 200 || strings.Index(body, "X text") > strings.Index(body, "LinkedIn text") ||
!strings.Contains(body, "31 / 280 including the link") || !strings.Contains(body, `data-reserve="25"`) ||
!strings.Contains(body, `class="count-badge">2<`) {
!strings.Contains(body, `class="count-badge" title="2 waiting for review">2<`) {
t.Errorf("inbox (X should come first, menu count 2):\n%s", body)
}
@@ -301,7 +301,7 @@ func TestOwnContentPage(t *testing.T) {
}
body = do(h, http.MethodGet, "/content/own", nil, nil).Body.String()
for _, want := range []string{"<h1>Acme <span class=\"badge product\">", `value="product:acme-mail"`, `action="/content/own/fetch"`,
`href="/profile">Edit profile`, `action="/content/own/items"`} {
`href="/settings/profile">Edit profile`, `action="/content/own/items"`} {
if !strings.Contains(body, want) {
t.Errorf("own page lacks %q", want)
}