Repository navigation
Require single sign-on: one control, a checklist with real state, consequences once - #501
Merged
Merged
Conversation
…sequences once The section showed a near-identical card per provider, a disabled-looking button with no reason, orange dots for steps that had no done state, and recovery and support paragraphs in the main flow. Now it shows the state (Off, or Required with the provider) and one action. Choosing a provider shows its steps, each with a check or a way to do it (a link to the provider's setup, or the sign-in button), and the Require button says why it is off. Confirming lists what happens: who is signed out, who can't sign in, which keys are suspended, and how to recover. Recovery, keys and support access sit under a Details disclosure. Server words are shown with the product's one spelling, and the brand lint rule now also covers "Coder Helm" and the e2e specs and mock data.
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
The "Require single sign-on" section in Settings, Sign-in rules was a wall of text: one near-identical card per provider, a Require button that looked disabled with no reason beside it, orange dots for steps that had no done or not-done state, setup steps that pointed "below", and recovery and support-access paragraphs in the main flow. It is now one control: the state at the top, a provider to choose, a checklist with real state, and the consequences said once, in the confirm.
Changes
State and one action. The top row shows
OfforRequired: <provider>(with the date) as a status pill. When required, the one action is "Stop requiring single sign-on", and a member who isn't the owner is told only the owner can.Choose a provider. Okta and Microsoft Entra are two choice cards (stacked on a phone), each saying
Readyor how many steps are left. The readiest is chosen first.Checklist with real state. For the chosen provider: you're the owner; the provider is set up and turned on; (hosted) its domains are verified; you've signed in with it as your linked account. Each step shows a check when done. Otherwise it shows how to do it: a link to the provider's setup section on the page, or the Sign in with Okta / Microsoft button.
Why the button is off. The Require button is enabled only when every step is done. When it isn't, the reason sits beside it ("Finish the step above first.", "Only the owner can turn this on.").
Consequences once, at the confirm. A dedicated dialog lists:
The "some people haven't linked" retry and every API call are unchanged.
Details folded away. Recovery, how keys follow their maker, and CoderHelm support access are under "If is down, and other details". Who isn't linked, one-time links and keys suspended now stay in the main flow.
Spelling. Words the server sends (the recovery text) are shown with the product's one spelling through
productWords(). Thebrandlint rule now also catches "Coder Helm", and it scans the e2e specs and their mock data too, since they are what screenshots show.The section moved to
settings/sign-in/require-sso.tsx;page.tsxkeeps the other sections.Verification
npm run lint,npm run typecheck,npm run build: pass.e2e/require-sso.spec.ts: 21 of 21 at 1280 and 390 wide. Updated for the new text and dialog. New tests check that:#okta;sign-in-microsoft-okta,sign-in-2fa,hosted-2fa,replace-authenticator: 67 of 67./settings/sign-in-appsraw markdown, fails the same way on main.