mirror of
https://ghfast.top/https://github.com/discourse/discourse-category-experts.git
synced 2026-07-15 11:36:31 +08:00
* DEV: Migrate category experts settings outlet to FormKit The `category-custom-settings` plugin outlet now receives a FormKit `@form` object when `enable_simplified_category_creation` is enabled. The category-experts connector was using a classic Ember component that doesn't integrate with FormKit. This adds a new Glimmer component (`category-experts-form-kit-settings`) for the FormKit path and updates the connector to branch based on the `enable_simplified_category_creation` site setting: - GroupChooser and ComboBox use `@type="custom"` with `field.set` - TagChooser uses `@type="custom"` with manual value transformation (the field stores a single tag name string, not an array) - Checkboxes use native `@type="checkbox"` fields - Groups and badges are loaded asynchronously with tracked properties The legacy component is preserved for the old category settings path and will be removed once the upcoming change becomes permanent. Adds system specs to verify the FormKit integration renders and saves correctly. Ref - t/174115 * DEV: Address review feedback - Use AsyncContent component instead of constructor for async data loading - Add early return in onChangeAutoTag when tags is falsy - Move enable_category_experts guard to connector |
||
|---|---|---|
| .. | ||
| modal | ||
| reviewable | ||
| category-expert-post-indicator.gjs | ||
| category-experts-approve-button.gjs | ||
| category-experts-form-kit-settings.gjs | ||
| category-experts-settings.gjs | ||
| category-experts-unapprove-button.gjs | ||
| endorsement-button.gjs | ||
| is-question-checkbox.gjs | ||