From f27b68a951af8ecbd61c54d241284628ad2dbd14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Wed, 4 May 2022 19:45:12 +0300 Subject: [PATCH] RED-3796: Dossier template stats --- .../template-stats.component.html | 46 ++++++++++++++--- .../template-stats.component.scss | 50 +++++++++++++------ .../dossiers-listing-details.component.html | 4 +- apps/red-ui/src/assets/i18n/de.json | 12 +++-- apps/red-ui/src/assets/i18n/en.json | 12 +++-- 5 files changed, 92 insertions(+), 32 deletions(-) diff --git a/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.html b/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.html index efc0d7ac0..1536fe05b 100644 --- a/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.html +++ b/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.html @@ -1,15 +1,47 @@ -
+ -
- {{ dossierTemplate.name }} - {{ dossierTemplate.id }} +
+
{{ dossierTemplate.name }}
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
@@ -19,7 +51,7 @@ [config]="translateChartService.translateWorkflowStatus(dossierTemplate.documentsChartData)" [radius]="70" [strokeWidth]="15" - [subtitle]="'dossier-template-charts.total-documents' | translate" + [subtitle]="'dossier-template-stats.total-documents' | translate" direction="row" totalType="sum" > @@ -42,4 +74,4 @@ icon="iqser:plus" > -
+ diff --git a/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.scss b/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.scss index 18acdf1c2..6f4fc35f8 100644 --- a/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.scss +++ b/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.scss @@ -1,16 +1,12 @@ +@use 'common-mixins'; + .dialog { + @include common-mixins.clear-a; flex-direction: row; max-width: unset; min-height: unset; margin: 0 0 16px 0; - - .heading { - color: var(--iqser-accent); - - &:not(:hover) { - text-decoration: none; - } - } + transition: background-color 0.2s; &.empty { justify-content: space-between; @@ -18,14 +14,38 @@ padding: 24px; } - &:not(.empty) > div { - padding: 24px; - display: flex; - flex-direction: column; + &:not(.empty) { + &:hover { + background-color: var(--iqser-grey-2); - &:not(:first-child) { - justify-content: center; - border-left: 1px solid var(--iqser-separator); + .heading { + text-decoration: underline; + } + } + + > div { + padding: 24px; + display: flex; + flex-direction: column; + + &:not(:first-child) { + justify-content: center; + border-left: 1px solid var(--iqser-separator); + } } } } + +.stats-subtitle { + flex-direction: column; + + > div { + margin-top: 10px; + } + + mat-icon { + min-height: 14px; + min-width: 14px; + margin-right: 8px; + } +} diff --git a/apps/red-ui/src/app/modules/dossiers-listing/components/dossiers-listing-details/dossiers-listing-details.component.html b/apps/red-ui/src/app/modules/dossiers-listing/components/dossiers-listing-details/dossiers-listing-details.component.html index 38b884779..65ece10d7 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/components/dossiers-listing-details/dossiers-listing-details.component.html +++ b/apps/red-ui/src/app/modules/dossiers-listing/components/dossiers-listing-details/dossiers-listing-details.component.html @@ -3,7 +3,7 @@ [config]="dossiersChartData$ | async" [radius]="80" [strokeWidth]="15" - [subtitle]="'dossier-template-charts.active-dossiers' | translate: { count: stats.numberOfActiveDossiers }" + [subtitle]="'dossier-template-stats.active-dossiers' | translate: { count: stats.numberOfActiveDossiers }" >
@@ -30,6 +30,6 @@ [config]="documentsChartData$ | async" [radius]="80" [strokeWidth]="15" - [subtitle]="'dossier-template-charts.total-documents' | translate" + [subtitle]="'dossier-template-stats.total-documents' | translate" >
diff --git a/apps/red-ui/src/assets/i18n/de.json b/apps/red-ui/src/assets/i18n/de.json index bbedce60f..ed05f1c84 100644 --- a/apps/red-ui/src/assets/i18n/de.json +++ b/apps/red-ui/src/assets/i18n/de.json @@ -789,10 +789,6 @@ "title": "{length} {length, plural, one{aktives Dossier} other{aktive Dossiers}}" } }, - "dossier-template-charts": { - "active-dossiers": "Aktive Dossiers", - "total-documents": "Anzahl der Dokumente" - }, "dossier-overview": { "approve": "Genehmigen", "approve-disabled": "Das Dokument kann erst genehmigt werden, wenn eine Analyse auf Basis der aktuellen Wörterbücher durchgeführt wurde und die Vorschläge bearbeitet wurden.", @@ -933,6 +929,14 @@ "valid-from": "", "valid-to": "" }, + "dossier-template-stats": { + "active-dossiers": "Aktive Dossiers", + "analyzed-pages": "", + "archived-dossiers": "", + "deleted-dossiers": "", + "total-documents": "Anzahl der Dokumente", + "total-people": "" + }, "dossier-templates-listing": { "action": { "clone": "", diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index e7cb7e021..7bb13a438 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -789,10 +789,6 @@ "title": "{length} active {length, plural, one{Dossier} other{Dossiers}}" } }, - "dossier-template-charts": { - "active-dossiers": "Active {count, plural, one{Dossier} other{Dossiers}}", - "total-documents": "Total Documents" - }, "dossier-overview": { "approve": "Approve", "approve-disabled": "File can only be approved once it has been analysed with the latest dictionaries and all suggestions have been processed.", @@ -933,6 +929,14 @@ "valid-from": "Valid from: {date}", "valid-to": "Valid to: {date}" }, + "dossier-template-stats": { + "active-dossiers": "Active {count, plural, one{Dossier} other{Dossiers}}", + "analyzed-pages": "{count} {count, plural, one{Page} other {Pages}} Analysed", + "archived-dossiers": "{count} {count, plural, one{Dossier} other {Dossiers}} in Archive", + "deleted-dossiers": "{count} {count, plural, one{Dossier} other {Dossiers}} in Trash", + "total-documents": "Total Documents", + "total-people": "{count} {count, plural, one{User} other {Users}}" + }, "dossier-templates-listing": { "action": { "clone": "Clone Template",