feat(ui): Add support for endpoints[].ui.hide-errors to hide errors (#1361)

Supersedes #1292
This commit is contained in:
TwiN
2025-10-22 13:13:53 -04:00
committed by GitHub
parent c8bdecbde8
commit 9495b7389e
5 changed files with 182 additions and 16 deletions

View File

@@ -16,6 +16,9 @@ type Config struct {
// HidePort whether to hide the port in the Result
HidePort bool `yaml:"hide-port"`
// HideErrors whether to hide the errors in the Result
HideErrors bool `yaml:"hide-errors"`
// DontResolveFailedConditions whether to resolve failed conditions in the Result for display in the UI
DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"`
@@ -58,6 +61,7 @@ func GetDefaultConfig() *Config {
HideHostname: false,
HideURL: false,
HidePort: false,
HideErrors: false,
DontResolveFailedConditions: false,
HideConditions: false,
Badge: &Badge{