feat(admin): runtime feature flags (catalog-in-code, admin toggle, FE+backend)
Catalog declared in code (Domain/Features/FeatureFlags.cs, build-validated), on/off state
persisted in SQLite (FeatureFlagStore + migration). GET /flags (drives FE gating) + admin
PUT /admin/flags/{key} (new flags:manage capability + FlagsAdmin gate). Enforced end-to-end:
the `inschrijving-open` flag hides the Inschrijven nav item + dashboard action (FE) AND makes
POST /applications for a registratie 403 when off (backend). FE FeatureFlagStore mirrors
AccessStore (enabled() deny-by-default); admin toggle page at /beheer/functies in ADMIN_LINKS.
+4 backend tests, /me cap-list updated, client regenerated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -3682,6 +3682,50 @@
|
||||
<source>Auditlog</source>
|
||||
<target datatype="html">Audit log</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="header.nav.functies" datatype="html">
|
||||
<source>Functievlaggen</source>
|
||||
<target datatype="html">Feature flags</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="admin.link.functies.desc" datatype="html">
|
||||
<source>Functionaliteit aan- of uitzetten</source>
|
||||
<target datatype="html">Turn functionality on or off</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.heading" datatype="html">
|
||||
<source>Functievlaggen</source>
|
||||
<target datatype="html">Feature flags</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.intro" datatype="html">
|
||||
<source>Zet functionaliteit aan of uit tijdens runtime. De catalogus staat vast in code; hier beheert u de status.</source>
|
||||
<target datatype="html">Turn functionality on or off at runtime. The catalog is fixed in code; here you manage the state.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.denied" datatype="html">
|
||||
<source>U hebt geen rechten om functievlaggen te beheren.</source>
|
||||
<target datatype="html">You do not have permission to manage feature flags.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.failed" datatype="html">
|
||||
<source>De functievlaggen konden niet worden geladen.</source>
|
||||
<target datatype="html">The feature flags could not be loaded.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.retry" datatype="html">
|
||||
<source>Opnieuw proberen</source>
|
||||
<target datatype="html">Try again</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.on" datatype="html">
|
||||
<source>Aan</source>
|
||||
<target datatype="html">On</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.off" datatype="html">
|
||||
<source>Uit</source>
|
||||
<target datatype="html">Off</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.enable" datatype="html">
|
||||
<source>Aanzetten</source>
|
||||
<target datatype="html">Turn on</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flags.disable" datatype="html">
|
||||
<source>Uitzetten</source>
|
||||
<target datatype="html">Turn off</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="admin.link.audit.desc" datatype="html">
|
||||
<source>Toegangs- en inzagebeslissingen bekijken</source>
|
||||
<target datatype="html">View access and disclosure decisions</target>
|
||||
|
||||
Reference in New Issue
Block a user