From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 89E9B1FF16B for ; Fri, 26 Sep 2025 09:27:24 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0B27B92B2; Fri, 26 Sep 2025 09:27:53 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Date: Fri, 26 Sep 2025 09:20:20 +0200 Message-ID: <20250926072749.560801-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.027 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH datacenter-manager 00/11] improve PBS view X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" This improves the existing PBS remote view to be a more usable and in line with what we have for PVE: * have a two column layout with a 'datastore tree' on the left and the selected content on the right * Node overview panel like for PVE nodes * datastore tabpanel with overview + content Next steps: The next steps would be to add more api calls on the backend for * datastore status (list and singular) * datastore group list * datastore namespace list * some datastore actions? (gc, verify?) + the status calls for these and then implment on the UI: * multiple namespaces (ideally directly in the tree, can be loaded in afterwards) * proper status for the datastore panels * add some place where we can see/do actions like gc,verification, etc. We should also seriosly consider to implement the 'application/json-seq' variant for snapshot list directly on PBS, so we can stream this without having to buffer it in the pdm api call. Dominik Csapak (11): server: api: return list of pve/pbs remotes server: api: pbs: add status api call server: pbs-client: use `json` formatter for the snapshot list streaming api pdm-client: add pbs node status helper ui: pve: tree: refactor rendering the tree column ui: add helper to compare two strings with `localeCompare` ui: pbs: add datastore tree ui: pbs: convert snapshot list to a snapshot tree ui: pbs: add datastore panel component ui: pbs: add remote overview panel ui: pbs: use new pbs panels/overview lib/pdm-api-types/src/remotes.rs | 13 ++ lib/pdm-client/src/lib.rs | 5 + server/src/api/pbs/mod.rs | 48 +++- server/src/api/pve/mod.rs | 30 ++- server/src/pbs_client.rs | 7 +- ui/src/lib.rs | 19 ++ ui/src/pbs/datastore.rs | 73 ++++++ ui/src/pbs/datastore/overview.rs | 260 +++++++++++++++++++++ ui/src/pbs/mod.rs | 232 +++++++++--------- ui/src/pbs/remote.rs | 291 +++++++++++++++++++++++ ui/src/pbs/snapshot_list.rs | 388 ++++++++++++++++++++++++------- ui/src/pbs/tree.rs | 324 ++++++++++++++++++++++++++ ui/src/pve/tree.rs | 15 +- ui/src/renderer.rs | 17 +- 14 files changed, 1500 insertions(+), 222 deletions(-) create mode 100644 ui/src/pbs/datastore.rs create mode 100644 ui/src/pbs/datastore/overview.rs create mode 100644 ui/src/pbs/remote.rs create mode 100644 ui/src/pbs/tree.rs -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel