tiki-deprecated / integrations

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

Fix/discounts UI #108

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

Implements the Polaris discount UIs for TIKI app.

This PR implements the UIs and the backend functions to save the UI data.

The save/edit functions and the dynamic fields will be handled by tiki/integrations#103, tiki/integrations#105, tiki/integrations#106 and tiki/integrations#107, with specific backend functions.

The helper messages and dashboard UI will be added in tiki/tiki-shopify#5

How to test

in frontend folder run npm run start. The following routes are implemented:

The UIs are equal but we need both for configuring discounts that will be applied to just a product or the whole order, following Shopify default UX.

ricardobrg commented 1 year ago

Merged the HMAC code

ricardobrg commented 1 year ago

Added the code for handling the data saving in the backend.