supermemory/apps/web/hooks
vorflux 8071a7b085 Add Nova workspace prompt settings (#1323)
Adds a dedicated Workspace Prompt editor for Company Brain organizations while preserving the existing Organization Context ingestion-filter controls for every organization manager.

## Changes

- Keeps Organization Context byte-for-byte unchanged and available independently to all organization managers.
- Adds Workspace Prompt as a separate Company-Brain-only section below it, using the established settings styling and contextual divider.
- Describes Workspace Prompt as persistent guidance that can shape operating preferences, priorities, source/tool choices, workflows, terminology, formatting, and communication style.
- Adds nullable, 1,500-character `workspacePrompt` support to shared request, GET response, and PATCH response contracts.
- Aligns PATCH validation with the real `{ orgId, orgSlug, updated }` API response.
- Merges canonical `updated` settings into the submitting organization’s cache, then exactly refetches that organization.
- Preserves drafts during background refetches, isolates organization switches, retains actionable errors, accessibility, empty `filterPrompt` compatibility, and `X-App-Source: nova`.

## Testing

- Passed focused Biome checks on all changed files.
- Passed `packages/lib` and `packages/validation` TypeScript checks.
- Verified GET/PATCH settings response contracts, partial/null/limit validation, canonical cache merge, and exact organization-bound invalidation.
- Verified Organization Context remains unchanged and Workspace Prompt is separately Company-Brain/manager-gated.
- Confirmed no remaining Workspace Persona identifiers.
- Public preview returns HTTP 200; authenticated settings interactions remain unavailable without a saved OAuth session.
- Full web type-check remains blocked by unrelated baseline diagnostics; none reference changed files.
- No dedicated tests were added, per requester instruction.

---
**Session Details**
- Session: [View Session](https://supermemory.us1.vorflux.com/agent-sessions/7544b72b-aeca-48e2-81c3-514df21cd081)
- Requested by: Soham Daga (soham@supermemory.com)
- Address comments on this PR. Add `(aside)` to your comment to have me ignore it.
2026-07-29 21:13:59 +00:00
..
use-account-settings.ts fix(web): stabilize home recents and improve org plan switcher (#967) 2026-05-18 19:36:44 +00:00
use-brain-models.ts feat(web): configure Company Brain reasoning effort (#1307) 2026-07-18 19:12:45 +00:00
use-company-brain.ts feat(web): company brain entitlement helper, hook + ?org deep-link activation (#1110) 2026-06-22 17:54:13 +00:00
use-connection-health.ts mobile responsiveness pass + connections reauth fix (#959) 2026-05-17 21:49:23 +00:00
use-connector-access.ts feat(web): company brain onboarding redesign + connector entitlement (#1178) 2026-06-30 22:01:20 +00:00
use-container-tags.ts feat: major iteration on the app (#896) 2026-05-02 23:58:58 +00:00
use-delete-organization.ts feat(web): delete organization from settings danger zone (#1117) 2026-06-15 11:36:00 +05:30
use-digests.ts add weekly digests, log, and opt out options (#1107) 2026-06-18 01:06:40 +00:00
use-document-mutations.ts fix(web): declare entityContext in bulkLinkMutation so bulk link import works (#1260) 2026-07-18 19:15:59 +05:30
use-full-document.ts fix(web): render full document content in viewer (#1056) 2026-06-06 14:15:21 +05:30
use-inferred-memories.ts review suggestions option for inferred memories (#1138) 2026-07-04 20:57:33 +00:00
use-org-member-role.ts feat(brain): Company Brain Models settings tab (#1292) 2026-07-14 18:56:01 +00:00
use-org-settings.ts Add Nova workspace prompt settings (#1323) 2026-07-29 21:13:59 +00:00
use-org-summaries.ts fix(web): org plan badges via org-summaries and refresh Nova chat empty state (#968) 2026-05-18 23:44:09 +00:00
use-personalization.ts Show own space as Your conversations (#956) 2026-05-17 00:15:37 -07:00
use-plugin-space-meta.ts Add shared Agents memory workspace (#1290) 2026-07-23 12:18:44 -07:00
use-processing-documents.ts fix(web): make the finished-processing refresh effect actually fire (#1188) 2026-07-10 19:15:02 -07:00
use-project-mutations.ts Add bulk space deletion (#951) 2026-05-16 20:51:00 -07:00
use-research-status.ts feat(brain): add /brain Slack-first onboarding entry (#1310) 2026-07-21 21:19:54 +00:00
use-reset-organization.ts feat: major iteration on the app (#896) 2026-05-02 23:58:58 +00:00
use-space-context.ts feat(spaces): per-space entity context + edit-space modal (#1078) 2026-06-12 20:51:37 +00:00
use-space-profile.ts fix(web): load space profile from profile API (#1079) 2026-06-10 13:22:44 +05:30
use-sync-runs.ts mobile responsiveness pass + connections reauth fix (#959) 2026-05-17 21:49:23 +00:00
use-token-usage.ts docs(brain): note trial attach after Slack OAuth (#1313) 2026-07-21 21:34:25 +00:00
use-trigger-sync.ts feat: add connector sync visibility to NOVA settings page (#930) 2026-05-12 11:59:56 +05:30