discourse/app/assets/javascripts/admin/addon/components/schema-theme-setting
Alan Guo Xiang Tan 476d91d233
DEV: Change category type to categories type for theme object schema (#26339)
Why this change?

This is a follow-up to 86b2e3aa3e.

Basically, we want to allow people to select more than 1 category as well.

What does this change do?

1. Change `type: category` to `type: categories` and support `min` and `max`
   validations for `type: categories`.

2. Fix the `<SchemaThemeSetting::Types::Categories>` component to support the
   `min` and `max` validations and switch it to use the `<CategorySelector>` component
   instead of the `<CategoryChooser>` component which only supports selecting one category.
2024-03-27 10:54:30 +08:00
..
types DEV: Change category type to categories type for theme object schema (#26339) 2024-03-27 10:54:30 +08:00
editor.gjs DEV: Change category type to categories type for theme object schema (#26339) 2024-03-27 10:54:30 +08:00
field-input-description.gjs DEV: Add validation message to string fields in theme object editor (#26257) 2024-03-21 12:39:25 +08:00
field.gjs DEV: Change category type to categories type for theme object schema (#26339) 2024-03-27 10:54:30 +08:00
number-field.gjs DEV: Add validation message to float fields in theme object editor (#26285) 2024-03-21 15:33:38 +08:00