mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
This PR cleans up the projectListViewToggle flag. These changes were automatically generated by AI and should be reviewed carefully. Fixes #10526 ## 🧹 AI Flag Cleanup Summary This change removes the `projectListViewToggle` feature flag and hardcodes its behavior. The feature, which allows toggling between card and list views for projects, is now permanently enabled. ### 🚮 Removed - **Flag Definitions** - Removed `projectListViewToggle` from `src/server-dev.ts`, `src/lib/types/experimental.ts`, and `frontend/src/interfaces/uiConfig.ts`. - **Hooks & Conditionals** - Removed `useUiFlag('projectListViewToggle')` calls from `ProjectGroup.tsx` and `ProjectList.tsx`. - Removed conditional rendering logic based on the flag in `ProjectGroup.tsx` and `ProjectList.tsx`. ### 🛠 Kept - **Project List View** - The project list view functionality is now always available for non-OSS versions of Unleash. - The `ProjectsListViewToggle` component is now always rendered when not in an OSS environment. ### 📝 Why The `projectListViewToggle` feature flag was marked as completed and its intended outcome was to be kept. The code has been updated to reflect this by removing the flag and making the feature a permanent part of the application. This simplifies the codebase by removing dead code paths and feature flag checks. Co-authored-by: unleash-bot <194219037+unleash-bot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
lib | ||
mailtemplates | ||
migrations | ||
test | ||
migrator.ts | ||
server-dev.ts | ||
server.ts | ||
test-setup.ts |