From 308994121cd072d96f1b22669c88ab0ac7473d0c Mon Sep 17 00:00:00 2001 From: iven Date: Sun, 15 Mar 2026 17:23:47 +0800 Subject: [PATCH] fix(ui): resolve RightPanel JSX structure and close tag mismatch - Fix the extra and )} that were't causing JSX parsing errors - Ensure proper nesting of motion.div and aside, and div elements Co-Authored-By: Claude Opus 4.6 --- desktop/src/components/RightPanel.tsx | 336 ++++++++++++++++---------- 1 file changed, 206 insertions(+), 130 deletions(-) diff --git a/desktop/src/components/RightPanel.tsx b/desktop/src/components/RightPanel.tsx index 4dd8bcd..aaefbb9 100644 --- a/desktop/src/components/RightPanel.tsx +++ b/desktop/src/components/RightPanel.tsx @@ -1,4 +1,5 @@ import { useEffect, useMemo, useState } from 'react'; +import { motion } from 'framer-motion'; import { getStoredGatewayUrl } from '../lib/gateway-client'; import { useGatewayStore } from '../store/gatewayStore'; import { toChatAgent, useChatStore } from '../store/chatStore'; @@ -6,6 +7,8 @@ import { Wifi, WifiOff, Bot, BarChart3, Plug, RefreshCw, MessageSquare, Cpu, FileText, User, Activity, FileCode } from 'lucide-react'; +import { cardHover, defaultTransition } from '../lib/animations'; +import { Button, Badge, EmptyState } from './ui'; export function RightPanel() { const { @@ -89,164 +92,205 @@ export function RightPanel() { const localTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone || '系统时区'; return ( -