Test at startup if /api/v1/ returns 401 status code.
If yes redirect to login page, else continue.
On login save credentials (username, password) in localStorage.
On every request we set credentials in header if present.
Fixes: https://github.com/ansible-community/ara-web/issues/1
Change-Id: I0f0b18b5590dec4ebfce32aa6519bb46fc8533f5
When we have a lot of hosts and a lot of tasks, displaying every tasks per host is not a good idea.
This patch groups tasks together to simplify troubleshooting.
Fixes: https://github.com/ansible-community/ara-web/issues/7
Change-Id: I32fcf9a0296063716a8f77179ee7f72137ffbe55
Patternfly is released, we can now use component from react-core modules.
Update patternfly modules.
Replace html components with react equivalents
Change-Id: I93941fe86ae2dda905af78779b414cbc8cc4fcc1
patternfly-next hasn't been updated since they've moved to
@patternfly/patternfly [1].
Otherwise update dependencies to resolve vulnerability and deprecation
warnings.
[1]: https://blog.patternfly.org/patternfly/patternfly-4-beta-is-here/
Change-Id: Ie6a08723bb5262a3f3db773982261c4139b68816
Numbers for the summary are now provided, we no longer need to count them.
We no longer need dedicated task actions (for now), remove them.
In the playbook details, we now iterate through each play to print a table that reconciles
tasks, results and hosts involved in that play.
The design of the UI is not final and is mostly a proof of concept for
the visualizing the refactored API.
Depends-On: https://review.openstack.org/#/c/641136/
Change-Id: I27180fab04e1192516be6f12fee53c299f434fee
* import react-icons react-tokens to use it the code
* update patternfly-next to the latest version
* fix icon issues in playbook summary
* fix playbook summary layout on mobile
Change-Id: I1ec2e60b1433c42a8d02376ae5a508a6c8ef9439
When we reload the page on subroute, the GET on config.json return a 404.
Use homepage from package.json
Change-Id: I506fa8b6bc5034ef1fa7171229301f729adf9da7
This is a modest attempt at displaying the right icon based on
playbook.status.
Depends-On: https://review.openstack.org/#/c/610760/
Change-Id: I4d6b08223943c97ecf0924d24b8d1da018c4f3f0
The backend and the callback are now referring to parameters as
arguments.
Also "Arguments" appears to be a reserved variable so use "Args"
instead where necessary.
Depends-On: https://review.openstack.org/610389
Change-Id: I5f8f16983c8e61dde911ec84fe748eb804641116
* install react-router and redux
* create redux store and start fetching some playbooks from ara-server
* create playbooks and config states in redux
Change-Id: I455f217797fc69d722bedd573eaed2cea70ede6b
In ARA 1.0, the different components that makes ARA are being split
into their own projects, modules and repositories.
This will, amongst other things, allow for the different components to
be installed in a modular fashion only where they make sense.
ara-web will be the repository and project which will contain the
frontend web-facing interface.
This is a first commit/import from what is roughly a skeleton and we'll
iterate on that.
Change-Id: Id035c2eb9d0fe55b3cada6daf04d94fc76ba95f0