From bd4f3e51a72c7cc5e413a66e762d797fd82766c3 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 15:09:17 +0100 Subject: [PATCH] CM-457: initial deduplication task body --- .../tasks/DeduplicationResolutionTask.js | 29 ++++++++++++++++++- src/index.js | 2 +- src/translations/en.json | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/components/tasks/DeduplicationResolutionTask.js b/src/components/tasks/DeduplicationResolutionTask.js index 46bcd01..cf791c5 100644 --- a/src/components/tasks/DeduplicationResolutionTask.js +++ b/src/components/tasks/DeduplicationResolutionTask.js @@ -1,5 +1,32 @@ +import React from 'react'; + +function BeneficiaryDeduplicationTaskDisplay({ + businessData, +}) { + return ( +
+
+ {JSON.stringify(businessData.column_values)} + {' '} + , + count: + {' '} + {businessData.count} +
+
+ headers +
+
+ {businessData.ids.map((id) =>
{id}
)} +
+
+ ); +} + const DeduplicationResolutionTaskTableHeaders = () => []; -const DeduplicationResolutionItemFormatters = () => []; +const DeduplicationResolutionItemFormatters = () => [ + (businessData) => , +]; export { DeduplicationResolutionTaskTableHeaders, DeduplicationResolutionItemFormatters }; diff --git a/src/index.js b/src/index.js index 80a45fa..6a12c51 100644 --- a/src/index.js +++ b/src/index.js @@ -18,7 +18,7 @@ const DEFAULT_CONFIG = { text: , tableHeaders: DeduplicationResolutionTaskTableHeaders, itemFormatters: DeduplicationResolutionItemFormatters, - taskSource: ['BenefitPlanDeduplication'], + taskSource: ['CreateDeduplicationReviewTasksService'], }], }; diff --git a/src/translations/en.json b/src/translations/en.json index 9998fe1..56c84be 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -9,6 +9,6 @@ "deduplication.deduplicate.button.createDeduplicationReviewTask": "Create Deduplication Review Tasks", "deduplication.deduplicationSummaryTable.group": "Group", "deduplication.deduplicationSummaryTable.duplicates": "Duplicates", - "deduplication.tasks.deduplication.title": "Benefit Plan Deduplication Task" + "deduplication.tasks.deduplication.title": "Benefit Plan Deduplication Task", "deduplication.deduplicate.mutation.createTasks": "Deduplication tasks have been created." } \ No newline at end of file