From 443e8e157a131812ace7fbbb3408c584e94d2b82 Mon Sep 17 00:00:00 2001 From: Vivek R <123vivekr@gmail.com> Date: Wed, 2 Jul 2025 19:35:38 +0530 Subject: [PATCH] feat: enhance timeline UI with slide-in animation and improved layout - Add slide-in animation for timeline panel using framer-motion - Implement responsive layout adjustments when timeline is open - Add close button (X icon) to timeline header for better UX - Wrap timeline in AnimatePresence for smooth enter/exit transitions - Adjust main content and floating prompt input positioning when timeline is visible - Improve timeline visual hierarchy with proper header and content sections - Add spring animation with damping for smooth timeline panel transitions --- src/components/ClaudeCodeSession.tsx | 83 ++++++++++++++++++++-------- 1 file changed, 60 insertions(+), 23 deletions(-) diff --git a/src/components/ClaudeCodeSession.tsx b/src/components/ClaudeCodeSession.tsx index 67a5b20..cd7f906 100644 --- a/src/components/ClaudeCodeSession.tsx +++ b/src/components/ClaudeCodeSession.tsx @@ -9,7 +9,8 @@ import { ChevronDown, GitBranch, Settings, - Globe + Globe, + X } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -971,7 +972,10 @@ export const ClaudeCodeSession: React.FC = ({ {/* Main Content Area */} -
+
{showPreview ? ( // Split pane layout when preview is active = ({
{/* Floating Prompt Input - Always visible */} - - - +
+ + + +
{/* Timeline */} - {showTimeline && effectiveSession && ( - - )} + + {showTimeline && effectiveSession && ( + +
+ {/* Timeline Header */} +
+

Session Timeline

+ +
+ + {/* Timeline Content */} +
+ +
+
+
+ )} +
{/* Fork Dialog */}