From 864e7ad558ff1cb8ab58d8fdb49851d01d1d4514 Mon Sep 17 00:00:00 2001 From: Alan Met <106497267+AlanMet@users.noreply.github.com> Date: Mon, 1 Jun 2026 03:52:10 +0100 Subject: [PATCH] Sidebar Chat button Quality of Life improvement. (#155) --- static/app.js | 14 ++++---------- static/index.html | 12 ++++++++++-- static/style.css | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/static/app.js b/static/app.js index e8a27f2..3bc6ef9 100644 --- a/static/app.js +++ b/static/app.js @@ -1025,16 +1025,10 @@ function initializeEventListeners() { }); } - // "Chats" sidebar section header: - // • Click the auto-injected chevron (section-management.js adds it) - // or the empty area of the title → toggle collapse of the list. - // • Click the "Chats" text label → open the Chats tab of the library. - // We stop propagation on the label so section-management.js's - // section-title click handler (which toggles collapse) doesn't also - // fire when the user is trying to open the library. - const chatsSectionLabel = el('chats-section-label'); - if (chatsSectionLabel) { - chatsSectionLabel.addEventListener('click', (e) => { + // Manage Chats — opens Full Library modal (decoupled from Chats accordion toggle) + const chatsLibraryBtn = el('chats-library-btn'); + if (chatsLibraryBtn) { + chatsLibraryBtn.addEventListener('click', (e) => { e.stopPropagation(); if (sessionModule) sessionModule.openLibrary('chats'); }); diff --git a/static/index.html b/static/index.html index 468314c..655ff0a 100644 --- a/static/index.html +++ b/static/index.html @@ -693,8 +693,16 @@