tiki-archive / integrations

A collection of example implementations
MIT License
1 stars 1 forks source link

Deploy UI with TIKI Shopify app URL and add add App Bridge to TIKI app UI #104

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

As a developer, I want to use App Bridge from Shopify so that I can do authenticated requests to Shopify from the UI.

At the moment, the UI is using just Polaris, with no authentication with Shopify. It does not allow the usage of the react components that need access to Shopify data, like the Resource Picker nor the authentication of the requests.

We already have the App Bridge Provider configured to be used in DiscountProvider. The frontend needs to be deployed to the app URL as static files so it can be correctly embedded in Shopify admin and use app bridge.

ricardobrg commented 1 year ago

To simplify this we could remove the app bridge and use the access token from our backend worker to get the required data to the discount UIs. The original design was this, and it is simpler than using their app bridge SDK.

Before working on it I will update the issue o remove app bridge.

ricardobrg commented 1 year ago

App bridge was removed.