refactor: remove extension toggle system — compiled-in extensions are always active (#59)
The runtime toggle system (extension_toggles table, API routes, hooks, UI components) added unnecessary complexity. Extensions controlled via extensions.config.json at build time are now always active for all users. This removes ~835 lines of toggle-related code including API routes, DB queries, the ExtensionToggleButton component, useEnabledExtensions and useExtensionToggle hooks, and the toggle-check module. AI consent gating remains unchanged. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -101,7 +101,6 @@ BEGIN
|
||||
DELETE FROM public.chat_sessions WHERE user_id = target_user_id;
|
||||
DELETE FROM public.extension_data WHERE user_id = target_user_id;
|
||||
DELETE FROM public.audit_log WHERE user_id = target_user_id;
|
||||
DELETE FROM public.extension_toggles WHERE user_id = target_user_id;
|
||||
DELETE FROM public.company_settings WHERE user_id = target_user_id;
|
||||
DELETE FROM public.profiles WHERE id = target_user_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user