diff --git a/frontend/src/components/ChatHistoryList.tsx b/frontend/src/components/ChatHistoryList.tsx index bb0d2b8b..c8d31492 100644 --- a/frontend/src/components/ChatHistoryList.tsx +++ b/frontend/src/components/ChatHistoryList.tsx @@ -28,6 +28,7 @@ import { Checkbox } from "@/components/ui/checkbox"; import { RenameChatDialog } from "@/components/RenameChatDialog"; import { DeleteChatDialog } from "@/components/DeleteChatDialog"; import { BulkDeleteDialog } from "@/components/BulkDeleteDialog"; +import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import { useOpenSecret, type Conversation, @@ -40,6 +41,8 @@ import { DeleteConversationProjectDialog } from "@/components/DeleteConversation import { MoveChatsDialog } from "@/components/MoveChatsDialog"; import { listAllConversationProjects, listAllConversations } from "@/utils/paginatedLists"; +const MAX_PROJECTS = 10; + interface ChatHistoryListProps { currentChatId?: string; searchQuery?: string; @@ -1278,14 +1281,32 @@ export function ChatHistoryList({
Projects
- + {conversationProjects.length >= MAX_PROJECTS ? ( + + + + + +

Maximum of {MAX_PROJECTS} projects reached

+
+
+ ) : ( + + )} {filteredProjects.map((project) => { const isProjectExpanded = expandedProjectId === project.id;