Enable or Disable the Driver Module for the Organization via Feature Flag
The driver administration and confidentiality declaration feature is specific to certain organizations (currently Blindeforbundet). A feature flag gate controls visibility of all driver-related UI elements at the coordinator level. This includes the driver assignment list, declaration send buttons, honorarium form, and all related navigation entries. When the flag is disabled, coordinators see a standard expense and assignment workflow without any driver-specific elements. The feature flag is configured per organization and evaluated at runtime.
User Story
Acceptance Criteria
- Given the coordinator's organization has the driver feature flag enabled, when they open the app, then the driver assignment section appears in the home screen and in the relevant navigation areas
- Given the coordinator's organization has the driver feature flag disabled, when they open the app, then no driver assignment list, declaration controls, or honorarium form are visible anywhere in the UI
- Given the feature flag value changes in the backend configuration, when the coordinator restarts the app or the session refreshes, then the UI reflects the updated flag value without requiring an app store update
- Given the coordinator attempts to deep-link into a driver assignment screen when the flag is disabled, when the route is resolved, then the driver feature flag guard redirects them to the home screen with no error
- Given a system administrator changes the feature flag for an organization, when the coordinator's next session starts, then the flag evaluation uses the latest configuration from the repository
Business Value
The driver module is not relevant to all organizations using the platform. Exposing it universally would create confusion and additional cognitive load for coordinators at NHF or HLF who have no driver workflows. Feature flag gating allows a single app binary to serve multiple organizations cleanly, reduces support requests about irrelevant features, and enables Blindeforbundet to get their specific driver workflow without impacting other organizations' user experience.
Components
- Driver Feature Flag Guard Widget ui
- Organization Feature Flag Service service
- Driver Feature Flag Configuration infrastructure
- Feature Flag Provider infrastructure
- Rollout Condition Evaluator service
- Feature Flag Repository data