From 6e8b52beda7a7664680f373022dbe00404f6ddd2 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 29 May 2024 01:54:27 +0200 Subject: [PATCH] CM-699: update group history tab --- src/components/GroupHistorySearcher.js | 10 ++++++++++ src/translations/en.json | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/components/GroupHistorySearcher.js b/src/components/GroupHistorySearcher.js index 61ebc18..6605fd6 100644 --- a/src/components/GroupHistorySearcher.js +++ b/src/components/GroupHistorySearcher.js @@ -28,7 +28,9 @@ function GroupHistorySearcher({ const fetch = (params) => dispatch(fetchGroupHistory(params)); const headers = () => [ + 'groupHistory.primaryRecipient', 'groupHistory.head', + 'groupHistory.secondaryRecipient', 'groupHistory.dateUpdated', 'groupHistory.version', 'groupHistory.members', @@ -36,10 +38,18 @@ function GroupHistorySearcher({ ]; const itemFormatters = () => [ + (groupHistory) => { + const jsonExt = groupHistory?.jsonExt ? JSON.parse(groupHistory.jsonExt) : null; + return jsonExt?.primary_recipient ?? EMPTY_STRING; + }, (groupHistory) => { const jsonExt = groupHistory?.jsonExt ? JSON.parse(groupHistory.jsonExt) : null; return jsonExt?.head ?? EMPTY_STRING; }, + (groupHistory) => { + const jsonExt = groupHistory?.jsonExt ? JSON.parse(groupHistory.jsonExt) : null; + return jsonExt?.secondary_recipient ?? EMPTY_STRING; + }, (groupHistory) => (groupHistory?.dateUpdated ? formatDateFromISO(groupHistory.dateUpdated) : EMPTY_STRING), diff --git a/src/translations/en.json b/src/translations/en.json index d5c3c95..e44d857 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -182,6 +182,8 @@ "headPanelTitle": "General Information", "id": "ID", "head": "Head", + "primaryRecipient": "Primary Recipient", + "secondaryRecipient": "Secondary Recipient", "dateUpdated": "Date Updated", "version": "Version", "any": "ANY",