Allow users to invite others even when all seats are used. [INS-2106]#9656
Merged
Allow users to invite others even when all seats are used. [INS-2106]#9656
Conversation
✅ Circular References ReportGenerated at: 2026-02-23T18:32:08.698Z Summary
Click to view all circular references in PR (76)Click to view all circular references in base branch (76)Analysis✅ No Change: This PR does not introduce or remove any circular references. This report was generated automatically by comparing against the |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Invite modal’s gating logic so organizations that have hit their seat limit can still use the invite UI (instead of having the form disabled), aligning with INS-2106.
Changes:
- Introduces a derived
isFormDisabledflag that keeps the form enabled when the seat-check failure code isNEEDS_TO_INCREASE_SEATS. - Applies the new disabled logic to the email input and the Invite button.
Comments suppressed due to low confidence (1)
packages/insomnia/src/ui/components/modals/invite-modal/invite-form.tsx:346
isFormDisabledis applied to the email input, but the role selector is still explicitly enabled (isDisabled={false}). This creates a partially-disabled form state when upgrades are required (user can change roles but cannot invite). Consider wiringisFormDisabledthrough to the role selector as well so the entire invite form is consistently disabled when inviting is not permitted.
disabled={isFormDisabled}
/>
</div>
<div className="flex w-[81px] items-center">
<OrganizationMemberRolesSelector
type={SELECTOR_TYPE.INVITE}
availableRoles={allRoles}
memberRoles={[defaultRoleName]}
isDisabled={false}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2816573 to
962bda2
Compare
ryan-willis
approved these changes
Feb 16, 2026
ihexxa
approved these changes
Feb 25, 2026
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.
Why is inviting others still allowed when there are no seats available?
This is because a specific scenario might occur: User A has purchased 3 seats and owns two organizations, X and Y.
User B has already been invited to Organization X, which now has 3 members (full).
At this point, even though User A has run out of seats, they can still invite User B to Organization Y.