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

@@ -200,8 +200,9 @@ const panels = ref([])
// has since been renamed or removed silently disappears. That is what happened
// to tracked services when it moved out of 'actions' - the backend still said
// 'actions', this build had no such tab, and the card was simply gone with
// nothing logged. Fall back the same way the server does rather than drop it.
const RENDERED_GROUPS = ['details', 'software', 'metrics', 'activity']
// nothing logged. The same applies to the 'metrics' to 'monitors' rename.
// Fall back the same way the server does rather than drop it.
const RENDERED_GROUPS = ['details', 'monitors', 'software', 'activity']
function groupOf(panel) {
return RENDERED_GROUPS.includes(panel.group) ? panel.group : 'details'
}