Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CM-699: update group history tab #82

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading