mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-06 14:39:10 +00:00
* 🗂️ 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.
|
||
|---|---|---|
| .. | ||
| agents.ts | ||
| artifacts.ts | ||
| endpoints.ts | ||
| families.ts | ||
| favorites.ts | ||
| fontSize.ts | ||
| index.ts | ||
| jotai-utils.ts | ||
| language.ts | ||
| mcp.ts | ||
| misc.ts | ||
| preset.ts | ||
| prompts.ts | ||
| search.ts | ||
| settings.ts | ||
| showThinking.ts | ||
| submission.ts | ||
| temporary.ts | ||
| text.ts | ||
| toast.ts | ||
| user.ts | ||
| utils.ts | ||