diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts
index 82e59f754..4cf536232 100644
--- a/apps/red-ui/src/app/app.module.ts
+++ b/apps/red-ui/src/app/app.module.ts
@@ -114,7 +114,7 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
NeedsWorkBadgeComponent,
ProjectOverviewEmptyComponent,
ProjectListingEmptyComponent,
- AnnotationActionsComponent
+ AnnotationActionsComponent,
ProjectListingEmptyComponent,
ProjectListingDetailsComponent
],
diff --git a/apps/red-ui/src/app/dialogs/dialog.service.ts b/apps/red-ui/src/app/dialogs/dialog.service.ts
index 4fcb1aed4..182759fda 100644
--- a/apps/red-ui/src/app/dialogs/dialog.service.ts
+++ b/apps/red-ui/src/app/dialogs/dialog.service.ts
@@ -110,7 +110,7 @@ export class DialogService {
ref.afterClosed().subscribe((result) => {
if (result) {
this._manualAnnotationService
- .acceptSuggestion(annotation.id)
+ .approveRequest(annotation.id)
.subscribe((acceptResult) => {
if (callback) {
callback(acceptResult);
@@ -136,7 +136,7 @@ export class DialogService {
ref.afterClosed().subscribe((result) => {
if (result) {
- this._manualAnnotationService.rejectSuggestion(annotation).subscribe(() => {
+ this._manualAnnotationService.declineOrRemoveRequest(annotation).subscribe(() => {
rejectCallback();
});
}
diff --git a/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts b/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts
index 643b12a66..d1b57c1c4 100644
--- a/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts
+++ b/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts
@@ -60,34 +60,18 @@ export class ManualAnnotationDialogComponent implements OnInit {
handleAddRedaction() {
this._enhanceManualRedaction(this.manualRedactionEntryWrapper.manualRedactionEntry);
-
- if (this.isDictionaryRequest) {
- this._manualAnnotationService
- .makeDictionaryEntry(this.manualRedactionEntryWrapper.manualRedactionEntry)
- .subscribe(
- (response) => {
- this.dialogRef.close(
- new ManualAnnotationResponse(this.manualRedactionEntryWrapper, response)
- );
- },
- () => {
- this.dialogRef.close();
- }
- );
- } else {
- this._manualAnnotationService
- .makeRedaction(this.manualRedactionEntryWrapper.manualRedactionEntry)
- .subscribe(
- (response) => {
- this.dialogRef.close(
- new ManualAnnotationResponse(this.manualRedactionEntryWrapper, response)
- );
- },
- () => {
- this.dialogRef.close();
- }
- );
- }
+ this._manualAnnotationService
+ .addAnnotation(this.manualRedactionEntryWrapper.manualRedactionEntry)
+ .subscribe(
+ (response) => {
+ this.dialogRef.close(
+ new ManualAnnotationResponse(this.manualRedactionEntryWrapper, response)
+ );
+ },
+ () => {
+ this.dialogRef.close();
+ }
+ );
}
get title() {
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 278d669a3..f27c78cf4 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,12 +1,8 @@
-
+
-
-
- {{ fileStatus.filename }}
+
+
+
+ {{ fileStatus.filename }}
+
+
-
@@ -239,7 +242,7 @@
fileStatus.isError
"
[matTooltip]="'project-overview.delete.action' | translate"
- [matTooltipPosition]="'above'"
+ matTooltipPosition="above"
color="accent"
mat-icon-button
>
@@ -257,7 +260,7 @@
appStateService.isActiveProjectOwnerAndManager &&
!isError(fileStatus)
"
- [matTooltipPosition]="'above'"
+ matTooltipPosition="above"
>
@@ -286,7 +289,7 @@
(click)="reanalyseFile($event, fileStatus)"
*ngIf="appStateService.canReanalyseFile(fileStatus)"
[matTooltip]="'project-overview.reanalyse.action' | translate"
- [matTooltipPosition]="'above'"
+ matTooltipPosition="above"
color="accent"
mat-icon-button
>
@@ -304,7 +307,7 @@
: 'project-overview.under-approval'
) | translate
"
- [matTooltipPosition]="'above'"
+ matTooltipPosition="above"
color="accent"
mat-icon-button
>
@@ -322,7 +325,7 @@
: 'project-overview.under-review'
) | translate
"
- [matTooltipPosition]="'above'"
+ matTooltipPosition="above"
color="accent"
mat-icon-button
>
diff --git a/apps/red-ui/src/app/upload/upload-status-dialog/upload-status-overlay.component.html b/apps/red-ui/src/app/upload/upload-status-dialog/upload-status-overlay.component.html
index 3b67511a1..ba995fafd 100644
--- a/apps/red-ui/src/app/upload/upload-status-dialog/upload-status-overlay.component.html
+++ b/apps/red-ui/src/app/upload/upload-status-dialog/upload-status-overlay.component.html
@@ -18,7 +18,7 @@
@@ -36,7 +36,7 @@
@@ -47,7 +47,7 @@
@@ -56,7 +56,7 @@
diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json
index 6e8be4829..221819121 100644
--- a/apps/red-ui/src/assets/i18n/en.json
+++ b/apps/red-ui/src/assets/i18n/en.json
@@ -178,7 +178,6 @@
"label": "Outdated",
"toast": {
"message-project": "Some documents were not processed with the latest rule/dictionary set. They are marked with:\n\n",
- "message-file": "This documents was not processed with the latest rule/dictionary set.\n\n",
"actions": {
"reanalyse-all": "Reanalyze all",
"reanalyse-file": "Reanalyze this file",
@@ -249,6 +248,7 @@
"file-preview": {
"show-redacted-view": "Show Redacted Preview",
"cannot-show-redacted-view": "Redactions out of sync. Redacted Preview only available after reanalysis",
+ "reanalyse-notification": "This document was not processed with the latest rule/dictionary set. Reanalyse now to get updated annotations.",
"reanalyse-file": "File reanalysis in progress... ",
"view-toggle": "Redacted View",
"tabs": {
diff --git a/apps/red-ui/src/assets/styles/red-button.scss b/apps/red-ui/src/assets/styles/red-button.scss
index 3e6f49608..ff39775b0 100644
--- a/apps/red-ui/src/assets/styles/red-button.scss
+++ b/apps/red-ui/src/assets/styles/red-button.scss
@@ -47,7 +47,11 @@
.mat-icon-button {
transition: background-color 0.25s ease-in-out;
- &:hover {
+ &.warn {
+ background-color: $yellow-2;
+ }
+
+ &:hover:not(.warn) {
background-color: $grey-2;
}
}
diff --git a/apps/red-ui/src/assets/styles/red-components.scss b/apps/red-ui/src/assets/styles/red-components.scss
index 4a8d0e079..ead6b6fa4 100644
--- a/apps/red-ui/src/assets/styles/red-components.scss
+++ b/apps/red-ui/src/assets/styles/red-components.scss
@@ -77,6 +77,7 @@
font-size: 10px;
font-weight: 600;
line-height: 12px;
+ height: 12px;
text-align: center;
white-space: pre;
}
diff --git a/apps/red-ui/src/assets/styles/red-tooltips.scss b/apps/red-ui/src/assets/styles/red-tooltips.scss
index a26529fca..7a0fecf62 100644
--- a/apps/red-ui/src/assets/styles/red-tooltips.scss
+++ b/apps/red-ui/src/assets/styles/red-tooltips.scss
@@ -11,19 +11,29 @@
position: relative;
overflow: visible !important;
text-align: center;
-}
-.mat-tooltip:after {
- content: '';
- position: absolute;
- left: 50%;
- margin-left: -5px;
- width: 0;
- height: 0;
- z-index: 3000;
- border-left: solid 5px transparent;
- border-right: solid 5px transparent;
- border-top: solid 6px $accent;
+ &:after {
+ content: '';
+ position: absolute;
+ left: 50%;
+ margin-left: -5px;
+ width: 0;
+ height: 0;
+ z-index: 3000;
+ border-left: solid 5px transparent;
+ border-right: solid 5px transparent;
+ border-top: solid 6px $accent;
+ }
+
+ &.warn {
+ background-color: $yellow-2;
+ text-align: initial;
+ color: $accent;
+
+ &:after {
+ border-top: solid 6px $yellow-2;
+ }
+ }
}
.mat-tooltip[style*='transform-origin: center top']:after {