Rename Metrics to Monitors and move it second

This commit is contained in:
2026-08-31 15:21:48 -04:00
parent b21503e250
commit f087a7a5b0
6 changed files with 29 additions and 24 deletions

View File

@@ -371,7 +371,7 @@ class BasePlugin(ABC):
# keys, rendered generically - see warranty)
'position': int, # order among panels
'group': str, # OPTIONAL. Which tab on the detail page:
# 'details' | 'software' | 'metrics'
# 'details' | 'monitors' | 'software'
# | 'activity'. Omitted means 'details'.
}
@@ -383,12 +383,13 @@ class BasePlugin(ABC):
existing plugin working untouched: an unknown or absent group resolves
to 'details', which is the tab that holds what an asset IS. Reach for
another group only when the panel is the thing that tab exists for -
an inventory listing, live telemetry, or a history feed.
what is being watched on the box, an inventory listing, or a history
feed.
There is deliberately no group for controls. A panel that acts on the
machine belongs beside the state it acts on: tracked services read as
telemetry first and a Start/Stop second, so they live in 'metrics' with
the rest of what the endpoint reports. Splitting the buttons away from
state first and a Start/Stop second, so they live in 'monitors' with
the rest of what is being watched. Splitting the buttons away from
the state they change made a tab that held one card and answered no
question on its own.