discourse-category-experts/assets/javascripts/discourse/connectors
Régis Hanol 84d5339782
DEV: Migrate category experts settings outlet to FormKit (#227)
* 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
2026-03-23 10:13:26 +01:00
..
above-review-filters DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00
advanced-search-options-below DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00
category-custom-settings DEV: Migrate category experts settings outlet to FormKit (#227) 2026-03-23 10:13:26 +01:00
composer-after-save-or-cancel DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00
composer-fields DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00
topic-category DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00
topic-list-after-title DEV: Update for glimmer topic list (#184) 2025-01-06 18:08:50 +00:00
user-card-additional-buttons DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00
user-profile-controls DEV: Update linting (#225) 2026-03-13 12:30:57 +00:00