Skip to content

[WIP] Display friendly content type name in admin #514

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jorrit
Copy link
Contributor

@jorrit jorrit commented Jan 27, 2025

Also refactors content type name fields in config service

Summary

I noticed that the content type field in the 'add item' dialog shows an 'unfriendly' content type name. I've refactored the code to use info.displayName.

The ConfigContentTypeDTO type contained quite a few fields related to the name of the content type:

  • name
  • label
  • labelSingular
  • contentTypeName

There seems to be redundancy between these fields. One of the purposes seems to be to build the GraphQL type name. I've tried to reuse the logic from @strapi/plugin-graphql to do this work instead of doing this in the pluign.

Test Plan

This change is a work in progress and untested. I made these changes as a suggestion. I hope the changes can be tested and refined by the maintainers. Thanks in advance!

Also refactors content type name fields in config service
@cyp3rius cyp3rius changed the base branch from master to develop January 27, 2025 21:10
@SalahAdDin
Copy link
Contributor

@jorrit man?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants