From 9a95847d0e5ecf4adf224d5a04681f01d0a29418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Wed, 12 Jan 2022 00:31:43 +0200 Subject: [PATCH] RED-3146: Added new IMAGE_ANALYZING state --- .../translations/file-status-translations.ts | 1 + apps/red-ui/src/assets/i18n/en.json | 13 +++++++------ libs/red-domain/src/lib/files/types.ts | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/translations/file-status-translations.ts b/apps/red-ui/src/app/modules/dossier/translations/file-status-translations.ts index 6591e01a1..5dd0404d3 100644 --- a/apps/red-ui/src/app/modules/dossier/translations/file-status-translations.ts +++ b/apps/red-ui/src/app/modules/dossier/translations/file-status-translations.ts @@ -14,6 +14,7 @@ export const processingFileStatusTranslations: { [key in ProcessingFileStatus]: DELETED: _('file-status.deleted'), ERROR: _('file-status.error'), FULLREPROCESS: _('file-status.full-reprocess'), + IMAGE_ANALYZING: _('file-status.image-analyzing'), INDEXING: _('file-status.indexing'), OCR_PROCESSING: _('file-status.ocr-processing'), PROCESSING: _('file-status.processing'), diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 0b40d292e..510458983 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -142,9 +142,6 @@ }, "annotation": "Annotation", "annotation-actions": { - "force-hint": { - "label": "Force Hint" - }, "accept-recommendation": { "label": "Accept Recommendation" }, @@ -154,6 +151,9 @@ "edit-reason": { "label": "Edit Reason" }, + "force-hint": { + "label": "Force Hint" + }, "force-redaction": { "label": "Force Redaction" }, @@ -473,13 +473,13 @@ "analysisColor": "Analysis", "defaultColor": "Default Color", "dictionaryRequestColor": "Dictionary Request", + "ignoredHintColor": "Ignored Hint", "manualRedactionColor": "Manual Redaction", "notRedacted": "Skipped", "previewColor": "Preview", "requestAdd": "Request Add", "requestRemove": "Request Remove", - "updatedColor": "Updated", - "ignoredHintColor": "Ignored Hint" + "updatedColor": "Updated" } }, "dev-mode": "DEV", @@ -1114,6 +1114,7 @@ "deleted": "Deleted", "error": "Re-processing required", "full-reprocess": "Processing", + "image-analyzing": "Image Analyzing", "indexing": "Processing", "new": "New", "ocr-processing": "OCR Processing", @@ -1287,8 +1288,8 @@ "header": { "dictionary": "Add to dictionary", "false-positive": "Set false positive", - "force-redaction": "Force Redaction", "force-hint": "Force Hint", + "force-redaction": "Force Redaction", "redaction": "Redaction", "request-dictionary": "Request add to dictionary", "request-false-positive": "Request false positive", diff --git a/libs/red-domain/src/lib/files/types.ts b/libs/red-domain/src/lib/files/types.ts index dce23e0a1..2cb697783 100644 --- a/libs/red-domain/src/lib/files/types.ts +++ b/libs/red-domain/src/lib/files/types.ts @@ -14,6 +14,7 @@ export const ProcessingFileStatuses = { DELETED: 'DELETED', ERROR: 'ERROR', FULLREPROCESS: 'FULLREPROCESS', + IMAGE_ANALYZING: 'IMAGE_ANALYZING', INDEXING: 'INDEXING', OCR_PROCESSING: 'OCR_PROCESSING', PROCESSED: 'PROCESSED', @@ -28,6 +29,7 @@ export const isProcessingStatuses: List = [ ProcessingFileStatuses.REPROCESS, ProcessingFileStatuses.FULLREPROCESS, ProcessingFileStatuses.OCR_PROCESSING, + ProcessingFileStatuses.IMAGE_ANALYZING, ProcessingFileStatuses.INDEXING, ProcessingFileStatuses.PROCESSING, ] as const;