Skip to content

Commit

Permalink
CM-699: update group history tab (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdolkowski authored May 29, 2024
1 parent a939559 commit 2c4554e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/GroupHistorySearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,28 @@ function GroupHistorySearcher({
const fetch = (params) => dispatch(fetchGroupHistory(params));

const headers = () => [
'groupHistory.primaryRecipient',
'groupHistory.head',
'groupHistory.secondaryRecipient',
'groupHistory.dateUpdated',
'groupHistory.version',
'groupHistory.members',
'groupHistory.userUpdated',
];

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),
Expand Down
2 changes: 2 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@
"headPanelTitle": "General Information",
"id": "ID",
"head": "Head",
"primaryRecipient": "Primary Recipient",
"secondaryRecipient": "Secondary Recipient",
"dateUpdated": "Date Updated",
"version": "Version",
"any": "ANY",
Expand Down

0 comments on commit 2c4554e

Please sign in to comment.