How do I add customization settings to AWX UI?
I want to add a toggleable boolean option to the MiscSystem page. I’ve added everything I think I need to my own awx fork and have deployed it with the custom setting configured in the operator and functionally my code works, but the setting doesn’t appear in the UI.
Using ACTIVITY_STREAM_ENABLED
as a reference, I’ve added the custom setting to the following files:
- ./awx/main/conf.py
- ./awx/settings/defaults.py
- ./awx/ui/src/screens/Setting/MiscSystem/MiscSystemDetail/MiscSystemDetail.js
- ./awx/ui/src/screens/Setting/MiscSystem/MiscSystemDetail/MiscSystemDetail.test.js
- ./awx/ui/src/screens/Setting/MiscSystem/MiscSystemEdit/MiscSystemEdit.js
- ./awx/ui/src/screens/Setting/MiscSystem/MiscSystemEdit/MiscSystemEdit.test.js
- ./awx/ui/src/screens/Setting/shared/data.allSettingOptions.json
- ./awx/ui/src/screens/Setting/shared/data.allSettings.json
But the setting doesn’t appear in the UI. I do know that a new UI setting would need to be added to the awx frontend in ansible-ui, but that should only affect UI-Next right? As seen in the screenshot, I don’t have the preview enabled right now.