From 7418abbe8dd0f1790c6a7c3a809a71fbef92f67a Mon Sep 17 00:00:00 2001 From: ishaanxgupta <124028055+ishaanxgupta@users.noreply.github.com> Date: Tue, 9 Jun 2026 17:39:35 +0000 Subject: [PATCH] memory graph loader (#1072) ## Summary - Replace the memory graph page's top-left package loading indicator with a centered Supermemory loader overlay. - Reuse the same SuperLoader animation in the graph preview card loading state. --- .../web/components/memory-graph/graph-card.tsx | 8 +++++++- .../memory-graph/memory-graph-wrapper.tsx | 18 +++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/apps/web/components/memory-graph/graph-card.tsx b/apps/web/components/memory-graph/graph-card.tsx index 0269aab8..de8bed3d 100644 --- a/apps/web/components/memory-graph/graph-card.tsx +++ b/apps/web/components/memory-graph/graph-card.tsx @@ -4,6 +4,7 @@ import { memo, useMemo } from "react" import { cn } from "@lib/utils" import { dmSansClassName } from "@/lib/fonts" import { Expand } from "lucide-react" +import { SuperLoader } from "@/components/superloader" import { useGraphApi } from "./hooks/use-graph-api" import { useViewMode } from "@/lib/view-mode-context" @@ -157,7 +158,12 @@ export const GraphCard = memo(
{isLoading ? (
-
+
) : documentCount > 0 || memoryCount > 0 ? ( loadMore() : undefined} + isLoading={false} + isLoadingMore={false} + onLoadMore={hasMore && !isLoadingMore ? () => loadMore() : undefined} hasMore={hasMore} error={externalError || apiError} variant={variant} @@ -70,6 +72,16 @@ export function MemoryGraph({ > {children} + {isInitialLoading && ( +
+ +
+ )}
) }