From a6bcd03576dc956615c2cab24099bdbf9ed3372f Mon Sep 17 00:00:00 2001 From: Xenon010101 Date: Fri, 5 Jun 2026 01:32:57 +0530 Subject: [PATCH] fix: show error toast when deep-link repo fails to load (#1003) --- client/src/module/student/opensource/RepoDiscoveryPage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/module/student/opensource/RepoDiscoveryPage.tsx b/client/src/module/student/opensource/RepoDiscoveryPage.tsx index f1c35e2cc..8b93dbc14 100644 --- a/client/src/module/student/opensource/RepoDiscoveryPage.tsx +++ b/client/src/module/student/opensource/RepoDiscoveryPage.tsx @@ -28,6 +28,7 @@ import api from "../../../lib/axios"; import { useCopyToClipboard } from "../../../hooks/useCopyToClipboard"; import { queryKeys } from "../../../lib/query-keys"; import { SEO } from "../../../components/SEO"; +import toast from "../../../components/ui/toast"; import { canonicalUrl } from "../../../lib/seo.utils"; import { PaginationControls } from "../../../components/ui/PaginationControls"; import type { OpenSourceRepo, Pagination, RepoRequest } from "../../../lib/types"; @@ -206,6 +207,7 @@ export default function RepoDiscoveryPage() { useEffect(() => { if (deepLinkError) { + toast.error("Could not load the linked repository. It may not exist or has been removed."); setSearchParams((prev) => { const params = new URLSearchParams(prev); params.delete("repo");