feat(web): company brain — invite-accept page, space UX/visibility, org-scoped daily brief#1112
feat(web): company brain — invite-accept page, space UX/visibility, org-scoped daily brief#1112MaheshtheDev wants to merge 1 commit into
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
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. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 51ce30a | Jun 18 2026, 12:27 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 51ce30a | Commit Preview URL Branch Preview URL |
Jun 18 2026, 12:30 AM |
2986b03 to
d5555ba
Compare
5377aa3 to
b5e5337
Compare
62e5636 to
f3972ab
Compare
b5e5337 to
2d8845e
Compare
a361d78 to
dd013ee
Compare
2d8845e to
dab2ff9
Compare
dd013ee to
e28b804
Compare
dab2ff9 to
c829fd3
Compare
e28b804 to
4711718
Compare
…nvite-accept Space selector (My Brain/Team Brain), invite-accept page, create-org launches onboarding (?new=1) with the popover→dialog pointer-events fix, owner-gated account settings, org-scoped page.
4711718 to
51ce30a
Compare
|
Claude finished @MaheshtheDev's task in 2m 3s —— View job PR Review Complete
Summary: Reviewed all 7 changed files for bugs, security issues, and logic errors. No issues found — this PR is clean and ready to ship. Key findings:
Score: 10/10 |
There was a problem hiding this comment.
Overview: Adds an invite-accept page for org invitations, improves space selector UX for company brain orgs, and makes role detection more robust by defaulting to least privilege.
Issues found: None — this looks good to ship.
Analysis:
-
Invite page (
apps/web/app/org/invite/[invitationId]/page.tsx): Clean implementation with proper error handling, cleanup viacancelledflag in useEffect, correct expiration checking, and secure redirect URL encoding withencodeURIComponent. Authorization is handled server-side (403 → wrong_account). -
Role detection (
apps/web/components/settings/account.tsx): The change to checkmembersLoadedbefore assuming single-member-personal-org is a security improvement — it now defaults to "member" (least privilege) when members aren't loaded, rather than incorrectly granting "owner". -
Space selector changes: Logic correctly switches default from
DEFAULT_PROJECT_IDtoSHARED_TEAM_BRAIN_TAGfor company brain orgs. Dependencies in useMemo are properly updated. -
Org creation flow (
settings-org-switcher.tsx): Clean redirect to onboarding with the new?new=1&name=params. The pointer-events workaround for Radix overlay is a pragmatic fix for a known UX issue. -
Memory-of-day cache key (
page.tsx): Addingorg?.idto the cache key ensures org-scoped daily briefs — correct fix.
Score: 10/10
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 51ce30a6b6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

New /org/invite/[invitationId] page so consumer-org invitees can view and accept or decline invitations in the app instead of the console.
Fixes ENG-811