From: Shannon Sterz <s.sterz@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager v4 1/1] ui: add a Node Status tab to the administration panel
Date: Wed, 12 Nov 2025 15:39:15 +0100 [thread overview]
Message-ID: <20251112143915.352061-4-s.sterz@proxmox.com> (raw)
In-Reply-To: <20251112143915.352061-1-s.sterz@proxmox.com>
it show the current node status via the new NodeStatPanel and has
buttons for shutting down and rebooting the node.
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
ui/src/administration/mod.rs | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/ui/src/administration/mod.rs b/ui/src/administration/mod.rs
index a9f7ac6..9a433c2 100644
--- a/ui/src/administration/mod.rs
+++ b/ui/src/administration/mod.rs
@@ -6,7 +6,7 @@ use pwt::props::StorageLocation;
use yew::virtual_dom::{VComp, VNode};
use pwt::state::NavigationContainer;
-use pwt::widget::{Container, MiniScrollMode, TabBarItem, TabPanel};
+use pwt::widget::{Column, Container, MiniScrollMode, Row, TabBarItem, TabPanel};
use pwt_macros::builder;
@@ -16,7 +16,9 @@ use pwt_macros::builder;
//mod services;
//pub use services::Services;
-use proxmox_yew_comp::{AptPackageManager, AptRepositories, ExistingProduct, Syslog, Tasks};
+use proxmox_yew_comp::{
+ AptPackageManager, AptRepositories, ExistingProduct, NodeStatusPanel, Syslog, Tasks,
+};
#[derive(Clone, PartialEq, Properties)]
#[builder]
@@ -67,6 +69,27 @@ impl Component for PdmServerAdministration {
|_| Services::new().into(),
)
*/
+ .with_item_builder(
+ TabBarItem::new()
+ .key("status")
+ .label(tr!("Node Status"))
+ .icon_class("fa fa-book"),
+ move |_| {
+ Column::new()
+ .class(pwt::css::FlexFit)
+ .with_child(
+ Row::new()
+ .class("pwt-content-spacer-padding")
+ .class("pwt-content-spacer-colors")
+ .class(pwt::css::FlexFit)
+ .with_child(
+ NodeStatusPanel::new()
+ .status_base_url("/nodes/localhost/status"),
+ ),
+ )
+ .into()
+ },
+ )
.with_item_builder(
TabBarItem::new()
.key("updates")
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-11-12 14:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 14:39 [pdm-devel] [PATCH datacenter-manager/yew-comp v4 0/3] add node status panel to proxmox datacenter manager Shannon Sterz
2025-11-12 14:39 ` [pdm-devel] [PATCH yew-comp v4 1/2] node_info: only use build date from kernel version Shannon Sterz
2025-11-12 14:39 ` [pdm-devel] [PATCH yew-comp v4 2/2] node status panel: remove power management and make fingerprint opt-in Shannon Sterz
2025-11-12 14:39 ` Shannon Sterz [this message]
2025-11-13 13:55 ` [pdm-devel] Superseded: Re: [PATCH datacenter-manager/yew-comp v4 0/3] add node status panel to proxmox datacenter manager Shannon Sterz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251112143915.352061-4-s.sterz@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.