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

+8 -2
View File
@@ -104,6 +104,7 @@ class Badge(QLabel):
super().__init__(text)
self.setProperty("badge", True)
self.setAlignment(Qt.AlignCenter)
self.setSizePolicy(QSizePolicy.Maximum, QSizePolicy.Fixed)
self.set(text, kind)
def set(self, text, kind="neutral"):
@@ -229,13 +230,18 @@ class EmptyState(QWidget):
apply()
theme.changed.connect(apply)
layout.addWidget(self.icon_label)
self.title_label = label(title, object_name="EmptyTitle")
self.title_label = label(title, object_name="EmptyTitle", wrap=True)
self.title_label.setAlignment(Qt.AlignCenter)
layout.addWidget(self.title_label)
self.text_label = label(text, muted=True, wrap=True)
self.text_label.setAlignment(Qt.AlignCenter)
self.text_label.setMaximumWidth(520)
layout.addWidget(self.text_label, 0, Qt.AlignHCenter)
self.text_label.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Minimum)
text_row = QHBoxLayout()
text_row.addStretch(1)
text_row.addWidget(self.text_label, 10)
text_row.addStretch(1)
layout.addLayout(text_row)
buttons = QHBoxLayout()
buttons.addStretch(1)
self.action = None