Skip to content

edonehoo/react-user-feedback

 
 

Repository files navigation

PatternFly React User Feedback

This project is a PatternFly React based component used to collect user feedback. Examples of how to use this extension are documented on the PatternFly website under Extensions

Installing dependencies

This extension uses yarn for building and development. You can install the dependencies for this project using the yarn install.

yarn install 

Building the extension

To build the user-feedback extension locally first follow the instructions to install the dependencies. Once that has completed type the following in a terminal:

yarn build

Development instructions

Using the development server

The development server will show you the documentation for this product along with working examples. This is what is used for running and developing the feedback extension.

You can start the development server by typing:

yarn start 

Running Unit Tests

Jest along with React testing library are used to test the components that make up this extension.

To run unit tests first you can type:

yarn test

Linting

ESLint is used to ensure everyone that contributes to this project is following the same best practices, and to statically analyze the code.

To run the linter:

yarn lint

Accessability

Accessability (a11y) tests are used to make sure the extension is meeting the same a11y guidelines as PatternFly. Running the a11y tests require that the documentation is built and served. Accessability tests are run on port 5001.

To build the documentation type the following in a terminal:

yarn build:docs
yarn serve:docs

In a new terminal window to run the accessibility tests type:

yarn test:a11y

Once the accessibility tests have finished running you can run yarn serve:a11y to locally view the generated report.

Committing changes

When commiting changes follow the guidelines in semantic release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 63.7%
  • JavaScript 32.5%
  • SCSS 3.6%
  • Shell 0.2%