namespace BigRegister.Domain.Features; /// A known feature flag — DECLARED in code (this catalog, build-validated), TOGGLED at runtime /// (on/off state persisted in SQLite by FeatureFlagStore). Same split as stamdata (catalog is /// config-as-code) × org-templates (runtime state in the DB): what flags exist is code; whether /// they're on is operational config an admin flips. public sealed record FeatureFlagDef(string Key, string Description, bool DefaultEnabled); public static class FeatureFlags { /// Whether self-service registration (inschrijving) is open. When off, the FE hides the /// "Inschrijven" action and POST /applications for a `registratie` is refused (server-enforced). public const string InschrijvingOpen = "inschrijving-open"; public static readonly IReadOnlyList Catalog = new[] { new FeatureFlagDef( InschrijvingOpen, "Zelf-inschrijving in het BIG-register is opengesteld.", DefaultEnabled: true), }; }