discourse/app/assets/javascripts/admin/addon/components/schema-theme-setting
Alan Guo Xiang Tan de5ca63eb5
UX: Allow a default value to be specified for enum properties (#26529)
Why this change?

For a `typed: objects` theme setting with an enum property, we are
adding a `default` key for `type: enum` fields which will be used
as the default value on the client side.

```
some_objects_setting:
  type: objects
  schema:
    name: field
    properties:
      enum_field:
        type: enum
        default: awesome
        choices:
          - nice
          - cool
          - awesome
```
2024-04-05 11:44:39 +08:00
..
editor DEV: Rewrite SchemaThemeSetting::Editor to avoid rerendering problems (#26416) 2024-03-28 21:13:02 +08:00
types UX: Allow a default value to be specified for enum properties (#26529) 2024-04-05 11:44:39 +08:00
editor.gjs FIX: Input fields not displaying when adding a object to empty setting (#26509) 2024-04-04 15:27:48 +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 UX: minor theme schema editor adjustments for mobile (#26434) 2024-03-29 15:01:02 -04:00
number-field.gjs DEV: Add validation message to float fields in theme object editor (#26285) 2024-03-21 15:33:38 +08:00