In this section
- GlobalGrid2050 — UK Renewables Pipeline Page render · globalgrid2050 / uk_renewables_pipeline/202611280922/index.html lines 1–329
- Report A4 interaction · globalgrid2050 / uk_renewables_pipeline/202611280922/report-a4.mjs lines 1–235
- Report Model transform · globalgrid2050 / uk_renewables_pipeline/202611280922/report-model.mjs lines 1–40
- Report PDF transform · globalgrid2050 / uk_renewables_pipeline/202611280922/report-pdf.mjs lines 1–94
GlobalGrid2050 — UK Renewables Pipeline Page
A web page that draws pipeline headlines snapshot, the Renewable Energy Planning Database (REPD) register and solar, using SHA-256, and uses data from the GridAtlas repository. Published at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
renderglobalgrid2050 / uk_renewables_pipeline/202611280922/index.html · lines 1–329 of 329 · version 2026-11-28 09:22 · Entry point
- What it does
- It draws pipeline headlines snapshot, the REPD register, solar and battery storage (BESS). Uses libraries styles/v7.css?v=9.8, vendor/chart.umd.min.js. 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).
- Inputs & outputs
- In: JSON file pipeline_headlines.snapshot.json; JSON file build_manifest.json; JSON file latest.json; form fields (user input). Out: web page.
- Downstream impact
- Used directly by 5 files: Check Solar1000 V924 (globalgrid2050); Browser Map Reachability V9 7 (globalgrid2050); A4 Legal Model (globalgrid2050); Test Pilot Ticker (cosmic); and 1 more. Reached from 2 other entry points, including GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); Run V9 7 (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- What it achieves
- Its code works with 1 MW.
- Why it matters
- Imported by V923 Public Readback Workflow, from Neural Link Between Agents. Checked by 4 tests, including Check Solar1000 V924.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922 · page
- Uses
- Mobile (stylesheet), V9 3 (stylesheet), V9 4 (stylesheet), V9 5 1 (stylesheet), V9 6 1 (stylesheet), V9 10 (stylesheet), V9 21 (stylesheet), V9 22 (stylesheet), and 53 more, styles/v7.css?v=9.8, vendor/chart.umd.min.js, ../../automation/grid_notice_ui/20261117-v938/styles.css, ../../automation/document_facts_ui/20261117-v939/styles.css, ../../automation/ticker_neon_ui/20261117-v940/styles.css, ../../automation/journey_entry_ui/20261118/styles.css, ../../automation/energy_context_ui/20261118/styles.css
- Used by
- referenced by Check Solar1000 V924 (new URL import.meta.url), referenced by Browser Map Reachability V9 7 (new URL import.meta.url), referenced by A4 Legal Model (new URL import.meta.url), named by URL in Test Pilot Ticker (estate URL), named by URL in V923 Public Readback Workflow (estate URL)
- 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/index.html:1-329 · blob 01ec249f9f7c38087a97ac5bf4c4a2241e192177 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · 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">
<title>GlobalGrid2050 | Pipeline News V9.78 · 202611280922</title>
<link rel="preconnect" href="https://ventusltd.github.io" crossorigin>
<link rel="stylesheet" href="styles/v7.css?v=9.8">
<link rel="stylesheet" href="styles/mobile.css?v=9.8">
<link rel="stylesheet" href="styles/v9-3.css?v=9.8">
<link rel="stylesheet" href="styles/v9-4.css?v=9.8">
<style>#planningSubmittedHeader>button{white-space:normal;max-width:160px}.date-options{display:inline-block}.date-options summary{cursor:pointer}.date-options[open]>div{position:absolute;background:#050505;border:1px solid #00ffff;padding:10px;z-index:10;display:grid;gap:8px;min-width:180px;right:0}.date-options button{color:#00ffff!important}</style>
<link rel="stylesheet" href="styles/v9-5-1.css?v=9.8">
<link rel="stylesheet" href="styles/v9-6-1.css?v=9.8">
<link rel="stylesheet" href="styles/v9-10.css?v=9.10">
<link rel="stylesheet" href="styles/v9-21.css?v=9.21">
<link rel="stylesheet" href="styles/v9-22.css?v=9.22">
<link rel="stylesheet" href="styles/v9-23.css?v=9.23">
<link rel="stylesheet" href="styles/v9-24.css?v=9.24">
<script src="vendor/chart.umd.min.js" integrity="sha384-jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="styles/preview-v928.css">
<link rel="stylesheet" href="../../automation/repd_expand_ui/expand.css">
<link rel="stylesheet" href="scripts/layers/pipeline-layers.css">
<link rel="stylesheet" href="../../automation/price_daily_ui/78d5360239e1a5fcffa83fcb30d5937c5521acb9/styles.css" integrity="sha256-OMuIlBvYlrxro2QuNOO2Dwnl5q062jUsxNjMxxPaaVw=">
<link rel="stylesheet" href="../../automation/dc_location_ui/83e7c36d08ef98f3665f7f35b8637405391dc4be/actions.css" integrity="sha256-CvhvasdWUaC+1UCWzKtAPnq7XLWLAjI43Hnli4o8oDk=">
<link rel="stylesheet" href="../../automation/news/datacentre-ui/styles.css">
<link rel="stylesheet" href="../../automation/v928_context/preview/context.css">
<link rel="stylesheet" href="../../automation/v928_context/preview/figures/b460cb7f76172691b5ffb6d2a7f1a8e12057ba20/figures.css">
<link rel="stylesheet" href="../../automation/news_quality_ui/20261117-v937/styles.css" integrity="sha256-dZ9E56dLcJ2VEWIgPF99Q3kDp6iDQXrbY1VhPINN6nE=">
<link rel="stylesheet" href="../../automation/grid_notice_ui/20261117-v938/styles.css" integrity="sha256-ZDlBQKCGuLdyrS3J7VA09B3/ij4CABHMA1Sz1MDzRg8=">
<link rel="stylesheet" href="../../automation/document_facts_ui/20261117-v939/styles.css" integrity="sha256-meIm9EvalMpaR7WKu/dmO8ZKd3iOirU9Ea1zCeDaQDE=">
<link rel="stylesheet" href="../../automation/ticker_neon_ui/20261117-v940/styles.css" integrity="sha256-msZMqYWacyY6Uy72XxIcen6HYnQA5avObSNdRvSuDbQ=">
<link rel="stylesheet" href="../../automation/ticker_crisp_ui/20261117-v941/styles.css" integrity="sha256-C564xoAwHSpzZlFkm9wYA2BTXOaKle7VC+MBG7Rx4wA=">
<script type="module" src="../../automation/ticker_neon_ui/20261117-v940/header.mjs" integrity="sha256-F/u7+UiM6t/Ua67viEmj83hi0wJhkWmR+lb4XrCjuU0="></script>
<link rel="stylesheet" href="../../automation/journey_entry_ui/20261118/styles.css" integrity="sha256-XVi2KkTENwlxsaeRIgY1VVvCci+AIL6/dc2NeDyDivE=">
<link rel="stylesheet" href="styles/news-compact.css">
<link rel="stylesheet" href="styles/compact-register.css">
<link rel="stylesheet" href="styles/hud-v955.css">
<link rel="stylesheet" href="styles/news-maximise.css">
<link rel="stylesheet" href="styles/repd-density.css">
<link rel="stylesheet" href="styles/repd-scan.css">
<link rel="stylesheet" href="styles/report-a4.css">
<link rel="stylesheet" href="styles/repd-expanded.css">
<link rel="stylesheet" href="styles/repd-reports.css">
<link rel="stylesheet" href="styles/repd-mobile-v976.css">
</head>
<body>
<main class="main">
<section class="newspaper" aria-label="News headlines">
<div class="masthead">
<h2 id="headlinesHeading">HEADLINES</h2>
<div class="strap">
<span id="newsStatus" data-state="loading">Loading headlines…</span>
<span>UK renewables, storage and grid headlines from public feeds, newest first · headlines and links only · a "possible match" is a name coincidence for review, not a confirmed link to a project</span>
</div>
</div>
<noscript><p>JavaScript is unavailable. <a href="news/pipeline_headlines.snapshot.json">Read the saved headline snapshot with publisher dates</a> or <a href="data/v9.1/build_manifest.json">open the unchanged register data manifest</a>.</p></noscript>
<div class="live-news" id="liveNews"></div>
<div id="headlineTicker" aria-label="Latest available headlines"></div>
<details class="news-archive" id="newsArchive" hidden>
<summary>ARCHIVE · PROJECT HEADLINES COLLECTED UP TO AUGUST 2026 · NOT UPDATED</summary>
<div class="strap">
<span id="newsMeta">loading archive…</span>
</div>
<div class="news-tools" id="newsTools">
<button class="active" data-news="ALL">ALL</button>
<button data-news="UK">UK</button>
<button data-news="INTERNATIONAL">INTERNATIONAL</button>
<button data-news="US">US</button>
<button data-news="EUROPE">EUROPE</button>
<button data-news="SOLAR">SOLAR</button>
<button data-news="BESS">BESS</button>
<button data-news="CONSENT">CONSENT</button>
<button data-news="CONSTRUCTION">CONSTRUCTION</button>
<button data-news="OPERATIONAL">OPERATIONAL</button>
<button data-news="FINANCE">FINANCE / M&A</button>
<input id="newsSearch" placeholder="SEARCH HEADLINES / PROJECT / OPERATOR">
</div>
<div class="paper">
<div class="stories" id="stories">
<div class="news-empty">Loading the archive…</div>
</div>
</div>
</details>
</section>
<section id="officialRegister" aria-labelledby="pipelineHeading" data-register-changes="inline-only">
<h2 class="section-title" id="pipelineHeading">REPD PIPELINE <span id="repdReportDate"></span><small id="repdDataDate"></small></h2>
<div class="pipeline-tabs" role="tablist" aria-label="Pipeline categories">
<button id="solarTab" role="tab" aria-selected="true" aria-controls="repdPanel" tabindex="0" data-view="solar">Solar</button>
<button id="bessTab" role="tab" aria-selected="false" aria-controls="repdPanel" tabindex="-1" data-view="bess">BESS</button>
<button id="gridTab" role="tab" aria-selected="false" aria-controls="gridPanel" tabindex="-1" data-view="grid">Grid</button>
<button id="datacentreTab" role="tab" aria-selected="false" aria-controls="datacentrePanel" tabindex="-1" data-view="datacentre">Data Centres</button>
<button id="offtakersTab" role="tab" aria-selected="false" aria-controls="offtakersPanel" tabindex="-1" data-view="offtakers">Offtakers</button>
<button id="pricesTab" role="tab" aria-selected="false" aria-controls="pricesPanel" tabindex="-1" data-view="prices">Prices</button>
</div>
<div id="repdPanel" role="tabpanel" aria-labelledby="solarTab"><span id="releaseMeta" hidden></span>
<p class="gauge-warning" id="gaugeWarning" role="status" hidden>Gauge visualisation unavailable.</p>
<div class="gauges hud-gauges" aria-label="Filtered REPD capacity dashboard">
<div class="card">
<h3>CAPACITY (MW)</h3>
<div class="chart"><canvas id="g1"></canvas><div class="value" id="v1">0</div></div>
</div>
<div class="card">
<h3>PROJECTS (≥1MW)</h3>
<div class="chart"><canvas id="g2"></canvas><div class="value" id="v2">0</div></div>
</div>
<div class="card">
<h3>LARGEST SITE (MW)</h3>
<div class="chart"><canvas id="g3"></canvas><div class="value" id="v3">0</div></div>
</div>
</div>
<p class="category-scope">Canonical DESNZ REPD Q3 2026: 7,775 solar, BESS and wind records at ≥1 MW from 14,967 source rows. Use All Tech for this full qualifying register; interconnectors retain their separate identities.</p>
<div class="filters" id="repdNativeFilters" aria-label="REPD source table filters">
<label for="repdNativeStatus">STATUS <select id="repdNativeStatus" aria-label="Filter official REPD status"><option value="All">ALL OFFICIAL STATUSES</option></select></label>
<label for="repdNativeOperator">OPERATOR <select id="repdNativeOperator" aria-label="Filter original REPD table by operator"><option value="All">ALL OPERATORS</option></select></label>
<label for="repdNativeRegion">REGION <select id="repdNativeRegion" aria-label="Filter original REPD table by region"><option value="All">ALL REGIONS</option></select></label>
</div>
<div class="filters" id="status">
<button class="btn active" data-official-status="All" aria-pressed="true">ALL STATUS</button>
<button class="btn" data-official-status="Operational" aria-pressed="false">OPERATIONAL</button>
<button class="btn" data-official-status="Under Construction" aria-pressed="false">CONSTRUCTING</button>
<button class="btn" data-official-status="Awaiting Construction" aria-pressed="false">AWAITING</button>
<button class="btn" data-official-status="Application Submitted" aria-pressed="false">SUBMITTED</button>
</div>
<div class="repd-report-launch" role="group" aria-label="REPD capacity reports">
<button type="button" data-repd-report="operator" aria-controls="repdReportsPanel" aria-pressed="false" aria-expanded="false">OPERATOR MW</button>
<button type="button" data-repd-report="status" aria-controls="repdReportsPanel" aria-pressed="false" aria-expanded="false">STATUS MW</button>
<button type="button" data-repd-report="region" aria-controls="repdReportsPanel" aria-pressed="false" aria-expanded="false">REGION MW</button>
</div>
<section id="repdReportsPanel" aria-label="REPD capacity intelligence reports" hidden>
<div class="repd-report-head">
<span class="repd-report-context">CURRENT REPD TABLE FILTERS</span>
<button type="button" id="repdReportCsv">EXPORT REPORT CSV</button>
<button type="button" id="repdReportsClose" class="repd-report-close">CLOSE</button>
</div>
<p id="repdReportsSummary" role="status" aria-live="polite"></p>
<p class="category-scope">Source-reported REPD capacity: solar MWp is shown separately from other MW. Combined recorded MW/MWp is a database aggregation, not commissioned, available or future generation. Conservative operator spelling variants are grouped for reporting only; source labels remain unchanged. Refused, withdrawn and missing statuses are retained. Offshore is a source region label.</p>
<p id="repdReportSwipeHint" aria-hidden="true">SWIPE COLUMNS LEFT OR RIGHT TO VIEW ALL VALUES</p>
<div id="repdReportsBody" aria-label="Capacity group detail"></div>
</section>
<div class="filters compact-mw-filter" aria-label="Capacity range">
<label class="mw-bound" for="minMW"><span>Min MW</span><input id="minMW" type="number" min="0" step="any" inputmode="decimal" placeholder="Any"></label>
<label class="mw-bound" for="maxMW"><span>Max MW</span><input id="maxMW" type="number" min="0" step="any" inputmode="decimal" placeholder="Any"></label>
<button type="button" id="applyMW" class="btn">APPLY</button><span id="mwRangeError" role="alert"></span>
</div>
<div class="compact-sort"><select id="sortProjects" aria-label="Sort projects">
<option value="capacity_desc">SORT: CAPACITY (DEFAULT)</option>
<option value="capacity_asc">SORT: CAPACITY — LOWEST</option>
<option value="name_asc">SORT: PROJECT — ASCENDING</option>
<option value="name_desc">SORT: PROJECT — DESCENDING</option>
<option value="county_asc">SORT: COUNTY — ASCENDING</option>
<option value="county_desc">SORT: COUNTY — DESCENDING</option>
<option value="operator_asc">SORT: OPERATOR — ASCENDING</option>
<option value="operator_desc">SORT: OPERATOR — DESCENDING</option>
<option value="technology_asc">SORT: TECHNOLOGY — ASCENDING</option>
<option value="technology_desc">SORT: TECHNOLOGY — DESCENDING</option>
<option value="status_asc">SORT: STATUS — ASCENDING</option>
<option value="status_desc">SORT: STATUS — DESCENDING</option>
<option value="repd_asc">SORT: REPD REF — ASCENDING</option>
<option value="repd_desc">SORT: REPD REF — DESCENDING</option>
<option value="globalgrid_asc">SORT: GLOBALGRID REF — ASCENDING</option>
<option value="globalgrid_desc">SORT: GLOBALGRID REF — DESCENDING</option>
<option value="updated_desc">SORT: REPD UPDATED — NEWEST</option>
<option value="updated_asc">SORT: REPD UPDATED — OLDEST</option>
<option value="submitted_desc">SORT: APPLICATION SUBMITTED - NEWEST</option>
<option value="submitted_asc">SORT: APPLICATION SUBMITTED - OLDEST</option>
<option value="operational_desc">SORT: OPERATIONAL - NEWEST</option>
<option value="operational_asc">SORT: OPERATIONAL - OLDEST</option>
</select></div>
<details class="compact-register-filters"><summary>More project filters</summary>
<div class="filters" id="tech">
<button class="btn active" data-technology="all" aria-pressed="true">ALL TECH</button>
<button class="btn" data-technology="solar" aria-pressed="false">SOLAR</button>
<button class="btn" data-technology="bess" aria-pressed="false">BATTERY</button>
<button class="btn" data-technology="wind_onshore" aria-pressed="false">ONSHORE</button>
<button class="btn" data-technology="wind_offshore" aria-pressed="false">OFFSHORE</button>
<button class="btn" data-technology="interconnector" aria-pressed="false">INTERCONNECTORS</button>
</div>
<div class="filters">
<select id="county"><option value="All">🌍 ALL COUNTIES</option></select>
<label>REPD updated year <select data-year-filter="updatedYear" aria-label="REPD updated year"></select></label>
<label>Application submitted year <select data-year-filter="submittedYear" aria-label="Application submitted year"></select></label>
<label>Operational year <select data-year-filter="operationalYear" aria-label="Operational year"></select></label>
<input id="search" class="asset-search" placeholder="🔍 SEARCH PROJECT / REPD / GLOBALGRID / PLANNING..." autocomplete="off">
<button class="btn clear-filters" id="clearFilters">CLEAR FILTERS</button>
<button class="btn export-inline" id="exportInline">EXPORT FILTERED CSV</button>
<span id="exportMeta" class="export-meta">CSV contains the current filtered rows only</span>
</div>
</details>
<span id="resultsMeta" class="results-meta">Loading all qualifying records…</span>
<details class="scope-notes compact-register-scope"><summary>Register scope and MAP guidance</summary><div class="meta">
<strong>STATUS DISCIPLINE</strong>
<span><b>DEFAULT:</b> every qualifying ≥1 MW record is loaded. Filters are user controls; they never redefine or truncate the pipeline.</span>
<span><b>NEWS:</b> relevance scores are algorithmic screening only and never change an official REPD fact.</span>
<span><b>ATLAS:</b> valid geometry resolves the exact REPD Ref. Missing geometry remains in search and CSV and is labelled NO MAP.</span>
<span><b>MAP ON A PHONE:</b> GridAtlas can open its project result card minimised so the map remains visible. Expand the card to read the nearest-substation screening. A distance is not available grid capacity or a connection offer.</span>
<span><b>DATES:</b> Application submitted is the planning submission event. REPD updated is the database record update, not necessarily an application amendment. Operational is the recorded REPD historical milestone, not independent proof of current operation, commissioning or capacity. Status and dates remain separate. Year filters combine; missing dates stay unknown and sort last.</span>
<span id="gaStateSummary" hidden></span>
<span><b>INTERCONNECTORS:</b> not REPD records and never counted in ALL TECH. Their MAP link carries the link's own identity; a midpoint is a label anchor, not a location.</span>
</div>
</details>
<div class="pn-scan-toolbar" id="pnScanToolbar" aria-label="Fast prospect filters">
<label class="pn-scan-status" for="pnScanStatus" hidden style="display:none" aria-hidden="true">Status <select id="pnScanStatus" aria-label="Filter by official project status">
<option value="All">All</option>
<option value="Application Submitted">Submitted</option>
<option value="Awaiting Construction">Awaiting</option>
<option value="Under Construction">Constructing</option>
<option value="Operational">Operational</option>
</select></label>
<details class="pn-scan-dates" id="pnScanDates">
<summary>Dates <span id="pnScanDateCount" aria-live="polite"></span></summary>
<div class="pn-scan-date-fields">
<label>Submitted <select data-year-filter="submittedYear" aria-label="Application submitted year fast filter"></select></label>
<label>Operational <select data-year-filter="operationalYear" aria-label="Operational year fast filter"></select></label>
<label>REPD updated <select data-year-filter="updatedYear" aria-label="REPD updated year fast filter"></select></label>
</div>
</details>
<button type="button" id="pnScanModeToggle" aria-controls="repdScroll" aria-pressed="true">All columns</button>
</div>
<div class="column-scroll-tools"><label for="columnScroll">Columns ↔</label><input type="range" id="columnScroll" min="0" max="100" value="0" step="0.1" aria-label="Scroll project table horizontally"></div>
<div class="tablewrap" id="repdScroll" tabindex="0" aria-label="Scrollable project register">
<table>
<thead>
<tr>
<th data-column-heading="name" aria-sort="none"><div class="project-head"><button type="button" class="column-sort " data-column-sort="name" aria-label="Sort by Project">Project <span aria-hidden="true">↕</span></button><button type="button" class="column-sort phone-sort" data-column-sort="status" aria-label="Sort by Status">Status <span aria-hidden="true">↕</span></button></div></th>
<th class="" data-column-heading="capacity" aria-sort="none"><button type="button" class="column-sort " data-column-sort="capacity" aria-label="Sort by MW / MWp">MW / MWp <span aria-hidden="true">↕</span></button></th>
<th class="hide-mobile" data-column-heading="county" aria-sort="none"><button type="button" class="column-sort " data-column-sort="county" aria-label="Sort by County">County <span aria-hidden="true">↕</span></button></th>
<th class="hide-mobile" data-column-heading="operator" aria-sort="none"><button type="button" class="column-sort " data-column-sort="operator" aria-label="Sort by Operator">Operator <span aria-hidden="true">↕</span></button></th>
<th class="" data-column-heading="technology" aria-sort="none"><button type="button" class="column-sort " data-column-sort="technology" aria-label="Sort by Technology">Technology <span aria-hidden="true">↕</span></button></th>
<th class="" data-column-heading="status" aria-sort="none"><button type="button" class="column-sort " data-column-sort="status" aria-label="Sort by Status">Status <span aria-hidden="true">↕</span></button></th>
<th class="hide-mobile" data-column-heading="repd" aria-sort="none"><button type="button" class="column-sort " data-column-sort="repd" aria-label="Sort by REPD ref">REPD ref <span aria-hidden="true">↕</span></button></th>
<th class="hide-mobile" data-column-heading="globalgrid" aria-sort="none"><button type="button" class="column-sort " data-column-sort="globalgrid" aria-label="Sort by GlobalGrid ref">GlobalGrid ref <span aria-hidden="true">↕</span></button></th>
<th class="hide-mobile repd-updated-heading" id="repdUpdatedHeader" aria-sort="none">
<button id="sortUpdated" type="button" aria-label="Sort by REPD updated date, newest first">
REPD UPDATED <span id="updatedSortIndicator" aria-hidden="true">↕</span>
</button>
<details class="date-options"><summary aria-label="REPD updated sort and year options">⚙</summary><div><button type="button" data-date-sort="updated_asc">▲ Ascending</button><button type="button" data-date-sort="updated_desc">▼ Descending</button><label>Year <select data-year-filter="updatedYear" aria-label="REPD updated year menu"></select></label></div></details></th>
<th class="hide-mobile repd-updated-heading" id="planningSubmittedHeader" aria-sort="none"><button id="sortSubmitted" type="button">Submitted <span id="submittedSortIndicator" aria-hidden="true">↕</span></button><details class="date-options"><summary aria-label="Application submitted sort and year options">⚙</summary><div><button type="button" data-date-sort="submitted_asc">▲ Asc … [line shortened here: 632 characters; full line on GitHub]
<th class="hide-mobile repd-updated-heading" id="operationalHeader" aria-sort="none"><button id="sortOperational" type="button">Operational <span id="operationalSortIndicator" aria-hidden="true">↕</span></button><details class="date-options"><summary aria-label="Operational sort and year options">⚙</summary><div><button type="button" data-date-sort="operational_asc">▲ Ascending</ … [line shortened here: 618 characters; full line on GitHub]
<th>MACHINE READ NOTES</th>
<th aria-label="Map">MAP</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
</table>
</div>
</div>
<div id="gridPanel" role="tabpanel" aria-labelledby="gridTab" hidden>
<div id="gridLayerHost">Select Grid to load the existing substation snapshot.</div>
<details class="scope-notes"><summary>Official grid information sources · 0 approved project updates</summary>
<div id="gridDirectory" aria-live="polite">Source directory unavailable.</div>
</details>
</div>
<div id="datacentrePanel" role="tabpanel" aria-labelledby="datacentreTab" hidden>
<div id="datacentreHost" aria-live="polite">Loading source-indexed leads…</div>
</div>
<div id="offtakersPanel" role="tabpanel" aria-labelledby="offtakersTab" hidden>
<div id="offtakersLayerHost">Select Offtakers to load the existing source snapshot.</div>
</div>
<div id="pricesPanel" role="tabpanel" aria-labelledby="pricesTab" hidden>
<div id="pricesLayerHost"></div>
<p class="category-scope"><a href="https://globalgrid2050.com/uk_energy_tracking_v6/" target="_blank" rel="noopener noreferrer">Open the original electricity workspace</a></p>
</div>
<details id="contextDisclosure" class="scope-notes" hidden>
<summary>Energy and data-centre context · historical and provisional</summary>
<p class="category-scope">Dated provisional source context. It establishes no UK project association, current capacity or publication-rights approval.</p>
<div id="contextHost" data-pipeline-context-host>Context unavailable.</div>
</details>
<details class="scope-notes" id="evidenceCoverage" data-evidence-pointer="https://raw.githubusercontent.com/Ventusltd/globalgrid2050/pipeline-evidence-data/dist/news/evidence/latest.json"><summary>Sources and research coverage</summary>
<p class="category-scope" data-evidence-selection>Loading the unchanged 1,000-project research selection…</p>
<p class="category-scope" data-evidence-status>Research evidence unavailable until source validation completes.</p>
<p class="category-scope">7,775 official REPD records; 3,604 solar. The unchanged 1,000-project research selection has zero independently verified findings. Missing research is not evidence that no development exists.</p>
<div class="meta" id="dataSources">
<strong>DATA SOURCES AND LICENCES</strong>
<span><b>REPD:</b> Renewable Energy Planning Database, Department for Energy Security and Net Zero. Contains public sector information licensed under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" target="_blank" rel="noopener">Open Government Licence v3.0</a>.</span>
<span><b>HEADLINES:</b> One public energy-infrastructure feed, with no content from the UK data-centre register. Machine Read Notes are candidate screening interpretations; original evidence and official REPD status remain separate.</span>
</div>
</details>
</section>
<details class="minimal-page-tools"><summary>Site tools</summary><nav class="release-links" aria-label="Pipeline navigation">
<a class="active" href="#" aria-current="page">V9.78 · PIPELINE NEWS</a>
<a href="../versions.html">ALL VERSIONS · CI VERDICTS</a>
<a href="../202611280048/">V9.77 · PREVIOUS EDITION</a><a href="../202611232245/">V9.76 · ARCHIVE</a><a href="../202611221705/">V9.68 · ARCHIVE</a><a href="../202611221625/">V9.67 · ARCHIVE</a><a href="../202611221500/">V9.66 · ARCHIVE</a><a href="../202611221330/">V9.65 · ORIGINAL COLOURS</a><a href="../202611221243/">V9.64 · ARCHIVE</a><a href="../202611220220/">V9.63 · A4 ROLLBACK</a>
<a href="https://ventusltd.github.io/gridatlas/atlas/" id="mapAtlasNav">MAP ATLAS</a>
<a href="#" id="export">EXPORT CSV</a>
<a href="../../index.html">DIRECTORY</a>
</nav><p>REPD October 2026 · V9.78</p></details>
</main>
<script type="module" src="scripts/app-v9-8.js?v=9.28"></script>
<script type="module" src="scripts/plugins/capacity-presentation-v9-3.js?v=9.8"></script>
<script defer src="scripts/plugins/live-news.js?v=9.28"></script>
<script defer src="scripts/plugins/machine-notes-v923.js?v=9.23"></script>
<script type="module" src="scripts/plugins/solar1000-v924.js?v=9.28"></script>
<script defer src="scripts/plugins/gridatlas-state.js?v=1"></script>
<script defer src="scripts/plugins/register-changes.js?v=9.28"></script>
<script src="../../automation/news/datacentre-ui/model.js"></script>
<script src="../../automation/news/datacentre-ui/view.js"></script>
<script type="module" src="scripts/plugins/preview-v928.js"></script>
<script type="module" src="scripts/plugins/layers-v929.mjs"></script>
<script type="module" src="scripts/plugins/dc-locations-v930.mjs"></script>
<script type="module" src="scripts/plugins/prices-v931.mjs"></script>
<script type="module" src="scripts/plugins/primary-notes-v932.mjs"></script>
<script type="module" src="../../automation/repd_expand_ui/expand.mjs"></script>
<script type="module" src="../../automation/news_quality_ui/20261117-v937/view.mjs" integrity="sha256-jzUKDk7jqMmpwgslmjzt6dqn1CE/VtHU59kBQc2NOWA="></script>
<script type="module" src="../../automation/grid_notice_ui/20261117-v938/view.mjs" integrity="sha256-JRp4cvecPrT5/+DFO/V1HLodKeD128bNx7q2z9UkuWk="></script>
<script type="module" src="../../automation/document_facts_ui/20261117-v939/view.mjs" integrity="sha256-6fGzTXO/spIGMQH6b9g/5wPk8b5332aVgsV9uO7hQG4="></script>
<script type="module" src="../../automation/mobile_map_ui/20261118-v942/navigation.mjs" integrity="sha256-RN3HOmLcOg57gbewd/XP0tQgb6I2FucByVv0i3yVe+Q="></script>
<script type="module" src="map-entry.mjs"></script>
<link rel="stylesheet" href="../../automation/energy_context_ui/20261118/styles.css" integrity="sha256-Ez3H84FIfGpkoS24sDSnlrbb5nBSYJeDW4GFYtZ9ts4=">
<script type="module" src="../../automation/energy_context_ui/20261118/view.mjs" integrity="sha256-dIXic4fx7jf9EpVmBzVH1J55WWrsQAXcPT+p6FdkZlA="></script>
<script type="module" src="news-compact.mjs"></script>
<script type="module" src="news-maximise.mjs"></script>
<script type="module" src="column-scroll.mjs"></script>
<script type="module" src="repd-density.mjs"></script>
<script type="module" src="repd-scan.mjs"></script>
<script type="module" src="report-a4.mjs"></script>
<script type="module" src="repd-expanded.mjs"></script>
<script type="module" src="repd-reports.mjs"></script>
</body>
</html>Report A4
A JavaScript module in GlobalGrid2050 that fits view and calculates planar distances, covering the Renewable Energy Planning Database (REPD) register. Served with the page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
interactionglobalgrid2050 / uk_renewables_pipeline/202611280922/report-a4.mjs · lines 1–235 of 235 · version 2026-11-28 09:22 · Entry point · pattern fitView (shared by 2 files)
- What it does
- It draws the REPD register. Defines 14 functions or classes, including $, set, physical, button, resize. 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.
- Inputs & outputs
- Out: downloaded file REPD-.
- Downstream impact
- Used directly by 2 files: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow (globalgrid2050). 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). It is itself an entry point, published at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- What it achieves
- It fits view (`fitView`), opens report (`openReport`) and closes report (`closeReport`). Defines `set`, `physical`, `button` and 10 more. It responds to click, pipeline and keydown events.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/. Run by GlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922 · JavaScript module
- Uses
- State (import), Report Model (import), Report PDF (import)
- Used by
- loaded by GlobalGrid2050 — UK Renewables Pipeline Page (script src), run by GlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow (workflow run)
- Produces
- $, set, physical, button, resize, fitView, render, annotate, openReport, validProjectMap, closeReport, pdfDownload
- Defines here
- $, set, physical, button, resize, fitView, render, annotate, openReport, validProjectMap, closeReport, pdfDownload, action, dist
- 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/report-a4.mjs:1-235 · blob 6863d824263d3db53a50f364c20bea501aa9aa0f · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
// V9.63: independent thumb-movable A4 report, sourced from the existing REPD model and row MAP.
import {state} from './scripts/core/state.js';
import {reportData} from './report-model.mjs';
import {buildA4Pdf} from './report-pdf.mjs';
(() => {
'use strict';
const table=document.getElementById('repdScroll');
const tbody=document.getElementById('tbody');
if(!table||!tbody||document.getElementById('pnRepdReport'))return;
const root=document.createElement('aside');
root.id='pnRepdReport';root.hidden=true;
root.setAttribute('role','dialog');root.setAttribute('aria-modal','true');
root.setAttribute('aria-label','A4 project report preview');
root.innerHTML=
'<nav class="pn-report-controls" aria-label="Report preview controls">'+
'<button type="button" data-report-action="close" aria-label="Close A4 report">Close</button>'+
'<button type="button" data-report-action="fitwidth">Fit width</button>'+
'<button type="button" data-report-action="fitpage">Fit page</button>'+
'<button type="button" data-report-action="minus" aria-label="Zoom out">−</button>'+
'<button type="button" data-report-action="plus" aria-label="Zoom in">+</button>'+
'<button type="button" data-report-action="rotate">Landscape</button>'+
'<button type="button" data-report-action="print">Print</button>'+
'<button type="button" data-report-action="pdf">PDF with links</button>'+
'</nav>'+
'<div class="pn-report-viewport" id="pnReportViewport" role="region" aria-label="Movable and zoomable A4 report preview" tabindex="0">'+
'<div class="pn-report-frame" id="pnReportFrame">'+
'<article class="pn-report-sheet" id="pnReportSheet">'+
'<header class="pn-report-masthead">'+
'<p>GLOBALGRID2050 / REPD PROJECT INTELLIGENCE</p>'+
'<h1 id="pnReportName"></h1>'+
'<div class="pn-report-ref" id="pnReportRef"></div>'+
'</header>'+
'<section class="pn-report-identities">'+
'<div><h2>REPD OPERATOR</h2><p id="pnReportOperator"></p></div>'+
'<div><h2>DEVELOPER</h2><p id="pnReportDeveloper"></p></div>'+
'</section>'+
'<section class="pn-report-primary" aria-label="Project capacity and location">'+
'<div><h2>PROJECT CAPACITY</h2><strong id="pnReportCapacity"></strong></div>'+
'<div class="pn-report-location"><h2>PROJECT LOCATION</h2>'+
'<p id="pnReportLocation"></p>'+
'<a id="pnReportMap" href="#" target="_blank" rel="noopener">OPEN PROJECT MAP</a>'+
'<strong id="pnReportNoMap" hidden>MAP not available for this record</strong>'+
'</div>'+
'</section>'+
'<section class="pn-report-facts">'+
'<div><h2>OFFICIAL STATUS</h2><p id="pnReportStatus"></p></div>'+
'<div><h2>APPLICATION SUBMITTED</h2><p id="pnReportSubmitted"></p></div>'+
'<div><h2>OPERATIONAL DATE</h2><p id="pnReportOperational"></p></div>'+
'<div><h2>REPD RECORD UPDATED</h2><p id="pnReportUpdated"></p></div>'+
'<div><h2>PLANNING CONSENT</h2><p id="pnReportConsent"></p></div>'+
'<div><h2>PLANNING AUTHORITY</h2><p id="pnReportAuthority"></p></div>'+
'<div><h2>PLANNING REFERENCE</h2><p id="pnReportPlanningRef"></p></div>'+
'<a id="pnReportLegal" target="_blank" rel="noopener" hidden>Legal evidence</a>'+
'</section>'+
'<footer class="pn-report-footer">'+
'<p id="pnReportSource"></p>'+
'<p>Project location, capacity, status and dates come from the existing REPD record. MAP is the project-specific map link.</p>'+
'</footer>'+
'</article>'+
'</div>'+
'</div>';
document.body.append(root);
const $=id=>document.getElementById(id);
const viewport=$('pnReportViewport'),frame=$('pnReportFrame'),paper=$('pnReportSheet');
const set=(id,value)=>{$(id).textContent=value;};
let model=null,scale=1,orientation='portrait',fit='width',restore=null,lastTrigger=null,gesture=null;
const physical=()=>orientation==='landscape'?{width:1122.52,height:793.7}:{width:793.7,height:1122.52};
const button=action=>root.querySelector('[data-report-action="'+action+'"]');
function resize(scaleTo,keepCenter=false){
const old=scale,oldCenterX=(viewport.scrollLeft+viewport.clientWidth/2)/old;
const oldCenterY=(viewport.scrollTop+viewport.clientHeight/2)/old;
scale=Math.max(.2,Math.min(2.5,scaleTo));
const {width,height}=physical();
frame.style.width=(width*scale)+'px';frame.style.height=(height*scale)+'px';
paper.style.transform='scale('+scale+')';
viewport.dataset.zoom=Math.round(scale*100)+'%';
if(keepCenter){
viewport.scrollLeft=Math.max(0,oldCenterX*scale-viewport.clientWidth/2);
viewport.scrollTop=Math.max(0,oldCenterY*scale-viewport.clientHeight/2);
}
}
function fitView(which='width'){
fit=which;const {width,height}=physical();
const availableW=Math.max(260,viewport.clientWidth-28),availableH=Math.max(200,viewport.clientHeight-30);
const factor=which==='page'?Math.min(availableW/width,availableH/height):availableW/width;
resize(Math.min(1.5,factor));
viewport.scrollLeft=0;viewport.scrollTop=0;
}
function render(data){
set('pnReportName',data.name);set('pnReportRef',(data.isRePD?'REPD REF ':'REFERENCE ')+data.reference);
set('pnReportOperator',data.operator);set('pnReportDeveloper',data.developer);
set('pnReportCapacity',data.capacity+' '+data.capacityUnit);
set('pnReportLocation',data.location);
const map=$('pnReportMap');map.hidden=!data.mapUrl;map.removeAttribute('href');
if(data.mapUrl)map.href=data.mapUrl;
$('pnReportNoMap').hidden=!!data.mapUrl;
const legal = $('pnReportLegal');
legal.hidden = !data.legalEvidenceUrl;
if (data.legalEvidenceUrl) legal.href = data.legalEvidenceUrl;
else legal.removeAttribute('href');
for(const [id,value] of [
['pnReportStatus',data.status],['pnReportSubmitted',data.submitted],
['pnReportOperational',data.operational],['pnReportUpdated',data.updated],
['pnReportConsent',data.consent],['pnReportAuthority',data.planningAuthority],
['pnReportPlanningRef',data.planningReference],['pnReportSource',data.dataSource]
])set(id,value);
}
function annotate(){
for(const row of tbody.querySelectorAll('tr[id^="repd-"]')){
const actions=row.querySelector('td:last-child .project-actions');
if(!actions||actions.querySelector('[data-pn-a4]'))continue;
const b=document.createElement('button');
b.type='button';b.className='pn-report-launch';b.dataset.pnA4=row.id.slice(5);
b.textContent='A4';
b.title='Open A4 project report (full details and clickable map)';
b.setAttribute('aria-label','Open A4 report for '+(row.querySelector('.phone-project-label')?.textContent||row.id.slice(5)));
actions.append(b);
}
}
async function openReport(trigger){
const row=trigger.closest('tr[id^="repd-"]');
if(!row)return;
const ref=row.id.slice(5);
const project=(state.all||[]).find(x=>String(x.repd_ref)===ref)||
(state.interconnectors||[]).find(x=>String(x.repd_ref)===ref);
if(!project)return;
// A4 HTML/PDF must use this project's native VICINITY MAP action,
// including when expanded-view styling hides its original action cell.
const validProjectMap=anchor=>{
try{const u=new URL(anchor.href);
return u.origin==='https://ventusltd.github.io'
&& u.pathname==='/gridatlas/atlas/'
&& u.searchParams.get('repd_ref')===ref;
}catch{return false}
};
const links=[...row.querySelectorAll('td:last-child a.atlaslink[href]')];
const originalMap=links.find(a=>a.classList.contains('pn-journey-link')&&validProjectMap(a))
|| links.find(validProjectMap);
const href=originalMap?.href||'';
model=reportData(project,href,state.canonicalModel?.metadata||{});
if(!model)return;
render(model);
restore={bodyOverflow:document.body.style.overflow,
mainScroll:document.querySelector('main')?.scrollTop||0,
tableScroll:table.scrollTop,tableX:table.scrollLeft,y:window.scrollY};
lastTrigger=trigger;
document.body.classList.add('pn-report-open');
document.body.style.overflow='hidden';
root.hidden=false;
orientation='portrait';paper.classList.remove('pn-report-landscape');
button('rotate').textContent='Landscape';
fitView('width');
button('close').focus({preventScroll:true});
}
function closeReport(){
if(root.hidden)return;
root.hidden=true;document.body.classList.remove('pn-report-open');
if(restore){
document.body.style.overflow=restore.bodyOverflow;
const snapshot=restore;restore=null;
requestAnimationFrame(()=>{
table.scrollLeft=snapshot.tableX;table.scrollTop=snapshot.tableScroll;
const main=document.querySelector('main');
if(main)main.scrollTop=snapshot.mainScroll;
window.scrollTo(0,snapshot.y);
});
}
lastTrigger?.focus({preventScroll:true});
model=null;gesture=null;
}
async function pdfDownload(){
if(!model)return;
const bytes=buildA4Pdf(model,{landscape:orientation==='landscape'});
const blob=new Blob([bytes],{type:'application/pdf'});
const url=URL.createObjectURL(blob);
const a=document.createElement('a');a.href=url;
a.download='REPD-'+model.reference+'-A4-report.pdf';
document.body.append(a);a.click();a.remove();
setTimeout(()=>URL.revokeObjectURL(url),3000);
}
function action(name){
if(name==='close'){closeReport();return;}
if(root.hidden)return;
if(name==='fitwidth'){fitView('width');return;}
if(name==='fitpage'){fitView('page');return;}
if(name==='minus'||name==='plus'){
fit='custom';resize(scale*(name==='plus'?1.2:1/1.2),true);return;
}
if(name==='rotate'){
orientation=orientation==='portrait'?'landscape':'portrait';
paper.classList.toggle('pn-report-landscape',orientation==='landscape');
button('rotate').textContent=orientation==='portrait'?'Landscape':'Portrait';
fitView('width');return;
}
if(name==='pdf'){pdfDownload();return;}
if(name==='print'){window.print();return;}
}
tbody.addEventListener('click',event=>{
const b=event.target.closest('[data-pn-a4]');
if(!b)return;
event.preventDefault();event.stopPropagation();
openReport(b);
});
root.addEventListener('click',event=>{
const b=event.target.closest('[data-report-action]');
if(b)action(b.dataset.reportAction);
});
window.addEventListener('pipeline-projects-rendered',annotate);
document.addEventListener('keydown',event=>{
if(event.key==='Escape'&&!root.hidden){
event.stopImmediatePropagation();event.preventDefault();closeReport();
}
},true);
window.addEventListener('resize',()=>{
if(!root.hidden&&fit!=='custom')fitView(fit);
},{passive:true});
const dist=(a,b)=>Math.hypot(a.clientX-b.clientX,a.clientY-b.clientY);
viewport.addEventListener('touchstart',event=>{
if(event.touches.length===2){
gesture={distance:dist(event.touches[0],event.touches[1]),scale};
}
},{passive:true});
viewport.addEventListener('touchmove',event=>{
if(event.touches.length!==2||!gesture)return;
if(event.cancelable)event.preventDefault();
fit='custom';
const factor=dist(event.touches[0],event.touches[1])/Math.max(1,gesture.distance);
resize(gesture.scale*factor,true);
},{passive:false});
viewport.addEventListener('touchend',event=>{
if(event.touches.length<2)gesture=null;
},{passive:true});
annotate();
})();Report Model
A JavaScript module in the UK renewables pipeline folder of GlobalGrid2050 that works with the Renewable Energy Planning Database (REPD) register and interconnectors. Served with the page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
transformglobalgrid2050 / uk_renewables_pipeline/202611280922/report-model.mjs · lines 1–40 of 40 · version 2026-11-28 09:22 · Entry point
- What it does
- It calculates the REPD register and interconnectors. Defines s, date, reportData.
- 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, interconnectors.
- Downstream impact
- Used directly by 5 files: Report A4 (globalgrid2050); V972 Vicinity A4 PDF (globalgrid2050); Report A4 (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); A4 Legal Model (globalgrid2050); and 1 more. Reached from 5 other entry points, including GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); GlobalGrid2050 Pn V963 A4 Report Workflow (globalgrid2050). It is itself an entry point, published at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- What it achieves
- It is built from the date step (`date`) and the report data helper (`reportData`). V9.63 A4 report: official REPD identity and existing source location.
- Why it matters
- Imported by Report A4. Run by GlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow. Checked by 3 tests, including Report A4.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922 · JavaScript module
- Uses
- Link (import)
- Used by
- imported by Report A4 (import), imported by V972 Vicinity A4 PDF (import), imported by Report A4 (import), imported by A4 Legal Model (import), run by GlobalGrid2050 Pn V972 Vicinity A4 PDF Workflow (workflow run)
- Produces
- reportData
- Defines here
- s, date, reportData
- 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/report-model.mjs:1-40 · blob e9387a7c83c17ba34b9b967aad00a3226dd65135 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
// V9.63 A4 report: official REPD identity and existing source location. No land area.
import {legalEvidenceURL} from '../../automation/pipeline_legal_evidence/link.mjs';
const s=v=>typeof v==='string'?v.trim():'';
const date=v=>s(v)||'Not reported';
export function reportData(project,mapHref,metadata={}){
if(!project||typeof project.repd_ref!=='string')return null;
let mapUrl='';
try{
const u=new URL(mapHref);
// A4 and its PDF cannot jump to another REPD Ref or foreign host.
if(u.origin==='https://ventusltd.github.io'
&& u.pathname==='/gridatlas/atlas/'
&& u.searchParams.get('repd_ref')===project.repd_ref)mapUrl=u.href;
}catch{}
const isRePD=project.technology!=='interconnector';
const location=[project.county,project.region,project.country].map(s).filter(Boolean).join(' · ')||'Location not reported';
return Object.freeze({
reference:String(project.repd_ref),
name:s(project.name)||'Project name not reported',
operator:s(project.operator)||'Operator not reported',
developer:'Developer not separately reported',
capacity:Number.isFinite(project.capacity_mw)?project.capacity_mw.toLocaleString('en-GB',{maximumFractionDigits:2}):'Not reported',
capacityUnit:project.technology==='solar'?'MWp':'MW',
county:s(project.county)||'Not reported',
region:s(project.region)||'Not reported',
country:s(project.country)||'Not reported',
location,
status:s(project.status)||'Not reported',
submitted:date(project.planning_application_submitted),
operational:date(project.operational),
updated:date(project.repd_record_updated),
consent:date(project.planning_permission_granted),
planningAuthority:s(project.planning_authority)||'Not reported',
planningReference:s(project.planning_application_reference)||'Not reported',
dataSource:isRePD?(s(metadata.source_dataset)||'DESNZ Renewable Energy Planning Database'):'Separate interconnector dataset - not REPD',
legalEvidenceUrl: isRePD ? legalEvidenceURL(project) : null,
mapUrl,isRePD
});
}Report PDF
A JavaScript module in the UK renewables pipeline folder of GlobalGrid2050 that works with the Renewable Energy Planning Database (REPD) register. Served with the page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
transformglobalgrid2050 / uk_renewables_pipeline/202611280922/report-pdf.mjs · lines 1–94 of 94 · version 2026-11-28 09:22
- What it does
- It calculates the REPD register. Defines ascii, literal, splitText, buildA4Pdf, add.
- 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 4 files: Report A4 (globalgrid2050); V972 Vicinity A4 PDF (globalgrid2050); Report A4 (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); A4 Legal Model (globalgrid2050). Reached from 6 other entry points, including GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 Pipeline Legal Evidence Workflow (globalgrid2050); GlobalGrid2050 Pn V963 A4 Report Workflow (globalgrid2050).
- What it achieves
- It splits text (`splitText`) and builds a4 PDF (`buildA4Pdf`). One-page A4 project report with clickable source links.
- Why it matters
- Imported by Report A4. Checked by 3 tests, including Report A4.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611280922 · JavaScript module
- Uses
- none found
- Used by
- imported by Report A4 (import), imported by V972 Vicinity A4 PDF (import), imported by Report A4 (import), imported by A4 Legal Model (import)
- Produces
- buildA4Pdf
- Defines here
- ascii, literal, splitText, buildA4Pdf, add
- 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/report-pdf.mjs:1-94 · blob 7b1dcf90c1d094047f9f02a7da21dda480041a2d · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
// One-page A4 project report with clickable source links.
// No third-party PDF dependency. Text is normalised to basic PDF Helvetica WinAnsi-safe ASCII.
const ascii=value=>String(value??'').normalize('NFKD').replace(/[\u0300-\u036f]/g,'')
.replace(/[^\x20-\x7E]/g,'?');
const literal=value=>ascii(value).replace(/\\/g,'\\\\').replace(/\(/g,'\\(').replace(/\)/g,'\\)');
const splitText=(value,max=70)=>{
const words=ascii(value).split(/\s+/),rows=[];let line='';
for(const word of words){
if(!word)continue;
if(line.length && line.length+word.length+1>max){rows.push(line);line='';}
if(word.length>max){
if(line){rows.push(line);line='';}
for(let start=0;start<word.length;start+=max)rows.push(word.slice(start,start+max));
}else line+=(line?' ':'')+word;
}
if(line)rows.push(line);
return rows.length?rows:[''];
};
export function buildA4Pdf(details,{landscape=false}={}){
if(!details || !details.name)throw new TypeError('Missing project report data');
const width=landscape?841.89:595.28, height=landscape?595.28:841.89;
const margin=48,maxChars=landscape?115:75;
const ops=[],text=(line,y,fontSize=11,x=margin)=>{
ops.push('BT /F1 '+fontSize+' Tf '+x+' '+y+' Td ('+literal(line)+') Tj ET');
};
let y=height-58;
text('GLOBALGRID2050 / REPD PROJECT REPORT',y,12);y-=29;
for(const nameLine of splitText(details.name,landscape?70:43)){
text(nameLine,y,18);y-=24;
}
y-=10;
const fields=[
['OPERATOR (REPD)',details.operator],
['DEVELOPER',details.developer],
['LOCATION',details.location],
['CAPACITY',details.capacity+' '+details.capacityUnit],
['OFFICIAL STATUS',details.status],
['APPLICATION SUBMITTED',details.submitted],
['OPERATIONAL DATE',details.operational],
['REPD RECORD UPDATED',details.updated],
['PLANNING CONSENT',details.consent],
['PLANNING AUTHORITY',details.planningAuthority],
['PLANNING REFERENCE',details.planningReference],
['REPD REFERENCE',details.reference],
['DATA SOURCE',details.dataSource]
];
for(const [label,value] of fields){
if(y<110)break;
text(label,y,9);y-=15;
for(const row of splitText(value,maxChars)){if(y<100)break;text(row,y,11,margin+12);y-=15;}
y-=7;
}
y=Math.max(55,Math.min(y-2,95));
const linkRows = [{
label: details.mapUrl ? 'OPEN PROJECT MAP (clickable link)' : 'MAP NOT AVAILABLE',
url: details.mapUrl, y
}];
if (details.legalEvidenceUrl)
linkRows.push({label: 'Legal evidence', url: details.legalEvidenceUrl, y: y - 26});
for (const row of linkRows) text(row.label, row.y, 13);
const stream=ops.join('\n')+'\n';
const objects=[];
const add=content=>{objects.push(content);return objects.length;};
const font=add('<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>');
const contents=add('<< /Length '+stream.length+' >>\nstream\n'+stream+'endstream');
const annotations=[];
for (const {label, url, y: linkY} of linkRows) {
if (!url) continue;
if (!/^https:\/\//i.test(url)) throw Error('Unsafe PDF link URL');
const rect = [margin-3, linkY-4, margin+Math.min(320,label.length*8), linkY+16];
annotations.push(add('<< /Type /Annot /Subtype /Link /Rect ['+rect.join(' ')+
'] /Border [0 0 0] /A << /S /URI /URI ('+literal(url)+') >> >>'));
}
const page=add('');
const pages=add('');
const catalog=add('');
objects[page-1]='<< /Type /Page /Parent '+pages+' 0 R /MediaBox [0 0 '+width+' '+height+
'] /Resources << /Font << /F1 '+font+' 0 R >> >> /Contents '+contents+' 0 R'+
(annotations.length?' /Annots ['+annotations.map(n=>n+' 0 R').join(' ')+']':'')+' >>';
objects[pages-1]='<< /Type /Pages /Kids ['+page+' 0 R] /Count 1 >>';
objects[catalog-1]='<< /Type /Catalog /Pages '+pages+' 0 R >>';
const enc=new TextEncoder(),parts=['%PDF-1.4\n%GG2050\n'],positions=[0];
let offset=enc.encode(parts[0]).length;
for(let i=0;i<objects.length;i++){
const block=(i+1)+' 0 obj\n'+objects[i]+'\nendobj\n';
positions.push(offset);parts.push(block);offset+=enc.encode(block).length;
}
const xref=offset;
parts.push('xref\n0 '+(objects.length+1)+'\n0000000000 65535 f \n');
for(let i=1;i<positions.length;i++)parts.push(String(positions[i]).padStart(10,'0')+' 00000 n \n');
parts.push('trailer\n<< /Size '+(objects.length+1)+' /Root '+catalog+
' 0 R >>\nstartxref\n'+xref+'\n%%EOF\n');
return enc.encode(parts.join(''));
}