Reset Specific Labels to System Defaults
The Labels Config Screen provides a reset control alongside each label field (or a bulk reset for all keys) that restores the system default value from the Label Keys Constants file. The Label Keys Constants file is the authoritative source of defaults — resetting writes null or an empty marker to the org_labels table for the affected keys, causing the Labels Service to fall back to the constant-defined default at render time. This mechanism ensures the app always has a valid string for every label even after a reset.
User Story
Acceptance Criteria
- Given the labels config screen is open, when an administrator clicks the reset control on an individual label key, then that key's input field is repopulated with the system default from Label Keys Constants
- Given the labels config screen is open, when an administrator uses the bulk reset action and confirms, then all label keys are restored to their system defaults and the change is saved to the Labels Repository
- Given a label key has been reset to default, when the Dynamic Label Widget renders that key, then the system default string from Label Keys Constants is displayed
- Given a reset action is triggered, when the user has not yet confirmed, then a confirmation dialog is shown explaining that custom labels will be removed
Business Value
Providing a clear reset path reduces the risk of permanent misconfiguration and gives administrators confidence to experiment with terminology changes. Without a reset mechanism, recovering from a bad label update would require manual re-entry of defaults, which are not otherwise surfaced to users.
Components
- Labels Config Screen ui
- Labels Repository data
- Label Keys Constants infrastructure
- Dynamic Label Widget ui