supermemory/packages/lib
sohamd22 9017a1b5d4 add weekly digests, log, and opt out options (#1107)
### TL;DR

Adds a Weekly Digests view to the web app, allowing users to browse and read their personalized weekly memory recaps directly in the UI, along with a notification preference toggle to opt out of digest emails.

### What changed?

- Added a new `digests` view mode that renders a `DigestsView` component, accessible from the dashboard via a new weekly digest preview card that appears when a digest exists.
- `DigestsView` displays a master-detail layout: a scrollable list of past weekly digests on the left, and a full digest content pane on the right. The detail pane renders the intro (with a floating brain illustration), numbered highlights, and feature recommendations styled to mirror the email layout.
- Added thumbs-up/thumbs-down feedback controls and an optional free-text input on each digest, wired to analytics events.
- Added `useDigests` and `useDigest` hooks that fetch digest list and detail data from the API, with 5- and 10-minute stale times respectively.
- Registered four new API schema endpoints: `GET /digests`, `GET /digests/:id`, `GET /digests/preferences`, and `POST /digests/preferences`.
- Added a `DigestPreferences` section to the account settings page with a toggle that lets users opt in or out of the weekly digest email.
- Extended the `viewModeChanged` analytics event and the `viewLiterals` search param list to include `"digests"`, and added `digestViewed`, `digestFeedback`, and `digestFeedbackDetail` analytics events.
- Added documentation for the `SUPERMEMORY_EMBEDDING_RAM_LIMIT` and `SUPERMEMORY_INGEST_CONCURRENCY` environment variables, explaining the memory-bounded ingestion queue and its live terminal status output.

### How to test?

1. Navigate to the dashboard and confirm the weekly digest preview card appears when a digest exists, and clicking it transitions to the `digests` view.
2. In the digests view, verify the list renders past digests with the most recent highlighted by a gradient border, and selecting a row loads the correct detail content.
3. Confirm the empty state renders correctly when no digests exist.
4. Use the thumbs-up/thumbs-down buttons and the detailed feedback textarea on a digest, verifying the toast confirmation appears on submission.
5. Open account settings, locate the "Notifications" section, and toggle the weekly digest switch on and off, verifying the preference persists without errors.
6. Confirm the `digests` view mode is reflected in the URL search params when active.

### Why make this change?

Users currently receive weekly digest emails but have no way to revisit past digests within the app. This change surfaces digest history directly in the UI, adds in-product feedback collection on digest quality, and gives users control over whether they receive the emails — improving discoverability, engagement, and preference management.
2026-06-18 01:06:40 +00:00
..
api.ts add weekly digests, log, and opt out options (#1107) 2026-06-18 01:06:40 +00:00
auth-context.tsx fix mcp consent org restore (#1126) 2026-06-16 21:19:06 +00:00
auth.middleware.ts New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
auth.ts feat: add X-App-Source header to Nova + remove notify checkbox (#926) 2026-05-11 13:11:04 -07:00
constants.ts chore(integrations): update Poke recipe URL to supermemory.link/poke (#1074) 2026-06-09 18:16:36 +00:00
error-tracking.tsx feat: optional posthog intialization (#525) 2025-10-27 16:10:15 -07:00
generate-id.ts New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
glass-effect-manager.ts New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
package.json 😭 fixing builds (#767) 2026-03-05 19:26:05 -08:00
posthog.tsx proper tracking 2026-03-05 08:29:26 -08:00
queries.ts feat(billing): add Max plan to nova with cancel/resume flow (#1024) 2026-05-31 19:10:17 +00:00
query-client.tsx New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
similarity.ts New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
tsconfig.json New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
types.ts feat: change "All Spaces" to "Nova Spaces" with multi-select support (#731) 2026-02-13 21:34:58 +00:00
utils.ts New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00