magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Add frontend_labels|default_frontend_label (attribute name) to type CustomAttributeMetadata.items #227

Open TomashKhamlai opened 5 years ago

TomashKhamlai commented 5 years ago

Preconditions (*)

Currently, it is not possible to show the name of the attribute.

Add label: String to type Attribute to extend existing schema:

Proposed schema

type Query {
    customAttributeMetadata(attributes: [AttributeInput!]!): CustomAttributeMetadata
}

type CustomAttributeMetadata {
    items: [Attribute]
}

type Attribute  {
    attribute_code: String
    entity_type: String
    attribute_type: String
    label: String
    attribute_options: [AttributeOption]
}

Merchant can set this information in image

It is visible in the Layered Navigation, on the Product Page and depends from the Store View. When store labels are not set the value should be taken from default_frontend_label

image

Default Store View Alternative Store View
image image
m2-assistant[bot] commented 4 years ago

Hi @TomashKhamlai. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@TomashKhamlai do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?