monitoring: disable fan intensity legend safely

This commit is contained in:
jenkins 2026-05-16 12:17:33 -03:00
parent 02e8e633a5
commit a739f14a86
4 changed files with 9 additions and 6 deletions

View File

@ -2121,7 +2121,7 @@ def build_overview():
links=overview_link("atlas-power"),
description="Fan intensity lanes on the 0-10 controller scale. Cooler colors are quiet/low intensity; warmer colors mean the enclosure is pushing harder.",
)
fan_panel["options"]["legend"] = {"displayMode": "hidden", "placement": "bottom"}
fan_panel["options"]["legend"] = {"displayMode": "list", "placement": "bottom", "showLegend": False}
fan_panel["options"]["mergeValues"] = False
fan_panel["options"]["showValue"] = "auto"
fan_panel["options"]["tooltip"] = {"mode": "multi", "sort": "none"}

View File

@ -109,7 +109,8 @@ def test_overview_uses_readable_quality_power_and_gitops_panels():
assert fan_mappings["0"]["text"] == "Off"
assert fan_mappings["10"]["text"] == "10"
assert "Tent Interior" in panels_by_title["Fan Intensity History"]["targets"][0]["expr"]
assert panels_by_title["Fan Intensity History"]["options"]["legend"]["displayMode"] == "hidden"
assert panels_by_title["Fan Intensity History"]["options"]["legend"]["displayMode"] == "list"
assert panels_by_title["Fan Intensity History"]["options"]["legend"]["showLegend"] is False
assert panels_by_title["Fan Intensity History"]["options"]["mergeValues"] is False
assert panels_by_title["Fan Intensity History"]["options"]["showValue"] == "auto"

View File

@ -2001,8 +2001,9 @@
"mergeValues": false,
"showValue": "auto",
"legend": {
"displayMode": "hidden",
"placement": "bottom"
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",

View File

@ -2010,8 +2010,9 @@ data:
"mergeValues": false,
"showValue": "auto",
"legend": {
"displayMode": "hidden",
"placement": "bottom"
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "multi",