public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager v6 00/11] refactor and partially fix #7371
@ 2026-10-05 10:57 Dominik Csapak
  2026-10-05 10:57 ` [PATCH datacenter-manager v6 01/11] lib: api types: add new ResourceView type and move accessors there Dominik Csapak
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Dominik Csapak @ 2026-10-05 10:57 UTC (permalink / raw)
  To: pdm-devel

the first 6 patches are pure refactors and should not change anything
user visible, could be applied independently.

patch 7 is to slightly change the columns for the pve tree (put the tags
with the names instead of a separate column)

patch 8,9,11 partially fix #7371 by showing the HA maintenance status
of PVE nodes in various places.

patch 10 is just a fix that came up  (thanks @lukas)

NOTE: This incorporates 1/2 from [0] so this series is self contained
(i'll send a new version of 2/2 from that in a different series)

changes from v5:
* rebase on master
* move pve tree tags patch after the refactor, before the ha maintenance fix

changes from v4:
* rebase on master and on [0]

chagnes from v3:
* rebase on master
* add serde skip_serialize_if for option none on the ha maintenance field
* added new patch for sorting by memory usage correctly

changes from v2:
* add missing doc comments
* refine wording a bit and make it more consistent (HA -> ha for example)
* change from string 'hastate' to proper rust enum 'ha-state' in
  PveNodeResource struct

changes from v1:
* fixed some display problems: NaN% when maxmem was set to 0.0,
  0.0% cpu when the node was offline, fixed by not showing values for
  offline nodes
* add a new patch for showing tha badge too in the node card's title
* various typo fixes
* added #[serde(default)] to the new hastate field to allow
  deserialization from older versions
* some smaller fixes  (left over comments, naming, etc.)

0: https://lore.proxmox.com/pdm-devel/20261002135324.3147672-1-d.csapak@proxmox.com/T/#t

Dominik Csapak (11):
  lib: api types: add new ResourceView type and move accessors there
  lib: api types: resource: add 'node' helper to ResourceView
  lib: api types: add guest specific 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: tree: render guest tags directly after their name
  ui: pve: show ha maintenance mode for nodes
  ui: pve: node selector: show maintenance badge with node name
  ui: pve: node selector: sort memory columns by usage not by memory
    size
  ui: pve: node: show ha maintenance badge

 lib/pdm-api-types/src/resource.rs  | 336 ++++++++++++++++++++++-------
 server/src/api/resources.rs        |   1 +
 ui/css/pdm.scss                    |   3 +
 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                  |  73 ++++---
 ui/src/pve/node/mod.rs             |  15 +-
 ui/src/pve/tree.rs                 | 305 ++++++++++++--------------
 ui/src/pve/utils.rs                |   6 +-
 ui/src/renderer.rs                 |  72 ++++---
 ui/src/widget/pve_node_selector.rs |  95 +++++---
 ui/src/widget/resource_tree.rs     |  17 +-
 14 files changed, 580 insertions(+), 379 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-10-06  8:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-05 10:57 [PATCH datacenter-manager v6 00/11] refactor and partially fix #7371 Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 01/11] lib: api types: add new ResourceView type and move accessors there Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 02/11] lib: api types: resource: add 'node' helper to ResourceView Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 03/11] lib: api types: add guest specific getter " Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 04/11] ui: pve: factor out the pve-manager version extraction Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 05/11] ui: renderer: use ResourceView for rendering Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 06/11] ui: pve: tree: reuse `PveResource` for `PveTreeNode` Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 07/11] ui: pve: tree: render guest tags directly after their name Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 08/11] ui: pve: show ha maintenance mode for nodes Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 09/11] ui: pve: node selector: show maintenance badge with node name Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 10/11] ui: pve: node selector: sort memory columns by usage not by memory size Dominik Csapak
2026-10-05 10:57 ` [PATCH datacenter-manager v6 11/11] ui: pve: node: show ha maintenance badge Dominik Csapak
2026-10-06  8:59 ` applied: [PATCH datacenter-manager v6 00/11] refactor and partially fix #7371 Lukas Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal