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 <marcelo.fukumoto@suse.com>
(cherry picked from commit 78d0a591a8)
This commit is contained in:
Marcelo Fukumoto
2026-11-09 17:33:36 +01:00
parent 3322162d9a
commit f1adf850eb
2 changed files with 19 additions and 10 deletions
+18 -10
View File
@@ -710,16 +710,24 @@ export function init($plugin, store) {
basicType( basicType(
[ [
TEMPLATE,
HCI.SSH,
HCI.CLOUD_TEMPLATE,
HCI.STORAGE,
HCI.SR_IOV, HCI.SR_IOV,
HCI.PCI_DEVICE, HCI.PCI_DEVICE,
HCI.SR_IOVGPU_DEVICE, HCI.SR_IOVGPU_DEVICE,
HCI.VGPU_DEVICE, HCI.VGPU_DEVICE,
HCI.MIG_CONFIGURATION, HCI.MIG_CONFIGURATION,
HCI.USB_DEVICE, HCI.USB_DEVICE,
],
'hardwareDevices'
);
weightGroup('hardwareDevices', 488, true);
basicType(
[
TEMPLATE,
HCI.SSH,
HCI.CLOUD_TEMPLATE,
HCI.STORAGE,
HCI.ADD_ONS, HCI.ADD_ONS,
HCI.SECRET, HCI.SECRET,
HCI.SETTING HCI.SETTING
@@ -1117,7 +1125,7 @@ export function init($plugin, store) {
virtualType({ virtualType({
label: 'PCI Devices', label: 'PCI Devices',
group: 'advanced', group: 'hardwareDevices',
weight: 14, weight: 14,
name: HCI.PCI_DEVICE, name: HCI.PCI_DEVICE,
namespaced: false, namespaced: false,
@@ -1153,7 +1161,7 @@ export function init($plugin, store) {
virtualType({ virtualType({
ifHaveType: HCI.SR_IOV, ifHaveType: HCI.SR_IOV,
labelKey: 'harvester.sriov.label', labelKey: 'harvester.sriov.label',
group: 'advanced', group: 'hardwareDevices',
weight: 15, weight: 15,
name: HCI.SR_IOV, name: HCI.SR_IOV,
namespaced: false, namespaced: false,
@@ -1173,7 +1181,7 @@ export function init($plugin, store) {
virtualType({ virtualType({
ifHaveType: HCI.SR_IOVGPU_DEVICE, ifHaveType: HCI.SR_IOVGPU_DEVICE,
labelKey: 'harvester.sriovgpu.label', labelKey: 'harvester.sriovgpu.label',
group: 'advanced', group: 'hardwareDevices',
weight: 13, weight: 13,
name: HCI.SR_IOVGPU_DEVICE, name: HCI.SR_IOVGPU_DEVICE,
namespaced: false, namespaced: false,
@@ -1192,7 +1200,7 @@ export function init($plugin, store) {
virtualType({ virtualType({
labelKey: 'harvester.vgpu.label', labelKey: 'harvester.vgpu.label',
group: 'advanced', group: 'hardwareDevices',
weight: 12, weight: 12,
name: HCI.VGPU_DEVICE, name: HCI.VGPU_DEVICE,
namespaced: false, namespaced: false,
@@ -1220,7 +1228,7 @@ export function init($plugin, store) {
virtualType({ virtualType({
labelKey: 'harvester.migconfiguration.label', labelKey: 'harvester.migconfiguration.label',
group: 'advanced', group: 'hardwareDevices',
weight: 12, weight: 12,
name: HCI.MIG_CONFIGURATION, name: HCI.MIG_CONFIGURATION,
namespaced: false, namespaced: false,
@@ -1240,7 +1248,7 @@ export function init($plugin, store) {
virtualType({ virtualType({
labelKey: 'harvester.usb.label', labelKey: 'harvester.usb.label',
group: 'advanced', group: 'hardwareDevices',
weight: 11, weight: 11,
name: HCI.USB_DEVICE, name: HCI.USB_DEVICE,
namespaced: false, namespaced: false,
+1
View File
@@ -32,6 +32,7 @@ nav:
group: group:
networks: Networks networks: Networks
backupAndSnapshot: Backup and Snapshots backupAndSnapshot: Backup and Snapshots
hardwareDevices: Hardware Devices
Monitoring: Monitoring Monitoring: Monitoring
Logging: Logging Logging: Logging
'Monitoring and Logging': Monitoring and Logging 'Monitoring and Logging': Monitoring and Logging