mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-01 19:32:40 +02:00
fix to:
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:
parent
2105f6d6cd
commit
84c101fa21
5 changed files with 5 additions and 6 deletions
|
|
@ -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 />
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ type SidebarContentPanelProps = {
|
|||
|
||||
const sectionTitles = {
|
||||
knowledge: "Knowledge",
|
||||
tasks: "Tasks",
|
||||
tasks: "Chats",
|
||||
}
|
||||
|
||||
export function SidebarContentPanel({
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export function useSidebarSection() {
|
|||
}
|
||||
|
||||
export function SidebarSectionProvider({
|
||||
defaultSection = "knowledge",
|
||||
defaultSection = "tasks",
|
||||
onSectionChange,
|
||||
children,
|
||||
}: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue