From: Christian Ebner <c.ebner@proxmox.com>
To: Shannon Sterz <s.sterz@proxmox.com>
Cc: Proxmox Datacenter Manager development discussion
<pdm-devel@lists.proxmox.com>
Subject: Re: [pdm-devel] [RFC datacenter-manager 4/5] ui: dashboard: show datastores with upwards trend in stats panel
Date: Wed, 29 Oct 2025 11:27:53 +0100 [thread overview]
Message-ID: <5f9c5b7f-5235-4d63-84c0-be5510ecf8f9@proxmox.com> (raw)
In-Reply-To: <DDUQBEZWPNCW.31HSMLE3NDV59@proxmox.com>
On 10/29/25 11:20 AM, Shannon Sterz wrote:
> On Mon Oct 27, 2025 at 3:25 PM CET, Christian Ebner wrote:
>> Shows and allow to filter for datastores which have an upwards trend
>> which would lead to the datastore being full shortly.
>>
>> Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
>> ---
>> ui/src/dashboard/pbs_datastores_panel.rs | 10 +++++++++-
>> 1 file changed, 9 insertions(+), 1 deletion(-)
>>
>> diff --git a/ui/src/dashboard/pbs_datastores_panel.rs b/ui/src/dashboard/pbs_datastores_panel.rs
>> index 4cfc0c8..ece918d 100644
>> --- a/ui/src/dashboard/pbs_datastores_panel.rs
>> +++ b/ui/src/dashboard/pbs_datastores_panel.rs
>> @@ -4,7 +4,7 @@ use pdm_api_types::resource::{PbsDatastoreStatusCount, ResourceType};
>> use pdm_search::{Search, SearchTerm};
>> use proxmox_yew_comp::Status;
>> use pwt::{
>> - css::{self, TextAlign},
>> + css::{self, FontColor, TextAlign},
>> prelude::*,
>> widget::{Container, Fa, List, ListTile},
>> };
>> @@ -43,6 +43,7 @@ pub enum StatusRow {
>> Removable(u64),
>> S3Backend(u64),
>> CriticalUsage(u64),
>> + UptrendingUsage(u64),
>> Unknown(u64),
>> All(u64),
>> }
>> @@ -78,6 +79,7 @@ impl yew::Component for PbsDatastoresPanelComponent {
>> StatusRow::Removable(status.removable.unwrap_or_default()),
>> StatusRow::S3Backend(status.s3_backend.unwrap_or_default()),
>> StatusRow::CriticalUsage(status.critical_usage.unwrap_or_default()),
>> + StatusRow::UptrendingUsage(status.uptrending_usage.unwrap_or_default()),
>> StatusRow::Unknown(status.unknown.unwrap_or_default()),
>> StatusRow::All(status.online + status.in_maintenance.unwrap_or_default()),
>> ];
>> @@ -115,6 +117,12 @@ fn create_list_tile(
>> "Critical Usage",
>> Some(("critical-usage", "property")),
>> ),
>> + StatusRow::UptrendingUsage(count) => (
>> + Fa::new("arrow-up").class(FontColor::Warning),
>> + count,
>> + "Uptrendig Usage",
>
> i know this is pre-existing here, but this would benefit from being
> translate-able imo. so would quite a few others here in this list (e.g.
> "Critical Usage", "In Maintenance" etc). so consider making this
>
> tr!("Uptrendig Usage")
Right, thanks for noticing!
Will send that as independent patch though, best on top of
https://lore.proxmox.com/pdm-devel/20251029100958.309086-1-c.ebner@proxmox.com/T/
_______________________________________________
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-10-29 10:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 14:25 [pdm-devel] [RFC datacenter-manager 0/5] show uptrending datastores in dashboard panel Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 1/5] pdm-api-types/ui/resources: rename and bump PBS datastore high-usage Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 2/5] pdm-api-types: extend datastore resources by optional estimated full Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 3/5] server: resources: account for datastores with upwards usage trend Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 4/5] ui: dashboard: show datastores with upwards trend in stats panel Christian Ebner
2025-10-29 10:20 ` Shannon Sterz
2025-10-29 10:27 ` Christian Ebner [this message]
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 5/5] pdm-api-types: calculate upwards trending datastore usage property Christian Ebner
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=5f9c5b7f-5235-4d63-84c0-be5510ecf8f9@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
--cc=s.sterz@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox