diff --git a/apps/red-ui/src/app/common/filter/utils/filter-utils.ts b/apps/red-ui/src/app/common/filter/utils/filter-utils.ts
index 858d33161..4b5458596 100644
--- a/apps/red-ui/src/app/common/filter/utils/filter-utils.ts
+++ b/apps/red-ui/src/app/common/filter/utils/filter-utils.ts
@@ -133,6 +133,12 @@ export const annotationFilterChecker = (input: FileStatusWrapper | ProjectWrappe
case 'none': {
return input.hasNone;
}
+ case 'updated': {
+ return input instanceof FileStatusWrapper && input.hasUpdates;
+ }
+ case 'image': {
+ return input instanceof FileStatusWrapper && input.hasImages;
+ }
}
};
diff --git a/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.html b/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.html
index ef1d99441..b10bdb442 100644
--- a/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.html
+++ b/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.html
@@ -3,4 +3,6 @@
+
+
diff --git a/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.ts b/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.ts
index 3617529a4..1b4f8a91d 100644
--- a/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.ts
+++ b/apps/red-ui/src/app/components/needs-work-badge/needs-work-badge.component.ts
@@ -25,11 +25,27 @@ export class NeedsWorkBadgeComponent implements OnInit {
}
get suggestionColor() {
+ return this._getDictionaryColor('suggestion');
+ }
+
+ get imageColor() {
+ return this._getDictionaryColor('image');
+ }
+
+ get hasImages() {
+ return this.needsWorkInput instanceof FileStatusWrapper && this.needsWorkInput.hasImages;
+ }
+
+ get hasUpdates() {
+ return this.needsWorkInput instanceof FileStatusWrapper && this.needsWorkInput.hasUpdates;
+ }
+
+ private _getDictionaryColor(type: string) {
let ruleSetId = null;
if (this.needsWorkInput instanceof ProjectWrapper) {
ruleSetId = this.needsWorkInput.ruleSetId;
}
- return this.appStateService.getDictionaryColor('suggestion', ruleSetId);
+ return this.appStateService.getDictionaryColor(type, ruleSetId);
}
}
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 9d5afd5b4..52c885208 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
@@ -29,4 +29,8 @@
+
+
+
+
{{ filter.label | translate }}
diff --git a/apps/red-ui/src/app/screens/base-screen/base-screen.component.html b/apps/red-ui/src/app/screens/base-screen/base-screen.component.html
index 7d44af788..da3ffd598 100644
--- a/apps/red-ui/src/app/screens/base-screen/base-screen.component.html
+++ b/apps/red-ui/src/app/screens/base-screen/base-screen.component.html
@@ -55,7 +55,6 @@
class="breadcrumb"
[routerLink]="'/ui/projects/' + appStateService.activeProjectId + '/file/' + appStateService.activeFile.fileId"
routerLinkActive="active"
- [routerLinkActiveOptions]="{ exact: true }"
>
{{ appStateService.activeFile.filename }}
diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
index 4dc44ca5f..b184eea3b 100644
--- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
+++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
@@ -268,6 +268,8 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
if (file.hasRedactions) allDistinctNeedsWork.add('redaction');
if (file.hasRequests) allDistinctNeedsWork.add('suggestion');
if (file.hasNone) allDistinctNeedsWork.add('none');
+ if (file.hasUpdates) allDistinctNeedsWork.add('updated');
+ if (file.hasImages) allDistinctNeedsWork.add('image');
});
const statusFilters = [];
diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json
index b2a723c4c..76786fb8f 100644
--- a/apps/red-ui/src/assets/i18n/en.json
+++ b/apps/red-ui/src/assets/i18n/en.json
@@ -451,7 +451,9 @@
"redaction": "Redacted",
"suggestion": "Suggested Redaction",
"analysis": "Analysis required",
- "none": "No Annotations"
+ "none": "No Annotations",
+ "updated": "Updated",
+ "image": "Images"
},
"filter-menu": {
"label": "Filter",