Always show Flux resource selector on the environment settings page
Proposal
Currently, we are only showing the Flux selector in the environments settings form once the namespace is selected. This lead to some of our users not knowing that the selector is there.
To fix this issue, always show the Flux selector, but make it disabled if the namespace was not selected.
Design proposal
| Agent |
Agent |
agent |
|---|---|---|
![]() |
![]() |
![]() |
Implementation guide
- Add a
disabledprop to theenvironment_flux_resource_selector. It should be a Boolean, false by default. - Add a tooltip to the
GlCollapsibleListboxusingGlTooltipDirective. Show the tooltip only when the selector is disabled. The text for the tooltip:Select a namespace to see available Flux resources.
- Update the
environment_formcomponent:- set the
disabledprop (we can use the existingshowFluxResourceSelectorcomputed for it, we can rename it to something likeenableFluxResourceSelectororfluxResourceSelectorEnabled) - use
showNamespaceSelectorcomputed to ensure the Flux resource selector is not rendered until the agent is selected.
- set the
- Update corresponding tests:
Edited by Anna Vovchenko


