From e401b4e74e7645c7853a1a9ed75f961bd1b2f17d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 6 May 2021 13:51:54 +0200 Subject: [PATCH] web/admin: fix naming of charts on overview page Signed-off-by: Jens Langhammer --- .../pages/admin-overview/AdminOverviewPage.ts | 42 +++++++++---------- .../FlowStatusChart.ts} | 4 +- .../GroupCountStatusChart.ts} | 4 +- .../LDAPSyncStatusChart.ts} | 4 +- .../OutpostStatusChart.ts} | 4 +- .../PolicyStatusChart.ts} | 4 +- .../UserCountStatusChart.ts} | 4 +- 7 files changed, 33 insertions(+), 33 deletions(-) rename web/src/pages/admin-overview/{graphs/FlowStatusCard.ts => charts/FlowStatusChart.ts} (93%) rename web/src/pages/admin-overview/{graphs/GroupCountStatusCard.ts => charts/GroupCountStatusChart.ts} (93%) rename web/src/pages/admin-overview/{graphs/LDAPSyncStatusCard.ts => charts/LDAPSyncStatusChart.ts} (95%) rename web/src/pages/admin-overview/{graphs/OutpostStatusCard.ts => charts/OutpostStatusChart.ts} (95%) rename web/src/pages/admin-overview/{graphs/PolicyStatusCard.ts => charts/PolicyStatusChart.ts} (94%) rename web/src/pages/admin-overview/{graphs/UserCountStatusCard.ts => charts/UserCountStatusChart.ts} (93%) diff --git a/web/src/pages/admin-overview/AdminOverviewPage.ts b/web/src/pages/admin-overview/AdminOverviewPage.ts index 72ba1aa98..f629d2181 100644 --- a/web/src/pages/admin-overview/AdminOverviewPage.ts +++ b/web/src/pages/admin-overview/AdminOverviewPage.ts @@ -10,12 +10,12 @@ import "./cards/BackupStatusCard"; import "./cards/VersionStatusCard"; import "./cards/WorkerStatusCard"; -import "./graphs/FlowStatusCard"; -import "./graphs/LDAPSyncStatusCard"; -import "./graphs/OutpostStatusCard"; -import "./graphs/UserCountStatusCard"; -import "./graphs/GroupCountStatusCard"; -import "./graphs/PolicyStatusCard"; +import "./charts/FlowStatusChart"; +import "./charts/LDAPSyncStatusChart"; +import "./charts/OutpostStatusChart"; +import "./charts/UserCountStatusChart"; +import "./charts/GroupCountStatusChart"; +import "./charts/PolicyStatusChart"; import PFPage from "@patternfly/patternfly/components/Page/page.css"; import PFContent from "@patternfly/patternfly/components/Content/content.css"; @@ -39,7 +39,7 @@ export class AdminOverviewPage extends LitElement { height: 35em; } .card-container { - height: 10em; + max-height: 10em; } `]; } @@ -54,34 +54,34 @@ export class AdminOverviewPage extends LitElement {
-
+
- +
-
+
- +
-
+
- +
-
+
- +
-
+
- +
-
+
- +
@@ -104,12 +104,12 @@ export class AdminOverviewPage extends LitElement {
-
+
-
+
diff --git a/web/src/pages/admin-overview/graphs/FlowStatusCard.ts b/web/src/pages/admin-overview/charts/FlowStatusChart.ts similarity index 93% rename from web/src/pages/admin-overview/graphs/FlowStatusCard.ts rename to web/src/pages/admin-overview/charts/FlowStatusChart.ts index 8eb474da5..483664279 100644 --- a/web/src/pages/admin-overview/graphs/FlowStatusCard.ts +++ b/web/src/pages/admin-overview/charts/FlowStatusChart.ts @@ -11,8 +11,8 @@ interface FlowMetrics { cached: number; } -@customElement("ak-admin-status-card-flow") -export class PolicyStatusCard extends AKChart { +@customElement("ak-admin-status-chart-flow") +export class PolicyStatusChart extends AKChart { getChartType(): string { return "doughnut"; diff --git a/web/src/pages/admin-overview/graphs/GroupCountStatusCard.ts b/web/src/pages/admin-overview/charts/GroupCountStatusChart.ts similarity index 93% rename from web/src/pages/admin-overview/graphs/GroupCountStatusCard.ts rename to web/src/pages/admin-overview/charts/GroupCountStatusChart.ts index 77964e975..9755ebc4b 100644 --- a/web/src/pages/admin-overview/graphs/GroupCountStatusCard.ts +++ b/web/src/pages/admin-overview/charts/GroupCountStatusChart.ts @@ -10,8 +10,8 @@ interface GroupMetrics { superusers: number; } -@customElement("ak-admin-status-card-group-count") -export class GroupCountStatusCard extends AKChart { +@customElement("ak-admin-status-chart-group-count") +export class GroupCountStatusChart extends AKChart { getChartType(): string { return "doughnut"; diff --git a/web/src/pages/admin-overview/graphs/LDAPSyncStatusCard.ts b/web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts similarity index 95% rename from web/src/pages/admin-overview/graphs/LDAPSyncStatusCard.ts rename to web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts index 712eedf4c..934f937ef 100644 --- a/web/src/pages/admin-overview/graphs/LDAPSyncStatusCard.ts +++ b/web/src/pages/admin-overview/charts/LDAPSyncStatusChart.ts @@ -12,8 +12,8 @@ interface LDAPSyncStats { unsynced: number; } -@customElement("ak-admin-status-card-ldap-sync") -export class LDAPSyncStatusCard extends AKChart { +@customElement("ak-admin-status-chart-ldap-sync") +export class LDAPSyncStatusChart extends AKChart { getChartType(): string { return "doughnut"; diff --git a/web/src/pages/admin-overview/graphs/OutpostStatusCard.ts b/web/src/pages/admin-overview/charts/OutpostStatusChart.ts similarity index 95% rename from web/src/pages/admin-overview/graphs/OutpostStatusCard.ts rename to web/src/pages/admin-overview/charts/OutpostStatusChart.ts index 572775c64..073f68654 100644 --- a/web/src/pages/admin-overview/graphs/OutpostStatusCard.ts +++ b/web/src/pages/admin-overview/charts/OutpostStatusChart.ts @@ -12,8 +12,8 @@ interface OutpostStats { unhealthy: number; } -@customElement("ak-admin-status-card-outpost") -export class OutpostStatusCard extends AKChart { +@customElement("ak-admin-status-chart-outpost") +export class OutpostStatusChart extends AKChart { getChartType(): string { return "doughnut"; diff --git a/web/src/pages/admin-overview/graphs/PolicyStatusCard.ts b/web/src/pages/admin-overview/charts/PolicyStatusChart.ts similarity index 94% rename from web/src/pages/admin-overview/graphs/PolicyStatusCard.ts rename to web/src/pages/admin-overview/charts/PolicyStatusChart.ts index 0952d4e04..6d859e19a 100644 --- a/web/src/pages/admin-overview/graphs/PolicyStatusCard.ts +++ b/web/src/pages/admin-overview/charts/PolicyStatusChart.ts @@ -12,8 +12,8 @@ interface PolicyMetrics { unbound: number; } -@customElement("ak-admin-status-card-policy") -export class PolicyStatusCard extends AKChart { +@customElement("ak-admin-status-chart-policy") +export class PolicyStatusChart extends AKChart { getChartType(): string { return "doughnut"; diff --git a/web/src/pages/admin-overview/graphs/UserCountStatusCard.ts b/web/src/pages/admin-overview/charts/UserCountStatusChart.ts similarity index 93% rename from web/src/pages/admin-overview/graphs/UserCountStatusCard.ts rename to web/src/pages/admin-overview/charts/UserCountStatusChart.ts index c88bc95f6..e2f1264d5 100644 --- a/web/src/pages/admin-overview/graphs/UserCountStatusCard.ts +++ b/web/src/pages/admin-overview/charts/UserCountStatusChart.ts @@ -10,8 +10,8 @@ interface UserMetrics { superusers: number; } -@customElement("ak-admin-status-card-user-count") -export class UserCountStatusCard extends AKChart { +@customElement("ak-admin-status-chart-user-count") +export class UserCountStatusChart extends AKChart { getChartType(): string { return "doughnut";