From 789e428d16838fede811fc758f42ae16ec070442 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Thu, 28 Aug 2025 17:08:38 +0000 Subject: [PATCH] Add search functionality to recommended videos sidebar Integrate a search input and filtering logic into the VideoPage component to allow users to search within the recommended videos section. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d7424866-83d1-4486-a212-ac12b4c7becf Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/d7424866-83d1-4486-a212-ac12b4c7becf/qHixa60 --- client/src/pages/VideoPage.tsx | 43 ++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 1375b57..45a2d0c 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -31,7 +31,8 @@ const formatDate = (date: Date | string): string => { }); }; import { Button } from "@/components/ui/button"; -import { Share2, X, Edit3 } from "lucide-react"; +import { Input } from "@/components/ui/input"; +import { Share2, X, Edit3, Search } from "lucide-react"; import { apiRequest } from "@/lib/queryClient"; import { FacebookShareButton, @@ -52,6 +53,7 @@ export default function VideoPage() { const [, params] = useRoute("/video/:id"); const videoId = params?.id; const [showShareMenu, setShowShareMenu] = useState(false); + const [sidebarSearchQuery, setSidebarSearchQuery] = useState(""); // Fetch current video const { data: currentVideo, isLoading: videoLoading } = useQuery