GitHub - patternfly/react-user-feedback

This project is a PatternFly React extension that products can use to collect feedback from users. To view examples of this extension’s use, view its documentation on PatternFly.

Installing dependencies

Yarn is used to develop and build user feedback. To install dependencies for this project, use the yarn install terminal command:

Building the extension

Once dependencies are installed, you can build user feedback locally using the yard build terminal command:

Development instructions

Using the development server

The development server runs and develops user feedback, and also contains documentation and working examples. To start the development server, use the yarn start terminal command:

Running unit tests

User feedback is tested with Jest and the React testing library. To run unit tests, use the yarn test terminal command:

Linting

ESLint is used to analyze user feedback’s source code to flag potential quality errors. This also ensures that all contributors follow the same best practices. To run the linter, use the yarn lint terminal command:

Accessibility

Accessibility (a11y) tests are used to ensure that user feedback meets the same a11y guidelines as PatternFly. To run a11y tests, you must build and serve its documentation by using the yarn build:docs and yarn serve:docs terminal commands:

yarn build:docs
yarn serve:docs

In a new terminal window, use the yarn test:a11y to run accessibility tests:

Once the accessibility tests have finished running, you can locally view the generated report using the the yarn serve:a11y terminal command:

Committing changes

When commiting changes to this repo follow the semantic release guidelines.

AI-assisted development guidelines

Please reference PatternFly's AI-assisted development guidelines if you'd like to contribute code generated using AI.