Update config wording and metadata

This commit is contained in:
Daniel 2020-11-04 14:35:54 +01:00
parent 73143e63ef
commit 8806469181
3 changed files with 12 additions and 10 deletions

View file

@ -9,7 +9,7 @@ import (
// Config Keys
const (
CfgDefaultListenAddressKey = "api/listenAddress"
CfgDefaultListenAddressKey = "core/listenAddress"
)
var (
@ -49,14 +49,14 @@ func registerConfig() error {
ValidationRegex: "^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{1,5}|\\[[:0-9A-Fa-f]+\\]:[0-9]{1,5})$",
RequiresRestart: true,
Annotations: config.Annotations{
config.DisplayOrderAnnotation: 128,
config.DisplayOrderAnnotation: 513,
config.CategoryAnnotation: "Development",
},
})
if err != nil {
return err
}
listenAddressConfig = config.GetAsString("api/listenAddress", getDefaultListenAddress())
listenAddressConfig = config.GetAsString(CfgDefaultListenAddressKey, getDefaultListenAddress())
return nil
}

View file

@ -41,14 +41,15 @@ func registerExpertiseLevelOption() {
expertiseLevelOption = &Option{
Name: "UI Mode",
Key: expertiseLevelKey,
Description: "Controls the amount of settings and information shown. Hidden settings are still in effect - unlike with the Release Level.",
Description: "Control the default amount of settings and information shown. Hidden settings are still in effect. Can be changed temporarily in the top right corner.",
OptType: OptTypeString,
ExpertiseLevel: ExpertiseLevelUser,
ReleaseLevel: ReleaseLevelStable,
DefaultValue: ExpertiseLevelNameUser,
Annotations: Annotations{
DisplayOrderAnnotation: -16,
DisplayHintAnnotation: DisplayHintOneOf,
CategoryAnnotation: "Expertise & Release",
CategoryAnnotation: "User Interface",
},
PossibleValues: []PossibleValue{
{

View file

@ -37,16 +37,17 @@ func init() {
func registerReleaseLevelOption() {
releaseLevelOption = &Option{
Name: "Release Level",
Name: "Feature Stability",
Key: releaseLevelKey,
Description: "Controls the amount of available settings. Hidden settings revert to default - unlike with the UI Mode.",
Description: `May break things. Decide if you want to experiment with unstable features. "Beta" has been tested roughly by the Safing team while "Experimental" is really raw. When "Beta" or "Experimental" are disabled, their settings use the default again.`,
OptType: OptTypeString,
ExpertiseLevel: ExpertiseLevelExpert,
ReleaseLevel: ReleaseLevelStable,
DefaultValue: ReleaseLevelNameStable,
Annotations: Annotations{
DisplayOrderAnnotation: -8,
DisplayHintAnnotation: DisplayHintOneOf,
CategoryAnnotation: "Expertise & Release",
CategoryAnnotation: "Updates",
},
PossibleValues: []PossibleValue{
{