Skip to content

Add experiment controls to Cortext settings - #388

Merged
priethor merged 6 commits into
mainfrom
priethor/add/experiment-flags
Jul 14, 2026
Merged

Add experiment controls to Cortext settings#388
priethor merged 6 commits into
mainfrom
priethor/add/experiment-flags

Conversation

@priethor

@priethor priethor commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

What

Adds an Experiments screen to Cortext settings. Admins can turn registered features on or off for the whole site. Changes save straight away, and quick clicks don't make the toggles flash or revert.

Why

We need somewhere to try unfinished features without presenting them as permanent settings.

How

  • Registering experiments in PHP and storing their enabled state for the site.
  • Restricting changes to administrators and queuing saves so an older response can't undo a newer click.

Testing Instructions

  1. Register two temporary experiments through the cortext_experiments filter.
  2. Open Cortext → Settings → Experiments as an administrator.
  3. Toggle both experiments quickly, then reload the page and confirm the values stick.
  4. Open the Experiments URL as a non-administrator and confirm the controls are replaced by a permission notice.
  5. Remove the temporary experiments and confirm the empty state appears.

Screen recording

Grabacion.de.pantalla.2026-07-14.a.las.17.32.22.mov

@priethor priethor self-assigned this Jul 14, 2026
@priethor priethor added type: enhancement Improvement to existing behavior. area: shell App shell, sidebar, routing, top bar, command palette, recents, favorites, trash, and layout. labels Jul 14, 2026
@priethor
priethor force-pushed the priethor/add/experiment-flags branch from c0acf5c to fa20d24 Compare July 14, 2026 16:13
@priethor
priethor merged commit 0d1d4b6 into main Jul 14, 2026
12 checks passed
@priethor
priethor deleted the priethor/add/experiment-flags branch July 14, 2026 16:28
@github-actions github-actions Bot added this to the 0.2.0 milestone Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: shell App shell, sidebar, routing, top bar, command palette, recents, favorites, trash, and layout. type: enhancement Improvement to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant