In this section
- Report A4 render · globalgrid2050 / uk_renewables_pipeline/202611280922/styles/report-a4.css lines 1–132
- A4 Legal Evidence test · globalgrid2050 / uk_renewables_pipeline/202611280922/tests/a4-legal-evidence.py lines 1–110
- A4 Legal Model test · globalgrid2050 / uk_renewables_pipeline/202611280922/tests/a4-legal-model.mjs lines 1–41
- Dashboard render · globalgrid2050 / uk_renewables_pipeline/dashboard.html lines 1–417
Report A4
A style sheet in the styles folder of GlobalGrid2050 covering the Renewable Energy Planning Database (REPD) register.
renderglobalgrid2050 / uk_renewables_pipeline/202611280922/styles/report-a4.css · lines 1–132 of 132 · version 2026-11-28 09:22 · 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. Domain terms in the code: the REPD register.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/). Reached from 4 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); V923 Public Readback Workflow (neural-link-between-agents); A4 Legal Model (globalgrid2050).
- What it achieves
- V9.63 independent A4 project report. Default table remains maximally dense.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922/styles · style sheet
- Uses
- none found
- Used by
- loaded by GlobalGrid2050 — UK Renewables Pipeline Page (stylesheet)
- 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/202611280922/styles/report-a4.css:1-132 · blob aac6b0223e4f93d67e1a151802806e4cf430ec54 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
/* V9.63 independent A4 project report. Default table remains maximally dense. */
#repdPanel #repdScroll .pn-report-launch{
display:inline-grid!important;place-items:center;box-sizing:border-box;
flex:0 0 auto;min-width:34px!important;width:34px!important;
min-height:32px!important;height:32px!important;padding:0!important;
color:#7ee6ed;background:#080c10;border:1px solid #48616a;border-radius:3px;
font:700 10px/1 'Courier New',monospace!important;cursor:pointer;
}
#repdPanel #repdScroll .pn-report-launch:focus-visible{
outline:2px solid #71edf3;outline-offset:2px;
}
#repdPanel #repdScroll.pn-scan-mode thead th:last-child{width:112px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:first-child{width:calc(100% - 194px)!important}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:last-child{width:112px!important}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:last-child .project-actions{
gap:3px!important;justify-content:center!important;
}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:last-child :is(.action-link,.action-disabled){
min-width:57px!important;max-width:57px!important;
}
@media(orientation:landscape) and (min-width:600px){
#repdPanel #repdScroll.pn-scan-mode thead th:last-child{width:112px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:first-child{width:calc(100% - 447px)!important}
}
@media(max-width:359px){
#repdPanel #repdScroll.pn-scan-mode thead th:last-child{width:106px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:first-child{width:calc(100% - 178px)!important}
}
#pnRepdReport[hidden]{display:none!important}
#pnRepdReport{
position:fixed!important;inset:0!important;z-index:2147483500!important;
display:flex;flex-direction:column;box-sizing:border-box;
width:100vw;max-width:none;height:100vh;height:100dvh;
background:#091016;color:#101820;overflow:hidden;isolation:isolate;
}
#pnRepdReport .pn-report-controls{
flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;gap:5px;
box-sizing:border-box;width:100%;min-height:51px;
padding:7px max(8px,env(safe-area-inset-right));
overflow-x:auto;overscroll-behavior-x:contain;
background:#060a0e;border-bottom:1px solid #34414a;
}
#pnRepdReport .pn-report-controls button{
flex:0 0 auto;min-height:35px;box-sizing:border-box;padding:5px 9px;
border:1px solid #526671;border-radius:3px;background:#101923;color:#e3f7f8;
cursor:pointer;white-space:nowrap;font:11px/1.2 system-ui,sans-serif;
}
#pnRepdReport .pn-report-controls button:focus-visible,
#pnRepdReport a:focus-visible{outline:2px solid #00c3c8;outline-offset:2px}
#pnRepdReport .pn-report-controls button[data-report-action="pdf"]{color:#6be5d6}
#pnRepdReport .pn-report-viewport{
display:block;box-sizing:border-box;flex:1 1 auto;min-height:0;
overflow:auto;overscroll-behavior:contain;
-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;
padding:8px 12px 35px;background:#1b262b;
}
#pnRepdReport .pn-report-frame{
position:relative;margin:12px auto 40px;
box-shadow:0 8px 32px #0007;
}
#pnRepdReport .pn-report-sheet{
box-sizing:border-box;position:absolute;top:0;left:0;
width:210mm;height:297mm;padding:17mm 16mm 14mm;
overflow:hidden;background:#fff;color:#17232c;
transform-origin:top left;
font:12pt/1.3 Arial,Helvetica,sans-serif;
}
#pnRepdReport .pn-report-sheet.pn-report-landscape{
width:297mm;height:210mm;padding:13mm 16mm;
}
#pnRepdReport .pn-report-masthead{padding-bottom:9mm;border-bottom:1px solid #b9c5cc}
#pnRepdReport .pn-report-masthead>p{font-size:8pt;letter-spacing:1pt;color:#5a6971}
#pnRepdReport .pn-report-masthead h1{font-size:24pt;line-height:1.2;margin:6mm 0 2mm;overflow-wrap:anywhere}
#pnRepdReport .pn-report-ref{font:9pt Arial,sans-serif;color:#455660}
#pnRepdReport h2{margin:0 0 2mm;font:700 9pt Arial,sans-serif;letter-spacing:.4pt;color:#40525b}
#pnRepdReport .pn-report-identities{display:grid;grid-template-columns:1fr 1fr;gap:6mm;padding:6mm 0}
#pnRepdReport .pn-report-identities p{font-size:13pt;font-weight:600;overflow-wrap:anywhere}
#pnRepdReport .pn-report-primary{display:grid;grid-template-columns:1fr 1fr;gap:5mm;margin:3mm 0 7mm}
#pnRepdReport .pn-report-primary>div{min-height:36mm;padding:5mm;background:#eef3f5;border-left:3px solid #177084}
#pnRepdReport .pn-report-primary strong{display:block;font-size:20pt;line-height:1.2;overflow-wrap:anywhere}
#pnRepdReport .pn-report-location{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3mm;min-width:0}
#pnRepdReport .pn-report-location p{font-size:15pt;line-height:1.2;font-weight:600;margin:0;overflow-wrap:anywhere}
#pnRepdReport #pnReportMap{display:inline-block;padding:2.5mm 4mm;color:#005c79;text-decoration:underline;border:1px solid #7eacb8;font-size:11pt;max-width:100%;overflow-wrap:anywhere}
#pnRepdReport #pnReportNoMap{display:block;color:#626d71;font-size:10pt}
#pnRepdReport :is(#pnReportMap,#pnReportAreaSource)[hidden],
#pnRepdReport #pnReportNoMap[hidden]{display:none!important}
#pnRepdReport .pn-report-facts{
display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6mm 8mm;
padding-top:8mm;
}
#pnRepdReport .pn-report-facts>div{border-bottom:1px solid #e1e8eb;padding-bottom:3mm}
#pnRepdReport .pn-report-facts p{font-size:12pt;overflow-wrap:anywhere}
#pnRepdReport #pnReportLegal{
align-self:center;justify-self:start;padding:2mm 0;
color:#005c79;text-decoration:underline;font:600 11pt/1.3 Arial,sans-serif;
}
#pnRepdReport #pnReportLegal[hidden]{display:none}
#pnRepdReport .pn-report-footer{
position:absolute;bottom:12mm;left:16mm;right:16mm;
border-top:1px solid #cdd7db;padding-top:3mm;
font:8.2pt/1.4 Arial,sans-serif;color:#596770;
}
#pnRepdReport .pn-report-footer p{margin:0 0 2mm}
#pnRepdReport .pn-report-landscape .pn-report-masthead{padding-bottom:4mm}
#pnRepdReport .pn-report-landscape .pn-report-masthead h1{font-size:20pt;margin:3mm 0 1mm}
#pnRepdReport .pn-report-landscape .pn-report-identities{padding:4mm 0}
#pnRepdReport .pn-report-landscape .pn-report-primary{margin:1mm 0 4mm}
#pnRepdReport .pn-report-landscape .pn-report-primary>div{min-height:26mm;padding:3mm}
#pnRepdReport .pn-report-landscape .pn-report-primary strong{font-size:17pt}
#pnRepdReport .pn-report-landscape .pn-report-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:4mm;padding-top:5mm}
#pnRepdReport .pn-report-landscape .pn-report-footer{bottom:8mm}
@media print{
@page{size:A4 portrait;margin:0}
@page pnReportLandscape{size:A4 landscape;margin:0}
html,body{display:block!important;overflow:visible!important;background:#fff!important;height:auto!important}
body>*:not(#pnRepdReport){display:none!important}
#pnRepdReport{display:block!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;background:#fff!important}
#pnRepdReport .pn-report-controls{display:none!important}
#pnRepdReport .pn-report-viewport{display:block!important;height:auto!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important}
#pnRepdReport .pn-report-frame{margin:0!important;padding:0!important;width:auto!important;height:auto!important;box-shadow:none!important}
#pnRepdReport .pn-report-sheet{
display:block!important;position:relative!important;top:auto!important;left:auto!important;
transform:none!important;width:210mm!important;height:297mm!important;
overflow:hidden!important;page:auto;
}
#pnRepdReport .pn-report-sheet.pn-report-landscape{
width:297mm!important;height:210mm!important;page:pnReportLandscape;
}
#pnRepdReport a{color:#005c79!important;text-decoration:underline!important}
}
#pnRepdReport .pn-report-landscape .pn-report-location p{font-size:13pt}A4 Legal Evidence
A Python command-line tool in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register. It checks PDF (`check_pdf`) and checks project (`check_project`).
testglobalgrid2050 / uk_renewables_pipeline/202611280922/tests/a4-legal-evidence.py · lines 1–110 of 110 · version 2026-11-28 09:22 · Entry point · pattern QuietHandler (shared by 3 files)
- What it does
- It tests the REPD register. Defines QuietHandler, log_message, address, check_pdf, check_project. Uses libraries argparse, io, os, contextlib, functools. Side effects: changes the web page (DOM); 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: the REPD register.
- Inputs & outputs
- In: command-line arguments.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050).
- What it achieves
- Check the legal action through the register, A4 sheet and both PDF outputs. It accepts `--origin` and `--open-reader`.
- Why it matters
- Run by GlobalGrid2050 Pipeline Legal Evidence Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922/tests · Python CLI
- Uses
- argparse, io, os, contextlib, functools, http.server, pathlib, threading
- Used by
- run by GlobalGrid2050 Pipeline Legal Evidence Workflow (workflow run)
- Produces
- QuietHandler, address, check_pdf, check_project
- Defines here
- QuietHandler, log_message, address, check_pdf, check_project
- 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/202611280922/tests/a4-legal-evidence.py:1-110 · blob 4a7cee905f6c2b638fea712b82d90214670e45db · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
"""Check the legal action through the register, A4 sheet and both PDF outputs."""
import argparse
import io
import os
from contextlib import contextmanager
from functools import partial
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
from threading import Thread
from urllib.parse import parse_qs, urlsplit
from playwright.sync_api import expect, sync_playwright
from pypdf import PdfReader
EDITION_DIR = Path(__file__).resolve().parents[1]
EDITION = EDITION_DIR.name
READER = "/legislation/legal-evidence/"
class QuietHandler(SimpleHTTPRequestHandler):
def log_message(self, *args):
pass
@contextmanager
def address(public):
if public:
yield public.rstrip("/")
return
handler = partial(QuietHandler, directory=str(EDITION_DIR.parents[1]))
with ThreadingHTTPServer(("127.0.0.1", 0), handler) as server:
Thread(target=server.serve_forever, daemon=True).start()
try:
yield f"http://127.0.0.1:{server.server_port}"
finally:
server.shutdown()
def check_pdf(source, expected, landscape):
document = PdfReader(source)
assert len(document.pages) == 1
sheet = document.pages[0]
assert (sheet.mediabox.width > sheet.mediabox.height) == landscape
assert "Legal evidence" in " ".join(sheet.extract_text().split())
uris = {str(link.get_object()["/A"]["/URI"]) for link in sheet.get("/Annots", [])}
assert uris == expected, (uris, expected)
def check_project(browser, base, ref, width, expanded, open_reader):
with browser.new_context(viewport={"width": width, "height": 850}, is_mobile=width < 600,
has_touch=width < 600, accept_downloads=True) as context:
page = context.new_page()
page.goto(f"{base}/uk_renewables_pipeline/{EDITION}/?technology=all&q={ref}",
wait_until="domcontentloaded", timeout=90000)
row = page.locator(f"#repd-{ref}")
expect(row).to_be_visible(timeout=90000)
if expanded:
page.locator("#pnLiquidLaunch").click()
row = page.locator(f"#pnExpandedHost #repd-{ref}")
expect(row).to_be_visible()
details = row.locator("details.project-record")
if details.get_attribute("open") is None:
details.locator("summary").click()
name = row.locator(".compact-project-name").inner_text().strip()
assert page.locator(f'a[href*="{READER}"]').count() == 0
native_map = row.locator("td:last-child .pn-journey-link.atlaslink[href]")
map_url = native_map.first.get_attribute("href") if native_map.count() else None
if details.get_attribute("open") is not None:
details.locator("summary").click()
row.locator("[data-pn-a4]").click()
sheet = page.locator("#pnRepdReport")
legal = sheet.get_by_role("link", name="Legal evidence", exact=True)
expect(legal).to_be_visible()
target = legal.get_attribute("href")
parsed = urlsplit(target)
assert (parsed.scheme, parsed.netloc, parsed.path) == ("https", "ventusltd.github.io", READER)
params = parse_qs(parsed.query)
assert params["source_app"] == ["pipelinenews"] and params["source_release"] == [EDITION]
assert params["repd_ref"] == [ref] and params["project"] == [name]
assert sheet.locator("#pnReportMap").get_attribute("href") == map_url
links = {target, map_url} if map_url else {target}
assert page.locator(f'a[href*="{READER}"]').count() == 1
for landscape in (False, True):
if landscape:
sheet.locator('[data-report-action="rotate"]').click()
with page.expect_download() as download:
sheet.locator('[data-report-action="pdf"]').click()
check_pdf(download.value.path(), links, landscape)
check_pdf(io.BytesIO(page.pdf(prefer_css_page_size=True)), links, landscape)
if open_reader:
with page.expect_popup() as receiver:
legal.click()
expect(receiver.value.locator("#context")).to_contain_text(name, timeout=60000)
expect(receiver.value.locator("#context")).to_contain_text(EDITION)
receiver.value.close()
sheet.locator('[data-report-action="close"]').click()
expect(legal).to_be_hidden()
assert page.locator(f'a[href*="{READER}"]:visible').count() == 0
print(f"PASS REPD {ref}, {width}px, expanded={expanded}, A4 and PDF in both orientations", flush=True)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--origin", help="Test a served edition instead of the local checkout")
parser.add_argument("--open-reader", action="store_true", help="Also follow the external link")
args = parser.parse_args()
with address(args.origin) as origin, sync_playwright() as driver:
with driver.chromium.launch(executable_path=os.getenv("CHROME_BIN")) as chrome:
check_project(chrome, origin, "9873", 1280, False, args.open_reader)
check_project(chrome, origin, "12588", 390, True, args.open_reader)A4 Legal Model
A JavaScript module in the tests folder of GlobalGrid2050 using data from the legislation repository.
testglobalgrid2050 / uk_renewables_pipeline/202611280922/tests/a4-legal-model.mjs · lines 1–41 of 41 · version 2026-11-28 09:22 · Entry point
- What it does
- It tests its inputs. 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.
- Inputs & outputs
- In: data source: legislation data.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050).
- What it achieves
- No statement of purpose was found in the file, a README line naming it, or its name.
- Why it matters
- Run by GlobalGrid2050 Pipeline Legal Evidence Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922/tests · JavaScript module
- Uses
- Report Model (import), Report PDF (import), GlobalGrid2050 — UK Renewables Pipeline Page (new URL import.meta.url), Legislation — Legal Evidence Page (estate URL), node:assert/strict, node:fs/promises
- Used by
- run by GlobalGrid2050 Pipeline Legal Evidence Workflow (workflow run)
- 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/202611280922/tests/a4-legal-model.mjs:1-41 · blob 3878694cb24b694c6e29459cc2766bffae694965 · 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: production_core
import assert from 'node:assert/strict';
import {readdir, readFile} from 'node:fs/promises';
import {reportData} from '../report-model.mjs';
import {buildA4Pdf} from '../report-pdf.mjs';
const edition = new URL('../', import.meta.url).pathname.split('/').at(-2);
globalThis.location = {pathname: `/uk_renewables_pipeline/${edition}/`};
const directory = new URL('../data/v9.1/projects/', import.meta.url);
const seen = new Set();
let missingGeometry = 0;
let example;
for (const file of await readdir(directory)) {
if (!/^part-\d+\.json$/.test(file)) continue;
const {projects} = JSON.parse(await readFile(new URL(file, directory), 'utf8'));
for (const project of projects) {
const ref = project.repd_ref;
const legal = new URL(reportData(project, '').legalEvidenceUrl);
assert.equal(legal.origin + legal.pathname, 'https://ventusltd.github.io/legislation/legal-evidence/');
assert.equal(legal.searchParams.get('repd_ref'), ref);
assert.equal(legal.searchParams.get('source_release'), edition);
assert.equal(legal.searchParams.get('project'), project.name.trim() || null);
assert.ok(!seen.has(ref));
seen.add(ref);
if (project.geometry_status === 'missing') {
missingGeometry++;
example = project;
}
}
}
assert.equal(seen.size, 7775);
assert.equal(missingGeometry, 26);
const noMap = reportData(example, '');
assert.equal(noMap.mapUrl, '');
assert.equal((Buffer.from(buildA4Pdf(noMap)).toString().match(/\/Subtype \/Link/g) || []).length, 1);
for (const invalid of [{...example, technology:'interconnector'}, {...example, gg_project_id:'mismatch'}]) {
const model = reportData(invalid, '');
assert.equal(model.legalEvidenceUrl, null);
assert.ok(!Buffer.from(buildA4Pdf(model)).toString().includes('/Subtype /Link'));
}
console.log(`PASS ${seen.size} project identities, including ${missingGeometry} without mapped locations; unsupported identities have no legal action.`);Dashboard
A web page in the UK renewables pipeline folder of GlobalGrid2050 that draws Renewable Energy Planning Database (REPD) master, solar, wind and battery storage (BESS). Published at https://globalgrid2050.com/uk_renewables_pipeline/dashboard.html.
renderglobalgrid2050 / uk_renewables_pipeline/dashboard.html · lines 1–417 of 820 · Entry point · pattern populateFilters (shared by 2 files)
- What it does
- It draws REPD master, solar, wind and battery storage (BESS). Defines 8 functions or classes, including initGauges, updateGauges, updateTable, applyFilters, populateFilters. Side effects: changes the web page (DOM); makes network requests.
- 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, wind, battery storage (BESS).
- Inputs & outputs
- In: JSON file repd_master.json; form fields (user input). Out: web page; canvas drawing.
- Downstream impact
- Used directly by 82 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); GlobalGrid2050 — PipelineNews Intelligence Page (globalgrid2050, https://globalgrid2050.com/pipelinenews_intelligence/202609050309/); Testcode — Pipeline Page (globalgrid2050, https://globalgrid2050.com/testcode/202609060345/pipeline/); and 78 more. Reached from 130 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/uk_renewables_pipeline/dashboard.html.
- What it achieves
- It updates gauges (`updateGauges`), updates table (`updateTable`) and applies filters (`applyFilters`). UK Renewables Pipeline. Its code works with 1 MW. It responds to click, change and input events.
- Why it matters
- Loaded by the Solar Battery Energy Storage System (BESS) Topology V6 page at https://globalgrid2050.com/solar-bess-topology-v6/ and 76 other pages. Also imported by 5 files, including Performance Audit, Mobile UI Invariants and Compile V8 Fast, from PipelineNews.
- Application
- globalgrid2050 · uk_renewables_pipeline · page
- Uses
- GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page (link), https://cdn.jsdelivr.net/npm/chart.js
- Used by
- linked from GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (link), linked from GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (link), linked from GlobalGrid2050 — PipelineNews Intelligence Page (link), linked from Testcode — Pipeline Page (link), embedded by Dashboard V2 2026 08 22 (iframe), linked from Dashboard V4 Live (link), linked from Dashboard V5 Live (link), linked from Dashboard V6 Live (link), and 74 more, mentioned in Standalone (comment link)
- Produces
- initGauges, updateGauges, updateTable, applyFilters, populateFilters, csvEscape, exportFilteredCSV, titleCase
- 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/dashboard.html:1-417 · blob e2d99e37d6388d3f498a79696773238ad689574b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, network · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GlobalGrid2050 | UK Renewables Pipeline</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
/* GlobalGrid2050 Dashboard Theme Variables */
--bg: #000000;
--panel: rgba(10, 10, 10, 0.96);
--panel-soft: #0b0e14;
--line: #2f343d;
--line-soft: #222222;
--text: #ffffff;
--muted: #a6adbb;
--muted-soft: #8d95a3;
/* Accents */
--accent: #00ffff;
--accent-2: #ff00ff;
--ok: #00ff88;
--warn: #ffcc00;
--error: #ff6666;
/* Tech Colors */
--tech-solar: #ffff00;
--tech-battery: #ffae00;
--tech-onshore: #00ffff;
--tech-offshore: #0066ff;
}
* {
box-sizing: border-box;
font-family: 'Courier New', Courier, monospace;
margin: 0;
padding: 0;
}
/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: #333 var(--bg); }
body {
background-color: var(--bg);
color: var(--text);
display: flex;
height: 100vh;
overflow: hidden;
font-size: 13px;
}
/* --- SIDEBAR --- */
.sidebar {
width: 250px;
background-color: var(--panel);
border-right: 1px solid var(--line-soft);
display: flex;
flex-direction: column;
padding: 20px 0;
z-index: 100;
}
.ventus-brand {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
line-height: 1.2;
padding-bottom: 20px;
border-bottom: 1px solid var(--line-soft);
margin-bottom: 20px;
}
.ventus-main {
font-family: -apple-system, sans-serif;
font-size: 17px;
font-weight: 800;
color: #fff;
letter-spacing: 5px;
text-transform: uppercase;
margin-bottom: 2px;
}
.ventus-sub {
font-family: -apple-system, sans-serif;
font-size: 6.5px;
color: #888;
letter-spacing: 2px;
text-transform: uppercase;
}
.user-profile {
display: flex;
align-items: center;
padding: 0 20px 20px 20px;
gap: 15px;
}
.avatar {
width: 40px;
height: 40px;
background: #111;
border: 1px solid var(--warn);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: var(--warn);
}
.user-info p { font-size: 12px; font-weight: bold; color: var(--accent); }
.user-info span { font-size: 10px; color: var(--muted-soft); text-transform: uppercase; }
.nav-menu {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.nav-item {
padding: 12px 20px;
color: var(--muted);
text-decoration: none;
font-size: 12px;
font-weight: bold;
letter-spacing: 1px;
transition: all 0.2s;
border-left: 3px solid transparent;
text-transform: uppercase;
}
.nav-item:hover, .nav-item.active {
color: var(--accent);
background: rgba(0, 255, 255, 0.08);
border-left: 3px solid var(--accent);
}
/* --- MAIN CONTENT --- */
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
padding: 20px 30px;
overflow-y: auto;
background: var(--bg);
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
border-bottom: 1px solid var(--line-soft);
padding-bottom: 15px;
}
.header h1 {
font-size: 18px;
letter-spacing: 2px;
color: var(--accent);
text-transform: uppercase;
}
.status-box {
border: 1px solid rgba(0,255,136,0.35);
background: #090c11;
color: #aef7d1;
padding: 6px 12px;
font-size: 11px;
border-radius: 3px;
display: flex;
align-items: center;
gap: 8px;
text-transform: uppercase;
letter-spacing: 1px;
}
.live-dot {
width: 7px;
height: 7px;
background: var(--ok);
border-radius: 50%;
box-shadow: 0 0 8px var(--ok);
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.3; }
100% { opacity: 1; }
}
/* Gauges */
.gauges-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 25px;
}
.gauge-card {
background: var(--panel-soft);
border: 1px solid var(--line-soft);
border-radius: 4px;
padding: 15px;
text-align: center;
position: relative;
}
.gauge-card h3 {
font-size: 11px;
color: var(--muted-soft);
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 5px;
}
.chart-wrapper {
position: relative;
height: 120px;
width: 100%;
display: flex;
justify-content: center;
}
.gauge-value {
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
font-size: 24px;
font-weight: bold;
color: var(--text);
}
/* Filters */
.filters-container {
display: flex;
gap: 10px;
margin-bottom: 15px;
flex-wrap: wrap;
align-items: center;
}
.btn {
background: var(--bg);
color: var(--muted);
border: 1px solid var(--line);
padding: 8px 14px;
font-family: 'Courier New', monospace;
font-size: 11px;
font-weight: bold;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 3px;
transition: all 0.2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
/* Tech Button Colors */
.btn.tech-btn.active[data-tech="All"] { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn.tech-btn.active[data-tech="Solar"] { background: rgba(255,255,0,0.1); color: var(--tech-solar); border-color: var(--tech-solar); }
.btn.tech-btn.active[data-tech="Battery Storage"] { background: rgba(255,174,0,0.1); color: var(--tech-battery); border-color: var(--tech-battery); }
.btn.tech-btn.active[data-tech="Onshore Wind"] { background: rgba(0,255,255,0.1); color: var(--tech-onshore); border-color: var(--tech-onshore); }
.btn.tech-btn.active[data-tech="Offshore Wind"] { background: rgba(0,102,255,0.2); color: var(--tech-offshore); border-color: var(--tech-offshore); }
/* Status Button Colors */
.btn.status-btn.active { background: rgba(0, 255, 136, 0.1); color: var(--ok); border-color: var(--ok); }
.btn.status-btn.active[data-status="All"] { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
/* Dropdown & Input Styling */
.dropdown-btn {
outline: none;
appearance: none;
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300ffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012 … [line shortened here: 513 characters; full line on GitHub]
background-repeat: no-repeat;
background-position: right 10px top 50%;
background-size: 10px auto;
padding-right: 30px;
max-width: 250px;
}
.dropdown-btn option {
background: var(--bg);
color: #fff;
}
.search-input {
cursor: text;
text-align: left;
min-width: 280px;
outline: none;
color: #fff;
}
.search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}
/* Table */
.table-wrapper {
background: var(--panel-soft);
border: 1px solid var(--line-soft);
border-radius: 4px;
flex-grow: 1;
overflow: auto;
}
table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
th {
background: #050505;
color: var(--accent);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
padding: 12px 15px;
position: sticky;
top: 0;
z-index: 10;
border-bottom: 1px solid var(--line);
}
td {
padding: 10px 15px;
border-bottom: 1px solid var(--line-soft);
font-size: 12px;
color: var(--muted);
}
tr:hover { background: rgba(0, 255, 255, 0.03); }
.site-name { color: var(--text); font-weight: bold; }
.tech-badge {
padding: 3px 6px;
border-radius: 3px;
font-size: 10px;
font-weight: bold;
color: #000;
text-transform: uppercase;
white-space: nowrap;
}
.val-mw {
color: var(--ok);
font-weight: bold;
font-size: 14px;
}
.news-link {
text-decoration: none;
font-size: 16px;
transition: transform 0.2s;
display: inline-block;
}
.news-link:hover {
transform: scale(1.2);
}
.mobile-extra {
display: none;
font-size: 9px;
color: #888;
margin-top: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: normal;
}
@media (max-width: 1024px) {
.gauges-container { grid-template-columns: 1fr; }
.sidebar { width: 200px; }
}
/* Mobile specific fixes */
@media (max-width: 768px) {
body { flex-direction: column; overflow: auto; }
.sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--line-soft); padding: 10px; flex-direction: row; align-items: center; justify-content: space-between; }
.user-profile, .nav-menu { display: none; }
.ventus-brand { border: none; margin: 0; padding: 0; }
.main-content { overflow: visible; padding: 10px; }
/* Hide the dedicated columns on mobile */
.hide-mobile { display: none; }
/* Show the stacked data under Site Name */
.mobile-extra { display: block; }
th, td { padding: 8px 6px; font-size: 10px; }
.tech-badge { font-size: 8px; padding: 2px 4px; }
.val-mw { font-size: 12px; }
.dropdown-btn { max-width: 100%; width: 100%; margin-bottom: 10px; }
.search-input { min-width: 100%; width: 100%; margin-bottom: 10px; }
}
</style>
</head>
<body>
<aside class="sidebar">
<div class="ventus-brand">