Improve chat navigation, model selection, and streaming

This commit is contained in:
Rami Bitar
2026-09-16 13:14:55 -04:00
parent 8790cfb1e2
commit dd04493e25
73 changed files with 1272 additions and 1367 deletions
+9 -9
View File
@@ -9,11 +9,11 @@ import {
} from "@/components/ui/collapsible";
import { cn } from "@/lib/utils";
import {
BrainIcon,
ChevronDownIcon,
DotIcon,
type LucideIcon,
} from "lucide-react";
RiBrainLine,
RiArrowDownSLine,
RiCircleFill,
type RemixiconComponentType,
} from "@remixicon/react";
import type { ComponentProps, ReactNode } from "react";
import { createContext, memo, useContext, useMemo } from "react";
@@ -92,11 +92,11 @@ export const ChainOfThoughtHeader = memo(
)}
{...props}
>
<BrainIcon className="size-4" />
<RiBrainLine className="size-4" />
<span className="flex-1 text-left">
{children ?? "Chain of Thought"}
</span>
<ChevronDownIcon
<RiArrowDownSLine
className={cn(
"size-4 transition-transform",
isOpen ? "rotate-180" : "rotate-0"
@@ -109,7 +109,7 @@ export const ChainOfThoughtHeader = memo(
);
export type ChainOfThoughtStepProps = ComponentProps<"div"> & {
icon?: LucideIcon;
icon?: RemixiconComponentType;
label: ReactNode;
description?: ReactNode;
status?: "complete" | "active" | "pending";
@@ -118,7 +118,7 @@ export type ChainOfThoughtStepProps = ComponentProps<"div"> & {
export const ChainOfThoughtStep = memo(
({
className,
icon: Icon = DotIcon,
icon: Icon = RiCircleFill,
label,
description,
status = "complete",