strapi / strapi

πŸš€ Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.
https://strapi.io
Other
60.59k stars 7.57k forks source link

Incorrect handling of empty list view labels #20215

Open StructuralRealist opened 2 weeks ago

StructuralRealist commented 2 weeks ago

Bug report

Required System information

Describe the bug

The admin doesn't handle empty labels of list fields very well. The pill under "View" shows the field name, the input when editing is (correctly) empty, and the table header shows "CONTENT-MANAGER.CONTAINERS.LISTPAGE.TABLE-HEADERS.".

Steps to reproduce the behavior

  1. Configure the list view of a collection type (/admin/content-manager/collection-types/<content_type::api::id>/configurations/list)
  2. Edit one of the fields, leave the label input empty, and save.
  3. Check the value on the pill and the field's table header

Expected behavior

I expect there to be no table header for this field. The pill should probably show the field name and some indication that the label is empty (e.g. <empty> (avatar)