discourse/app/assets/stylesheets/common/admin
Alan Guo Xiang Tan cdba864598
DEV: Support description for properties in objects schema (#26172)
Why this change?

When editing a objects typed theme setting, the input fields which are
rendered should include a description so that the user knows the purpose
of the field which they are changing.

What does this change do?

This change adds support for adding description to each property in the
schema for an object by following a given convention in the locale file.

For a schema like this:

```
objects_setting:
  type: objects
  schema:
    name: section
    properties:
      name:
        type: string
        required: true
      links:
        type: objects
        schema:
          name: link
          properties:
            name:
              type: string
              required: true
              validations:
                max_length: 20
            url:
              type: string
```

Description for each property in the object can be added like so:

```
en:
  theme_metadata:
    settings:
      objects_setting:
        description: <description> for the setting
        schema:
          properties:
            name: <description for the name property>
            links:
              name: <description for the name property in link>
              url: <description for the url property in link>
```

If the a description is not present, the input field will simply not
have an description.

Also note that a description for a theme setting can now be added like
so:

```
en:
  theme_metadata:
    settings:
      some_other_setting: <This will be used as the description>
      objects_setting:
        description: <This will also be used as the description>
```
2024-03-15 07:47:42 +08:00
..
admin_base.scss DEV: Support description for properties in objects schema (#26172) 2024-03-15 07:47:42 +08:00
admin_emojis.scss EXPERIMENTAL: restructure admin sidebar menu (#26047) 2024-03-13 10:18:08 +11:00
admin_intro.scss DEV: Use more css vars (#18561) 2022-10-12 16:05:42 +02:00
admin_report_chart.scss A11Y: disable non-essential CSS animations for reduced-motion users (#23571) 2023-09-14 17:31:43 -04:00
admin_report_counters.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
admin_report_inline_table.scss
admin_report_radar.scss DEV: Add support for radar charts when displaying reports. (#24274) 2023-11-08 10:48:12 -03:00
admin_report_stacked_chart.scss
admin_report_table.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
admin_report.scss UX: highlight vars updates (#20346) 2023-02-21 10:15:49 +01:00
admin_reports.scss DEV: Remove unused scss (#16134) 2022-03-08 17:39:40 +01:00
admin_revamp.scss UX: Tweaks on the admin sidebar (#25717) 2024-02-16 14:28:25 -07:00
api.scss FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
backups.scss UX: clean up some label and form inconsistencies, reduce excess bolding (#25701) 2024-02-15 11:27:51 -05:00
badges.scss DEV: Use css var font sizes (#18518) 2022-10-12 15:31:59 +02:00
customize-install-theme.scss UX: Improve the "install theme/component" modal on mobile (#20777) 2023-03-27 14:11:31 -04:00
customize.scss DEV: update classes, remove unused CSS (#25825) 2024-02-23 09:14:37 -05:00
dashboard.scss DEV: remove various unused CSS (#25994) 2024-03-01 16:51:26 -05:00
emails.scss UX: improve use of space for readability of admin email modal (#19797) 2023-01-09 14:24:58 +01:00
json_schema_editor.scss FEATURE: Support collapsing array sections in JSON Schema field types (#20118) 2023-02-07 08:22:01 -05:00
mini_profiler.scss A11Y: Adjust contrast and font size for mini profiler widget (#22246) 2023-06-22 18:01:21 -04:00
penalty.scss UX: Set penalty history to sticky (#19933) 2023-01-23 07:14:23 -06:00
plugins.scss FEATURE: filter additional keywords for the sidebar (#26148) 2024-03-14 12:28:08 +11:00
schema_field.scss DEV: Support description for properties in objects schema (#26172) 2024-03-15 07:47:42 +08:00
settings.scss UX: Change the color of the overriden dot to be slightly visible in dark mode (#25782) 2024-02-21 12:49:20 +08:00
staff_logs.scss UX: clean up some label and form inconsistencies, reduce excess bolding (#25701) 2024-02-15 11:27:51 -05:00
users.scss REFACTOR: user directories without <table>, second attempt (#20515) 2023-03-02 15:10:19 -05:00