From 21e7f600be374b8e97408407094134543a30a855 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Wed, 11 Mar 2026 02:02:05 +0530 Subject: [PATCH] feat: enhance RightPanel and LayoutShell components with improved animations and layout handling; integrate motion effects for smoother transitions --- .../layout/ui/right-panel/RightPanel.tsx | 105 +++++++++--------- .../layout/ui/shell/LayoutShell.tsx | 5 +- 2 files changed, 56 insertions(+), 54 deletions(-) diff --git a/surfsense_web/components/layout/ui/right-panel/RightPanel.tsx b/surfsense_web/components/layout/ui/right-panel/RightPanel.tsx index aea9e2836..232518ba7 100644 --- a/surfsense_web/components/layout/ui/right-panel/RightPanel.tsx +++ b/surfsense_web/components/layout/ui/right-panel/RightPanel.tsx @@ -3,7 +3,7 @@ import { useAtom, useAtomValue, useSetAtom } from "jotai"; import { PanelRight, PanelRightClose } from "lucide-react"; import { AnimatePresence, motion } from "motion/react"; -import { useEffect } from "react"; +import { startTransition, useEffect } from "react"; import { closeReportPanelAtom, reportPanelAtom } from "@/atoms/chat/report-panel.atom"; import { documentsSidebarOpenAtom } from "@/atoms/documents/ui.atoms"; import { rightPanelCollapsedAtom, rightPanelTabAtom } from "@/atoms/layout/right-panel.atom"; @@ -54,8 +54,8 @@ export function RightPanelExpandButton() {