GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Electricity markets and data pipelines / globalgrid2050 / uk_renewables_pipeline/v9.4/scripts/plugins

Projects V9 4 and 2 more files

A JavaScript module in the plugins folder of GlobalGrid2050 that compares project updates v9, updates sort header, renders table and reads inputs for county and sort projects.

643 lines of JavaScript and CSS from globalgrid2050, in 3 files. Topic: Electricity markets and data pipelines. Section 966 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. Projects V9 4 energy-data · globalgrid2050 / uk_renewables_pipeline/v9.4/scripts/plugins/projects-v9-4.js lines 1–325
  2. V9 3 render · globalgrid2050 / uk_renewables_pipeline/v9.4/styles/v9-3.css lines 1–231
  3. Check V9 0 test · globalgrid2050 / uk_renewables_pipeline/v9.4/tests/check_v9_0.mjs lines 1–87

Projects V9 4

A JavaScript module in the plugins folder of GlobalGrid2050 that compares project updates v9, updates sort header, renders table and reads inputs for county and sort projects.

Set aside from the main view: 94% of its lines are the same as testcode/202609051152/pipeline/scripts/plugins/projects-v9-4.js (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 93% of lines shared with Projects V9 4; read that one first. All set-aside files, with reasons. Nothing was deleted.

Evidence
  • line-jaccard 0.9382 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609051152/pipeline/scripts/plugins/projects-v9-4.js:1-321 a5437c9a584d156210a52a0097b52ce9db100108
  • sha256 7f1d1851c0d2ec8a3a0ea73210f46be2eecd87b0e41c5a34c50705d3ecf641f1
  • target sha256 f585277b0d78f791507207de6cae2780969ea6e3a6a85b886ad54ecd26800e3a
  • group of 2 (identity.json near-copy edges >= 0.9)
  • canonical rule: reachable, newest stamp, core repo, most lines

energy-dataglobalgrid2050 / uk_renewables_pipeline/v9.4/scripts/plugins/projects-v9-4.js · lines 1–325 of 325 · pattern compareProjectUpdates (shared by 20 files)

What it does
It draws the REPD register, solar, battery storage (BESS) and wind. Defines 20 functions or classes, including atlasUrlV9_4, displayDate, repdUpdatedTimestamp, compareProjectUpdatesV9_4, updateSortHeader. Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, battery storage (BESS), wind.
Inputs & outputs
Coordinate systems named: OSGB36 / EPSG:27700 (British National Grid), WGS84 / EPSG:4326.
Downstream impact
Used directly by 2 files: Check V9 4 (globalgrid2050); Check V9 4 (globalgrid2050). Reached from 2 other entry points, including GlobalGrid2050 V9 4 Validate Workflow (globalgrid2050); Run V9 4 (globalgrid2050).
What it achieves
It compares project updates v9 (`compareProjectUpdatesV9_4`), updates sort header (`updateSortHeader`) and renders table (`renderTable`). Its `downloadCsv` function gives CSV download or refusal from active table owner, filtered register rows and official detail partitions (VEDIC: export filtered projects). It responds to click events.
Why it matters
Checked by 2 tests, including Check V9 4.
Application
globalgrid2050 · uk_renewables_pipeline/v9.4/scripts/plugins · JavaScript module
VEDIC
EXPORT FILTERED PROJECTS (GG2050-VEDIC-000060): Pipeline News · Renewable project register. active_table_owner, filtered_register_rows, official_detail_partitions → csv_download_or_refusal
Uses
Testcode — Pipeline (import), State (import), Project Filter V9 2 (import), Canonical Projects V9 4 (import), Gauges V9 2 (import), Newspaper V9 2 (import), GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page (estate URL)
Used by
run by Check V9 4 (script call), imported by Check V9 4 (import), mentioned in Standalone (comment link)
Produces
atlasUrlV9_4, compareProjectUpdatesV9_4, loadProjectsV9_4, refreshProjectsV9_4, bindProjectControlsV9_4
Defines here
atlasUrlV9_4, displayDate, repdUpdatedTimestamp, compareProjectUpdatesV9_4, updateSortHeader, relationshipSummary, renderTable, updateResultSummary, syncFilterUrl, apply, populateCounties, setButtonState, hydrateFiltersFromUrl, csvCell, downloadCsv, clearFilters, copyProjectId, loadProjectsV9_4, refreshProjectsV9_4, bindProjectControlsV9_4
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/v9.4/scripts/plugins/projects-v9-4.js:1-325 · blob 15f1e132344924075f81c39886c50c9fdea13ff7 · GitHub at these lines
State
achieves: code · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
import { escapeHtml } from "../core/utils.js";
import { state } from "../core/state.js";
import {
  buildProjectSearchTextV9_2,
  projectMatchesV9_2,
  summariseProjectsV9_2,
  tokeniseSearchV9_2,
} from "../core/project-filter-v9-2.js";
import { loadCanonicalProjectsV9_4 } from "../data/canonical-projects-v9-4.js";
import {
  formatCapacityV9_2,
  formatLargestV9_2,
  setGaugeUniverseV9_2,
  updateGaugesV9_2,
} from "./gauges-v9-2.js";
import { signalForProjectV9_2 } from "./newspaper-v9-2.js";

const LABELS = Object.freeze({
  solar: "Solar",
  bess: "Battery Storage",
  wind_onshore: "Onshore Wind",
  wind_offshore: "Offshore Wind",
});
const COLOURS = Object.freeze({ solar: "#ffff00", bess: "#ffae00", wind_onshore: "#00ffff", wind_offshore: "#0066ff" });
const UNITS = Object.freeze({ solar: "MWp", bess: "MW", wind_onshore: "MW", wind_offshore: "MW" });
const ALLOWED_TECHNOLOGIES = new Set(["all", "solar", "bess", "wind_onshore", "wind_offshore"]);
const ALLOWED_STATUSES = new Set(["All", "Operational", "Under Construction", "Awaiting Construction", "Application Submitted"]);
const ALLOWED_SORTS = new Set(["capacity_desc", "updated_desc", "updated_asc"]);

let all = [];
let filtered = [];
let metadata = null;
let release = null;
let searchIndex = new Map();
let technology = "all";
let status = "All";
let county = "All";
let query = "";
let sortMode = "capacity_desc";
let controlsBound = false;

export function atlasUrlV9_4(project) {
  if (project.geometry_status !== "valid") return "";
  const url = new URL("https://globalgrid2050.com/repd_grid_atlasv8/");
  url.searchParams.set("repd_ref", project.repd_ref);
  url.searchParams.set("project", project.name);
  url.searchParams.set("technology", project.technology);
  url.searchParams.set("capacity_mw", project.capacity_mw);
  url.searchParams.set("latitude", project.latitude);
  url.searchParams.set("longitude", project.longitude);
  url.searchParams.set("zoom", "12");
  return url.href;
}

function displayDate(value) {
  if (!value) return "not supplied by REPD";
  const [year, month, day] = String(value).split("-");
  return year && month && day ? `${day}/${month}/${year}` : String(value);
}

function repdUpdatedTimestamp(project) {
  if (!project.repd_record_updated) return null;
  const value = Date.parse(`${project.repd_record_updated}T00:00:00Z`);
  return Number.isFinite(value) ? value : null;
}

export function compareProjectUpdatesV9_4(left, right, direction = "desc") {
  const leftTime = repdUpdatedTimestamp(left);
  const rightTime = repdUpdatedTimestamp(right);
  if (leftTime === null && rightTime === null) return 0;
  if (leftTime === null) return 1;
  if (rightTime === null) return -1;
  return direction === "asc" ? leftTime - rightTime : rightTime - leftTime;
}

function updateSortHeader() {
  const header = document.getElementById("repdUpdatedHeader");
  const button = document.getElementById("sortUpdated");
  const indicator = document.getElementById("updatedSortIndicator");
  if (!header || !button || !indicator) return;
  if (sortMode === "updated_desc") {
    header.setAttribute("aria-sort", "descending");
    indicator.textContent = "▼";
    button.setAttribute("aria-label", "REPD updated date sorted newest first; click for oldest first");
    button.title = "Newest first — click for oldest first";
    return;
  }
  if (sortMode === "updated_asc") {
    header.setAttribute("aria-sort", "ascending");
    indicator.textContent = "▲";
    button.setAttribute("aria-label", "REPD updated date sorted oldest first; click for newest first");
    button.title = "Oldest first — click for newest first";
    return;
  }
  header.setAttribute("aria-sort", "none");
  indicator.textContent = "↕";
  button.setAttribute("aria-label", "Sort by REPD updated date, newest first");
  button.title = "Click for newest first";
}

function relationshipSummary(project) {
  const development = Array.isArray(project.development_repd_refs) ? project.development_repd_refs.length : 0;
  const direct = Array.isArray(project.direct_related_repd_refs) ? project.direct_related_repd_refs.length : 0;
  const siblings = Array.isArray(project.planning_sibling_repd_refs) ? project.planning_sibling_repd_refs.length : 0;
  return `${development} development · ${direct} direct · ${siblings} planning sibling record(s)`;
}

function renderTable() {
  const body = document.getElementById("tbody");
  body.innerHTML = filtered.map((project) => {
    const label = LABELS[project.technology];
    const unit = UNITS[project.technology];
    const location = [project.county, project.region].filter(Boolean).join(" · ");
    const signal = signalForProjectV9_2(project);
    const news = new URL("https://www.google.com/search");
    news.searchParams.set("q", `${project.name} ${label} UK`);
    news.searchParams.set("tbm", "nws");
    const atlas = atlasUrlV9_4(project);
    const mapAction = atlas
      ? `<a class="action-link atlaslink" target="_blank" rel="noopener" href="${escapeHtml(atlas)}">MAP ↗</a>`
      : '<span class="action-disabled" title="REPD geometry is unavailable; the record remains searchable and exportable">NO MAP</span>';
    const planning = project.planning_application_reference || "not supplied by REPD";
    const authority = project.planning_authority || "not supplied by REPD";
    const developmentId = project.gg_development_id || "not assigned";
    const updated = displayDate(project.repd_record_updated);
    return `<tr id="repd-${escapeHtml(project.repd_ref)}" data-repd-updated="${escapeHtml(project.repd_record_updated || "")}"><td class="site">${escapeHtml(project.name)}<div class="project-meta">REPD ${escapeHtml(project.repd_ref)} · ${escapeHtml(project.gg_project_id)} · UPDATED ${escapeHtml(updated)}</div><div class="mobile-extra">${escapeHtml([location, project.operator].filter(Boolean).join(  … [line shortened here: 2,120 characters; full line on GitHub]
  }).join("");
}

function updateResultSummary() {
  const summary = summariseProjectsV9_2(filtered);
  const element = document.getElementById("resultsMeta");
  element.textContent = `${summary.count.toLocaleString("en-GB")} of ${all.length.toLocaleString("en-GB")} records · ${formatCapacityV9_2(summary.capacity_mw)} MW · largest ${formatLargestV9_2(summary.largest_mw)} MW`;
  element.classList.toggle("is-filtered", summary.count !== all.length);
  element.dataset.filteredCount = String(summary.count);
  element.dataset.totalCount = String(all.length);
}

function syncFilterUrl() {
  const url = new URL(window.location.href);
  for (const parameter of ["technology", "status", "county", "q", "sort"]) url.searchParams.delete(parameter);
  if (technology !== "all") url.searchParams.set("technology", technology);
  if (status !== "All") url.searchParams.set("status", status);
  if (county !== "All") url.searchParams.set("county", county);
  if (query) url.searchParams.set("q", query);
  if (sortMode !== "capacity_desc") url.searchParams.set("sort", sortMode);
  history.replaceState(null, "", url);
}

function apply({ syncUrl = true } = {}) {
  const tokens = tokeniseSearchV9_2(query);
  filtered = all.filter((project) => projectMatchesV9_2(project, {
    technology,
    status,
    county,
    tokens,
  }, searchIndex.get(project.repd_ref)));
  if (sortMode === "updated_desc") filtered.sort((left, right) => compareProjectUpdatesV9_4(left, right, "desc"));
  if (sortMode === "updated_asc") filtered.sort((left, right) => compareProjectUpdatesV9_4(left, right, "asc"));
  state.filtered = filtered;
  updateGaugesV9_2(filtered);
  renderTable();
  updateResultSummary();
  updateSortHeader();
  if (syncUrl) syncFilterUrl();
}

function populateCounties() {
  const select = document.getElementById("county");
  select.replaceChildren(new Option("🌍 ALL COUNTIES", "All"));
  [...new Set(all.map((project) => project.county).filter(Boolean))]
    .sort((left, right) => left.localeCompare(right, "en-GB"))
    .forEach((value) => select.add(new Option(`📍 ${value}`, value)));
}

function setButtonState(container, dataKey, selected) {
  document.querySelectorAll(`${container} .btn`).forEach((button) => {
    const active = button.dataset[dataKey] === selected;
    button.classList.toggle("active", active);
    button.setAttribute("aria-pressed", String(active));
  });
}

function hydrateFiltersFromUrl() {
  const parameters = new URLSearchParams(window.location.search);
  const requestedTechnology = parameters.get("technology") || "all";
  const requestedStatus = parameters.get("status") || "All";
  const requestedCounty = parameters.get("county") || "All";
  const requestedSort = parameters.get("sort") || "capacity_desc";
  technology = ALLOWED_TECHNOLOGIES.has(requestedTechnology) ? requestedTechnology : "all";
  status = ALLOWED_STATUSES.has(requestedStatus) ? requestedStatus : "All";
  county = [...document.getElementById("county").options].some((option) => option.value === requestedCounty)
    ? requestedCounty
    : "All";
  query = parameters.get("q") || "";
  sortMode = ALLOWED_SORTS.has(requestedSort) ? requestedSort : "capacity_desc";
  setButtonState("#tech", "technology", technology);
  setButtonState("#status", "officialStatus", status);
  document.getElementById("county").value = county;
  document.getElementById("search").value = query;
  document.getElementById("sortProjects").value = sortMode;
}

function csvCell(value) {
  let text = value === null || value === undefined ? "" : String(value);
  if (/^(?:[=+\-@]|\s+[=+\-@]|\t|\r|\n)/u.test(text)) text = `'${text}`;
  return `"${text.replaceAll('"', '""')}"`;
}

function downloadCsv(event) {
  event.preventDefault();
  const headers = ["Site Name", "REPD Ref", "GlobalGrid Project ID", "GlobalGrid Development ID", "Identity Status", "Identity Confidence", "Technology", "Official REPD Technology", "Official REPD Capacity", "Capacity Unit", "Official REPD Status", "Derived Lifecycle", "Operator or Applicant", "County", "Region", "Country", "Planning Authority", "Planning Application Reference", "REPD Record Updat  … [line shortened here: 1,125 characters; full line on GitHub]
  const rows = filtered.map((project) => {
    const signal = signalForProjectV9_2(project);
    return [project.name, project.repd_ref, project.gg_project_id, project.gg_development_id, project.identity_status, project.identity_confidence, LABELS[project.technology], project.repd_technology, project.capacity_mw, UNITS[project.technology], project.status, project.lifecycle, project.operator, project.county, project.region, project.country, project.planning_authority, project.planning_appl  … [line shortened here: 1,390 characters; full line on GitHub]
  });
  const content = `\ufeff${[headers, ...rows].map((row) => row.map(csvCell).join(",")).join("\r\n")}`;
  const url = URL.createObjectURL(new Blob([content], { type: "text/csv;charset=utf-8" }));
  const anchor = document.createElement("a");
  anchor.href = url;
  anchor.download = `globalgrid2050_uk_renewables_pipeline_v9_4_${new Date().toISOString().slice(0, 10)}.csv`;
  anchor.click();
  URL.revokeObjectURL(url);
  document.getElementById("exportMeta").textContent = `${filtered.length.toLocaleString("en-GB")} filtered records exported`;
}

function clearFilters(event) {
  event.preventDefault();
  technology = "all";
  status = "All";
  county = "All";
  query = "";
  sortMode = "capacity_desc";
  setButtonState("#tech", "technology", technology);
  setButtonState("#status", "officialStatus", status);
  document.getElementById("county").value = county;
  document.getElementById("search").value = "";
  document.getElementById("sortProjects").value = sortMode;
  apply();
}

async function copyProjectId(button) {
  const value = button.dataset.copyId;
  try {
    await navigator.clipboard.writeText(value);
  } catch {
    const field = document.createElement("textarea");
    field.value = value;
    field.setAttribute("readonly", "");
    field.style.position = "fixed";
    field.style.opacity = "0";
    document.body.appendChild(field);
    field.select();
    document.execCommand("copy");
    field.remove();
  }
  const original = button.textContent;
  button.textContent = "COPIED";
  button.classList.add("copied");
  setTimeout(() => {
    button.textContent = original;
    button.classList.remove("copied");
  }, 1200);
}

export async function loadProjectsV9_4() {
  try {
    const model = await loadCanonicalProjectsV9_4();
    all = [...model.projects];
    filtered = all;
    metadata = model.metadata;
    release = model.release;
    searchIndex = new Map(all.map((project) => [project.repd_ref, buildProjectSearchTextV9_2(project)]));
    state.all = all;
    state.filtered = filtered;
    state.canonicalModel = model;
    setGaugeUniverseV9_2(all);
    populateCounties();
    hydrateFiltersFromUrl();
    apply({ syncUrl: false });
    document.getElementById("releaseMeta").textContent = `V9.4 interface · V${release.data_parent.release} canonical data spine · all ${all.length.toLocaleString("en-GB")} qualifying records loaded`;
  } catch (error) {
    console.error(error);
    document.getElementById("tbody").innerHTML = '<tr><td colspan="11" style="text-align:center;color:#ff6666">Canonical Q2 REPD data unavailable. V9.4 has failed closed.</td></tr>';
    document.getElementById("resultsMeta").textContent = "canonical data unavailable";
  }
}

export function refreshProjectsV9_4() {
  if (metadata) renderTable();
}

export function bindProjectControlsV9_4() {
  if (controlsBound) return;
  controlsBound = true;
  document.querySelectorAll("#tech .btn").forEach((button) => {
    button.onclick = () => {
      technology = button.dataset.technology;
      setButtonState("#tech", "technology", technology);
      apply();
    };
  });
  document.querySelectorAll("#status .btn").forEach((button) => {
    button.onclick = () => {
      status = button.dataset.officialStatus;
      setButtonState("#status", "officialStatus", status);
      apply();
    };
  });
  document.getElementById("county").onchange = (event) => { county = event.target.value; apply(); };
  document.getElementById("sortProjects").onchange = (event) => { sortMode = event.target.value; apply(); };
  document.getElementById("sortUpdated").onclick = () => {
    sortMode = sortMode === "updated_desc" ? "updated_asc" : "updated_desc";
    document.getElementById("sortProjects").value = sortMode;
    apply();
  };
  document.getElementById("search").oninput = (event) => { query = event.target.value.trim(); apply(); };
  document.getElementById("export").onclick = downloadCsv;
  document.getElementById("exportInline").onclick = downloadCsv;
  document.getElementById("clearFilters").onclick = clearFilters;
  document.getElementById("tbody").addEventListener("click", (event) => {
    const button = event.target.closest(".copy-id");
    if (button) copyProjectId(button);
  });
}

V9 3

A style sheet in the styles folder of GlobalGrid2050.

renderglobalgrid2050 / uk_renewables_pipeline/v9.4/styles/v9-3.css · lines 1–231 of 231 · Entry point

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. README: "`styles/v9-3.css` — the frozen V9.3.1 additive controls and bounded tablet-header correction."
Downstream impact
Used directly by 13 files: UK Renewables Pipeline — V9 4 Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/v9.4/); UK Renewables Pipeline — V9 5 1 Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/v9.5.1/); UK Renewables Pipeline — V9 5 Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/v9.5/); UK Renewables Pipeline — V9 6 1 Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/v9.6.1/); and 9 more. Reached from 172 other entry points, including GlobalGrid2050 Historical Builds (globalgrid2050, https://globalgrid2050.com/historical_builds.html); GlobalGrid2050 Homepage Before Four Nests (globalgrid2050, https://globalgrid2050.com/homepage-before-four-nests-20260925.html); GlobalGrid2050 — PipelineNews Intelligence Page (globalgrid2050, https://globalgrid2050.com/pipelinenews_intelligence/202609050309/).
What it achieves
The README says: The frozen V9.3.1 additive controls and bounded tablet-header correction.
Why it matters
Loaded by the V9 4 page at https://globalgrid2050.com/uk_renewables_pipeline/v9.4/ and 12 other pages.
Application
globalgrid2050 · uk_renewables_pipeline/v9.4/styles · style sheet
Uses
none found
Used by
loaded by UK Renewables Pipeline — V9 4 Page (stylesheet), loaded by UK Renewables Pipeline — V9 5 1 Page (stylesheet), loaded by UK Renewables Pipeline — V9 5 Page (stylesheet), loaded by UK Renewables Pipeline — V9 6 1 Page (stylesheet), loaded by UK Renewables Pipeline — V9 6 2 Page (stylesheet), loaded by UK Renewables Pipeline — V9 6 Page (stylesheet), loaded by UK Renewables Pipeline — V9 7 Page (stylesheet), loaded by UK Renewables Pipeline — V9 Page (stylesheet), and 5 more
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/v9.4/styles/v9-3.css:1-231 · blob d98d8acc7177c8d66fc75c1bef48fb6db4312c46 · GitHub at these lines
State
achieves: readme · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
.project-meta {
  margin-top: 5px;
  color: #66ccff;
  font-size: 9px;
  font-weight: normal;
  line-height: 1.45;
  white-space: normal;
}

.project-record {
  margin-top: 6px;
  font-weight: normal;
}

.project-record summary {
  color: #7e8792;
  cursor: pointer;
  display: inline-block;
  font-size: 9px;
  letter-spacing: .4px;
  list-style: none;
  user-select: none;
}

.project-record summary::-webkit-details-marker {
  display: none;
}

.project-record summary::before {
  color: #00ffff;
  content: "[+] ";
}

.project-record[open] summary::before {
  content: "[−] ";
}

.project-record[open] summary {
  color: #00ffff;
}

.record-grid {
  background: #07090c;
  border: 1px solid #252a31;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 7px;
  max-width: 720px;
  padding: 9px;
}

.record-grid div {
  min-width: 0;
}

.record-grid b,
.record-grid span {
  display: block;
}

.record-grid b {
  color: #8d95a3;
  font-size: 8px;
  letter-spacing: .4px;
  margin-bottom: 2px;
}

.record-grid span {
  color: #d4d8de;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.project-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 135px;
}

.action-link,
.action-disabled,
.copy-id {
  background: #000;
  border: 1px solid #343b45;
  color: #00ffff;
  cursor: pointer;
  display: inline-block;
  font: 700 9px 'Courier New', monospace;
  padding: 5px 7px;
  text-decoration: none;
  white-space: nowrap;
}

.action-link:hover,
.copy-id:hover,
.copy-id.copied {
  border-color: #00ffff;
  color: #fff;
}

.action-disabled {
  color: #626b77;
  cursor: not-allowed;
}

.newslink {
  font-size: 9px;
}

.results-meta {
  align-self: center;
  color: #aef7d1;
  font-size: 10px;
  font-weight: bold;
}

.results-meta.is-filtered {
  color: #ffcc00;
}

.clear-filters {
  border-color: #8d95a3;
}

.export-inline {
  border-color: #00ffff;
  color: #00ffff;
}

.export-meta {
  align-self: center;
  color: #8d95a3;
  font-size: 10px;
}

.release-meta {
  color: #8d95a3;
}

.news-quality {
  border: 1px solid #555;
  display: inline-block;
  padding: 1px 4px;
}

.news-quality.relevant {
  border-color: #167d4d;
  color: #60ff9c;
}

.news-quality.unverified {
  border-color: #6b4b25;
  color: #d6a66f;
}

@media (max-width: 768px) {
  .project-meta {
    font-size: 8px;
  }

  .record-grid {
    grid-template-columns: 1fr;
    min-width: 230px;
  }

  .project-actions {
    align-items: flex-start;
    flex-direction: column;
    min-width: 68px;
  }

  .action-link,
  .action-disabled,
  .copy-id {
    font-size: 8px;
    padding: 4px 5px;
  }

  .results-meta,
  .export-meta {
    width: 100%;
  }
}

/* The V9.3 status line is longer than V7.1. Preserve the V5 shell and
   three-gauge layout, but stack only the header where the 250 px sidebar
   otherwise clips that status between tablet and mobile widths. */
@media (min-width: 769px) and (max-width: 920px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    width: 100%;
    white-space: normal;
  }
}

/* V9.3.1 exposes official identity and update fields as desktop columns.
   Mobile keeps the same facts in the compact project metadata line. */
.project-meta {
  display: none;
}

.tablewrap table {
  min-width: 1280px;
}

.reference-cell {
  color: #66ccff;
  font-size: 10px;
}

.globalgrid-ref {
  overflow-wrap: anywhere;
}

.repd-updated {
  color: #d4d8de;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .project-meta {
    display: block;
  }
}

Check V9 0

A JavaScript module in the tests folder of GlobalGrid2050 that tests projects plugin, major project news and solar. It reads text (`readText`) and reads JSON (`readJson`).

testglobalgrid2050 / uk_renewables_pipeline/v9.4/tests/check_v9_0.mjs · lines 1–87 of 87 · Not reached from any entry point (candidate for review) · pattern readText (shared by 28 files)

What it does
It tests projects plugin, major project news and solar. Defines readText, readJson. Uses libraries node:assert/strict, node:fs/promises. Side effects: reads or writes files.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar.
Inputs & outputs
In: JSON file release.v9.0.json; JSON file projects-plugin.v7.2.json; JSON file projects.json; JSON file major_project_news_v5.json; CSV file globalgrid2050_uk_renewables_pipeline_v9_0_2026-08-23.csv.
What it achieves
Defines `readText` and `readJson`. It reads `contracts/release.v9.0.json`.
Why it matters
No other file in the estate was found to import it.
Application
globalgrid2050 · uk_renewables_pipeline/v9.4/tests · JavaScript module
Uses
Canonical Projects (import), Project State (import), Canonical Project Export (import), Canonical Project Table (import), UK Renewables Pipeline — V9 4 Page (new URL import.meta.url), node:assert/strict, node:fs/promises
Used by
none found
Produces
readText, readJson
Defines here
readText, readJson
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 uk_renewables_pipeline/v9.4/tests/check_v9_0.mjs:1-87 · blob a1d0222ce00f3cb4ab5c4edbc3de6b1cc85765c2 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: ingest · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: duplicate_candidate
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";

import { buildCanonicalProjectModel } from "../scripts/data/canonical-projects.js";
import {
  commitCanonicalProjectModel,
  createCanonicalProjectState,
  resetCanonicalProjectFilters,
  setCanonicalProjectFilter,
} from "../scripts/core/project-state.js";
import { buildCanonicalProjectCsv } from "../scripts/plugins/canonical-project-export.js";
import { buildCanonicalProjectTableView } from "../scripts/plugins/canonical-project-table.js";

const v9Url = new URL("../", import.meta.url);
const repoUrl = new URL("../../../", import.meta.url);
const readText = (path) => readFile(new URL(path, v9Url), "utf8");
const readJson = async (path) => JSON.parse(await readText(path));

const release = await readJson("contracts/release.v9.0.json");
const contract = await readJson("contracts/projects-plugin.v7.2.json");
const payload = await readJson("data/v7.2/projects.json");
const news = await readJson("fixtures/v5/major_project_news_v5.json");
const model = buildCanonicalProjectModel(payload, contract);

assert.equal(release.release, "9.0");
assert.equal(release.canonical_projects.project_count, 766);
assert.equal(model.projects.length, 766);
assert.equal(model.projects.filter((project) => project.technology === "solar").length, 384);
assert.equal(model.projects.filter((project) => project.technology === "bess").length, 382);
assert.equal(model.projects.filter((project) => !["solar", "bess"].includes(project.technology)).length, 0);
assert.equal(news.items.length, 125);

const state = createCanonicalProjectState();
commitCanonicalProjectModel(state, model);
const table = buildCanonicalProjectTableView(state);
assert.equal(table.rowCount, 766);
assert.equal(table.columns.length, 13);

const thorpeMarsh = table.rows.find((row) => row.primary.repdRef === "12453");
assert.ok(thorpeMarsh);
assert.equal(thorpeMarsh.primary.repdRecordUpdated.value, "2025-11-04");
assert.equal(thorpeMarsh.primary.repdRecordUpdated.display, "04/11/2025");
assert.equal(thorpeMarsh.primary.atlas.exactFocusSupported, true);
const atlas = new URL(thorpeMarsh.primary.atlas.url);
assert.equal(atlas.origin, "https://globalgrid2050.com");
assert.equal(atlas.pathname, "/repd_grid_atlasv8/");
assert.equal(atlas.searchParams.get("repd_ref"), "12453");
assert.equal(atlas.searchParams.get("technology"), "bess");
assert.equal(atlas.searchParams.get("capacity_mw"), "1450");
assert.equal(atlas.searchParams.get("latitude"), "53.5802575");
assert.equal(atlas.searchParams.get("longitude"), "-1.0850616");

const missingDate = table.rows.find((row) => row.primary.repdRecordUpdated.value === null);
assert.ok(missingDate);
assert.equal(missingDate.primary.repdRecordUpdated.display, "not supplied by REPD");

setCanonicalProjectFilter(state, "technology", "solar");
const solarCsv = buildCanonicalProjectCsv(state, { date: "2026-08-23" });
assert.equal(solarCsv.rowCount, 384);
assert.equal(solarCsv.filename, "globalgrid2050_uk_renewables_pipeline_v9_0_2026-08-23.csv");
assert.equal(solarCsv.content.split("\r\n").length, 385);
assert.match(solarCsv.content.split("\r\n")[0], /"REPD Record Updated"/);
assert.match(solarCsv.content.split("\r\n")[0], /"Atlas V8 URL"/);
assert.match(solarCsv.content, /https:\/\/globalgrid2050\.com\/repd_grid_atlasv8\//);

resetCanonicalProjectFilters(state);
setCanonicalProjectFilter(state, "query", "no-v9-project-can-match-this-value");
const emptyCsv = buildCanonicalProjectCsv(state, { date: "2026-08-23" });
assert.equal(emptyCsv.rowCount, 0);
assert.equal(emptyCsv.content.split("\r\n").length, 1);

const html = await readText("index.html");
const readme = await readText("README.md");
const rootIndex = await readFile(new URL("index.html", repoUrl), "utf8");
assert.match(html, /V9\.0 INTERIM/);
assert.equal((html.match(/<th(?:\s[^>]*)?>/g) || []).length, 13);
assert.match(html, /id="exportInline"/);
assert.match(html, /REPD RECORD UPDATED/);
assert.match(html, /flies to the exact V9 project coordinate/);
assert.match(readme, /independently of a new chat, context truncation or model replacement/);
assert.match(readme, /exact canonical focus/i);
const atlasEngine = await readFile(new URL("repd_grid_atlasv8/ventus-corev8engine.js", repoUrl), "utf8");
assert.match(atlasEngine, /focusCanonicalProjectDeepLink/);
assert.match(atlasEngine, /data\/v7\.2\/projects\.geojson/);
assert.match(rootIndex, /UK Solar \+ Storage Daily V9/);

console.log("V9.0 interim release: PASS (dates, filtered CSV, Atlas links, 766 projects)");