searchspring / snap

Snap is Searchspring's latest front end integration SDK
https://searchspring.github.io/snap/
MIT License
9 stars 2 forks source link

Integration bgFilters #1177

Closed korgon closed 3 weeks ago

korgon commented 1 month ago

Snap Templates is going to start with the ability to add middleware and plugins removed. But we must support some basic functionality, so we will have to add ability to opt into "authorized" plugins in Snap Templates. The most important of these plugins will handle the background filters that are currently used for these platform integrations. The changes here should make it easy to add additional plugins as they become necessary. These plugins need to be configurable so that they can meet different use cases.

platform: {
  shopify: { ... },
  bigCommerce: { ... },
  magento2: { ... },
}

In addition to supporting platform specific plugins there are a few plugins that should be for all implementations regardless of platform:

Additionally, support for providing generic background filters could be provided via script context variables.

korgon commented 1 month ago

Can we refactor middleware functions to be named functions for easier testing / debugging.

korgon commented 3 weeks ago

Merged into develop.