Commit graph

13 commits

Author SHA1 Message Date
Abhijeet Sharma
8d3f7ac8d6 fix(docs): correct stale @supermemory/memory-graph API references
apps/docs/integrations/memory-graph.mdx and apps/memory-graph-playground/README.md
documented an older version of the @supermemory/memory-graph public API. Following
the Quick Start, Props Reference, or Exports section as written produced code that
either fails to type-check or silently drops props the component no longer has.

Verified against packages/memory-graph/src/{index.tsx,types.ts,api-types.ts,mock-data.ts,
constants.ts} and cross-checked the API normalization logic against two independent
real call sites: apps/web/components/memory-graph/hooks/use-graph-api.ts and
apps/memory-graph-playground/src/app/page.tsx.

- Exports section listed Legend, NodeDetailPanel, SpacesDropdown, useGraphInteractions,
  colors, LAYOUT_CONSTANTS - none of these are actually exported. Corrected to the
  real exports and added the previously-undocumented ./mock-data subpath.
- All examples used loadMoreDocuments/totalLoaded/selectedSpace/onSpaceChange/
  showSpacesSelector, none of which exist on MemoryGraphProps. Corrected to
  onLoadMore/totalCount and removed the Controlled Space Selection example
  (that feature no longer exists on the component).
- documents was typed as DocumentWithMemories[] with a fabricated shape; the real
  prop type is GraphApiDocument[]. Added a toGraphDocument mapping example grounded
  in the real production code that talks to /v3/documents/documents.
- Rewrote Props Reference and Data Types to match the real MemoryGraphProps and
  GraphApiDocument/GraphApiMemory interfaces field-for-field, including several
  real props that weren't documented at all before.
- Removed the false 'space selector visible/hidden' claim from the Variants section
  (no such component exists anywhere in packages/memory-graph/src); kept the 0.8x/0.5x
  zoom figures, which checked out against constants.ts.
- Made the Pages Router and Express tabs in Backend API Route self-contained (each
  defines its own toGraphDocument mapping) instead of depending on code shown only
  in the App Router tab, since CodeGroup tabs are alternatives a reader copies
  individually.
- Applied the identical corrections to apps/memory-graph-playground/README.md,
  which had the same drift independently.

Address Graphite automated review feedback:
- Set the content field in all three toGraphDocument mappings (was a valid but
  unpopulated field on GraphApiMemory). Confirmed via use-graph-data.ts that it's
  inert for rendering (always overwritten with mem.memory before draw), so this
  wasn't visible data loss, but it's a free fix that matches the type exactly.
- Replaced the (data.documents as RawDocument[]) cast with a proper
  RawDocumentsResponse type annotation on data in the App Router and Pages Router
  tabs, per the custom TypeScript style rule Graphite flagged. Implemented what
  the comment's prose described rather than its literal suggested diff, which
  would have just deleted the cast and left data as any.

Docs-only change, no .ts/.tsx files touched. This repo's biome.json has no
Markdown/MDX support configured, so format-lint doesn't apply here; checked
fence and MDX-component balance by hand instead (34 fence lines, all CodeGroup/
Note/Warning/Card tags balanced 1:1).
2026-08-05 21:25:01 +05:30
@aaronjmars
377bc979d5
fix(deps): bump next to 16.0.7 in memory-graph-playground (critical CVE) (#1082)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-06-16 21:10:32 -07:00
Dhravya Shah
053baa5029
Improve memory graph (#973)
Co-authored-by: Ishaan Gupta <ishaankone@gmail.com>
2026-06-05 15:48:41 -07:00
Dhravya Shah
19d51e4b2a use portless 2026-05-06 22:42:34 -07:00
vorflux[bot]
851b8cfe86
Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809)
Co-authored-by: Vorflux AI <noreply@vorflux.com>
2026-03-28 19:06:27 -07:00
Dhravya Shah
bdd1f36f1d one more try 2026-03-05 14:30:57 -08:00
Dhravya Shah
b1d545c4ba fix: 2026-03-05 14:24:50 -08:00
nexxeln
5dd358a939 graph frontend (#713) 2026-02-09 07:02:20 +00:00
MaheshtheDev
1423bd7004 feat: mobile responsive, lint formats, toast, render issue fix (#688)
- Mobile responsive
- new toast design
- web document render issue fix
- posthog analytics
- ui improvements
2026-01-21 03:11:53 +00:00
Mahesh Sanikommu
645f89310c
PR: nova alpha release (#670)
Co-authored-by: Dhravya Shah <dhravya@supermemory.com>
2026-01-13 00:54:56 -08:00
Vidya Rupak
d93ffbb93f
MemoryGraph - revamped (#627) 2025-12-29 00:32:26 +05:30
nexxeln
dfb0c05ab3 add spaces selector with search (#600)
relevant files to review:
\- memory-graph.tsx
\- spaces-dropdown.tsx
\- spaces-dropdown.css.ts
2025-12-02 18:37:24 +00:00
nexxeln
895f37ac89 runtime styles injection + let user proxy requests for data in graph package + new playground (#588) 2025-11-22 07:04:05 +00:00