Feature Flag Manager
When to Trigger
- •"Add feature flag for [feature]"
- •New experimental feature
What to Do
- •Storage: Add flag to DB or config (e.g. feature_flags table or env/config object).
- •Hook: e.g. useFeature(flag) that returns boolean (from API or config); use React Query if fetched.
- •Usage: In components, branch on flag (e.g. show LegacyFeature vs EnhancedFeature).
- •Admin: If project has admin UI, add toggle for the flag.
Keep flag names UPPER_SNAKE_CASE and document in config/types. Use existing feature-flag service if project has one.