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

Support for Integration Fields #903

Open
ishaqibrahimbot opened this issue Apr 4, 2023 · 4 comments
Open

Support for Integration Fields #903

ishaqibrahimbot opened this issue Apr 4, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@ishaqibrahimbot
Copy link

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.

@ishaqibrahimbot ishaqibrahimbot added the enhancement New feature or request label Apr 4, 2023
@hypervillain
Copy link
Contributor

Hi! Sorry for the inconvenience. At the moment, we are not able to provision Integration Fields from SliceMachine, which is why the form field does not exist. I'll mention it to our PMs today and see if we can find a middleground!

@ishaqibrahimbot
Copy link
Author

Hi @hypervillain thanks for the response! So yeah the middle ground I suppose would be that a user sets up the integration field directly in prismic, and then slice machine just offers a form field to use that integration field in some slice or custom type via the schema shared above.

A question - in the scenario that this is something we agree to do, what are the chances that I can do the implementation of it? I've been using slice machine for some time now, really interested in contributing to it 🙂

@NickSchmitt
Copy link

NickSchmitt commented May 26, 2023

I see Field type "IntegrationFields" not supported in the UI when I try this, which I initially found from this guide.

@comeprismic
Copy link

Hi,
I wanted to provide updates here. We are not currently prioritizing this topic internally at the moment. However, I confirm that the workaround solution explained in this guide is working.

@NickSchmitt that is true since the integration field widget is not known by Slice Machine UI, but I confirm that the model is accepted and you can push it to your page builder.

This is of course something that we will fix when we start working on the topic, but I can't provide an ETA now. I hope you understand.

Best,

Côme.

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

No branches or pull requests

4 participants