-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing tech preview of the new AWX UI #13660
Conversation
27f8f1a
to
6fbc58f
Compare
bb5e1d4
to
a7b87ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pulled it down and tested out the instructions in the readme. Was able to build new UI successfully, navigate to new UI, and tested out the banner functionality to flip between old and new UI
Co-Authored-By: kialam <2293210+kialam@users.noreply.github.com>
89c8c60
to
a3f4916
Compare
- Add new makefile for building ui_next - Add setting to toggle ui_next - Add URL path for displaying ui_next - Update collectstatic and template dir config to serve ui_next
- Add ui_next to /api/v2/config - enable banner to show up for normal user since /api/v2/settings is only available to admin users
…ame variable in tech preview banner.
a3f4916
to
21a97dc
Compare
21a97dc
to
48a04bf
Compare
In the blue banner in UI Next it references |
I had awx running and then did |
2446bda
to
f67171c
Compare
- move placeholder index_awx.html out of ui_next build dir - copy index_awx.html to build dir during development bootstrap if UI_NEXT has not been build
- they were all PHONY to start with and also all target are written to be rerun able
f67171c
to
bc7599d
Compare
Yes, those changes have already been made. |
It would require another API call to get /config in order to refresh the banner. The banner doesn't auto update unless a refresh is called for now, but can revisit this. |
9 failed tests on run #14699 ↗︎
Details:
components/ace-editor.cy.js • 1 failed test
components/modals.cy.js • 1 failed test
screens/dashboard/dashboard.cy.js • 1 failed test
screens/execution-environments/execution-environment.cy.js • 1 failed test
screens/inventories/smart-inventory.cy.js • 1 failed test
The first 5 failed specs are shown, see all 9 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
.gitignore
Outdated
@@ -157,7 +157,11 @@ use_dev_supervisor.txt | |||
*.unison.tmp | |||
*.# | |||
/awx/ui/.ui-built | |||
/awx/ui_next/.ui-built |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line that file is no longer needed
also cleanup some small things
b89dcae
to
746cd4b
Compare
SUMMARY
/ui_next
to access the new UIISSUE TYPE
COMPONENT NAME
AWX VERSION
TEST SCENARIOS
Test environment: fedora 37 VM setup using https://github.com/TheRealHaoLiu/fedora-setup/tree/main
docker-compose related tests:
🟢 able to start API server without building ui or ui-next in docker-compose development environment (verify via access to /api/v2/ping)
🟢 able to build ui and ui-next on machine directly (verified via
make ui-devel && make ui-next
)🟢 able to build ui and ui-next in docker-compose development environment (ui-next src from git)
🟢 after building ui without building ui-next with settings.UI_NEXT enabled verified that the placehold index page show up (telling people that UI_NEXT was not built yet)
🟢 after building ui and ui-next collectstatic is able to collect the static files successfully and ui show up
kube build related tests:
🟢 able to build awx with
make awx-kube-build
and old and new UI appears successfully (with spud logo)🟢 CI feature branch built image function as expected with both old and new UI appear successfully (with spud logo)
release build related tests:
🟢 moc stage job was able to successfully build and push the moc release image https://github.com/ansible/awx/actions/runs/4443351332/jobs/7800534464
🟢 deployment using the image generated by stage CI job produced image is successful both old and new ui function (with AWX logo)
Function related tests:
🟢 /ui_next show 404 when settings.UI_NEXT = False
🟢 banner on old UI for switching to new UI does not appear when settings.UI_NEXT = False
🟢 banner on old UI for switching to new UI appear for normal user when settings.UI_NEXT = True