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:
@@ -16,7 +16,29 @@
|
||||
if (e.target.matches('input[data-toggle="provider"]')) syncProvider();
|
||||
});
|
||||
|
||||
// Press / to search (unless typing somewhere already).
|
||||
document.addEventListener("keydown", function (e) {
|
||||
if (e.key !== "/" || e.ctrlKey || e.metaKey || e.altKey) return;
|
||||
var t = e.target;
|
||||
if (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)) return;
|
||||
var box = document.getElementById("search-box");
|
||||
if (box) {
|
||||
e.preventDefault();
|
||||
box.focus();
|
||||
box.select();
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener("click", function (e) {
|
||||
// The menu on narrow screens.
|
||||
if (e.target.closest("[data-nav-toggle]")) {
|
||||
document.body.classList.toggle("nav-open");
|
||||
return;
|
||||
}
|
||||
if (e.target.closest("[data-nav-close]")) {
|
||||
document.body.classList.remove("nav-open");
|
||||
return;
|
||||
}
|
||||
// Copy a <pre>'s text: <button data-copy="id-of-pre">
|
||||
var copy = e.target.closest("[data-copy]");
|
||||
if (copy) {
|
||||
|
||||
Reference in New Issue
Block a user