diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.scss b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.scss
index b80225463..ca6ca4ac8 100644
--- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.scss
+++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.scss
@@ -24,11 +24,6 @@
}
.project-details-container {
- .description {
- font-size: 13px;
- line-height: 18px;
- }
-
.members-container {
gap: 5px;
}
diff --git a/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.html b/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.html
index 78e32dad6..3039d2652 100644
--- a/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.html
+++ b/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.html
@@ -1,16 +1,30 @@
-
- {{val.value}} {{val.label}}
+
+
+
+
+
{{ title }}
+
{{ subtitle }}
+
+
+
diff --git a/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.scss b/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.scss
index e69de29bb..eb2072a28 100644
--- a/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.scss
+++ b/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.scss
@@ -0,0 +1,66 @@
+@import "../../assets/styles/red-variables";
+
+.container {
+ position: absolute;
+}
+
+.text-container {
+ position: absolute;
+ top: 0;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
+
+.breakdown-container {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 8px;
+
+ div {
+ width: fit-content;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ }
+}
+
+circle {
+ &.unassigned {
+ stroke: $grey-5;
+ }
+
+ &.under-review {
+ stroke: $yellow-1;
+ }
+
+ &.under-approval {
+ stroke: $red-1;
+ }
+
+ &.approved {
+ stroke: $blue-2;
+ }
+
+ &.submitted {
+ stroke: $blue-3;
+ }
+
+ &.efsa {
+ stroke: $blue-4;
+ }
+
+ &.finished {
+ stroke: $green-2;
+ }
+
+ &.active {
+ stroke: $primary;
+ }
+
+ &.archived {
+ stroke: rgba($red-1, 0.1);
+ }
+}
diff --git a/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.ts b/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.ts
index a5798d713..b44c1826b 100644
--- a/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.ts
+++ b/apps/red-ui/src/app/simple-doughnut-chart/simple-doughnut-chart.component.ts
@@ -1,13 +1,12 @@
import {Component, Input, OnInit} from '@angular/core';
-
+import { Color } from '../utils/types';
export class DataSeries {
value: number;
- color: string;
+ color: Color;
label: string;
}
-
@Component({
selector: 'redaction-simple-doughnut-chart',
templateUrl: './simple-doughnut-chart.component.html',
@@ -16,17 +15,17 @@ export class DataSeries {
export class SimpleDoughnutChartComponent implements OnInit {
@Input() title: string;
- @Input() subtitle: number;
+ @Input() subtitle: string;
@Input() data: DataSeries[] = [];
@Input() angleOffset = -90;
@Input() radius = 80;
@Input() strokeWidth = 20;
- chartData: any[] = [];
- perimeter: number;
- cx = 0;
- cy = 0;
- size = 0;
+ public chartData: any[] = [];
+ public perimeter: number;
+ public cx = 0;
+ public cy = 0;
+ public size = 0;
constructor() {
}
@@ -65,10 +64,6 @@ export class SimpleDoughnutChartComponent implements OnInit {
return circumference - strokeDiff;
}
- degreesToRadians(angle) {
- return angle * (Math.PI / 180);
- }
-
dataPercentage(dataVal) {
return dataVal / this.dataTotal;
}
@@ -76,5 +71,4 @@ export class SimpleDoughnutChartComponent implements OnInit {
returnCircleTransformValue(index) {
return `rotate(${this.chartData[index].degrees}, ${this.cx}, ${this.cy})`;
}
-
}
diff --git a/apps/red-ui/src/app/utils/types.d.ts b/apps/red-ui/src/app/utils/types.d.ts
new file mode 100644
index 000000000..8a532fcba
--- /dev/null
+++ b/apps/red-ui/src/app/utils/types.d.ts
@@ -0,0 +1,10 @@
+export type Color =
+ 'unassigned' |
+ 'under-review' |
+ 'under-approval' |
+ 'approved' |
+ 'submitted' |
+ 'efsa' |
+ 'finished' |
+ 'active' |
+ 'archived';
diff --git a/apps/red-ui/src/assets/styles/red-controls.scss b/apps/red-ui/src/assets/styles/red-controls.scss
index 85930a2fa..d3bfc0d3f 100644
--- a/apps/red-ui/src/assets/styles/red-controls.scss
+++ b/apps/red-ui/src/assets/styles/red-controls.scss
@@ -9,7 +9,7 @@
cursor: pointer;
color: $accent;
background: $white;
- font-family: 'Inter', sans-serif;
+ font-family: Inter, sans-serif;
font-size: 13px;
letter-spacing: 0;
line-height: 14px;
diff --git a/apps/red-ui/src/assets/styles/red-page-layout.scss b/apps/red-ui/src/assets/styles/red-page-layout.scss
index 200d1424c..fe7918429 100644
--- a/apps/red-ui/src/assets/styles/red-page-layout.scss
+++ b/apps/red-ui/src/assets/styles/red-page-layout.scss
@@ -5,8 +5,10 @@ html, body {
margin: 0;
padding: 0;
height: 100vh;
- font-family: 'Inter', sans-serif;
+ font-family: Inter, sans-serif;
color: $accent;
+ font-size: 13px;
+ line-height: 16px;
}
.page-header {
@@ -57,9 +59,6 @@ html, body {
}
.filters {
- font-size: 13px;
- line-height: 14px;
-
> div {
padding: 10px 14px;
}
@@ -157,8 +156,6 @@ html, body {
.breadcrumb {
text-decoration: none;
color: $accent;
- font-size: 13px;
- line-height: 18px;
font-weight: 600;
@include line-clamp(1);
max-width: 320px;
diff --git a/apps/red-ui/src/assets/styles/red-tables.scss b/apps/red-ui/src/assets/styles/red-tables.scss
index 818888e5e..759bcf2d3 100644
--- a/apps/red-ui/src/assets/styles/red-tables.scss
+++ b/apps/red-ui/src/assets/styles/red-tables.scss
@@ -10,7 +10,6 @@
.actions {
display: flex;
- font-size: 13px;
div {
padding: 10px 14px;
@@ -41,9 +40,7 @@
}
.table-item-title {
- font-size: 13px;
font-weight: 600;
- line-height: 18px;
@include line-clamp(1);
}
diff --git a/apps/red-ui/src/assets/styles/red-variables.scss b/apps/red-ui/src/assets/styles/red-variables.scss
index 67531990d..46645f5e2 100644
--- a/apps/red-ui/src/assets/styles/red-variables.scss
+++ b/apps/red-ui/src/assets/styles/red-variables.scss
@@ -8,13 +8,18 @@ $dark: #000;
$grey-1: #283241;
$grey-2: #ECECEE;
-$grey-3: #aaacb3;
+$grey-3: #AAACB3;
$grey-4: #E2E4E9;
+$grey-5: #D3D5DA;
$blue-1: #4875F7;
+$blue-2: #48C9F7;
+$blue-3: #5B97DB;
+$blue-4: #374C81;
$red-1: #F65757;
$yellow-1: #FFB83B;
$green-1: #46CE7D;
+$green-2: #5CE594;
$separator: rgba(226,228,233,0.9);