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
+20 -1
View File
@@ -406,7 +406,7 @@ Part 4, promoting our own products:
invites feedback, and the Inbox warns that self-promotion is often
restricted.
**Not yet tried for real.** Parts 1–4 are covered by tests with fake AI
**Not yet tried for real (deferred on 2026-11-21 for the UI redesign below; run this checklist next).** Parts 1–4 are covered by tests with fake AI
and channel clients, and the rebuilt app runs (schema 3). But the
installed app has no profile, AI key, inventory or social sign-ins yet, so no
real fetch, generation or post has been made. Before relying on it:
@@ -429,6 +429,25 @@ so `git push` can't prompt from Claude Code). The branch stays off `main`
until the user decides to merge; posting works again now, which was the
condition for merging.
**UI redesign (2026-11-21).** The user asked for brain
(gitea.federated.computer/Federated_Computer/brain, a Next.js + Tailwind
app) to be the UI basis from now on. Supermarket stays Go templates + htmx;
it takes brain's look rather than its stack: brain's colour tokens, type,
radius and shadows (and its dark theme, following the system setting), a
left sidebar with search at the top and Settings at the bottom, a top bar
with breadcrumbs, and Settings as grouped tabs on the left. The menu:
Search, Overview (module cards and setup), Inventory, then the modules
(Content with Inbox, Sources, Scheduled and Published; the later phases
shown greyed out). Settings holds Profile, Social accounts (was
Credentials; keys and sign-in together per network), Core & Hermes, and AI
(provider, model, and the API keys, which moved there from Credentials).
Old addresses (`/profile`, `/core`, `/settings/credentials`) redirect.
Search (`/search`) matches every word across posts, fetched items, the
inventory, products and settings pages. New modules add a `modules` entry
in `internal/web/server.go` and an icon in `layout.html`. brain's fonts
(DM Sans, Plus Jakarta Sans) are named but not bundled, so the system font
is used unless they're installed.
**To pick this up:** try Phase 1 for real (the checklist above), fix what
that turns up, then decide whether to merge `phase0-foundation` into `main`
and tag `v0.1.0`. Then Phase 2, Prospects → EspoCRM, which depends on the