remove "building graph" loading screen

This commit is contained in:
tusharmagar 2026-04-02 09:30:48 +05:30
parent 1dd622449e
commit 0b9698b0da
2 changed files with 4 additions and 13 deletions

View file

@ -4141,7 +4141,7 @@ function App() {
<GraphView
nodes={graphData.nodes}
edges={graphData.edges}
isLoading={graphStatus === 'loading'}
isLoading={false}
error={graphStatus === 'error' ? (graphError ?? 'Failed to build graph') : null}
onSelectNode={(path) => {
navigateToFile(path)

View file

@ -1,6 +1,6 @@
import type * as React from 'react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Loader2, Search, X } from 'lucide-react'
import { Search, X } from 'lucide-react'
import { Input } from '@/components/ui/input'
export type GraphNode = {
@ -456,22 +456,13 @@ export function GraphView({ nodes, edges, isLoading, error, onSelectNode }: Grap
return (
<div ref={containerRef} className="graph-view relative h-full w-full">
{isLoading ? (
<div className="absolute inset-0 z-10 flex items-center justify-center bg-background/70 backdrop-blur-sm">
<div className="flex items-center gap-2 text-sm text-muted-foreground">
<Loader2 className="size-4 animate-spin" />
<span>Building graph</span>
</div>
</div>
) : null}
{error ? (
{error ? (
<div className="absolute inset-0 z-10 flex items-center justify-center text-sm text-destructive">
{error}
</div>
) : null}
{!isLoading && !error && nodes.length === 0 ? (
{!error && nodes.length === 0 ? (
<div className="absolute inset-0 flex items-center justify-center text-sm text-muted-foreground">
No notes found.
</div>