diff --git a/apps/nowcasting-app/components/charts/solar-site-view/solar-site-chart.tsx b/apps/nowcasting-app/components/charts/solar-site-view/solar-site-chart.tsx index 1bd715c7..1446360a 100644 --- a/apps/nowcasting-app/components/charts/solar-site-view/solar-site-chart.tsx +++ b/apps/nowcasting-app/components/charts/solar-site-view/solar-site-chart.tsx @@ -25,6 +25,7 @@ import { ForecastHeadlineFigure } from "../forecast-header/ui"; import { AggregatedDataTable } from "./solar-site-tables"; import ForecastHeaderSite from "./forecast-header"; import DataLoadingChartStatus from "../DataLoadingChartStatus"; +import Link from "next/link"; const LegendItem: FC<{ iconClasses: string; @@ -209,6 +210,56 @@ const SolarSiteChart: FC<{ ); + if (!combinedSitesData.allSitesData?.length) { + return ( +
+ It looks like you don't currently have any sites. +
+ {/* TODO: add func. to create sites from UI */} + {/**/} + {/* To add a site, you can use the "+" button in the top left corner.*/} + {/*
*/} ++ To add a site, you can use our{" "} + + API + {" "} + or our{" "} + + Swagger UI + + . +
++++ If you think you should have sites here, have any questions or need some further + information, please get in touch at{" "} + + quartz.support@openclimatefix.org + +
+