MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / RenderProgress

Function RenderProgress

graph-ui/src/galaxy/RenderProgress.tsx:10–23  ·  view source on GitHub ↗
({ busy, label = 'Updating view…' }: RenderProgressProps)

Source from the content-addressed store, hash-verified

8
9/** Slow updates get feedback; fast updates leave the graph undisturbed. */
10export default function RenderProgress({ busy, label = 'Updating view…' }: RenderProgressProps) {
11 const [visible, setVisible] = useState(false);
12 useEffect(() => {
13 if (!busy) { setVisible(false); return; }
14 const timer = window.setTimeout(() => setVisible(true), 300);
15 return () => window.clearTimeout(timer);
16 }, [busy]);
17
18 if (!busy || !visible) return null;
19 return <div className="atlas-graph-render-progress" role="status" aria-live="polite" aria-atomic="true">
20 <span className="atlas-graph-render-spinner" aria-hidden="true" />
21 <span>{label}</span>
22 </div>;
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected