Skip to content

Require single sign-on: one control, a checklist with real state, consequences once - #501

Merged
nambok merged 1 commit into
mainfrom
sso-require-redesign
Nov 30, 2026
Merged

nambok merged 1 commit into
mainfrom
sso-require-redesign

Conversation

@nambok

@nambok nambok commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

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 Off or Required: <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 Ready or 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:

    • who is signed out;
    • who can't sign in until they get a one-time link;
    • which keys are suspended (or that they couldn't be read);
    • what happens if the provider breaks.

    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(). The brand lint 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.tsx keeps 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:
    • unmet steps show the reason and a disabled button, with a setup link to #okta;
    • when all steps are met, the button is enabled;
    • the confirm lists each consequence, and Cancel sends nothing;
    • a member who isn't the owner sees why.
  • sign-in-microsoft-okta, sign-in-2fa, hosted-2fa, replace-authenticator: 67 of 67.
  • Sign-in page in the no-sideways-scroll, mid-word-break and readable-text sweeps: pass. The one failure there, /settings/sign-in-apps raw markdown, fails the same way on main.
  • Screenshots taken from the e2e mocks in the dark theme at 1440 and 390 wide, before and after.

…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.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Nov 28, 2026

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested 6df88ee (merged)

@nambok
nambok merged commit bdfd475 into main Nov 30, 2026
13 checks passed
@nambok
nambok deleted the sso-require-redesign branch November 30, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant