From 89e200fa9f4069dafdc2404eeefa216077578895 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 4 Apr 2026 19:14:16 -0700 Subject: [PATCH] feat(flags): seed devintelli feature flags (11 flags) - devintelli_enabled, devintelli_scan_enabled, devintelli_daily_sync - 6 analytics panel flags (overview, commit, pr, review, language, productivity, repo) - devintelli_billing_enabled (disabled by default) Aligns with backend/src/lib/feature-flags.ts defaults --- .../src/modules/flags/seed.ts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/services/platform-service/src/modules/flags/seed.ts b/services/platform-service/src/modules/flags/seed.ts index 52a103fa..e05cf2f7 100644 --- a/services/platform-service/src/modules/flags/seed.ts +++ b/services/platform-service/src/modules/flags/seed.ts @@ -353,6 +353,85 @@ const PRODUCT_FLAGS: Record = { percentage: 100, }, ], + devintelli: [ + { + key: 'devintelli_enabled', + enabled: true, + description: 'Master switch for DevIntelli product features', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_scan_enabled', + enabled: true, + description: 'GitHub PAT scanning and data ingestion', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_daily_sync', + enabled: true, + description: 'Scheduled daily incremental sync of GitHub data', + platforms: [], + percentage: 100, + }, + { + key: 'devintelli_overview_panel', + enabled: true, + description: 'Dashboard overview panel (stats, heatmap, streak)', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_commit_panel', + enabled: true, + description: 'Commit Intelligence analytics panel', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_pr_panel', + enabled: true, + description: 'Pull Request analytics panel', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_review_panel', + enabled: true, + description: 'Code Review Activity analytics panel', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_language_panel', + enabled: true, + description: 'Language & Tech Profile analytics panel', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_productivity_panel', + enabled: true, + description: 'Productivity Patterns analytics panel', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_repo_panel', + enabled: true, + description: 'Repository analytics panel', + platforms: ['web'], + percentage: 100, + }, + { + key: 'devintelli_billing_enabled', + enabled: false, + description: 'Billing / subscription features (Pro tier)', + platforms: ['web'], + percentage: 0, + }, + ], clawcowork: [ { key: 'sandbox_enabled',