Skip to content

feat(web): org brain switcher in header + plan badges#1006

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feat/brain-switcher
May 26, 2026
Merged

feat(web): org brain switcher in header + plan badges#1006
graphite-app[bot] merged 1 commit into
mainfrom
feat/brain-switcher

Conversation

@MaheshtheDev
Copy link
Copy Markdown
Member

@MaheshtheDev MaheshtheDev commented May 26, 2026

  • Replace the top-left logo menu with an org switcher (Switch brain): lists organizations with avatar monograms, brand-blue active row, and the active org name (sans "Organization") shown above the supermemory wordmark.
  • Switching an org persists the active org and reloads so all data re-scopes.
  • Show each org's plan badge in the switcher, reusing the account settings badge (extracted OrgPlanBadge + resolveOrgPlan to a shared component).
  • Match the profile dropdown to the same design (rows, hover/focus, border).
  • Remove the 'Be part of the next supermemory app' research CTA card.
  • Add hideCount prop to SpaceSelector; hide the space count in chat input.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 26, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp aedcbeb May 26 2026, 12:55 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 26, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app aedcbeb Commit Preview URL

Branch Preview URL
May 26 2026, 12:55 AM

Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add 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.

@MaheshtheDev MaheshtheDev marked this pull request as ready for review May 26, 2026 00:38
@graphite-app graphite-app Bot requested a review from Dhravya May 26, 2026 00:38
@claude
Copy link
Copy Markdown

claude Bot commented May 26, 2026

Claude finished @MaheshtheDev's task in 1m 26s —— View job


PR Review Complete

  • Load review tools
  • Fetch PR diff and analyze changes
  • Review for bugs, security issues, and logic errors
  • Submit review

Summary: Reviewed the org brain switcher implementation. No bugs, security issues, or logic errors found. The code correctly handles org switching with proper async flow, plan resolution logic is sound, and the shared OrgPlanBadge component reduces duplication. Clean implementation ready to ship.

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview: Adds an org brain switcher in the header dropdown with plan badges, extracts OrgPlanBadge to a shared component, and adds a hideCount prop to SpaceSelector.

Issues found: None — this looks good to ship.

The implementation is clean:

  • Org switcher correctly determines active state by comparing org IDs
  • resolveOrgPlan logic is sound: prioritizes summary data, falls back to currentPlan for the active org, defaults to "free" otherwise
  • The async org-switch flow (setActiveOrgwindow.location.reload()) handles the state transition correctly
  • clearActiveOrg now properly clears both client state and server-side active org
  • Refactoring the badge component to a shared module reduces duplication

Score: 10/10

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented May 26, 2026

Merge activity

- Replace the top-left logo menu with an org switcher (Switch brain): lists organizations with avatar monograms, brand-blue active row, and the active org name (sans "Organization") shown above the supermemory wordmark.
- Switching an org persists the active org and reloads so all data re-scopes.
- Show each org's plan badge in the switcher, reusing the account settings badge (extracted OrgPlanBadge + resolveOrgPlan to a shared component).
- Match the profile dropdown to the same design (rows, hover/focus, border).
- Remove the 'Be part of the next supermemory app' research CTA card.
- Add hideCount prop to SpaceSelector; hide the space count in chat input.
@graphite-app graphite-app Bot force-pushed the feat/brain-switcher branch from 2ea5d5e to aedcbeb Compare May 26, 2026 00:53
@graphite-app graphite-app Bot merged commit aedcbeb into main May 26, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants