refactor: migrate session, script-builder, account to Design System v4
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,11 +7,11 @@ interface SharedSessionTreePreviewProps {
|
||||
}
|
||||
|
||||
const nodeTypeColors: Record<string, string> = {
|
||||
root: 'bg-foreground',
|
||||
root: 'bg-[#e2e5eb]',
|
||||
decision: 'bg-blue-400',
|
||||
action: 'bg-yellow-400',
|
||||
solution: 'bg-emerald-400',
|
||||
information: 'bg-muted-foreground',
|
||||
information: 'bg-[#848b9b]',
|
||||
}
|
||||
|
||||
function getNodeTitle(node: Record<string, unknown>): string {
|
||||
@@ -36,7 +36,7 @@ function TreeNode({
|
||||
const nodeType = (node.node_type as string) || 'decision'
|
||||
const isInPath = pathTaken.includes(nodeId)
|
||||
const children = (node.children as Record<string, unknown>[]) || []
|
||||
const colorClass = nodeTypeColors[nodeType] || 'bg-muted-foreground'
|
||||
const colorClass = nodeTypeColors[nodeType] || 'bg-[#848b9b]'
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -44,8 +44,8 @@ function TreeNode({
|
||||
className={cn(
|
||||
'flex items-center gap-2 px-3 py-1.5 text-sm',
|
||||
isInPath
|
||||
? 'rounded-md border-l-2 border-muted-foreground bg-accent font-medium text-foreground'
|
||||
: 'text-muted-foreground'
|
||||
? 'rounded-md border-l-2 border-muted-foreground bg-accent font-medium text-[#e2e5eb]'
|
||||
: 'text-[#848b9b]'
|
||||
)}
|
||||
style={{ paddingLeft: `${depth * 16 + 12}px` }}
|
||||
>
|
||||
@@ -75,9 +75,9 @@ export function SharedSessionTreePreview({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="bg-card border border-border rounded-2xl">
|
||||
<div className="sticky top-0 z-10 rounded-t-2xl border-b border-border bg-black/80 px-6 py-4 backdrop-blur-sm">
|
||||
<h3 className="text-sm font-semibold text-foreground">Tree Structure</h3>
|
||||
<div className="bg-[#14161d] border border-[#1e2130] rounded-lg">
|
||||
<div className="sticky top-0 z-10 rounded-t-2xl border-b border-[#1e2130] bg-black/80 px-6 py-4 ">
|
||||
<h3 className="text-sm font-semibold text-[#e2e5eb]">Tree Structure</h3>
|
||||
</div>
|
||||
<div className="max-h-[600px] overflow-y-auto py-2">
|
||||
<TreeNode node={treeStructure as unknown as Record<string, unknown>} depth={0} pathTaken={pathTaken} />
|
||||
|
||||
Reference in New Issue
Block a user