Skip to content

Library of Patternfly v4 components for Widgetastic.

Notifications You must be signed in to change notification settings

jakurban/widgetastic.patternfly4

 
 

Repository files navigation

widgetastic.patternfly4

Build status codecov PyPI version Documentation status

Library of Patternfly v4 (aka Next) components for Widgetastic.

Components list

Alert - https://www.patternfly.org/v4/components/alert

Breadcrumb - https://www.patternfly.org/v4/components/breadcrumb

Button - https://www.patternfly.org/v4/components/button

Bullet Chart - https://www.patternfly.org/v4/charts/chartbullet

Card - https://www.patternfly.org/v4/components/card

Chip Group - https://www.patternfly.org/v4/components/chipgroup

Context Selector - https://www.patternfly.org/v4/components/contextselector

Donut Chart - https://www.patternfly.org/v4/charts/chartdonut

Dropdown - https://www.patternfly.org/v4/components/dropdown

FormSelect - https://www.patternfly.org/v4/components/formselect

Modal - https://patternfly-react.surge.sh/v4/components/modal

Nav - https://www.patternfly.org/v4/components/nav

Options Menu - https://www.patternfly.org/v4/components/optionsmenu

Pagination - https://www.patternfly.org/v4/components/pagination

Pie Chart - https://www.patternfly.org/v4/charts/chartpie

Popover - https://www.patternfly.org/v4/components/popover

Progress - https://www.patternfly.org/v4/components/progress

Select - https://www.patternfly.org/v4/components/select

Switch - https://www.patternfly.org/v4/components/switch

Table - https://www.patternfly.org/v4/components/table

Tabs - https://www.patternfly.org/v4/components/tabs

Contribution guide

# create a virtual environment
python3 -m venv /path/to/your/virtualenv/wt.pf4
source /path/to/your/virtualenv/wt.pf4/bin/activate

# update pip and its friends
pip install -U pip setuptools wheel

# clone the repo
git clone https://github.com/RedHatQE/widgetastic.patternfly4.git

# install pre-commit
cd widgetastic.patternfly4
# install the package in editable mode
pip install -e .[dev]
pre-commit install

Testing

The library has selenium tests that are performed against Patternfly React docs. It's also configured to run the tests every time when a new version of that page is released. Tests spawn a container from quay.io/redhatqe/selenium-standalone image. It has configured Selenium standalone server and the browsers (Chrome and Firefox).

Note: Tests use podman to manage containers. Please install it before running.

It's possible to run tests in parallel to speed up the execution. Use -n key tp specify a number of workers:

BROWSER=firefox pytest -v testing -n 4

About

Library of Patternfly v4 components for Widgetastic.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%