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 && ( +
+ +
+ )}
) }