GithubHelp home page GithubHelp logo

netlify-templates / gatsby-ecommerce-theme Goto Github PK

View Code? Open in Web Editor NEW
130.0 130.0 115.0 21.94 MB

A Gatsby-based starter theme with e-commerce styled components

Home Page: https://gatsby-ecommerce-theme.netlify.app/

JavaScript 66.41% CSS 33.25% Handlebars 0.34%
ecommerce gatsby netlify template

gatsby-ecommerce-theme's People

Contributors

ash-matter avatar dlucenario avatar maxcell avatar renovate-bot avatar renovate[bot] avatar taty2010 avatar tzmanics avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

gatsby-ecommerce-theme's Issues

fix shop items nav to go to shop

currently some links link to shop and some don't
we've decided to just add it everywhere for consistency
if the link is /shop and user is currently on the /shop page nothing will happen
we'll clarify this in the readme

Add linting and formatting

Summary

We want to make sure our formatting is consistent so we like to add a nice little tooling for us. Previously in other projects we've opted for Prettier and and ESLint. We don't have a significant amount of opinions but we try to optimize for the project/framework's own opinions.

Maybe something like this, https://www.gatsbyjs.com/docs/how-to/custom-configuration/eslint/, could be helpful for building a base eslint configuration for a Gatsby site. I think the prettier file is just including a .prettierrc file. See this document on installing it

Double Trouble

Currently running into an issue where on certain pages we are seeing double footer and page only on the Deployed site and not locally.

Screen.Recording.2022-05-23.at.12.36.02.PM.mov

add DTN button

[![Deploy to Netlify Button](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/gatsby-ecommerce-theme)

change divs to buttons

these eslint a11y errors came up because of more instances of using divs instead of buttons. we shuold make these anchors or buttons instead.

/gatsby-ecommerce-theme/src/components/BlogPreview/BlogPreview.js
  14:5  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener  jsx-a11y/click-events-have-key-events
  14:5  warning  Static HTML elements with event handlers require a role                                         jsx-a11y/no-static-element-interactions

gatsby-ecommerce-theme/src/components/Swatch/Swatch.js
  8:5  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener  jsx-a11y/click-events-have-key-events
  8:5  warning  Static HTML elements with event handlers require a role                                         jsx-a11y/no-static-element-interactions```

On mobile and tablet devices, the search and cart buttons are blue instead of grey

Summary

I was verifying that the buttons and things were working on smaller devices and found these interesting visual defects. My suspicion is that they illuminated themselves when I modified these elements into buttons instead of divs.

Tablet Phone
Tablet view of test site where search and cart icons are blue Phone view of test site where search and cart icons are blue

I couldn't see these on a desktop even in the visual responsive modes so I am glad that I have test devices to verify any new behavior.

Update icons in the navigation to be anchors or button tags

Summary

The iconography in the navigation needs to be accessible and reachable for users. Right now they do not communicate the appropriate behavior even though they work for mouse users. I think optimizing them for semantic HTML will be ideal.
image

Currently everything in this except for the lefthand navigation is considered a div
CleanShot 2022-05-17 at 13 52 00

Adds maintenance tooling

Summary

To make sure that our project stays up to date we'd like to add some tools:

  • Cypress integration (for testing e2e, ref doc here)
  • Renovate (for dependency management)
    add 'renovate.json` to project root
    {
      "$schema": "https://docs.renovatebot.com/renovate-schema.json",
      "extends": [
        "local>netlify-templates/renovate-config"
      ]
    }
    
  • Disable dependabot secutrity and version update alerts
  • Make sure to update the README on how to remove everything
    • add section on cypress removal
    • add section on removing renovate json file
    • add comment at top of renovate json saying it can be removed if not using renovate

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @netlify/plugin-gatsby ^3.8.0
  • cypress ^10.0.3
  • gatsby ^4.5.4
  • gatsby-plugin-manifest ^4.14.0
  • react ^18.0.0
  • react-dom ^18.0.0
  • react-helmet ^6.1.0
  • react-slick ^0.30.0
  • gatsby-plugin-netlify ^5.0.0
  • netlify-plugin-cypress ~2.2.0
  • plop ^3.0.5
  • prettier ^2.6.2

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

Package subpath './is-truthy' is not defined by "exports"

After cloning and running 'npm i', I did npm start and I got the following error

[email protected] start
gatsby develop -p 5000

internal/modules/cjs/loader.js:491
throw new ERR_PACKAGE_PATH_NOT_EXPORTED(basePath, mappingKey);
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './is-truthy' is not defined by "exports" in /Applications/gatsby-ecommerce-theme/node_modules/gatsby-core-utils/package.json
at applyExports (internal/modules/cjs/loader.js:491:9)
at resolveExports (internal/modules/cjs/loader.js:507:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Applications/gatsby-ecommerce-theme/node_modules/gatsby-cli/lib/reporter/reporter.js:34:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

When running gatsby build
/usr/local/lib/node_modules/gatsby-cli/lib/reporter/reporter.js:41
let isVerbose = (0, _isTruthy.isTruthy)(process.env.GATSBY_REPORTER_ISVERBOSE);
^

ReferenceError: _isTruthy is not defined
at Object. (/usr/local/lib/node_modules/gatsby-cli/lib/reporter/reporter.js:41:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/usr/local/lib/node_modules/gatsby-cli/lib/reporter/catch-exit-signals.js:16:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)

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.