UX issue: if I scroll the text before the copilot has finished generating, then it scrolls back up after the end of generation.
Rename tasks -> Chats and make it the default view
This commit is contained in:
tusharmagar 2026-01-31 18:59:43 +05:30
parent 2105f6d6cd
commit 84c101fa21
5 changed files with 5 additions and 6 deletions

View file

@ -1666,7 +1666,7 @@ function App() {
return (
<TooltipProvider delayDuration={0}>
<SidebarSectionProvider defaultSection="knowledge" onSectionChange={handleSectionChange}>
<SidebarSectionProvider defaultSection="tasks" onSectionChange={handleSectionChange}>
<div className="flex h-svh w-full">
{/* Icon sidebar - always visible, fixed position */}
<SidebarIcon />

View file

@ -13,7 +13,6 @@ export const Conversation = ({ className, ...props }: ConversationProps) => (
<StickToBottom
className={cn("relative flex-1 overflow-y-hidden", className)}
initial="smooth"
resize="smooth"
role="log"
{...props}
/>

View file

@ -95,7 +95,7 @@ type SidebarContentPanelProps = {
const sectionTitles = {
knowledge: "Knowledge",
tasks: "Tasks",
tasks: "Chats",
}
export function SidebarContentPanel({

View file

@ -4,7 +4,7 @@ import * as React from "react"
import {
Brain,
HelpCircle,
ListTodo,
MessageSquare,
Plug,
Settings,
} from "lucide-react"
@ -27,8 +27,8 @@ type NavItem = {
}
const navItems: NavItem[] = [
{ id: "tasks", title: "Chats", icon: MessageSquare },
{ id: "knowledge", title: "Knowledge", icon: Brain },
{ id: "tasks", title: "Tasks", icon: ListTodo },
]
export function SidebarIcon() {

View file

@ -20,7 +20,7 @@ export function useSidebarSection() {
}
export function SidebarSectionProvider({
defaultSection = "knowledge",
defaultSection = "tasks",
onSectionChange,
children,
}: {