supermemory/apps/web
abhay-codes07 ee1d50b13d
fix(web): register the drifted document endpoints in the api contract
The endpoint map and validation schemas have fallen behind what the
web app actually exchanges with the API:

- the memories grid and the X-bookmarks status query filter
  @post/documents/documents by `categories`, a field
  DocumentsWithMemoriesQuerySchema doesn't declare — both smuggle it
  past client validation with disableValidation, and any future caller
  that forgets the flag gets the key silently stripped and a filter
  that no-ops
- @post/documents/documents/facets was never registered:
  DocumentFacetsQuerySchema sits unused in the validation package
  while the grid calls the endpoint as an untyped raw URL and
  hand-casts the response
- @patch/documents/:id was never registered even though
  MemoryUpdateSchema exists for exactly this pairing; the
  document-edit and file-metadata mutations PATCH via template-literal
  URLs with no request/response typing

Add `categories` to the documents query schema, introduce
DocumentFacetSchema/DocumentFacetsResponseSchema (total optional — the
UI already guards its absence) and register the facets endpoint with
the previously-dead query schema, register @patch/documents/:id with
MemoryUpdateSchema/MemoryResponseSchema/params, and convert both PATCH
call sites to the typed route.

The existing disableValidation flags are deliberately left in place:
every current caller of @post/documents/documents sets one, so output
validation has never been exercised against production responses;
removing them is a follow-up that needs verification against the live
API. With the schemas now truthful, that cleanup becomes mechanical.

Tested: bun test in packages/validation (12 pass, 4 new), tsc --noEmit
on packages/validation, bun test + bun run build in apps/web, biome
clean on all touched files.
2026-07-13 17:48:31 +05:30
..
app fix(web): use backend URL fallback for direct fetches (#1212) 2026-07-10 20:02:24 -07:00
components fix(web): use backend URL fallback for direct fetches (#1212) 2026-07-10 20:02:24 -07:00
hooks fix(web): register the drifted document endpoints in the api contract 2026-07-13 17:48:31 +05:30
lib fix(web): use backend URL fallback for direct fetches (#1212) 2026-07-10 20:02:24 -07:00
public add weekly digests, log, and opt out options (#1107) 2026-06-18 01:06:40 +00:00
stores feat(web): company brain entitlement helper, hook + ?org deep-link activation (#1110) 2026-06-22 17:54:13 +00:00
.env.example feat: deep-research on user profile and tiptap integration (#672) 2026-01-15 21:53:53 +00:00
.gitignore sentry sourcemaps 2025-08-23 09:55:40 -07:00
biome.json feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
components.json New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
globals.css Grok 4.3, web sources UX, and mobile polish (#1064) 2026-06-08 12:34:15 +05:30
instrumentation-client.ts feat: warning when model is unavailable in the region (#814) 2026-03-28 05:52:41 +00:00
middleware.ts fix(web): bypass auth proxy for local dev (#1213) 2026-07-10 20:11:48 -07:00
next.config.ts Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
open-next.config.ts feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
package.json chore(web): remove unused @lobbyside/react integration (#1156) 2026-06-23 10:00:59 -07:00
postcss.config.mjs feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
README.md New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
tsconfig.json fix 2026-02-09 22:07:09 -08:00
wrangler.jsonc feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00

supermemory Consumer