From 17cd8024f7d7bebd68302f1398708eda36d7636c Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Wed, 5 Jun 2024 21:23:55 -0700 Subject: [PATCH] [TM-911] Display seeding counts on project, site and their report admin pages. --- .../ProjectInformationAside/HighLevelMetrics.tsx | 5 +++++ .../ReportInformationAside/HighLevelMetrics.tsx | 9 +++++++++ .../components/SiteInformationAside/HighLevelMetrics.tsx | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/src/admin/components/ResourceTabs/InformationTab/components/ProjectInformationAside/HighLevelMetrics.tsx b/src/admin/components/ResourceTabs/InformationTab/components/ProjectInformationAside/HighLevelMetrics.tsx index ee72b1cfe..a07351a8b 100644 --- a/src/admin/components/ResourceTabs/InformationTab/components/ProjectInformationAside/HighLevelMetrics.tsx +++ b/src/admin/components/ResourceTabs/InformationTab/components/ProjectInformationAside/HighLevelMetrics.tsx @@ -36,6 +36,11 @@ const HighLevelMetics: FC = () => { + + + + + ); diff --git a/src/admin/components/ResourceTabs/InformationTab/components/ReportInformationAside/HighLevelMetrics.tsx b/src/admin/components/ResourceTabs/InformationTab/components/ReportInformationAside/HighLevelMetrics.tsx index 8016a55b6..f51002a26 100644 --- a/src/admin/components/ResourceTabs/InformationTab/components/ReportInformationAside/HighLevelMetrics.tsx +++ b/src/admin/components/ResourceTabs/InformationTab/components/ReportInformationAside/HighLevelMetrics.tsx @@ -12,6 +12,7 @@ const HighLevelMetics: FC = () => { }; const isTerraFund = record.framework_key === "terrafund"; + const isPPC = record.framework_key === "ppc"; const workdaysType = resource === "projectReport" ? "Project" : resource === "siteReport" ? "Site" : null; return ( @@ -48,6 +49,14 @@ const HighLevelMetics: FC = () => { emptyText="0" /> + + + + + diff --git a/src/admin/components/ResourceTabs/InformationTab/components/SiteInformationAside/HighLevelMetrics.tsx b/src/admin/components/ResourceTabs/InformationTab/components/SiteInformationAside/HighLevelMetrics.tsx index 7243c8210..846eb2abb 100644 --- a/src/admin/components/ResourceTabs/InformationTab/components/SiteInformationAside/HighLevelMetrics.tsx +++ b/src/admin/components/ResourceTabs/InformationTab/components/SiteInformationAside/HighLevelMetrics.tsx @@ -32,6 +32,11 @@ const HighLevelMetics: FC = () => { + + + + +