From 23916764255dcd8c87c9f7f7438f0b2e103d5ab8 Mon Sep 17 00:00:00 2001 From: Mahesh Sanikommmu Date: Mon, 22 Dec 2025 23:32:14 -0800 Subject: [PATCH] added stash changes --- apps/web/app/onboarding/page.tsx | 2 +- apps/web/components/mcp-detail-view.tsx | 5 +- .../new/document-modal/content/yt-video.tsx | 89 +++++++++++++++++++ .../components/new/document-modal/index.tsx | 4 + .../components/x-bookmarks-detail-view.tsx | 2 +- 5 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 apps/web/components/new/document-modal/content/yt-video.tsx diff --git a/apps/web/app/onboarding/page.tsx b/apps/web/app/onboarding/page.tsx index b90898ec..f3d8a769 100644 --- a/apps/web/app/onboarding/page.tsx +++ b/apps/web/app/onboarding/page.tsx @@ -33,7 +33,7 @@ function UserSupermemory({ name }: { name: string }) { >
-

+

{name.split(" ")[0]}'s

diff --git a/apps/web/components/mcp-detail-view.tsx b/apps/web/components/mcp-detail-view.tsx index 4cd98c58..adaddf6f 100644 --- a/apps/web/components/mcp-detail-view.tsx +++ b/apps/web/components/mcp-detail-view.tsx @@ -152,6 +152,7 @@ export function MCPDetailView({ onBack }: MCPDetailViewProps) { disabled={!selectedClient} > ) : ( <> - + Copy )} @@ -563,6 +565,7 @@ export function MCPDetailView({ onBack }: MCPDetailViewProps) { )} > (null) + const [loading, setLoading] = useState(true) + const [error, setError] = useState(null) + + useEffect(() => { + if (!url) { + setError("No YouTube URL provided") + setLoading(false) + return + } + + const id = extractVideoId(url) + if (!id) { + setError("Invalid YouTube URL format") + setLoading(false) + return + } + + setVideoId(id) + setLoading(false) + setError(null) + }, [url]) + + if (!url) { + return ( +

+ No YouTube URL provided +
+ ) + } + + if (loading) { + return ( +
+ Loading video... +
+ ) + } + + if (error || !videoId) { + return ( +
+ Error: {error || "Failed to extract video ID"} +
+ ) + } + + return ( +
+
+