JS-9795: Invitation flow rework#2291
Open
requilence wants to merge 7 commits into
Open
Conversation
…design Integrates GO-7222 (anytype-heart docs/InviteSharing.md). The invite is now kept in the owner's account instead of the workspace object, so members no longer hold a link they can hand to anyone. - SpaceInviteGenerate takes shareWithinSpace; InviteGetCurrent returns heldByOwner. A member gets a success response with an empty cid, so every Copy/QR affordance now goes through U.Space.hasVisibleInvite(). - Request-to-join is the default at all four generate call sites; an anyone-can-join invite defaults to Reader. - Invite create/revoke is owner-only. Admins keep Add members and request approval, but never see or change the link. - Members page redesign: link toggle, Copy/QR/Manage, All/Requests/Editors/ Viewers tabs, search, Add members. - New popups: Manage invite link (auto-approval, permissions, share-within- space with confirm, reset) and Add Members. - Owners of a legacy shared anyone-can-join Writer invite are warned that any viewer can use it to become an editor, and offered a reset. Verified end-to-end in web mode against a middleware built from go-7222-invite-cleanup.
…ton when list is empty
…rrect share-confirm copy - When auto-approval is on and the role is Editor, add a note that any existing Viewer can use the link to upgrade themselves to Editor. - The share confirm said "This cannot be undone" — sharing this exact link is irreversible, but the link can be reset to make a new private one, so say that.
Say the auto-approval link stays open until the owner resets it, and name the invitation link explicitly in both notes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks the space invitation flow around the GO-7222 middleware changes (
docs/InviteSharing.md).Highlights
Notes
S.Common(inviteGet/inviteSet/inviteClear) so the page, popup, header, and menu read one source.U.Spacepredicates (canManageInvite,hasVisibleInvite,isInviteUnsafe) with unit coverage.middleware.versionmust be bumped before merge.Design spec:
docs/superpowers/specs/2026-07-14-invite-flow-design.md· Linear JS-9795