administrate icon indicating copy to clipboard operation
administrate copied to clipboard

fix(form): Display hint for has_one nested fields

Open mizoR opened this issue 1 year ago • 0 comments

Hi, thank you for maintaining this useful gem.

What I'm having trouble with

In my use case, certain fields are used only as nested fields. However, the field_hints feature in administrate does not work for nested fields, making it impossible to add hints for these fields. This limitation impacts usability, as users cannot see helpful hints for nested fields to understand their purpose or usage.

What I changed in this PR

Extend the functionality of field_hints to work with nested fields as well. With this change, hints can be displayed for nested fields, improving the consistency and usability of the UI.

en:
  administrate:
    field_hints:
      product_meta_tag:
        meta_title: Input meta title here

Output sample

image

Thank you for reviewing this pull request.

mizoR avatar Dec 31 '24 15:12 mizoR