Switch to GlExperimentBadge instead of the custom badge on pre-receive Secret Detection setting
Add setting for enabling pre-receive Secret Det... (!149167 - merged) introduced the Beta
badge to the PreReceiveSecretDetectionFeatureCard
component. However, it imports the custom badge component from the monolith, instead of relying on the shared GlExperimentBadge
gitlab-ui component.
This issue suggests moving to the shared UI component as the SSOT for the Beta/Experimental badge.
Beta
?
How to make it The GlExperimentBadge
component supports type
property which takes one of the two values: experiment
and beta
. So, to have it render text for the beta
scenario, all it takes is to set the type="beta"
.
Implementation Plan
-
Replace the BetaBadge
inPreReceiveSecretDetectionFeatureCard
withGlExperimentBadge
-
Set the type
property tobeta
type -
Add / Update the test coverage
Edited by Dheeraj Joshi