Repository navigation
feat(platform): require manual org pick for multi-org SSO sign-in - #2489
Merged
Merged
Conversation
Replace email-domain routing with an org picker when several SSO connections are enabled, deprecate the admin email-domain field, and polish the picker UI.
Add aria-selected on listbox options and stop spreading window.location in the SSO login test location mock.
The chat-picker test toggled the visibility switch only when it was unchecked, then always clicked Save. Blank agents are created with visibleInChat: true, so the switch loads checked, the toggle is skipped, and Save stays disabled on the pristine form — the click timed out deterministically. Assert the switch is checked (the created state, which also waits out config hydration) instead of saving with no change.
The chat picker renders external agents with a "Sandbox" badge and a "View agent details" link, so the option's accessible name is "<display name> Sandbox View agent details". The exact-name locator never matched, so selecting the Cursor agent timed out. Match the (unique) display name by substring instead.
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.
Summary
Test plan
listSelectable, admin form (no domain field)localhost:3000/log-in?method=sso— org list renders, back returns to credential login, org click redirects to IdP withorganizationIdDefinition of done
cursor/sso-org-picker-manual-selection