0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-ai/admin/assets/javascripts
Régis Hanol 3c35d7ce97
FIX: Bring shared setting-field renderers to parity with admin controls (#41773)
Previously, the shared `SettingDefinitionField` renderers lacked
behaviors their legacy `site-settings/*` counterparts enforce — most
notably `group_list` skipped the everyone/logged_in_users aliasing and
`disallowed_groups`/`mandatory_values`, so the AI feature settings page
could silently store the wrong group.

This change ports those behaviors into the shared renderers — group
aliasing (extracted to `discourse/lib/group-list-setting-aliasing` so
there is a single implementation), `compact_list` custom entries /
`allow_any` / `mandatory_values`, `enum` none-gating and non-string
value matching, and the `category_list` concurrent-lookup guard — so
they can back the admin site settings pages next (t/179889).
2026-07-17 08:37:37 +02:00
..
discourse FIX: Bring shared setting-field renderers to parity with admin controls (#41773) 2026-07-17 08:37:37 +02:00