Skip to content

Conversation

@unleash-bot
Copy link
Contributor

@unleash-bot unleash-bot bot commented Nov 4, 2025

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.

@vercel
Copy link

vercel bot commented Nov 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Updated (UTC)
unleash-docs Ignored Ignored Preview Nov 4, 2025 4:29pm

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I think we should not modify the CHANGELOG

Comment on lines 225 to 226
- Add newStrategyModal flag ([#10629](https://github.com/Unleash/unleash/issues/10629))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not modify the changelog

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, you're completely right, I missed that. Fixing!

@github-project-automation github-project-automation bot moved this from New to Approved PRs in Issues and PRs Nov 4, 2025
@nunogois nunogois merged commit 11a2860 into main Nov 5, 2025
13 checks passed
@nunogois nunogois deleted the chore/unleash-ai-newstrategymodal-flag-cleanup branch November 5, 2025 08:59
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in Issues and PRs Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🧹 Flag newStrategyModal marked as completed

3 participants