mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-02 01:51:59 +00:00
health: reduce severity of some warnings, improve update messages (#12689)
Updates tailscale/tailscale#4136 High severity health warning = a system notification will appear, which can be quite disruptive to the user and cause unnecessary concern in the event of a temporary network issue. Per design decision (@sonovawolf), the severity of all warnings but "network is down" should be tuned down to medium/low. ImpactsConnectivity should be set, to change the icon to an exclamation mark in some cases, but without a notification bubble. I also tweaked the messaging for update-available, to reflect how each platform gets updates in different ways. Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
This commit is contained in:
@@ -213,8 +213,10 @@ type Warnable struct {
|
||||
// Deprecated: this is only used in one case, and will be removed in a future PR
|
||||
MapDebugFlag string
|
||||
|
||||
// If true, this warnable is related to configuration of networking stack
|
||||
// on the machine that impacts connectivity.
|
||||
// ImpactsConnectivity is whether this Warnable in an unhealthy state will impact the user's
|
||||
// ability to connect to the Internet or other nodes on the tailnet. On platforms where
|
||||
// the client GUI supports a tray icon, the client will display an exclamation mark
|
||||
// on the tray icon when ImpactsConnectivity is set to true and the Warnable is unhealthy.
|
||||
ImpactsConnectivity bool
|
||||
}
|
||||
|
||||
@@ -252,9 +254,16 @@ func (t *Tracker) nil() bool {
|
||||
type Severity string
|
||||
|
||||
const (
|
||||
SeverityHigh Severity = "high"
|
||||
// SeverityHigh is the highest severity level, used for critical errors that need immediate attention.
|
||||
// On platforms where the client GUI can deliver notifications, a SeverityHigh Warnable will trigger
|
||||
// a modal notification.
|
||||
SeverityHigh Severity = "high"
|
||||
// SeverityMedium is used for errors that are important but not critical. This won't trigger a modal
|
||||
// notification, however it will be displayed in a more visible way than a SeverityLow Warnable.
|
||||
SeverityMedium Severity = "medium"
|
||||
SeverityLow Severity = "low"
|
||||
// SeverityLow is used for less important notices that don't need immediate attention. The user will
|
||||
// have to go to a Settings window, or another "hidden" GUI location to see these messages.
|
||||
SeverityLow Severity = "low"
|
||||
)
|
||||
|
||||
// Args is a map of Args to string values that can be used to provide parameters regarding
|
||||
|
||||
Reference in New Issue
Block a user