supermemory/apps/web/components/memory-graph
Mahesh Sanikommu 14e688087d feat(graph): auto-paginate consumer graph + loading progress chip
Accounts with more than 100 documents previously only saw the newest
100 in the memory graph until they manually zoomed out (and even then,
only one extra page per zoom). For users with thousands of documents
this made the graph appear nearly empty.

Adds an opt-in `autoFetchAll` flag to `useGraphApi` that chains
`fetchNextPage()` until every page is loaded, and renders a top-right
progress chip ("X memories - Y/Z documents") with a spinner while pages
stream in. The chip self-hides on completion. Only the consumer
GraphLayoutView opts in; modal and chat-rail variants remain scoped to
their existing single-page behaviour.

This is a stopgap for high-memory users. A proper server-side
sampling/clustering endpoint is needed to scale past tens of thousands
of nodes and will be tracked separately.
2026-05-18 10:06:07 -07:00
..
hooks feat(graph): auto-paginate consumer graph + loading progress chip 2026-05-18 10:06:07 -07:00
graph-card.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
index.ts Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
memory-graph-wrapper.tsx feat(graph): auto-paginate consumer graph + loading progress chip 2026-05-18 10:06:07 -07:00