Commit Graph

45 Commits

Author SHA1 Message Date
David Moreau Simard a12552fa57
opendev: Remove content and leave an URL to the GitHub repository
Change-Id: I1b02706b0cd681f5a8041897f57363ecdadd4fd9
2021-02-25 15:21:49 -05:00
Guillaume Vincent 57acf74e4a Apply prettier on javascript files
use prettier 2.0

Change-Id: I3a7b8ae39029a7f52f3c8f953bba7bfea82c2f1a
2020-04-20 18:22:38 +00:00
Guillaume Vincent a7213aeffb Do not round duration just display it
Change-Id: I3907c3d0971e5c3cb1143fff6c18b730bb61c60d
2020-04-20 18:22:34 +00:00
David Moreau Simard 5357f8bc32
Format started/ended and duration timestamps for results
Use a format like this:
    Fri, 31 May 2019 14:47:29 GMT"
Instead of:
    2019-05-31T14:47:29.927431Z

Change-Id: Ib55ea89f6d91d429c4ceb8fa9d0df1e24b404c72
2019-07-04 14:20:27 -04:00
David Moreau Simard 75acba49f5
Update title and logo alt text to use ARA Records Ansible
Change-Id: Idbcb50b2783376478b13e95493d1318d13773e2b
2019-06-05 10:32:02 -04:00
David Moreau Simard ba99a6f048
Update doc links to use latest now that 1.0 is released
Change-Id: Ideb3d57069fcb410e739da7cc6cf4f5f04a3bc62
2019-06-04 20:21:14 -04:00
David Moreau Simard 0526516f30
Remove stray comma
Change-Id: I5b3abd65b42ad904767d9cc748d15a6ccbabe4b3
2019-06-03 08:58:45 -04:00
Guillaume Vincent 06e13e80fd Fix visual glitches
Change-Id: I4f2875202f1a45445157adb4a9a0e18bc2e0afa8
2019-05-31 12:21:52 +02:00
Guillaume Vincent ce1e66dc2e Rename Container into Page and apply prettier
Change-Id: Ib1b132a7a9f09dfcfb94f8e5af22546571a686ac
2019-05-31 12:21:34 +02:00
Guillaume Vincent 15edc82340 Prevent Warning: Can't perform a React state update on an unmounted component
Change-Id: I8c2113613eaf69047145f4b1d1299e713cfeea13
2019-05-31 12:20:30 +02:00
Guillaume Vincent 9e2feefb2e Support authentication
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
2019-05-31 12:20:02 +02:00
Guillaume Vincent 41c073b8fd Fix error handler in Playbooks page
error.status doesn't exists, the object we need to check in case of an error is error.response

Change-Id: If56f4df2ed412c15c04864bb95ba0c671f338fef
2019-05-29 15:11:30 +02:00
Guillaume Vincent acadff27db Differentiate between no playbooks from api server unreachable
Fixes: https://github.com/ansible-community/ara-web/issues/9
Change-Id: I651af7f967038bc6077a8749dedc03bffa22d0ca
2019-05-29 13:06:39 +02:00
Zuul 7967dbae09 Merge "Update documentation links to use the feature/1.0 branch" 2019-05-23 21:29:39 +00:00
David Moreau Simard 4b8608e646
Update documentation links to use the feature/1.0 branch
Change-Id: Id3dc84039fc038721ee18f24d1b5edfb36f48db6
2019-05-23 16:28:09 -04:00
David Moreau Simard 04d0ade78d
Display labels in playbook summary
Change-Id: I0b7d616e177cbe05a9b384f08b67572a0e37cb3f
2019-05-23 15:56:10 -04:00
David Moreau Simard 66ed7ef465
Display the playbook name if it's available, otherwise use the path
Change-Id: I834a4237771478c69b9d61635f93b1299bde7e8f
2019-05-23 15:56:10 -04:00
David Moreau Simard 7e33c0d328
Print playbook summary at the top of the playbook details
Change-Id: I83c2f27609c7de9d208f8b903c0d08089f9f28cd
2019-05-23 15:56:10 -04:00
David Moreau Simard 4b412ce053
Add the date the playbook started in the playbook summary
We need to display this somewhere and can iterate on it later if
need be.

Change-Id: If398ee3db93ac623e7104a8ee7043f607478501d
2019-05-23 15:56:10 -04:00
Guillaume Vincent 038e9d9e17 Group Playbook Task results per task
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
2019-05-22 14:15:39 +02:00
Guillaume Vincent 46f8897604 Update ara-web patternfly modules to use the released version
Patternfly is released, we can now use component from react-core modules.
Update patternfly modules.

Replace html components with react equivalents

Change-Id: I93941fe86ae2dda905af78779b414cbc8cc4fcc1
2019-05-22 14:14:40 +02:00
David Moreau Simard 4abe7755b8
Update dependencies and move from patternfly-next to patternfly
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
2019-04-17 13:53:06 -04:00
David Moreau Simard bb4685eb09
Leverage refactored API for displaying playbook details
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
2019-03-20 11:57:00 -04:00
Guillaume Vincent 071038e883 Use flexbox instead of grid in playbook summary
Remove the arguments box because the information displayed is useless

Change-Id: I62b8f607bb5fdc21152aa186849d1719a7f160e6
2019-01-17 14:51:16 +01:00
Guillaume Vincent 04a2d4a05e Update playbooks page
* 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
2019-01-17 13:57:13 +01:00
Guillaume Vincent ddd1e712f8 Add tasks plays and records number in Playbook summary
Change-Id: Ib0437552e835a3d8ba43321490ed1f27c2dd4ccb
2019-01-16 16:22:37 +01:00
Guillaume Vincent 3cb2d5bc55 Move playbook details page in a dedicated page
Change-Id: I5ff30157a154fec52b6cee83d237823a7ce8c99d
2019-01-14 20:18:21 +01:00
Guillaume Vincent fe595b35d6 Fix 404 config.json issue
When we reload the page on subroute, the GET on config.json return a 404.
Use homepage from package.json

Change-Id: I506fa8b6bc5034ef1fa7171229301f729adf9da7
2019-01-14 16:27:19 +01:00
Guillaume Vincent b58c5feb54 Run unit test in zuul
Change-Id: I0d0b57a576d1a6faba9121236b87653b6ab973d6
2019-01-09 15:44:23 +01:00
Guillaume Vincent 7bae0ba80a Use homepage as basename for browser router
Change-Id: I8eafcdd25224437c1110bb0583b412d60e21d292
2019-01-09 09:45:09 +01:00
David Moreau Simard 06f906f570
Use relative path when retrieving config.json
Using absolute prevents the web application from being hosted inside
a subdirectory.

Change-Id: Ie236372dd60f16a1f53c0f5d14b4a7675d7d1973
2019-01-08 10:09:45 -05:00
David Moreau Simard faf985d81c
Fix TypeError: API changed playbook.file to playbook.path
Introduced when we merged https://review.openstack.org/#/c/625961/

Change-Id: If8e95a20b8717e864402be18e861b605039fbafa
2019-01-07 12:45:03 -05:00
Guillaume Vincent df050a5b51 add config.json to configure api URL
Load config.json at startup

Change-Id: I38df3611daed155c91fccdaf175df4b9778953ae
2018-12-20 17:47:29 +01:00
Guillaume Vincent d42b04f049 Migrate to patternfly 4
Change-Id: Ieb31bc739740c382d46a074f15ce7e9e94c1b480
2018-12-19 14:53:27 +01:00
Guillaume Vincent 3aa04800ef Add files and hosts components for a playbook
Change-Id: I3c7d1ce1be1bcc3564ad9073d3c6c2095ec085a0
2018-12-17 17:32:09 +01:00
Zuul 555d28b845 Merge "First iteration of playbook status icons based on playbook.status" 2018-10-17 15:19:12 +00:00
David Moreau Simard 7554d84799
Make the permalink and clock icons for playbooks larger
They were pretty small in comparison to the other elements.

Change-Id: Icc9c84ad63e1b7dbaa8836ca756c033789b3c8e3
2018-10-16 11:53:42 -04:00
David Moreau Simard fdd0b0eb31
First iteration of playbook status icons based on playbook.status
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
2018-10-16 11:37:26 -04:00
David Moreau Simard 1179bb8901
Rename parameters to arguments for consistency
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
2018-10-14 12:45:26 -04:00
Guillaume Vincent ae5e69cd92 Add playbook parameters in playbook item
Change-Id: Ia258a4b8ed5be4376975c775828289d5f0cbc716
2018-09-17 17:18:45 +02:00
Guillaume Vincent a039653c7d Introduce ListItem in playbooks container
Change-Id: I12818d89f2def798eff037fe2c33c0fed530be3d
2018-09-17 16:17:30 +02:00
Guillaume Vincent 46eada7f45 Read versions in Navbar from config
Change-Id: I1b3493e5f3898c92091bd1d96a5e598a6dfa7181
2018-09-17 16:14:52 +02:00
Guillaume Vincent 722ea92916 Connect ara-web with ara-server
* 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
2018-09-17 16:14:46 +02:00
Guillaume Vincent fc81f257d6 Extract Navbar component from App component
Change-Id: Ie2fa04dd6326dba736341b7baf51f17e04984254
2018-04-23 16:44:13 +02:00
Guillaume Vincent 72e86499e7 First commit: Import 1.0 ara-web skeleton
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
2018-03-29 18:44:12 +02:00