Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect handling of empty list view labels #20215

Open
StructuralRealist opened this issue Apr 26, 2024 · 0 comments
Open

Incorrect handling of empty list view labels #20215

StructuralRealist opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information

Comments

@StructuralRealist
Copy link

Bug report

Required System information

  • Node.js version: v20.12.2
  • NPM version: 10.5.0
  • Strapi version: 4.23.1
  • Database: Postgres
  • Operating system: Linux
  • Is your project Javascript or Typescript: Typescript

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.<FIELD_NAME>".

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)

@joshuaellis joshuaellis added issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: low If the issue only affects a very niche base of users and an easily implemented workaround can solve source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information
Projects
Status: To be reviewed
Status: To review
Development

No branches or pull requests

3 participants