From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 7D1891FF0EA for ; Fri, 14 Aug 2026 15:45:56 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5D30821ED1; Fri, 14 Aug 2026 15:45:53 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 0/8] refactor and partially fix #7371 Date: Fri, 14 Aug 2026 15:43:56 +0200 Message-ID: <20260814134548.3446943-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.348 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: YVB7T3YBEUXMYBAFGBPCNLIWIATZXKX5 X-Message-ID-Hash: YVB7T3YBEUXMYBAFGBPCNLIWIATZXKX5 X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: the first 6 patches are pure refactors and should not change anything user visible, could be applied independently. patch 7 and 8 partially fix #7371 by showing the HA maintenance status of PVE nodes in various places. Dominik Csapak (8): lib: add new ResourceView type and move accessors there lib: api types: resource: add 'node' helper to ResourceView lib: api-types: add 'vmid' getter to ResourceView ui: pve: factor out the pve-manager version extraction ui: renderer: use ResourceView for rendering ui: pve: tree: reuse `PveResource` for `PveTreeNode` ui: pve: show ha maintenance mode for nodes ui: pve: node selector: show maintenance badge with node name lib/pdm-api-types/src/resource.rs | 300 ++++++++++++++++++++-------- server/src/api/resources.rs | 1 + ui/pwt-assets | 2 +- ui/src/dashboard/top_entities.rs | 5 +- ui/src/guests.rs | 6 +- ui/src/lib.rs | 23 +-- ui/src/pve/mod.rs | 64 +++--- ui/src/pve/tree.rs | 301 ++++++++++++++--------------- ui/src/renderer.rs | 66 ++++--- ui/src/widget/pve_node_selector.rs | 78 ++++---- ui/src/widget/resource_tree.rs | 11 +- 11 files changed, 497 insertions(+), 360 deletions(-) -- 2.47.3