supermemory/apps/web/components/settings
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
..
account.tsx fix(web): invite dialog focus trap inside settings modal (#1347) 2026-07-24 03:18:39 +00:00
billing.tsx docs(brain): note trial attach after Slack OAuth (#1313) 2026-07-21 21:34:25 +00:00
cancel-reasons.ts feat(billing): cancel flow with reason capture + book-a-call (#1077) 2026-06-10 13:34:33 +05:30
company-brain-automations.tsx feat(web): revamp Company Brain configure page (#1306) 2026-07-18 18:45:03 +00:00
company-brain-connections.tsx fix(web): allow custom MCP connections (#1371) 2026-07-27 20:34:45 -07:00
company-brain-models.tsx feat(web): configure Company Brain reasoning effort (#1307) 2026-07-18 19:12:45 +00:00
connections-mcp.tsx feat(web): make /integrations a real route with connect deeplinks (#1155) 2026-06-23 20:42:29 +00:00
integrations.tsx fix settings/integrations responsiveness (#1003) 2026-05-30 14:56:51 -07:00
org-context.tsx feat(settings): settings modal overhaul (#1069) 2026-06-09 12:07:47 +05:30
proactiveness-icon.tsx feat(web): Company Brain proactiveness (automations) settings (#1207) 2026-07-07 21:20:50 +00:00
proactiveness.tsx feat(web): Company Brain proactiveness (automations) settings (#1207) 2026-07-07 21:20:50 +00:00
settings-content.tsx fix(web): invite dialog focus trap inside settings modal (#1347) 2026-07-24 03:18:39 +00:00
settings-modal.tsx Fix settings organization flows (#1159) 2026-06-27 14:27:36 +00:00
settings-org-switcher.tsx Fix settings organization flows (#1159) 2026-06-27 14:27:36 +00:00
support.tsx feat(web): redesign settings layout + split billing into its own tab (#980) 2026-05-20 14:56:10 +05:30
sync-history-panel.tsx mobile responsiveness pass + connections reauth fix (#959) 2026-05-17 21:49:23 +00:00
sync-status-badge.tsx mobile responsiveness pass + connections reauth fix (#959) 2026-05-17 21:49:23 +00:00
sync-utils.ts feat/granola connector (#1007) 2026-06-03 15:19:49 +00:00
workspace-prompt.tsx Add Nova workspace prompt settings (#1323) 2026-07-29 21:13:59 +00:00