diff --git a/src/components/community-stats/CommunityStatsContent.js b/src/components/community-stats/CommunityStatsContent.js
index be11f429..65dfcb00 100644
--- a/src/components/community-stats/CommunityStatsContent.js
+++ b/src/components/community-stats/CommunityStatsContent.js
@@ -13,6 +13,7 @@ import BannerSection from "./BannerSection";
export default function CommunityStatsContent() {
const [data, setData] = useState([]);
const [dependenciesData, setDependenciesData] = useState([]);
+ const [statsDate, setStatsDate] = useState(null);
const fileUrl =
"https://raw.githubusercontent.com/sdv-dev/sdv-dev.github.io/gatsby-home/assets/Downloads_Summary.xlsx";
@@ -33,11 +34,21 @@ export default function CommunityStatsContent() {
const firstSheet = workbook.SheetNames[0];
const thirdSheet = workbook.SheetNames[2];
+ const fifthSheet = workbook.SheetNames[4];
const worksheet = workbook.Sheets[firstSheet];
const dependenciesWorksheet = workbook.Sheets[thirdSheet];
+ const metaInfoWorksheet = workbook.Sheets[fifthSheet];
const rawData = XLSX.utils.sheet_to_json(worksheet);
const rawDependencies = XLSX.utils.sheet_to_json(dependenciesWorksheet);
+ const metaInfo = XLSX.utils.sheet_to_json(metaInfoWorksheet);
+
+ const metaMap = {};
+ metaInfo.forEach((row) => {
+ metaMap[row.index] = row.value;
+ });
+ const dateValue = metaMap.date;
+ setStatsDate(dateValue);
const filtered = rawData.filter(
(item) =>
@@ -87,11 +98,14 @@ export default function CommunityStatsContent() {
-
+
{/* */}
{/* */}
-
+
diff --git a/src/components/community-stats/SdvCoreSection.js b/src/components/community-stats/SdvCoreSection.js
index 1d0bce6e..c18189da 100644
--- a/src/components/community-stats/SdvCoreSection.js
+++ b/src/components/community-stats/SdvCoreSection.js
@@ -7,7 +7,7 @@ import TableRow from "../common/table/TableRow";
import TableRowCell from "../common/table/TableRowCell";
import useWindowWidth from "../../hooks/useviewport";
-export default function SdvCoreSection({ dependenciesData }) {
+export default function SdvCoreSection({ dependenciesData, lastUpdatedDate }) {
const currentYear = new Date().getFullYear().toString();
const metricKeys = ["toDate", "yearToDate"];
const metricLabels = ["To date", currentYear];
@@ -52,6 +52,10 @@ export default function SdvCoreSection({ dependenciesData }) {
SDV Community downloads
+
+ Last Updated:{" "}
+ {lastUpdatedDate}
+
diff --git a/src/components/community-stats/SdvInNumbersSection.js b/src/components/community-stats/SdvInNumbersSection.js
index 9b4c9b23..56225707 100644
--- a/src/components/community-stats/SdvInNumbersSection.js
+++ b/src/components/community-stats/SdvInNumbersSection.js
@@ -9,7 +9,7 @@ import Tab from "../common/Tab";
import useWindowWidth from "../../hooks/useviewport";
import CustomPieChart from "./CustomPieChart";
-export default function SdvInNumbersSection({ data }) {
+export default function SdvInNumbersSection({ data, lastUpdatedDate }) {
const currentYear = new Date().getFullYear().toString();
const metricKeys = ["toDate", "yearToDate"];
const metricLabels = ["To date", currentYear];
@@ -72,7 +72,7 @@ export default function SdvInNumbersSection({ data }) {
in numbers
-
+
Learn more
+
+ Last Updated:{" "}
+ {lastUpdatedDate}
+
{tabs.map((t) => (