feat(brain): Company Brain Models settings tab#1292
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | ef0026a | Commit Preview URL Branch Preview URL |
Jul 14 2026, 06:58 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | ef0026a | Jul 14 2026, 06:58 PM |
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Claude finished @MaheshtheDev's task in 1m 55s —— View job Review Complete
Summary: Reviewed the Company Brain Models settings tab implementation. The code is clean with no bugs or security issues found. The shared Score: 10/10 — Ready to ship. |
There was a problem hiding this comment.
Overview: Adds an admin-gated Models settings tab for Company Brain orgs and extracts a shared useOrgMemberRole hook to dedupe role-checking across the company-brain settings components.
Issues found: None — this looks good to ship.
Details:
- The
useOrgMemberRolehook correctly guards the query withenabled && !!org?.idand returns consistent role/isAdmin values matching the original inline implementations - The
useBrainModelsanduseUpdateBrainModelshooks properly usecredentials: "include"for auth, handle errors appropriately, and invalidate the cache on successful mutation - The Models component correctly guards rendering with
!isCompanyBrainearly return and disables controls for non-admins - The
dirtycheck and save button logic are correctly synchronized — the button is disabled when no changes exist, preventing empty PATCH requests - The nav filtering in
settings-content.tsxproperly shows/hides the Models tab based on Company Brain status
Score: 10/10
Merge activity
|
Adds an admin-gated Models tab (main/triage/research pickers) that reads/writes the mono /brain/models endpoint, shown only for Company Brain orgs. Extracts a shared useOrgMemberRole hook so the brain settings sections dedupe the getActiveMember call. Fixes ENG-1054
ae1b8f7 to
ef0026a
Compare

Adds an admin-gated Models tab (main/triage/research pickers) that reads/writes the mono /brain/models endpoint, shown only for Company Brain orgs. Extracts a shared useOrgMemberRole hook so the brain settings sections dedupe the getActiveMember call.
Fixes ENG-1054