From f1adf850ebd3499c8d9fd352b54e181a9bc2088a Mon Sep 17 00:00:00 2001 From: Marcelo Fukumoto Date: Wed, 28 Oct 2026 18:51:40 +0000 Subject: [PATCH] feat: move the device pages into a Hardware Devices side nav group (#1211) The PCI, SR-IOV Network, SR-IOV GPU, vGPU, vGPU MIG and USB device pages were listed under Advanced. Give them their own top-level group, placed after Backup and Snapshots. Add-ons stay under Advanced. Signed-off-by: Marcelo Fukumoto (cherry picked from commit 78d0a591a89ecb5ff4918de725c73527a33f6ecf) --- pkg/harvester/config/harvester-cluster.js | 28 +++++++++++++++-------- pkg/harvester/l10n/en-us.yaml | 1 + 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/pkg/harvester/config/harvester-cluster.js b/pkg/harvester/config/harvester-cluster.js index b127a9f4..d04fc63c 100644 --- a/pkg/harvester/config/harvester-cluster.js +++ b/pkg/harvester/config/harvester-cluster.js @@ -710,16 +710,24 @@ export function init($plugin, store) { basicType( [ - TEMPLATE, - HCI.SSH, - HCI.CLOUD_TEMPLATE, - HCI.STORAGE, HCI.SR_IOV, HCI.PCI_DEVICE, HCI.SR_IOVGPU_DEVICE, HCI.VGPU_DEVICE, HCI.MIG_CONFIGURATION, HCI.USB_DEVICE, + ], + 'hardwareDevices' + ); + + weightGroup('hardwareDevices', 488, true); + + basicType( + [ + TEMPLATE, + HCI.SSH, + HCI.CLOUD_TEMPLATE, + HCI.STORAGE, HCI.ADD_ONS, HCI.SECRET, HCI.SETTING @@ -1117,7 +1125,7 @@ export function init($plugin, store) { virtualType({ label: 'PCI Devices', - group: 'advanced', + group: 'hardwareDevices', weight: 14, name: HCI.PCI_DEVICE, namespaced: false, @@ -1153,7 +1161,7 @@ export function init($plugin, store) { virtualType({ ifHaveType: HCI.SR_IOV, labelKey: 'harvester.sriov.label', - group: 'advanced', + group: 'hardwareDevices', weight: 15, name: HCI.SR_IOV, namespaced: false, @@ -1173,7 +1181,7 @@ export function init($plugin, store) { virtualType({ ifHaveType: HCI.SR_IOVGPU_DEVICE, labelKey: 'harvester.sriovgpu.label', - group: 'advanced', + group: 'hardwareDevices', weight: 13, name: HCI.SR_IOVGPU_DEVICE, namespaced: false, @@ -1192,7 +1200,7 @@ export function init($plugin, store) { virtualType({ labelKey: 'harvester.vgpu.label', - group: 'advanced', + group: 'hardwareDevices', weight: 12, name: HCI.VGPU_DEVICE, namespaced: false, @@ -1220,7 +1228,7 @@ export function init($plugin, store) { virtualType({ labelKey: 'harvester.migconfiguration.label', - group: 'advanced', + group: 'hardwareDevices', weight: 12, name: HCI.MIG_CONFIGURATION, namespaced: false, @@ -1240,7 +1248,7 @@ export function init($plugin, store) { virtualType({ labelKey: 'harvester.usb.label', - group: 'advanced', + group: 'hardwareDevices', weight: 11, name: HCI.USB_DEVICE, namespaced: false, diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 2fce5798..1de3318c 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -32,6 +32,7 @@ nav: group: networks: Networks backupAndSnapshot: Backup and Snapshots + hardwareDevices: Hardware Devices Monitoring: Monitoring Logging: Logging 'Monitoring and Logging': Monitoring and Logging