Skip to content

feat(ui): every on/off setting is a switch that shows its state at a glance - #482

Merged
PiquelChips merged 3 commits into
mainfrom
feat/boolean-settings-sliders
Nov 10, 2026
Merged

PiquelChips merged 3 commits into
mainfrom
feat/boolean-settings-sliders

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

On/off settings were plain checkboxes, and email preferences were a badge beside a Turn on/off button, so you had to read text to tell whether a setting was on. Every one is now a sliding switch: grey with the knob on the left when off, accent-coloured with the knob on the right when on.

  • Client form (developer console and admin dashboard): the scopes share one boxed list, one row per scope. Allow refresh tokens and Require pushed authorization requests are in a separate box below. A click anywhere on a row flips its switch.
  • Admin dashboard: Trusted, Essential, Sign with it at once and Allow a reserved handle are switch rows.
  • Email preferences: each category has one switch that saves on click. People who can see a setting but not change it see a disabled switch.

The switches are still checkboxes (or buttons, for email preferences) with role="switch", drawn by CSS, so they work without scripts. Radio choices are unchanged. The docs now say "turn on" instead of "tick" or "check", and the three affected screenshots are retaken.

Proof: the inbox's email-preference database test and the docs screenshot specs pass on a preview; the stylesheet rendered in Chromium in light, dark and at 360px width, where a click on a row or its switch flips it and nothing scrolls sideways.

Reviewed with review-loop: 2 rounds with Claude Opus 5.5 (the two GPT 6.1 Sol reviewers were out of usage). Verdict: approved

Note

Written by Claude Opus 5.5 in Claude Code, with the scopes layout designed by Claude Fable 5.2 (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9cec22b2-034b-4638-8096-456bd61f3c90
Commits

Reviewing files that changed from the base of the PR and between 6cbe393 and e343dff.

Files ignored due to path filters: 3

  • docs/images/account/notification-email.png is excluded by !**/*.png
  • docs/images/apps/app-settings.png is excluded by !**/*.png
  • docs/images/apps/new-app.png is excluded by !**/*.png
Files selected for processing: 16

  • apps/auth-service/src/web/admin/clients.rs
  • apps/auth-service/src/web/auth/login/mod.rs
  • apps/auth-service/src/web/settings/tests.rs
  • crates/ui/assets/style/base.css
  • crates/ui/src/clients.rs
  • crates/ui/src/form.rs
  • crates/ui/src/settings/notifications.rs
  • docs/dev/operations/administration.md
  • docs/user/account/notifications.md
  • docs/user/agents/skills/sourceorigin-deploy/SKILL.md
  • docs/user/agents/skills/sourceorigin-dev-setup/SKILL.md
  • docs/user/agents/skills/sourceorigin-sign-in/SKILL.md
  • docs/user/apps/browser-apps.md
  • docs/user/apps/sign-in-rust.md
  • docs/user/apps/sign-in-typescript.md
  • tests/browser/screenshots/app-settings.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…glance

Boolean settings were checkboxes, and email preferences a badge beside a
Turn on/off button. Each is now a sliding switch: the client form's scopes
and token settings, the admin dashboard's switches, and the inbox's email
preferences. Scopes share one boxed list, apart from the other settings.
Its track was the line colour, about 1.3:1 against the surface. The muted
text colour clears 3:1 in both themes. A disabled switch no longer
brightens on hover.
The switch markup grew both past clippy's large_futures limit.
@PiquelChips
PiquelChips force-pushed the feat/boolean-settings-sliders branch from 5865287 to e343dff Compare November 10, 2026 17:09
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit d792cb1 Nov 10, 2026
11 checks passed
@PiquelChips
PiquelChips deleted the feat/boolean-settings-sliders branch November 10, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant