diff --git a/packages/extension/src/entrypoints/sidepanel/components/cards/index.tsx b/packages/extension/src/entrypoints/sidepanel/components/cards/index.tsx index 569120c..1070e9f 100644 --- a/packages/extension/src/entrypoints/sidepanel/components/cards/index.tsx +++ b/packages/extension/src/entrypoints/sidepanel/components/cards/index.tsx @@ -11,7 +11,7 @@ import { XCircle, Zap, } from 'lucide-react' -import { Fragment } from 'react/jsx-runtime' +import { Fragment, useState } from 'react' import { cn } from '@/lib/utils' import { AgentActivity, HistoricalEvent } from '@/messaging' @@ -54,6 +54,26 @@ function ResultCard({ ) } +// Single reflection item with truncation +function ReflectionItem({ icon, value }: { icon: string; value: string }) { + const [expanded, setExpanded] = useState(false) + + return ( + + {icon} + setExpanded(!expanded)} + > + {value} + + + ) +} + // Reflection section in step card function ReflectionSection({ reflection, @@ -79,10 +99,7 @@ function ReflectionSection({
{items.map((item) => ( - - {item.icon} - {item.value} - + ))}