-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Is your feature request related to a problem? Please describe.
I've often needed to use Integration Fields (e.g. shopify fields or custom ones) but slice machine does not provide a field out of the box to set up one. I've been getting around this issue up till now by manually editing the relevant model.json and adding the integration field config there before pushing the model to prismic.
Describe the solution you'd like
I would like there to be a field for setting up Integration fields. E.g. where you a user can select fields like link, key text, rich text, and so on, there should be an option for integration fields. It will take catalog, label, and placeholder properties in the UI and construct a property in the relevant model.json like so:
"category": {
"type": "IntegrationFields",
"config": {
"catalog": "providoor--categories_prod",
"label": "category",
"placeholder": "Category"
}
}Describe alternatives you've considered
At the moment I don't think there are any other alternatives if you're primarily using slice machine to build all your slices. Only one I've discussed above is a kind of hack where you edit the model.json yourself before pushing the schema to prismic.
Additional context
I'm more than willing to take this up and add this feature in. If this is deemed reasonable and we have a green light on implementing this feature, I'd like to work on it.