1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy/NewFeatureStrategyCreate
Fredrik Strand Oseberg 049c5b9afa
feat: variant name change on create (#5742)
This PR refactores the StrategyVariants component to be passed in from
the outside to the new form component. This allows us to pass in the
StrategyVariants with an "editable" property in the create form which we
use to determine the editable state of the name input field. If the
editable field is not passed in we keep the old behavior.

Notable changes:
* StrategyVariants is now passed in from the outside, allowing us to
define different props at call time
* Added tests for the new behavior, and for keeping the old behavior
(such as in edit strategy)
* Added tracking
2024-01-02 13:53:04 +01:00
..
featureStrategyFormTestSetup.ts feat: variant name change on create (#5742) 2024-01-02 13:53:04 +01:00
NewFeatureStrategyCreate.test.tsx feat: variant name change on create (#5742) 2024-01-02 13:53:04 +01:00
NewFeatureStrategyCreate.tsx feat: variant name change on create (#5742) 2024-01-02 13:53:04 +01:00