diff --git a/client/app.js b/client/app.js
deleted file mode 100644
index c0c021d..0000000
--- a/client/app.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// custom client js
-// alert('alert from client code')
diff --git a/client/app.tsx b/client/app.tsx
new file mode 100644
index 0000000..b1d1b6f
--- /dev/null
+++ b/client/app.tsx
@@ -0,0 +1,4 @@
+import {exposed} from 'newsroom-core';
+import {STTCoverageVersionField} from './stt/STTCoverageVersionField';
+
+exposed.agenda.registerCoverageFieldComponent('sttversion', STTCoverageVersionField);
diff --git a/client/stt/STTCoverageVersionField.tsx b/client/stt/STTCoverageVersionField.tsx
new file mode 100644
index 0000000..89f5c9f
--- /dev/null
+++ b/client/stt/STTCoverageVersionField.tsx
@@ -0,0 +1,24 @@
+import * as React from 'react';
+
+import {ICoverageMetadataPreviewProps} from 'newsroom-core/assets/interfaces';
+import {exposed} from 'newsroom-core';
+
+export function STTCoverageVersionField({coverage, fullCoverage}: ICoverageMetadataPreviewProps) {
+ const {gettext} = exposed.locale;
+
+ if (fullCoverage == null) {
+ console.warn(`Unable to find the full coverage for ${coverage.coverage_id}`);
+ return null;
+ }
+
+ const sttVersion = (fullCoverage.planning?.subjects || []).filter(
+ (subject) => subject.scheme === 'sttversion'
+ );
+
+ return sttVersion.length === 0 ? null : (
+
+ {gettext('Version')}:
+ {sttVersion[0].name}
+
+ );
+}
diff --git a/client/tsconfig.json b/client/tsconfig.json
new file mode 100644
index 0000000..9eed908
--- /dev/null
+++ b/client/tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "extends": "newsroom-core/tsconfig",
+ "include": [
+ "."
+ ],
+}
diff --git a/server/data/ui_config.json b/server/data/ui_config.json
index faeb356..94d1b5c 100644
--- a/server/data/ui_config.json
+++ b/server/data/ui_config.json
@@ -92,7 +92,7 @@
},
{
"_id": "agenda",
- "init_version": 3,
+ "init_version": 4,
"subnav": {
"filters": [
"item_type",
@@ -109,6 +109,38 @@
"contacts": {
"displayed": false
}
+ },
+ "preview": {
+ "coverage_metadata_fields": [
+ "coverage_header",
+ "sttversion",
+ "coverage_expected_date",
+ "coverage_provider",
+ "coverage_wire_text",
+ "coverage_update_coming",
+ "coverage_status",
+ "coverage_scheduled_status",
+ "coverage_ednote",
+ "coverage_workflow_reason",
+ "coverage_internal_note",
+ "coverage_actions"
+ ]
+ },
+ "details": {
+ "coverage_metadata_fields": [
+ "coverage_header",
+ "sttversion",
+ "coverage_expected_date",
+ "coverage_provider",
+ "coverage_wire_text",
+ "coverage_update_coming",
+ "coverage_status",
+ "coverage_scheduled_status",
+ "coverage_ednote",
+ "coverage_workflow_reason",
+ "coverage_internal_note",
+ "coverage_actions"
+ ]
}
}
]
diff --git a/server/settings.py b/server/settings.py
index a8adba7..a5aef04 100644
--- a/server/settings.py
+++ b/server/settings.py
@@ -208,3 +208,5 @@
})
CONTENTAPI_ELASTICSEARCH_SETTINGS["settings"]["analysis"]["analyzer"]["html_field_analyzer"]["filter"] = ["lowercase"]
+
+AGENDA_HIDE_COVERAGE_ASSIGNEES = True