Merge commit '57fd82f17f' into dev

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-11-03 15:58:17 -08:00
commit 050581ba6a
4 changed files with 34 additions and 22 deletions

View file

@ -292,7 +292,7 @@ const DashboardPage = () => {
mass: 0.2, mass: 0.2,
}} }}
/> />
<div className="flex flex-col h-full overflow-hidden rounded-xl border bg-muted/30 backdrop-blur-sm transition-all hover:border-primary/50"> <div className="flex flex-col h-full justify-between overflow-hidden rounded-xl border bg-muted/30 backdrop-blur-sm transition-all hover:border-primary/50">
<div className="relative h-32 w-full overflow-hidden"> <div className="relative h-32 w-full overflow-hidden">
<Link href={`/dashboard/${space.id}/documents`} key={space.id}> <Link href={`/dashboard/${space.id}/documents`} key={space.id}>
<Image <Image
@ -337,15 +337,15 @@ const DashboardPage = () => {
</div> </div>
</div> </div>
</div> </div>
<Link href={`/dashboard/${space.id}/documents`} key={space.id}> <Link className="flex flex-1 flex-col p-4 cursor-pointer" href={`/dashboard/${space.id}/documents`} key={space.id}>
<div className="flex flex-1 flex-col justify-between p-4"> <div className="flex flex-1 flex-col justify-between p-1">
<div> <div>
<h3 className="font-medium text-lg">{space.name}</h3> <h3 className="font-medium text-lg">{space.name}</h3>
<p className="mt-1 text-sm text-muted-foreground"> <p className="mt-1 text-sm text-muted-foreground">
{space.description} {space.description}
</p> </p>
</div> </div>
<div className="mt-4 flex justify-between text-xs text-muted-foreground"> <div className="mt-4 text-xs text-muted-foreground">
{/* <span>{space.title}</span> */} {/* <span>{space.title}</span> */}
<span> <span>
{t("created")} {formatDate(space.created_at)} {t("created")} {formatDate(space.created_at)}

View file

@ -590,11 +590,7 @@ const LLMSelector = React.memo(() => {
</p> </p>
</div> </div>
</div> </div>
{preferences.fast_llm_id === config.id && (
<div className="flex h-5 w-5 items-center justify-center rounded-full bg-primary ml-2 flex-shrink-0">
<Check className="h-3 w-3 text-primary-foreground" />
</div>
)}
</div> </div>
</SelectItem> </SelectItem>
))} ))}

View file

@ -77,9 +77,15 @@ export default function TerminalDisplay({ message, open }: { message: Message; o
</div> </div>
</Button> </Button>
{/* Terminal Content */} {/* Terminal Content (animated expand/collapse) */}
{!isCollapsed && ( <div
<div ref={bottomRef} className="h-64 overflow-y-auto p-4 space-y-1 bg-gray-900"> className={`overflow-hidden bg-gray-900 transition-[max-height,opacity] duration-300 ease-in-out ${
isCollapsed ? "max-h-0 opacity-0" : "max-h-64 opacity-100"
}`}
style={{ maxHeight: isCollapsed ? "0px" : "16rem" }}
aria-hidden={isCollapsed}
>
<div ref={bottomRef} className="h-64 overflow-y-auto p-4 space-y-1">
{events.map((event, index) => ( {events.map((event, index) => (
<div key={`${event.id}-${index}`} className="text-green-400"> <div key={`${event.id}-${index}`} className="text-green-400">
<span className="text-blue-400">$</span> <span className="text-blue-400">$</span>
@ -93,7 +99,7 @@ export default function TerminalDisplay({ message, open }: { message: Message; o
<div className="text-gray-500 italic">No agent events to display...</div> <div className="text-gray-500 italic">No agent events to display...</div>
)} )}
</div> </div>
)} </div>
</div> </div>
); );
} }

View file

@ -1,5 +1,8 @@
"use client"; "use client";
import Link from "next/link";
import Image from "next/image";
import { import {
AlertCircle, AlertCircle,
BookOpen, BookOpen,
@ -33,6 +36,7 @@ import {
SidebarMenuItem, SidebarMenuItem,
} from "@/components/ui/sidebar"; } from "@/components/ui/sidebar";
// Map of icon names to their components // Map of icon names to their components
export const iconMap: Record<string, LucideIcon> = { export const iconMap: Record<string, LucideIcon> = {
BookOpen, BookOpen,
@ -213,16 +217,22 @@ export const AppSidebar = memo(function AppSidebar({
<SidebarHeader> <SidebarHeader>
<SidebarMenu> <SidebarMenu>
<SidebarMenuItem> <SidebarMenuItem>
<SidebarMenuButton size="lg" asChild aria-label="Go to home page"> <SidebarMenuButton asChild size="lg">
<div> <Link href="/" className="flex items-center gap-2 w-full">
<div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg"> <div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
<Logo className="rounded-lg" /> <Image
</div> src="/icon-128.png"
<div className="grid flex-1 text-left text-sm leading-tight"> alt="SurfSense logo"
<span className="truncate font-medium">SurfSense</span> width={32}
<span className="truncate text-xs">beta v0.0.8</span> height={32}
</div> className="rounded-lg"
/>
</div> </div>
<div className="grid flex-1 text-left text-sm leading-tight">
<span className="truncate font-medium">SurfSense</span>
<span className="truncate text-xs">beta v0.0.8</span>
</div>
</Link>
</SidebarMenuButton> </SidebarMenuButton>
</SidebarMenuItem> </SidebarMenuItem>
</SidebarMenu> </SidebarMenu>