From 34f40c0c1c2af24e76e2684470117474a4145546 Mon Sep 17 00:00:00 2001 From: Tudor Date: Thu, 8 Jan 2026 22:59:55 +0000 Subject: [PATCH] Renaming dashboard to home --- frontend/app.js | 12 ++++++------ frontend/index.html | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index ebf33f7..bb93cc7 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -203,13 +203,13 @@ function renderLoadingSkeleton(count, type = "card") { // ============================================================================= const routes = { - "/": "dashboard", + "/": "home", "/compare": "compare", "/rankings": "rankings", }; const pageTitles = { - dashboard: "SchoolCompare | Compare Primary School Performance", + home: "SchoolCompare | Compare Primary School Performance", compare: "Compare Schools | SchoolCompare", rankings: "School Rankings | SchoolCompare", }; @@ -222,10 +222,10 @@ function navigateTo(path) { function handleRoute() { const path = window.location.pathname; - const view = routes[path] || "dashboard"; + const view = routes[path] || "home"; // Update page title for SEO - document.title = pageTitles[view] || pageTitles.dashboard; + document.title = pageTitles[view] || pageTitles.home; // Update navigation document.querySelectorAll(".nav-link").forEach((link) => { @@ -280,7 +280,7 @@ async function init() { } function populateFilters(data) { - // Populate local authority filter (dashboard) + // Populate local authority filter (home page) data.local_authorities.forEach((la) => { const option = document.createElement("option"); option.value = la; @@ -1171,7 +1171,7 @@ function setupEventListeners() { link.addEventListener("click", (e) => { e.preventDefault(); const view = link.dataset.view; - const path = view === "dashboard" ? "/" : `/${view}`; + const path = view === "home" ? "/" : `/${view}`; navigateTo(path); }); }); diff --git a/frontend/index.html b/frontend/index.html index c26ec65..76689cc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -80,7 +80,7 @@ @@ -88,8 +88,8 @@
- -
+ +

Compare Primary School Performance

Search and compare KS2 results across England's primary schools