feat: map hypervisor clusters to NetBox clusters automatically

- Read the vCenter/ESXi compute resource and the Proxmox cluster name
  (node name when standalone) for every VM
- Match each hypervisor cluster to a NetBox cluster by name, normalized
  name or unique similarity; remember manual choices per profile and
  offer to create missing clusters (with cluster type)
- Import wizard: per-cluster mapping table instead of a single cluster,
  tenant prefilled from the mapped clusters, review shows the mapping
- Show the hypervisor cluster in the VM table

fix: graphic glitches
- Empty state text no longer clipped by the buttons
- Combo boxes open a plain drop-down list instead of the overlay popup
- Status bar badges keep their height and no longer get cut off

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-12 15:24:00 +02:00
1 parent 4878275f2a
commit c3b5fb547e
12 files changed
+300 -50

No files matched your search

+2 -2
View File
@@ -210,7 +210,7 @@ class MainWindow(QMainWindow):
bar.setObjectName("StatusBar")
bar.setFixedHeight(38)
layout = QHBoxLayout(bar)
layout.setContentsMargins(16, 0, 10, 0)
layout.setContentsMargins(16, 0, 14, 0)
layout.setSpacing(10)
self.status_icon = QLabel()
self.status_icon.setFixedSize(14, 14)
@@ -228,7 +228,7 @@ class MainWindow(QMainWindow):
self.netbox_pill = Badge("", "neutral")
self.netbox_pill.setCursor(Qt.PointingHandCursor)
self.netbox_pill.mousePressEvent = lambda _event: self.navigate("connections")
layout.addWidget(self.netbox_pill)
layout.addWidget(self.netbox_pill, 0, Qt.AlignVCenter)
return bar
# ------------------------------------------------------------------