discourse/spec/system/page_objects/pages
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_customize_themes.rb UX: Display setting description for objects typed theme setting (#26152) 2024-03-13 12:38:21 +08:00
admin_dashboard_new_features.rb UX: add gift emoji styling for new features (#24523) 2023-11-27 09:32:28 +11:00
admin_objects_theme_setting_editor.rb DEV: Support description for properties in objects schema (#26172) 2024-03-15 07:47:42 +08:00
admin_settings.rb FEATURE: Add keywords support for site_settings search (#24146) 2023-10-27 15:42:57 -06:00
base.rb DEV: Change sidebar header dropdown to use wait_for_animation (#20627) 2023-03-10 14:54:57 +10:00
category.rb DEV: Try fix category form template flaky (#22461) 2023-07-06 14:42:59 +10:00
csv_export_pm.rb DEV: make sure we don't load all data into memory when exporting chat messages (#22276) 2023-07-12 18:52:18 +04:00
discovery.rb DEV: Add system specs for dismiss new on tag routes (#23936) 2023-10-16 10:51:59 +01:00
form_template.rb FIX: Customize form template view modal footer buttons (#25804) 2024-02-21 22:20:56 -08:00
group_activity_posts.rb FIX: respect creation date when paginating group activity posts (#24993) 2024-01-11 13:37:27 -03:00
group.rb FIX: Correct error on add user modal (#23679) 2023-09-27 13:54:44 +08:00
header.rb FIX: In topic search for glimmer header (#26040) 2024-03-07 11:14:43 -07:00
review.rb DEV: upgrade reject reason reviewable modal to glimmer component (#24073) 2023-10-24 17:44:43 +08:00
search.rb FIX: In topic search for glimmer header (#26040) 2024-03-07 11:14:43 -07:00
tag.rb DEV: fix tag synonyms flakey specs (#21787) 2023-05-28 15:35:55 +02:00
topic.rb FEATURE: Silence Close Notifications User Setting (#26072) 2024-03-08 15:14:46 -07:00
user_notifications.rb DEV: Plugin-api methods for user-notifications route customizations (#24873) 2023-12-13 15:15:42 -06:00
user_preferences_account.rb DEV: upgrade avatar-selector modal to glimmer component (#24192) 2023-11-07 21:02:19 +08:00
user_preferences_interface.rb DEV: Fix flaky user preferences interface system test (#21800) 2023-05-29 11:56:21 +08:00
user_preferences_navigation_menu.rb FEATURE: Split navigation preference for count and behavior of sidebar links (#22203) 2023-06-22 19:04:13 +03:00
user_preferences_security.rb DEV: Standardize session confirmation prompt (#24212) 2023-11-07 11:26:10 -05:00
user_preferences.rb DEV: Fix flaky "Changing email" system tests (#25805) 2024-02-22 10:46:37 +08:00
user_private_messages.rb FIX: Broken group messages inboxes when group name is mixed case (#22183) 2023-06-19 17:36:04 +08:00
user.rb DEV: Plugin-api methods for user-notifications route customizations (#24873) 2023-12-13 15:15:42 -06:00