From 214200ce7a56bd6162086effb877ea9db8f9ada8 Mon Sep 17 00:00:00 2001 From: Freddy Montes <751424+fmontes@users.noreply.github.com> Date: Wed, 24 Dec 2025 11:53:37 -0600 Subject: [PATCH 001/100] Refactor dot-usage-shell component for improved UI and structure - Replaced the usage header with a PrimeNG toolbar for better action handling. - Enhanced loading state with a more structured skeleton layout for site metrics, system configuration, and user activity. - Updated error handling to use PrimeNG card components for a cleaner presentation. - Refactored dashboard content layout to utilize flexbox for better responsiveness. - Adjusted SCSS styles to align with new component structure and improve overall styling consistency. This update enhances the user experience and maintains a modern design approach. --- .../dot-usage-shell.component.html | 221 ++++++++------- .../dot-usage-shell.component.scss | 253 +++--------------- .../dot-usage-shell.component.ts | 6 +- 3 files changed, 165 insertions(+), 315 deletions(-) diff --git a/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html b/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html index efe31c566959..144095766885 100644 --- a/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html +++ b/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html @@ -1,116 +1,157 @@ -
+
+
+
- @if ( - error() === 'usage.dashboard.error.requestFailed' && - errorStatus() - ) { - {{ - 'usage.dashboard.error.requestFailed' - | dm: [errorStatus()!.toString()] - }} - } @else { - {{ error() | dm }} - } -
-+ @if (error() === 'usage.dashboard.error.requestFailed' && errorStatus()) { + {{ 'usage.dashboard.error.requestFailed' | dm: [errorStatus()!.toString()] }} + } @else { + {{ error() | dm }} + } +
++ @if ( + isI18nKey(formatMetricValue(metricData.value)) + ) { + {{ formatMetricValue(metricData.value) | dm }} + } @else { + {{ formatMetricValue(metricData.value) }} + } +
++
+
+
@if (error() === 'usage.dashboard.error.requestFailed' && errorStatus()) { - {{ 'usage.dashboard.error.requestFailed' | dm: [errorStatus()!.toString()] }} + {{ + 'usage.dashboard.error.requestFailed' | dm: [errorStatus()!.toString()] + }} } @else { {{ error() | dm }} } @@ -139,7 +141,8 @@
diff --git a/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.scss b/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.scss
index fd054acf3512..c9e3fcf93323 100644
--- a/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.scss
+++ b/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.scss
@@ -13,6 +13,10 @@
}
}
+p-skeleton {
+ display: block;
+}
+
p-toolbar {
display: block;
margin-bottom: $spacing-4;
@@ -35,6 +39,7 @@ h3 {
font-weight: $font-weight-regular-bold;
letter-spacing: 0.05em;
margin: 0;
+ line-height: 1rem;
}
// Metric value text
From 81bd166cc7b18f3a44b6258a1d4ab464d88f82de Mon Sep 17 00:00:00 2001
From: Freddy Montes <751424+fmontes@users.noreply.github.com>
Date: Wed, 24 Dec 2025 12:09:37 -0600
Subject: [PATCH 003/100] Enhance dot-usage-shell component with last updated
timestamp
---
.../lib/dot-usage-shell/dot-usage-shell.component.html | 10 +++++++++-
.../lib/dot-usage-shell/dot-usage-shell.component.ts | 4 +++-
.../main/webapp/WEB-INF/messages/Language.properties | 1 +
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html b/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html
index 977cc9166c0b..720518089f80 100644
--- a/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html
+++ b/core-web/libs/portlets/dot-usage/src/lib/dot-usage-shell/dot-usage-shell.component.html
@@ -1,5 +1,13 @@