mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
This PR cleans up the newStrategyModal flag. These changes were automatically generated by AI and should be reviewed carefully. Fixes #10911 🧹 AI Flag Cleanup Summary This change removes the newStrategyModal feature flag, making the new "Add strategy" modal the default and only experience for adding strategies to a feature. I've removed the flag checks and the legacy code paths for the old strategy menu. The FeatureStrategyMenu component is now simplified to only render the new modal experience. I have also removed the flag from backend configurations and frontend interfaces. 🚮 Removed • Feature Flag: newStrategyModal flag definition and configuration from experimental.ts, server-dev.ts, and uiConfig.ts. • Conditional Logic: All checks for the newStrategyModal flag in FeatureStrategyMenu.tsx. • Legacy Components: The old strategy menu (LegacyFeatureStrategyMenuCards) and related dialogs (LegacyReleasePlanReviewDialog) have been removed from FeatureStrategyMenu.tsx. • Unused Code: Unused state variables, functions (openDefaultStrategyCreationModal, openReleasePlans), and imports related to the legacy strategy menu have been cleaned up. 🛠 Kept • New "Add strategy" modal: The new modal for adding strategies is now the only implementation. Its user experience is preserved and made default. 📝 Why The newStrategyModal feature has been completed, and the decision was to keep the new user experience. This cleanup removes the complexity of maintaining two different UI paths for adding strategies, making the code cleaner and easier to maintain. --------- Co-authored-by: unleash-bot <194219037+unleash-bot[bot]@users.noreply.github.com> Co-authored-by: Nuno Góis <github@nunogois.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| mailtemplates | ||
| migrations | ||
| test | ||
| migrator.ts | ||
| server-dev.ts | ||
| server.ts | ||
| test-setup.ts | ||