diff --git a/src/components/Admin/__snapshots__/Admin.test.jsx.snap b/src/components/Admin/__snapshots__/Admin.test.jsx.snap index c7775636e..46feb089d 100644 --- a/src/components/Admin/__snapshots__/Admin.test.jsx.snap +++ b/src/components/Admin/__snapshots__/Admin.test.jsx.snap @@ -605,14 +605,7 @@ exports[` renders correctly calls fetchDashboardAnalytics prop 1`] = ` renders correctly calls fetchDashboardAnalytics prop 1`] = ` % Activities Complete - - - - - renders correctly calls fetchDashboardAnalytics prop 1`] = ` renders correctly calls fetchDashboardAnalytics prop 1`] = ` Learning Outcomes % Difference - - - - - @@ -2395,14 +2331,7 @@ exports[` renders correctly with dashboard analytics data renders # cou renders correctly with dashboard analytics data renders # cou % Activities Complete - - - - - renders correctly with dashboard analytics data renders # cou renders correctly with dashboard analytics data renders # cou Learning Outcomes % Difference - - - - - @@ -4185,14 +4057,7 @@ exports[` renders correctly with dashboard analytics data renders # of renders correctly with dashboard analytics data renders # of % Activities Complete - - - - - renders correctly with dashboard analytics data renders # of renders correctly with dashboard analytics data renders # of Learning Outcomes % Difference - - - - - @@ -5975,14 +5783,7 @@ exports[` renders correctly with dashboard analytics data renders # of renders correctly with dashboard analytics data renders # of % Activities Complete - - - - - renders correctly with dashboard analytics data renders # of renders correctly with dashboard analytics data renders # of Learning Outcomes % Difference - - - - - @@ -7765,14 +7509,7 @@ exports[` renders correctly with dashboard analytics data renders colla renders correctly with dashboard analytics data renders colla % Activities Complete - - - - - renders correctly with dashboard analytics data renders colla renders correctly with dashboard analytics data renders colla Learning Outcomes % Difference - - - - - @@ -9555,14 +9235,7 @@ exports[` renders correctly with dashboard analytics data renders full renders correctly with dashboard analytics data renders full % Activities Complete - - - - - renders correctly with dashboard analytics data renders full renders correctly with dashboard analytics data renders full Learning Outcomes % Difference - - - - - @@ -11345,14 +10961,7 @@ exports[` renders correctly with dashboard analytics data renders inact renders correctly with dashboard analytics data renders inact % Activities Complete - - - - - renders correctly with dashboard analytics data renders inact renders correctly with dashboard analytics data renders inact Learning Outcomes % Difference - - - - - @@ -13135,14 +12687,7 @@ exports[` renders correctly with dashboard analytics data renders inact renders correctly with dashboard analytics data renders inact % Activities Complete - - - - - renders correctly with dashboard analytics data renders inact renders correctly with dashboard analytics data renders inact Learning Outcomes % Difference - - - - - @@ -14925,14 +14413,7 @@ exports[` renders correctly with dashboard analytics data renders learn renders correctly with dashboard analytics data renders learn % Activities Complete - - - - - renders correctly with dashboard analytics data renders learn renders correctly with dashboard analytics data renders learn Learning Outcomes % Difference - - - - - @@ -16715,14 +16139,7 @@ exports[` renders correctly with dashboard analytics data renders regis renders correctly with dashboard analytics data renders regis % Activities Complete - - - - - renders correctly with dashboard analytics data renders regis renders correctly with dashboard analytics data renders regis Learning Outcomes % Difference - - - - - @@ -18505,14 +17865,7 @@ exports[` renders correctly with dashboard analytics data renders top a renders correctly with dashboard analytics data renders top a % Activities Complete - - - - - renders correctly with dashboard analytics data renders top a renders correctly with dashboard analytics data renders top a Learning Outcomes % Difference - - - - - @@ -20344,14 +19640,7 @@ exports[` renders correctly with dashboard insights data renders dashbo renders correctly with dashboard insights data renders dashbo % Activities Complete - - - - - renders correctly with dashboard insights data renders dashbo renders correctly with dashboard insights data renders dashbo Learning Outcomes % Difference - - - - - @@ -22134,14 +21366,7 @@ exports[` renders correctly with enterprise budgets data renders budget renders correctly with enterprise budgets data renders budget % Activities Complete - - - - - renders correctly with enterprise budgets data renders budget renders correctly with enterprise budgets data renders budget Learning Outcomes % Difference - - - - - @@ -23924,14 +23092,7 @@ exports[` renders correctly with enterprise groups data renders groups renders correctly with enterprise groups data renders groups % Activities Complete - - - - - renders correctly with enterprise groups data renders groups renders correctly with enterprise groups data renders groups Learning Outcomes % Difference - - - - - @@ -24931,14 +24035,7 @@ exports[` renders correctly with error state 1`] = ` renders correctly with error state 1`] = ` % Activities Complete - - - - - renders correctly with error state 1`] = ` renders correctly with error state 1`] = ` Learning Outcomes % Difference - - - - - @@ -25955,14 +24995,7 @@ exports[` renders correctly with loading state 1`] = ` renders correctly with loading state 1`] = ` % Activities Complete - - - - - renders correctly with loading state 1`] = ` renders correctly with loading state 1`] = ` Learning Outcomes % Difference - - - - - @@ -27790,14 +26766,7 @@ exports[` renders correctly with no dashboard insights data 1`] = ` renders correctly with no dashboard insights data 1`] = ` % Activities Complete - - - - - renders correctly with no dashboard insights data 1`] = ` renders correctly with no dashboard insights data 1`] = ` Learning Outcomes % Difference - - - - - diff --git a/src/components/Admin/tabs/ModuleActivityReport.jsx b/src/components/Admin/tabs/ModuleActivityReport.jsx index 947527d27..451177cf3 100644 --- a/src/components/Admin/tabs/ModuleActivityReport.jsx +++ b/src/components/Admin/tabs/ModuleActivityReport.jsx @@ -121,7 +121,9 @@ const ModuleActivityReport = ({ enterpriseId }) => { defaultMessage: '% Activities Complete', description: 'Header for the percentage of activities completed column in the module activity report table', }), - accessor: 'percentage_completed_activities', + Cell: ({ row }) => ( + `${row.original.percentage_completed_activities} %` + ), }, { Header: intl.formatMessage({ @@ -169,7 +171,9 @@ const ModuleActivityReport = ({ enterpriseId }) => { defaultMessage: 'Learning Outcomes % Difference', description: 'Header for the learning outcomes percentage difference for learning outcome before and after the course column in the module activity report table', }), - accessor: 'avg_lo_percentage_difference', + Cell: ({ row }) => ( + _.isNumber(row.original.avg_lo_percentage_difference) ? `${row.original.avg_lo_percentage_difference} %` : row.original.avg_lo_percentage_difference + ), }, ]} tableActions={[