diff --git a/govtool/analytics-dashboard/public/assets/svgs/favicon.svg b/govtool/analytics-dashboard/public/assets/svgs/favicon.svg new file mode 100644 index 000000000..534056abd --- /dev/null +++ b/govtool/analytics-dashboard/public/assets/svgs/favicon.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/govtool/analytics-dashboard/src/app/[locale]/layout.js b/govtool/analytics-dashboard/src/app/[locale]/layout.js index ec3d5f247..3f736cf34 100644 --- a/govtool/analytics-dashboard/src/app/[locale]/layout.js +++ b/govtool/analytics-dashboard/src/app/[locale]/layout.js @@ -5,6 +5,7 @@ import { unstable_setRequestLocale } from "next-intl/server"; import { notFound } from "next/navigation"; import '@/styles/index.css'; import ThemeProviderWrapper from "@/components/ThemeProviderWrapper"; +import Head from "next/head"; export function generateStaticParams() { @@ -14,8 +15,8 @@ export function generateStaticParams() { // Define common metadata for the application. export const metadata = { - title: "Web App Boilerplate", - description: "Web App Boilerplate", + title: "Participation dashboard", + description: "Participation dashboard", }; async function RootLayout({ children, params: { locale } }) { @@ -36,10 +37,10 @@ async function RootLayout({ children, params: { locale } }) { {metadata.title} - + {/* Apply font class and suppress hydration warning. */} - + {/* Provide internationalization context. */} {/* Wrap children in global state context */} diff --git a/govtool/analytics-dashboard/src/app/[locale]/page.js b/govtool/analytics-dashboard/src/app/[locale]/page.js index d5caace8b..c714503fd 100644 --- a/govtool/analytics-dashboard/src/app/[locale]/page.js +++ b/govtool/analytics-dashboard/src/app/[locale]/page.js @@ -5,6 +5,7 @@ import { PeopleAltOutlined, ArticleOutlined, AccountBalanceWalletOutlined, HowTo import { useTheme } from '@mui/material/styles'; import getGoogleData from '@/lib/api'; import { useEffect, useState } from 'react'; +import { Link } from '@/navigation'; function Dashboard() { @@ -57,7 +58,7 @@ function Dashboard() { Participation Dashboard theme?.palette?.text?.gray }}> - This dashboard show the overall participation and usage of govtool from 1 of January 2024 + This dashboard shows the overall participation and usage of SanchoNet Govtool from 1st of December 2023 @@ -88,9 +89,11 @@ function Dashboard() { © {new Date().getFullYear()} Intersect MBO - theme?.palette?.text?.primaryBlue }}> - Sancho Govtool - + + theme?.palette?.text?.primaryBlue }}> + Sancho Govtool + + diff --git a/govtool/analytics-dashboard/src/app/favicon.ico b/govtool/analytics-dashboard/src/app/favicon.ico index 718d6fea4..b5ec7f389 100644 Binary files a/govtool/analytics-dashboard/src/app/favicon.ico and b/govtool/analytics-dashboard/src/app/favicon.ico differ diff --git a/govtool/analytics-dashboard/src/app/favicon.svg b/govtool/analytics-dashboard/src/app/favicon.svg new file mode 100644 index 000000000..13fb7d158 --- /dev/null +++ b/govtool/analytics-dashboard/src/app/favicon.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/govtool/analytics-dashboard/src/pages/api/analytics.js b/govtool/analytics-dashboard/src/pages/api/analytics.js index 6a7ccae2c..65958a696 100644 --- a/govtool/analytics-dashboard/src/pages/api/analytics.js +++ b/govtool/analytics-dashboard/src/pages/api/analytics.js @@ -14,7 +14,7 @@ export default async function handler(req, res) { const [response] = await analyticsDataClient.runReport({ property: `properties/${propertyId}`, dateRanges: [{ - startDate: '2024-01-01', + startDate: '2023-12-01', endDate: 'today', }], dimensions: [{ name: 'eventName' }],