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
+4 -4
View File
@@ -63,7 +63,7 @@ func (s *Server) contentIndex(w http.ResponseWriter, r *http.Request) {
rows = append(rows, contentRow{Entry: e, Name: e.Name, Sources: fetcher.Sources(&e),
Waiting: counts[strings.ToLower(e.Name)], LastChecked: last})
}
s.render(w, r, "content", page{Title: "Content", Nav: "content", Data: map[string]any{"Rows": rows}})
s.render(w, r, "content", page{Title: "Sources", Nav: "content/sources", Data: map[string]any{"Rows": rows}})
}
type channelChoice struct {
@@ -181,7 +181,7 @@ func (s *Server) contentEntry(w http.ResponseWriter, r *http.Request) {
s.serverError(w, err)
return
}
s.render(w, r, "content-entry", page{Title: d.Name, Nav: "content", Data: d})
s.render(w, r, "content-entry", page{Title: d.Name, Nav: "content/sources", Data: d})
}
func (s *Server) contentFetch(w http.ResponseWriter, r *http.Request) {
@@ -221,7 +221,7 @@ func (s *Server) contentFetch(w http.ResponseWriter, r *http.Request) {
return
}
d.Fetched, d.NewItems, d.Errors, d.Skipped = true, n, res.Errors, res.Skipped
s.render(w, r, "content-entry", page{Title: d.Name, Nav: "content", Data: d})
s.render(w, r, "content-entry", page{Title: d.Name, Nav: "content/sources", Data: d})
}
// contentItems handles the item list's buttons: dismiss, restore, write.
@@ -245,7 +245,7 @@ func (s *Server) contentItems(w http.ResponseWriter, r *http.Request) {
s.serverError(w, err)
return
}
s.render(w, r, "content-entry", page{Title: d.Name, Nav: "content", Error: msg, Data: d})
s.render(w, r, "content-entry", page{Title: d.Name, Nav: "content/sources", Error: msg, Data: d})
}
if len(ids) == 0 {
showErr("Select at least one item first.")