diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts
index 7f674df20..da16ff037 100644
--- a/apps/red-ui/src/app/app.module.ts
+++ b/apps/red-ui/src/app/app.module.ts
@@ -53,6 +53,7 @@ import { SimpleDoughnutChartComponent } from './components/simple-doughnut-chart
import { ManualRedactionDialogComponent } from './screens/file/manual-redaction-dialog/manual-redaction-dialog.component';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
+import { AnnotationIconComponent } from './components/annotation-icon/annotation-icon.component';
export function HttpLoaderFactory(httpClient: HttpClient) {
return new TranslateHttpLoader(httpClient, '/assets/i18n/', '.json');
@@ -76,6 +77,7 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
LogoComponent,
SimpleDoughnutChartComponent,
ManualRedactionDialogComponent,
+ AnnotationIconComponent,
],
imports: [
BrowserModule,
diff --git a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html
new file mode 100644
index 000000000..73d7131ff
--- /dev/null
+++ b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.html
@@ -0,0 +1,3 @@
+
+ {{ type[0] }}
+
diff --git a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.scss b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.scss
new file mode 100644
index 000000000..5563fd6d6
--- /dev/null
+++ b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.scss
@@ -0,0 +1,52 @@
+@import "../../../assets/styles/red-variables";
+
+.icon {
+ height: 16px;
+ width: 16px;
+ font-size: 11px;
+ line-height: 14px;
+ font-weight: 600;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ text-transform: uppercase;
+ color: $white;
+}
+
+.suggestion {
+ width: 0;
+ height: 0;
+ border: 9px solid transparent;
+ border-bottom-color: $grey-1;
+ position: relative;
+ top: -9px;
+
+ &:after {
+ content: '';
+ position: absolute;
+ left: -9px;
+ top: 9px;
+ width: 0;
+ height: 0;
+ border: 9px solid transparent;
+ border-top-color: $grey-1;
+ }
+
+ span {
+ transform: translateY(9px);
+ z-index: 2;
+ }
+}
+
+.hint, .comment, .ignore {
+ border-radius: 50%;
+}
+
+.hint, .redaction, .comment {
+ background-color: $grey-1;
+}
+
+.ignore {
+ background-color: $grey-5;
+}
diff --git a/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts
new file mode 100644
index 000000000..fbc913620
--- /dev/null
+++ b/apps/red-ui/src/app/components/annotation-icon/annotation-icon.component.ts
@@ -0,0 +1,16 @@
+import { Component, Input, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'redaction-annotation-icon',
+ templateUrl: './annotation-icon.component.html',
+ styleUrls: ['./annotation-icon.component.scss']
+})
+export class AnnotationIconComponent implements OnInit {
+ @Input() public type: 'hint' | 'redaction' | 'suggestion' | 'ignore' | 'comment';
+
+ constructor() {
+ }
+
+ ngOnInit(): void {
+ }
+}
diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
index b5a729533..2201134f7 100644
--- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
+++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
@@ -42,134 +42,76 @@
-
-
-
-
-
-
-
-