Git Product home page Git Product logo

gatsby-source-chec's People

Contributors

dependabot[bot] avatar kvisca avatar notrab avatar pauliescanlon avatar renovate-bot avatar renovate[bot] avatar robbieaverill avatar scopeynz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-source-chec's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Rename token to publicKey

When configuring the plugin it would make sense to name the token as publicKey as it's more explicit, and there's no need of a secretKey in this source plugin.

Remove product page generation

Generating pages for products would be a better fit for a theme or starter, and instead leave the source plugin to only source content and generate nodes.

Build product variant nodes

The Chec API requires you to make a request to v1/products/:productId/variants to fetch the individual variants of products.

We should fetch this after fetching products, and connect them internally with Gatsby so you can query the variant data.

Depending on the API version people are using, we'll need to make sure we're conditionally trying to build nodes if they exist in the product node.

Switch to commerce.js pkg

Currently axios is used to make API calls, however, we could instantiate a new @chec/commerce.js instance and use the helpers here to fetch resources.

Crashes with sub categories

This plugin crashes whenever sub categories are used. The dependencies are outdated and introduce 25 errors, 2 of them critical.

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Paginate and fetch products

Currently only the max returned products per page will be returned and nodes built.

If there are more pages, we should fetch them!

Rename package

It would be useful to rename the package from gatsby-source-chec to gatsby-source-commercejs as it uses commerce.js under the hood to make API calls.

Reduce into a single gatsby-node file

We can reduce the overall code structure to live inside gatsby-node.js instead of separate files, since there isn't much going on under the hood anymore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.