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:
Jakob Wennberg
2026-03-20 09:31:29 +01:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 38b658205d
commit cf77adaa0a
30 changed files with 115 additions and 833 deletions
+1 -6
View File
@@ -2,14 +2,9 @@ export { extensionRegistry } from './registry'
export { loadExtensions } from './loader'
export type {
Extension,
RouteDefinition,
ApiRouteDefinition,
SidebarItem,
ReportDefinition,
SettingsPanelDefinition,
TaxCodeDefinition,
DimensionDefinition,
MappingRuleTypeDefinition,
ExtensionEventHandler,
ExtensionContext,
SettingsPanelDefinition,
} from './types'