LibreChat/client/src/store
Danny Avila 7b48203906
🗂️ feat: Sidebar Icon Toggle & New Chat History Switch (#12642)
* 🗂️ feat: Sidebar Icon Toggle & New Chat History Switch

Add collapse-on-active-click for sidebar icons (VSCode-style) and optionally switch to Chat History panel when creating a new chat.

* fix: Address review findings — extract DEFAULT_PANEL constant, add tests

Export DEFAULT_PANEL from ActivePanelContext and use it in ExpandedPanel
instead of hardcoding 'conversations'. Add ExpandedPanel tests covering
NavIconButton collapse toggle and NewChatButton panel switch behaviors.

* fix: Address review — prop-drill setActive, test disabled setting, strengthen assertions

Pass setActive as a prop to NewChatButton instead of subscribing to
ActivePanelContext, avoiding wasted re-renders on every panel switch.
Add negative-path test for switchToHistory=false. Add positive panel
assertions to inactive-icon click tests. Fix import order.
2026-04-13 09:46:38 -04:00
..
agents.ts 📛 feat: Chat Badges via Model Specs (#10272) 2025-10-27 19:46:30 -04:00
artifacts.ts
endpoints.ts 🪦 refactor: Remove Legacy Code (#10533) 2025-12-11 16:36:12 -05:00
families.ts refactor: Optimize Message Re-renders (#12097) 2026-03-06 00:03:32 -05:00
favorites.ts 📌 feat: Add Pin Support for Model Specs (#11219) 2026-04-09 18:37:25 -04:00
fontSize.ts 💡 feat: Improve Reasoning Content UI, copy-to-clipboard, and error handling (#10278) 2025-10-30 17:14:38 -04:00
index.ts 📌 feat: Pin Agents and Models in the Sidebar (#10634) 2025-12-11 16:38:20 -05:00
jotai-utils.ts 🪟 fix: Tab Isolation for Agent Favorites + MCP Selections (#11786) 2026-02-13 14:54:49 -05:00
language.ts
mcp.ts 🪟 fix: Tab Isolation for Agent Favorites + MCP Selections (#11786) 2026-02-13 14:54:49 -05:00
misc.ts 👨‍✈️ chore: Minor MCP-UI Logic Cleanup (#10950) 2025-12-12 17:10:57 -05:00
preset.ts
prompts.ts
search.ts
settings.ts 🗂️ feat: Sidebar Icon Toggle & New Chat History Switch (#12642) 2026-04-13 09:46:38 -04:00
showThinking.ts 💡 feat: Improve Reasoning Content UI, copy-to-clipboard, and error handling (#10278) 2025-10-30 17:14:38 -04:00
submission.ts
temporary.ts feat: Add Default Temporary Chat User Setting (#10731) 2025-12-11 16:37:15 -05:00
text.ts
toast.ts
user.ts
utils.ts