feat(sidebar): enhance chat sections layout and functionality with improved height management

This commit is contained in:
Anish Sarkar 2026-01-27 16:32:05 +05:30
parent ba304be977
commit b148731fda
3 changed files with 139 additions and 108 deletions

View file

@ -87,10 +87,10 @@ export function LayoutDataProvider({
enabled: !!searchSpaceId,
});
// Fetch threads
// Fetch threads (40 total to allow up to 20 per section - shared/private)
const { data: threadsData } = useQuery({
queryKey: ["threads", searchSpaceId, { limit: 4 }],
queryFn: () => fetchThreads(Number(searchSpaceId), 4),
queryKey: ["threads", searchSpaceId, { limit: 40 }],
queryFn: () => fetchThreads(Number(searchSpaceId), 40),
enabled: !!searchSpaceId,
});