From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id ECCDE1FF0B3 for ; Thu, 26 Nov 2026 15:54:33 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id BD209216E0; Thu, 26 Nov 2026 15:54:33 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 00/10] dashborad: add widget settings and leaderboard graph types Date: Thu, 26 Nov 2026 15:49:13 +0100 Message-ID: <20261126145410.3011676-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.259 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: R3ZAJ6ZE43EDG5JOAKCJVRDDM7WEEZ56 X-Message-ID-Hash: R3ZAJ6ZE43EDG5JOAKCJVRDDM7WEEZ56 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 leaderboard 'heatmap' graph type is nice for some, but in certain scenarios not that good to decipher, especially when one is visually impaired or the values are simply too close together. For that, add multiple graph types (line,area,bar) for those. To be able to set these, add a widget options panel where the option for each widget can be set individually. The dashboard layout types already had some settings, but they were only configurable either by hand or indirect (by using a differen variant from the add menu). This now makes the add menu a bit more sparse, since the user can simply configure the wanted options themselves. With that, the previously unexposed custom title option for each widget is also exposed, giving users the possibility to give the widget other titles if they so desire. Some of the patches are more fixes found along the way, that could be applied independently, e.g. 1, 5, 6, 7. Dominik Csapak (10): ui: dashboard: use plural for the container panel ui: views: keep the icon for custom widget titles ui: views: add options panel for editing widgets ui: views: add only one menu entry per widget type ui: dashboard: top entities: only build graph gradients on change ui: dashboard: top entities: center data points in their interval ui: dashboard: top entities: limit color stops by graph width ui: dashboard: top entities: add line, area and bar graph types ui: dashboard: top entities: show indicator line for tooltip point docs: custom views: mention the graph types of the leaderboard widget docs/views.rst | 3 +- lib/pdm-api-types/src/views.rs | 45 ++ ui/src/dashboard/gauge_panel.rs | 22 +- ui/src/dashboard/guest_panel.rs | 7 - ui/src/dashboard/node_status_panel.rs | 8 - ui/src/dashboard/pbs_datastores_panel.rs | 5 - ui/src/dashboard/remote_panel.rs | 6 +- ui/src/dashboard/resource_tree.rs | 1 - ui/src/dashboard/sdn_zone_panel.rs | 5 +- ui/src/dashboard/subscription_info.rs | 8 - ui/src/dashboard/tasks.rs | 24 +- ui/src/dashboard/top_entities.rs | 563 +++++++++++++++++++---- ui/src/dashboard/view.rs | 123 +++-- ui/src/dashboard/view/row_element.rs | 29 +- ui/src/dashboard/view/row_view.rs | 283 +++++------- ui/src/dashboard/view/widget_options.rs | 302 ++++++++++++ 16 files changed, 1072 insertions(+), 362 deletions(-) create mode 100644 ui/src/dashboard/view/widget_options.rs -- 2.47.3