fix(web): use organization branding in Company Brain shares#1360
Conversation
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 @Dhravya's task in 2m 4s —— View job Code Review Complete
Overview: Updates the share modal to display organization branding (org name + "Company Brain") instead of user branding when sharing from a Company Brain workspace. Issues found: None — this looks good to ship. The implementation correctly:
The branching logic is clean:
Score: 10/10 |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 80af8c9 | Jul 25 2026, 03:47 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 80af8c9 | Commit Preview URL Branch Preview URL |
Jul 25 2026, 03:48 AM |
There was a problem hiding this comment.
Overview: Updates the share modal to display organization branding (org name + "Company Brain") instead of user branding when sharing from a Company Brain space.
Issues found: None — this looks good to ship.
The implementation correctly:
- Uses optional chaining for safe org access
- Handles possessive edge cases (org names already ending in 's)
- Falls back to "Your company's" when org name is unavailable
- Reuses the existing
useHasCompanyBrainhook for consistent logic
Score: 10/10
Merge activity
|
<!-- VORFLUX_AGENT_PR_BODY_BEGIN --> Company Brain share snapshots now use the active organization’s branding instead of the signed-in user’s personal name. ## Changes - Detect Company Brain workspaces through the canonical hook. - Render the normalized organization name with `Company Brain`, preserving personal share branding for other workspaces. - Handle missing, organization-suffixed, and already-possessive organization names. ## Testing - **Passed:** `node_modules/.bin/biome ci apps/web/components/share-modal.tsx` - **Passed:** `git diff --check -- apps/web/components/share-modal.tsx` - **Baseline failure:** `node_modules/.bin/tsc --noEmit --incremental false -p apps/web/tsconfig.json` reports existing workspace diagnostics. The only diagnostic in `share-modal.tsx` is present on `HEAD`; none reference the new branding code. - **Blocked:** authenticated visual verification was not performed because no authenticated browser state was available and no login retry was requested. - Blocker screenshot: - Blocked-flow recording: --- **Attached Images and Videos**  🎥 [View recording: share-branding-walkthrough.webm](https://api.us1.vorflux.com/assets/artifacts/c3VwZXJtZW1vcnk6Zjo3NDI1.PLlwgZToeGPRdV49tEQESgrTiADIUq5pHQcQjzfGMQ0.mp4) <!-- VORFLUX_AGENT_PR_BODY_END --> --- **Session Details** - Session: [View Session](https://supermemory.us1.vorflux.com/agent-sessions/22b72a15-9127-44be-b15b-3d341e26d016) - Requested by: Dhravya Shah (dhravya@supermemory.com) - Address comments on this PR. Add `(aside)` to your comment to have me ignore it. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Copy-only UI in the share preview with no auth, API, or data-handling changes. > > **Overview** > Share snapshot previews now switch branding when the workspace is **Company Brain**, instead of always showing the signed-in user’s name and **supermemory**. > > The modal uses `useHasCompanyBrain` and org data from auth to set the preview header: a normalized org possessive label (with fallbacks for missing names, trailing “organization”, and names that already end in `'s`) plus **Company Brain** as the product line. Non–Company Brain workspaces keep the existing personal **supermemory** branding. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 087019f. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
087019f to
80af8c9
Compare

Company Brain share snapshots now use the active organization’s branding instead of the signed-in user’s personal name.
Changes
Company Brain, preserving personal share branding for other workspaces.Testing
node_modules/.bin/biome ci apps/web/components/share-modal.tsxgit diff --check -- apps/web/components/share-modal.tsxnode_modules/.bin/tsc --noEmit --incremental false -p apps/web/tsconfig.jsonreports existing workspace diagnostics. The only diagnostic inshare-modal.tsxis present onHEAD; none reference the new branding code.Attached Images and Videos
🎥 View recording: share-branding-walkthrough.webm
Session Details
(aside)to your comment to have me ignore it.Note
Low Risk
Copy-only UI in the share preview with no auth, API, or data-handling changes.
Overview
Share snapshot previews now switch branding when the workspace is Company Brain, instead of always showing the signed-in user’s name and supermemory.
The modal uses
useHasCompanyBrainand org data from auth to set the preview header: a normalized org possessive label (with fallbacks for missing names, trailing “organization”, and names that already end in's) plus Company Brain as the product line. Non–Company Brain workspaces keep the existing personal supermemory branding.Reviewed by Cursor Bugbot for commit 087019f. Bugbot is set up for automated code reviews on this repo. Configure here.