From 07d6ab12fc2491ddcf6823c69aec5a37e79251a0 Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 24 Feb 2021 11:45:33 +0200 Subject: [PATCH] skipped annotations partial fix --- .../app/common/sorters/super-type-sorter.ts | 12 +- .../type-filter/type-filter.component.html | 16 +- .../annotation-actions.component.html | 272 +++++++++--------- .../annotation-actions.component.ts | 4 - .../file-preview-screen.component.html | 44 +-- .../file-preview-screen.component.ts | 4 + 6 files changed, 177 insertions(+), 175 deletions(-) diff --git a/apps/red-ui/src/app/common/sorters/super-type-sorter.ts b/apps/red-ui/src/app/common/sorters/super-type-sorter.ts index 156182c78..5476b0896 100644 --- a/apps/red-ui/src/app/common/sorters/super-type-sorter.ts +++ b/apps/red-ui/src/app/common/sorters/super-type-sorter.ts @@ -1,13 +1,15 @@ export const SuperTypeSorter = { 'add-dictionary': 2, 'remove-dictionary': 3, - 'suggestion-add-dictionary': 7, - 'suggestion-remove-dictionary': 8, - 'suggestion-add': 5, - 'suggestion-remove': 6, + 'pending-analysis': 4, + 'remove-only-here': 5, + 'suggestion-add-dictionary': 12, + 'suggestion-remove-dictionary': 13, + 'suggestion-add': 10, + 'suggestion-remove': 11, skipped: 50, redaction: 1, manual: 2, - hint: 10, + hint: 15, 'declined-suggestion': 20 }; diff --git a/apps/red-ui/src/app/components/type-filter/type-filter.component.html b/apps/red-ui/src/app/components/type-filter/type-filter.component.html index 362f55da9..00663d6dd 100644 --- a/apps/red-ui/src/app/components/type-filter/type-filter.component.html +++ b/apps/red-ui/src/app/components/type-filter/type-filter.component.html @@ -1,12 +1,8 @@ - - - - - - - + {{ filter.label | translate }} diff --git a/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.html b/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.html index f1566968c..ae4f620d1 100644 --- a/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.html +++ b/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.html @@ -1,141 +1,139 @@ - -
- - +
+ + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+ +
+
+ +
+ +
+
+
- - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
- -
-
- -
- -
-
-
- -
-
-
-
- + +
+
+ +
diff --git a/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.ts b/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.ts index 3a11d9ca2..51b539317 100644 --- a/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.ts +++ b/apps/red-ui/src/app/screens/file/annotation-actions/annotation-actions.component.ts @@ -61,8 +61,4 @@ export class AnnotationActionsComponent implements OnInit { get dictionaryColor() { return this.appStateService.getDictionaryColor('suggestion-add-dictionary'); } - - logAnnotation(annotation: AnnotationWrapper) { - console.log(annotation); - } } 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 15302d42e..a9331e9c4 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 @@ -246,29 +246,31 @@ class="annotation" [class.removed]="annotation.isChangeLogRemoved" > -
- -
-
- {{ annotation.typeLabel | translate }} -
-
- {{ annotation.descriptor | translate }}: {{ annotation.dictionary | humanize: false }} -
-
- : {{ annotation.content }} + +
+ +
+
+ {{ annotation.typeLabel | translate }} +
+
+ {{ annotation.descriptor | translate }}: {{ annotation.dictionary | humanize: false }} +
+
+ : {{ annotation.content }} +
+
- -
+
diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index b2d526df5..d6fcc3a65 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -708,6 +708,10 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy { window.open(`/html-debug/${this.projectId}/${this.fileId}`, '_blank'); } + logAnnotation(annotation: AnnotationWrapper) { + console.log(annotation); + } + private _handleIgnoreAnnotationsDrawing() { const allAnnotations = this._instance.annotManager.getAnnotationsList(); const ignoreAnnotations = allAnnotations.filter((a) => a.getCustomData('skipped'));