From 39b61ec94b89f1ac2f3728c86f1616a4cbe82c0f Mon Sep 17 00:00:00 2001 From: benya Date: Sun, 8 Mar 2026 11:35:31 +0300 Subject: [PATCH] feat(web): split chat list into pinned and regular sections - render explicit Pinned and Chats blocks - keep pin context actions unchanged --- web/src/components/ChatList.tsx | 95 +++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 41 deletions(-) diff --git a/web/src/components/ChatList.tsx b/web/src/components/ChatList.tsx index a0b4667..eb21f5b 100644 --- a/web/src/components/ChatList.tsx +++ b/web/src/components/ChatList.tsx @@ -171,6 +171,52 @@ export function ChatList() { ]; const visibleChats = tab === "archived" ? archivedChats : filteredChats; + const pinnedVisibleChats = visibleChats.filter((chat) => chat.pinned); + const regularVisibleChats = visibleChats.filter((chat) => !chat.pinned); + + function renderChatRow(chat: (typeof visibleChats)[number]) { + return ( + + ); + } return (