Add "Needs approval" badge to the environment details page
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
Currently, the "Needs approval" badge is not present on the environment details page, making it difficult for users to identify which deployments require approval when viewing environment details. This enhancement would add the "Needs approval" badge to the environment details page for deployments that are pending approval.
This improvement would:
- Create a consistent experience across all environment-related pages
- Allow users to quickly identify deployments requiring approval from the environment details page
- Reduce confusion and improve the overall user experience when working with protected environments
Implementation suggestion
Add the "Needs approval" badge to the environment details page using the same logic and styling as on the other environment pages. This would involve adding the appropriate badge component and conditions to the environment details view.
Note: We might want to solve the issue of approval actions shown for the user who can't approve/already approve before implementing this to avoid adding visual noise.
Related to https://gitlab.com/gitlab-com/account-management/commercial/arcesium/-/issues/38 (internal)