You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
As part of the scope described on #10503 , we need to create a new Patterns Dictionary. At a minimum, the following information is required from each one of our patterns:
Total number of Images
Format of the Images required: 'square', 'landscape' or 'portrait'
Short description of the content expected in the titles
Short description of the content expected in the descriptions
These will be handy for either creating the prompt for the AI to generate content or to manipulate the data received from external services (e.g. fetch all relevant images from the Verticals API for a given store category in a single request and later on just assign them to be used on specific patterns depending on the format the pattern is expecting).
This dictionary containing info regarding all existing patterns should be stored in our codebase. We should also inform the team & document that as soon as this feature is in place, any new patterns inserted in our codebase should have a corresponding entry in this dictionary.
Implementation Details
This dictionary should be saved in a file called dictionary.json
dictionary.json should be placed in a newly created directory under woocommerce-blocks/src called Patterns.
The initial format for the dictionary can be (using the Hero Product Split pattern as an example):
[
{
"name": "Hero Product Split",
"slug": "woocommerce-blocks/hero-product-split",
"images_total" : 1,
"images_format": "landscape",
"content": {
"title": {
"default": "Get cozy this fall with knit sweaters",
"ai_prompt": "An impact phrase that advertises the displayed product"
},
"description": {
"default": "",
"ai_prompt": ""
}
}
}
]
We can adjust the AI prompts and content as needed. The most critical information for this phase of the project is to have the expected total number of images and their format so we can use it to classify the images returned by the Verticals API and later on save this info as an option in the DB.
The text was updated successfully, but these errors were encountered:
As part of the scope described on #10503 , we need to create a new Patterns Dictionary. At a minimum, the following information is required from each one of our patterns:
These will be handy for either creating the prompt for the AI to generate content or to manipulate the data received from external services (e.g. fetch all relevant images from the Verticals API for a given store category in a single request and later on just assign them to be used on specific patterns depending on the format the pattern is expecting).
This dictionary containing info regarding all existing patterns should be stored in our codebase. We should also inform the team & document that as soon as this feature is in place, any new patterns inserted in our codebase should have a corresponding entry in this dictionary.
Implementation Details
dictionary.json
dictionary.json
should be placed in a newly created directory underwoocommerce-blocks/src
called Patterns.We can adjust the AI prompts and content as needed. The most critical information for this phase of the project is to have the expected total number of images and their format so we can use it to classify the images returned by the Verticals API and later on save this info as an option in the DB.
The text was updated successfully, but these errors were encountered: