0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 20:33:03 +08:00
discourse/spec/system/page_objects
Régis Hanol ce98cf12e2
DEV: Render bool and integer site settings with FormKit (#41809)
Previously, the admin site settings page rendered every setting with
bespoke per-type controls layered on a buffered proxy, separate from the
shared FormKit field infrastructure (`SettingDefinitionField` and the
setting-field registry) that category-type and plugin settings already
use.

This change renders `bool` and `integer` settings through that shared
infrastructure — gated per-type by an `adminReady` registry flag so the
remaining types keep their current controls until they are converted in
turn — by wrapping each row's control in a single-field `<Form>` whose
`@onSet` writes back into the existing buffered proxy, so dirty
tracking, the changes banner, and the route guard keep working
unchanged. It also fixes two latent issues it surfaced: pressing Enter
now submits through the row's full save path (including the confirmation
dialog) instead of bypassing it, and `FKControlInput` no longer keeps a
stale raw-text buffer that stopped Cancel and Reset from reverting a
number field.
2026-08-06 09:19:57 +02:00
..
components UX: composer redesign > adapt composer outlets (#42355) 2026-08-05 17:35:03 +02:00
modals FIX: Ensure the language dropdowns from the frontend does not add interface language to understood languages (#42301) 2026-08-04 18:21:49 +08:00
pages DEV: Render bool and integer site settings with FormKit (#41809) 2026-08-06 09:19:57 +02:00
cdp.rb DEV: Make nested scroll restoration spec deterministic (#42096) 2026-07-28 11:50:33 -05:00