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 551A31FF09F for ; Tue, 01 Dec 2026 16:15:37 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 7679B2150F; Tue, 01 Dec 2026 16:15:36 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 0/4] api/ui: show consistent remote icons Date: Tue, 1 Dec 2026 16:12:04 +0100 Message-ID: <20261201151531.3348382-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.243 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 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: BLMKXBZCVNFB4E2L4GKPI4WTKQSI2Z5G X-Message-ID-Hash: BLMKXBZCVNFB4E2L4GKPI4WTKQSI2Z5G 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: We show different icons across the ui for the same remotes types: * 'server' in the side-bar * 'building' for pve in the configuration (and many other places) * 'floppy' for pbs, but only in configuration * 'building-o' in the updates tab for pbs and so on. This series aims to unify that and to use: * 'server' for pve clusters with more than one node * 'building' for pve standalone nodes * 'floppy' for pbs in remote context * 'building-o' for pbs nodes in a node context For this we let the server determine the 'is cluster' state of a pve remote (since it does the relevant api calls anyway) and bubble that info to the ui via the remotes listing. Dominik Csapak (4): server: remote mapping: remember whether a pve remote is a cluster api: remotes: report whether a remote is a cluster in the list pdm-client: return the cluster flag with the remote list ui: use consistent icons for the types of remotes lib/pdm-api-types/src/remotes.rs | 20 +++++++ lib/pdm-client/src/lib.rs | 4 +- server/src/api/remotes/mod.rs | 18 +++++-- .../tasks/remote_node_mapping.rs | 47 ++++++++++------ server/src/remote_cache/mod.rs | 33 ++++++++++-- server/tests/test_remote_home.rs | 2 +- ui/src/configuration/subscription_registry.rs | 18 +++---- ui/src/dashboard/subscriptions_list.rs | 19 ++++++- ui/src/folders/mod.rs | 5 +- ui/src/guests.rs | 53 ++++++++++++++----- ui/src/lib.rs | 35 +++++++++--- ui/src/main.rs | 4 +- ui/src/main_menu.rs | 7 +-- ui/src/pbs/mod.rs | 4 +- ui/src/pve/mod.rs | 27 ++++++++-- ui/src/pve/remote/mod.rs | 13 ++++- ui/src/pve/tree.rs | 2 +- ui/src/remotes/config.rs | 19 ++++--- ui/src/remotes/firewall/tree.rs | 14 ++++- ui/src/remotes/firewall/types.rs | 6 ++- ui/src/remotes/firewall/ui_helpers.rs | 13 +++-- ui/src/remotes/updates.rs | 25 +++++---- ui/src/renderer.rs | 11 ++++ ui/src/sdn/evpn/remote_tree.rs | 19 +++++-- ui/src/sdn/zone_tree.rs | 11 +++- ui/src/widget/resource_tree.rs | 38 ++++++++----- 26 files changed, 346 insertions(+), 121 deletions(-) -- 2.47.3