GithubHelp home page GithubHelp logo

dbridenbeck / whidbey-herbal Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 7.28 MB

Whidbey Herbal's website that includes shopify-powered ecommerce, blog, and more. Built with React, Redux, Styled-Components and the Shopify Buy SDK.

Home Page: https://www.whidbeyherbal.com/

HTML 1.43% JavaScript 98.12% CSS 0.44%

whidbey-herbal's People

Contributors

dbridenbeck avatar dependabot[bot] avatar jumpybuns avatar

Watchers

 avatar  avatar

whidbey-herbal's Issues

create launch checklist

TODO:

  1. NEED CAITLIN HELP Add Metafields app to WH shopify account
  2. NEED CAITLIN HELP add maxQuantity and about metafields for each product
  3. DONE: Change Google API to only whidbey-herbal and dbridenbeck.github domains (IMPORTANT! TEST THIS!)
  4. DONE: Update "About" photo
  5. DONE: Test newsletter subscription
  6. HAVE CAITLIN DO!: Create Recipes on Caitlin's blog
  7. DONE: Move NavPanel down to not overlap with header
  8. NEED CAITLIN HELP!: Swap Storefront API creds with mine
  9. NEED CAITLIN HELP!: Test checkout process with WH implemented storefront creds
  10. DONE: Create Featured-Products collection and pre-populate it for caitlin, have them edit it
  11. NEED CAITLIN HELP: Expose metafields on Storefront API

Darren's code review

  1. Organize pages into folders with components
  2. Create a "shared components" folder
  3. Find areas to break repetitive styled components that can be shared (h1, h2, p, wrapper, etc.)
  4. review each component:
  • check for redundancies in jsx
  • create curried functions when necessary
  • call actions correctly using this.props.action = this.action (or whatever it is that was?)
  • review styled components for terseness

Checkout Page: refactor checkout button behavior

remove componentDidMount and refactor goToShopifyCheckout with something resembling the below. result is that the checkoutId is only ever created when checkout button is clicked.

const createIdAndCheckout = () => 
  client.checkout.create()
    .then(checkout => checkout.id)
    .then(checkoutId =>
      (client.checkout.addLineItems(checkoutId, lineItemsToAdd))
    .then(checkout => {
      window.location.href = checkout.webUrl;
    })
    .catch(error => console.log("Error creating ID and Checking Out: ", error))
  );

Implement Kayla's design

TODO:

  1. Figure out what to do with SharedComponents/Products color blocking
  2. Style WelcomeImage
  3. Style navbar
  4. Adjust wrapper padding/margins to look correct

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.