In this section
- Renewable Energy Planning Database (REPD) Density energy-data · globalgrid2050 / uk_renewables_pipeline/202611220100/styles/repd-density.css lines 1–124
- Renewable Energy Planning Database (REPD) Density test · globalgrid2050 / uk_renewables_pipeline/202611220100/tests/repd-density.mjs lines 1–65
- Renewable Energy Planning Database (REPD) Scan energy-data · globalgrid2050 / uk_renewables_pipeline/202611220125/styles/repd-scan.css lines 1–169
- Renewable Energy Planning Database (REPD) Scan test · globalgrid2050 / uk_renewables_pipeline/202611220125/tests/repd-scan.mjs lines 1–85
- Report A4 test · globalgrid2050 / uk_renewables_pipeline/202611220220/tests/report-a4.mjs lines 1–86
Renewable Energy Planning Database (REPD) Density
A style sheet in the styles folder of GlobalGrid2050 covering the REPD register.
energy-dataglobalgrid2050 / uk_renewables_pipeline/202611220100/styles/repd-density.css · lines 1–124 of 124 · version 2026-11-22 01:00 · 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
- All underlying records, column order, links and sort controls are retained.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611220100/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/202611220100/styles/repd-density.css:1-124 · blob 6ede94d9ecd6297f3c6dbec3f156f7f7eff6c9f0 · 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.61: readable compact REPD grid. All underlying records, column order, links and sort controls are retained. */
#repdProjectWidth{
width:126px!important;min-width:126px!important;max-width:126px!important;
min-height:34px!important;height:34px!important;padding:3px 6px!important;
background:#05090c;color:#74eef1;border:1px solid #415360;
font:11px/1.2 'Courier New',monospace!important;text-transform:none;
}
#repdProjectWidth:focus-visible{outline:2px solid #00ffff;outline-offset:2px}
.column-scroll-tools:has(#repdProjectWidth){gap:6px;flex-wrap:nowrap}
.column-scroll-tools:has(#repdProjectWidth)>label{flex:0 0 auto}
.column-scroll-tools:has(#repdProjectWidth)>input[type=range]{flex:1 1 auto;min-width:48px}
@media(min-width:1025px){#repdProjectWidth{display:none}}
@media(max-width:1024px){
#repdPanel #repdScroll{
--first-col:clamp(128px,35vw,164px)!important;
--mw-col:78px!important;
}
#repdPanel #repdScroll.pn-project-mini{--first-col:54px!important}
#repdPanel #repdScroll.pn-project-full{--first-col:clamp(225px,62vw,390px)!important}
#repdPanel #repdScroll table{
width:calc(var(--first-col) + 1234px)!important;
min-width:100%!important;table-layout:fixed!important;
}
#repdPanel #repdScroll th[data-column-heading="capacity"]{width:78px!important}
#repdPanel #repdScroll th[data-column-heading="county"]{width:116px!important}
#repdPanel #repdScroll th[data-column-heading="operator"]{width:138px!important}
#repdPanel #repdScroll th[data-column-heading="technology"]{width:88px!important}
#repdPanel #repdScroll th[data-column-heading="status"]{width:126px!important}
#repdPanel #repdScroll th[data-column-heading="repd"]{width:84px!important}
#repdPanel #repdScroll th[data-column-heading="globalgrid"]{width:110px!important}
#repdPanel #repdScroll #repdUpdatedHeader{width:108px!important}
#repdPanel #repdScroll #planningSubmittedHeader,
#repdPanel #repdScroll #operationalHeader{width:108px!important}
#repdPanel #repdScroll th:nth-last-child(2){width:98px!important}
#repdPanel #repdScroll th:last-child{width:72px!important}
#repdPanel #repdScroll thead th{
height:38px;padding:3px 4px!important;font-size:10px;line-height:1.1;
vertical-align:middle;
}
#repdPanel #repdScroll .column-sort{
min-height:28px!important;font-size:10px!important;line-height:1.1!important;
padding:2px 0!important;
}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td{
padding:3px 4px!important;height:40px;line-height:1.1!important;
vertical-align:middle;
}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td:not(.site){
white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;
}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td.site{
overflow:visible!important;padding:0!important;
}
#repdPanel #repdScroll #tbody .project-record>summary{
display:flex!important;flex-direction:column!important;
justify-content:center;align-items:stretch;gap:1px!important;
box-sizing:border-box;height:40px!important;min-height:40px!important;
padding:3px 5px!important;white-space:nowrap!important;overflow:hidden;
}
#repdPanel #repdScroll #tbody .phone-project-label,
#repdPanel #repdScroll #tbody .phone-project-status{
display:block!important;flex:0 0 auto;max-width:100%;min-width:0;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;
line-height:1.15!important;
}
#repdPanel #repdScroll #tbody .phone-project-label{font-size:11px!important}
#repdPanel #repdScroll #tbody .phone-project-status{font-size:9px!important}
#repdPanel #repdScroll.pn-project-mini #tbody .project-record>summary{
align-items:center!important;padding-inline:2px!important;
}
#repdPanel #repdScroll.pn-project-mini #tbody .phone-project-label{
font-size:0!important;text-align:center;
}
#repdPanel #repdScroll.pn-project-mini #tbody .phone-project-label::after{
content:attr(data-mini);font-size:12px!important;font-weight:700;color:#e5f3f4;
}
#repdPanel #repdScroll.pn-project-mini #tbody .phone-project-status{display:none!important}
#repdPanel #repdScroll #tbody .badge{font-size:9px;padding:2px 3px}
#repdPanel #repdScroll #tbody .project-actions .action-link{
min-width:44px;min-height:36px!important;height:36px!important;
}
#repdPanel #repdScroll #tbody .project-record[open] .record-grid{
white-space:normal;overflow-wrap:anywhere;
}
}
@media(max-width:768px){
/* The standalone Status column is hidden here because official status remains inside the project summary. */
#repdPanel #repdScroll table{width:calc(var(--first-col) + 1108px)!important}
}
@media(orientation:landscape) and (max-width:768px){
/* V9.60 reveals the real Status column in the landscape dashboard. Account for its width. */
#officialRegister.pn-repd-wide #repdPanel #repdScroll table{
width:calc(var(--first-col) + 1234px)!important;
}
}
@media(orientation:landscape) and (max-width:1024px) and (max-height:500px){
/* Keep all three actual gauges, but use less of the scarce vertical viewport. */
#officialRegister.pn-repd-wide #pipelineHeading{margin:1px 0 2px!important;font-size:11px}
#officialRegister.pn-repd-wide .pipeline-tabs{margin-bottom:2px!important;padding-bottom:2px!important}
#officialRegister.pn-repd-wide #repdPanel>.hud-gauges{gap:4px!important;margin:2px auto 4px!important}
#officialRegister.pn-repd-wide #repdPanel>.hud-gauges>.card{padding:2px 3px!important}
#officialRegister.pn-repd-wide #repdPanel>.hud-gauges h3{
font-size:8px!important;min-height:0!important;line-height:1.1!important;margin:0!important;
}
#officialRegister.pn-repd-wide #repdPanel>.hud-gauges .chart{height:40px!important}
#officialRegister.pn-repd-wide #repdPanel>.hud-gauges .value{font-size:14px!important;bottom:0!important}
#officialRegister.pn-repd-wide #repdPanel .compact-mw-filter{margin:2px 0 3px!important}
#officialRegister.pn-repd-wide #repdPanel .mw-bound,
#officialRegister.pn-repd-wide #repdPanel #applyMW{height:30px!important;min-height:30px!important}
#officialRegister.pn-repd-wide #repdPanel .mw-bound input{height:28px!important}
#officialRegister.pn-repd-wide #repdPanel .compact-sort select{min-height:32px!important;padding:3px 6px!important}
#officialRegister.pn-repd-wide #repdPanel #repdScroll{max-height:74dvh!important}
}
/* At tablet landscape widths the inherited desktop Details label and duplicate name
would otherwise turn one row into several lines. */
@media(min-width:769px) and (max-width:1024px){
#repdPanel #repdScroll #tbody .desktop-details-label,
#repdPanel #repdScroll #tbody .compact-project-name,
#repdPanel #repdScroll #tbody .phone-project-status{display:none!important}
}
@media(orientation:landscape) and (max-width:768px){
#officialRegister.pn-repd-wide #repdPanel #repdScroll #tbody .phone-project-status{display:none!important}
}Renewable Energy Planning Database (REPD) Density
A JavaScript module in the tests folder of GlobalGrid2050 that tests the REPD register.
testglobalgrid2050 / uk_renewables_pipeline/202611220100/tests/repd-density.mjs · lines 1–65 of 65 · version 2026-11-22 01:00 · Entry point · pattern snapshot (shared by 43 files)
- What it does
- It tests the REPD register. Defines snapshot. Uses libraries node:assert/strict, playwright, node:fs/promises. 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.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Pn V961 Renewable Energy Planning Database (REPD) Density Workflow (globalgrid2050).
- What it achieves
- Defines `snapshot`.
- Why it matters
- Run by GlobalGrid2050 Pn V961 Renewable Energy Planning Database (REPD) Density Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611220100/tests · JavaScript module
- Uses
- node:assert/strict, playwright, node:fs/promises
- Used by
- run by GlobalGrid2050 Pn V961 Renewable Energy Planning Database (REPD) Density Workflow (workflow run)
- Produces
- snapshot
- Defines here
- snapshot
- 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/202611220100/tests/repd-density.mjs:1-65 · blob 0dc53a4c45340b41ce492cd0097f22fdf4ecba67 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
// V9.61: regression of compact/minimised REPD columns and short landscape rows.
import assert from 'node:assert/strict';
import { chromium, webkit } from 'playwright';
import { mkdir } from 'node:fs/promises';
const ORIGIN='http://127.0.0.1:8765/uk_renewables_pipeline/202611220100/';
const OUT='/tmp/pn-v961-density';
await mkdir(OUT,{recursive:true});
for(const [engine,driver] of [['chromium',chromium],['webkit',webkit]]){
const browser=await driver.launch({headless:true});
try {
for(const view of [{name:'portrait',w:393,h:852},{name:'landscape',w:852,h:393}]){
const page=await browser.newPage({viewport:{width:view.w,height:view.h},reducedMotion:'reduce'});
try {
await page.route('https://raw.githubusercontent.com/**',route=>route.abort());
await page.goto(ORIGIN,{waitUntil:'domcontentloaded',timeout:60000});
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length>0,null,{timeout:90000});
assert.match(await page.title(),/V9\.61/);
const select=page.locator('#repdProjectWidth');
assert.equal(await select.inputValue(),'compact');
const snapshot=async()=>page.evaluate(()=>{
const wrap=document.getElementById('repdScroll');
const first=wrap.querySelector('th[data-column-heading="name"]');
const row=document.querySelector('#tbody tr[id^="repd-"]');
const box=wrap.getBoundingClientRect();
const visible=[...wrap.querySelectorAll('thead th')].filter(e=>{
const r=e.getBoundingClientRect();
return getComputedStyle(e).display!=='none'&&r.left<box.right&&r.right>box.left;
});
return {first:first.getBoundingClientRect().width,rowHeight:row.getBoundingClientRect().height,
count:document.querySelectorAll('#tbody tr[id^="repd-"]').length,capacity:row.querySelector('td.mw').textContent,
visible:visible.length,scroll:wrap.scrollWidth>wrap.clientWidth,
frozen:getComputedStyle(row.querySelector('td.site')).position==='sticky',
gauges:document.querySelectorAll('#repdPanel .hud-gauges canvas').length};
});
const compact=await snapshot();
assert.ok(compact.first<=175&&compact.first>=120,JSON.stringify(compact));
assert.ok(compact.rowHeight<=52,JSON.stringify(compact));
assert.ok(compact.scroll&&compact.frozen&&compact.gauges===3,JSON.stringify(compact));
await select.selectOption('mini');
const mini=await snapshot();
assert.ok(mini.first>=50&&mini.first<=60,JSON.stringify(mini));
assert.equal(mini.count,compact.count);
assert.equal(mini.capacity,compact.capacity);
if(view.name==='portrait')assert.ok(mini.visible>=4,JSON.stringify(mini));
await select.selectOption('full');
const full=await snapshot();
assert.ok(full.first>=220,JSON.stringify(full));
await select.selectOption('compact');
if(view.name==='landscape'){
assert.ok(compact.visible>=6,JSON.stringify(compact));
await page.locator('#pnRepdWideToggle').click();
await page.waitForFunction(()=>document.querySelector('#officialRegister').classList.contains('pn-repd-wide'));
const wide=await snapshot();
assert.ok(wide.visible>=6&&wide.count===compact.count,JSON.stringify(wide));
assert.equal(await page.locator('#repdPanel .hud-gauges canvas').count(),3);
await page.screenshot({path:OUT+'/'+engine+'-'+view.name+'-wide.png'});
await page.locator('#pnRepdWideToggle').click();
}else{
await page.screenshot({path:OUT+'/'+engine+'-'+view.name+'-mini.png'});
}
console.log('PASS',engine,view.name,JSON.stringify({compact,mini,fullWidth:full.first}));
} finally {await page.close();}
}
} finally {await browser.close();}
}Renewable Energy Planning Database (REPD) Scan
A style sheet in the styles folder of GlobalGrid2050 covering the REPD register.
energy-dataglobalgrid2050 / uk_renewables_pipeline/202611220125/styles/repd-scan.css · lines 1–169 of 169 · version 2026-11-22 01:25 · 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.62 prospect scan: facts-first Project / MW / MAP, with optional County and Operator in wide view.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611220125/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/202611220125/styles/repd-scan.css:1-169 · blob 2a46bf21ed4c6bf38b66b7dddd2250d465c5645f · 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.62 prospect scan: facts-first Project / MW / MAP, with optional County and Operator in wide view.
No signal, AI lead scoring or state inference. Official data/model unchanged. */
#repdPanel .pn-scan-toolbar{
display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:4px 0 6px;
color:#a8b6c4;font:11px/1.2 'Courier New',monospace;
}
#repdPanel .pn-scan-toolbar select,
#repdPanel .pn-scan-toolbar button,
#repdPanel .pn-scan-dates>summary{
box-sizing:border-box;min-height:34px;height:34px;min-width:0;
padding:5px 7px;border:1px solid #3c5058;border-radius:3px;
background:#05090c;color:#e4f2f4;font:11px/1.3 'Courier New',monospace;
text-transform:none;
}
#repdPanel .pn-scan-status{display:flex;align-items:center;gap:4px;flex:1 1 130px;min-width:0}
#repdPanel #pnScanStatus{width:100%;max-width:164px}
#repdPanel .pn-scan-dates{position:relative;flex:0 0 auto}
#repdPanel .pn-scan-dates>summary{list-style:none;display:flex;gap:4px;align-items:center;cursor:pointer}
#repdPanel .pn-scan-dates>summary::-webkit-details-marker{display:none}
#repdPanel .pn-scan-dates>summary::after{content:"▾";color:#72e6ec}
#repdPanel .pn-scan-dates[open]>summary::after{content:"▴"}
#repdPanel #pnScanDateCount:empty{display:none}
#repdPanel #pnScanDateCount{font-size:10px;color:#65eec7}
#repdPanel .pn-scan-date-fields{
position:absolute;z-index:22;right:0;top:38px;
display:grid;gap:8px;width:min(288px,calc(100vw - 28px));
padding:10px;border:1px solid #405962;background:#070b0f;
box-shadow:0 8px 22px #000b;
}
#repdPanel .pn-scan-date-fields>label{display:grid;gap:4px;font-size:10px;color:#a8b6c4}
#repdPanel .pn-scan-date-fields select{width:100%;max-width:100%}
#repdPanel #pnScanModeToggle{
flex:0 0 auto;cursor:pointer;padding-inline:9px;color:#71e6ed;
}
#repdPanel .pn-scan-toolbar :is(button,summary,select):focus-visible{
outline:2px solid #72eef7;outline-offset:2px;
}
/* By default no sideways scrolling is needed to view the three key fields. */
#repdPanel:has(#repdScroll.pn-scan-mode) .column-scroll-tools{display:none!important}
#repdPanel #repdScroll.pn-scan-mode{overflow-x:hidden!important;overflow-y:auto!important;--first-col:auto!important;--mw-col:80px!important}
#repdPanel #repdScroll.pn-scan-mode table{
display:table!important;table-layout:fixed!important;
width:100%!important;min-width:0!important;max-width:100%!important;
}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(n+3):not(:last-child),
#repdPanel #repdScroll.pn-scan-mode tbody td:nth-child(n+3):not(:last-child){
display:none!important;
}
#repdPanel #repdScroll.pn-scan-mode thead th:first-child{
width:calc(100% - 152px)!important;min-width:0!important;
}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(2){width:82px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:last-child{width:70px!important}
#repdPanel #repdScroll.pn-scan-mode thead th{
height:34px!important;padding:2px 5px!important;
font-size:10px!important;line-height:1!important;white-space:nowrap!important;
}
#repdPanel #repdScroll.pn-scan-mode .project-head .phone-sort{display:none!important}
#repdPanel #repdScroll.pn-scan-mode tbody tr>td{
height:36px!important;max-height:36px!important;
padding:2px 5px!important;line-height:1.1!important;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody tr>td.site{
padding:0!important;overflow:visible!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody .desktop-details-label,
#repdPanel #repdScroll.pn-scan-mode tbody .compact-project-name,
#repdPanel #repdScroll.pn-scan-mode tbody .phone-project-status{
display:none!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody .project-record>summary{
display:flex!important;flex-direction:column!important;
align-items:stretch;justify-content:center!important;
min-height:36px!important;height:36px!important;max-height:36px!important;
padding:3px 7px!important;overflow:hidden!important;white-space:nowrap!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody .phone-project-label{
display:block!important;max-width:100%;min-width:0;
overflow:hidden!important;text-overflow:ellipsis!important;
white-space:nowrap!important;font-size:12px!important;line-height:1.3!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody td.mw{
color:#38f58c!important;text-align:right!important;font-size:12px!important;
font-variant-numeric:tabular-nums;
}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(2) .column-sort{text-align:right!important}
#repdPanel #repdScroll.pn-scan-mode tbody tr>td:last-child{
display:table-cell!important;text-align:center!important;padding:2px!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody tr>td:last-child .project-actions{
min-height:32px!important;justify-content:center!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody tr>td:last-child :is(.action-link,.action-disabled,.pn-journey-unavailable){
min-height:32px!important;height:32px!important;min-width:54px!important;
max-width:68px!important;padding:4px 3px!important;font-size:10px!important;
}
/* The full record remains reachable through the existing project-name detail control. */
#repdPanel #repdScroll.pn-scan-mode tbody .project-record[open] .record-grid{
position:absolute;z-index:18;left:2px;top:100%;
display:grid!important;width:min(430px,calc(100vw - 26px));
max-height:55dvh;overflow-y:auto;padding:10px;
border:1px solid #405962;background:#080e13;
box-shadow:0 8px 22px #000c;white-space:normal!important;
grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#repdPanel #repdScroll.pn-scan-mode tbody tr>td.site:has(.project-record[open]){position:sticky!important;z-index:16!important}
#repdPanel #repdScroll.pn-scan-mode tbody .project-record[open]{position:relative}
@media (orientation:landscape) and (min-width:600px){
#officialRegister #repdPanel #repdScroll.pn-scan-mode thead th:is(:nth-child(3),:nth-child(4)),
#officialRegister #repdPanel #repdScroll.pn-scan-mode tbody td:is(:nth-child(3),:nth-child(4)){
display:table-cell!important;
}
#repdPanel #repdScroll.pn-scan-mode thead th:first-child{
width:calc(100% - 405px)!important;
}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(2){width:80px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(3){width:125px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(4){width:130px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:last-child{width:70px!important}
}
@media(max-width:359px){
#repdPanel #repdScroll.pn-scan-mode thead th:first-child{width:calc(100% - 136px)!important}
#repdPanel #repdScroll.pn-scan-mode thead th:nth-child(2){width:72px!important}
#repdPanel #repdScroll.pn-scan-mode thead th:last-child{width:64px!important}
#repdPanel .pn-scan-toolbar select,
#repdPanel .pn-scan-toolbar button,
#repdPanel .pn-scan-dates>summary{font-size:10px!important}
}
/* V9.62 WebKit parity: override inherited #tbody-based dense row rules explicitly.
A lesser-specificity override allowed WebKit rows to expand to ~55px. */
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td{
box-sizing:border-box!important;height:36px!important;
padding:2px 5px!important;vertical-align:middle!important;
border-bottom:1px solid #29323b!important;
}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td.site{
padding:0!important;height:36px!important;
}
#repdPanel #repdScroll.pn-scan-mode #tbody .project-record>summary{
box-sizing:border-box!important;height:36px!important;
min-height:36px!important;max-height:36px!important;
padding:2px 7px!important;line-height:1.1!important;
}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:last-child .project-actions{
display:flex!important;align-items:center!important;justify-content:center!important;
gap:2px!important;min-height:32px!important;height:32px!important;
}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:last-child :is(.action-link,.action-disabled,.pn-journey-unavailable){
box-sizing:border-box!important;min-height:32px!important;height:32px!important;
line-height:1.05!important;
}
/* Correct a cascade conflict with legacy #tbody display:table-cell!important.
Hidden source columns must truly be removed from the scan layout, not just its headings. */
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:nth-child(n+3):not(:last-child){
display:none!important;width:0!important;min-width:0!important;
height:0!important;max-height:0!important;padding:0!important;border:0!important;
}
#repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:last-child{
display:table-cell!important;
}
@media(orientation:landscape) and (min-width:600px){
#officialRegister #repdPanel #repdScroll.pn-scan-mode #tbody tr[id^="repd-"]>td:is(:nth-child(3),:nth-child(4)){
display:table-cell!important;
height:36px!important;max-height:36px!important;padding:2px 5px!important;
}
}Renewable Energy Planning Database (REPD) Scan
A JavaScript module in the tests folder of GlobalGrid2050 that tests the REPD register.
testglobalgrid2050 / uk_renewables_pipeline/202611220125/tests/repd-scan.mjs · lines 1–85 of 85 · version 2026-11-22 01:25 · Entry point · pattern sample (shared by 18 files)
- What it does
- It tests the REPD register. Defines sample. Uses libraries node:assert/strict, playwright, node:fs/promises. 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.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Pn V962 Renewable Energy Planning Database (REPD) Scan Workflow (globalgrid2050).
- What it achieves
- Defines `sample`.
- Why it matters
- Run by GlobalGrid2050 Pn V962 Renewable Energy Planning Database (REPD) Scan Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611220125/tests · JavaScript module
- Uses
- node:assert/strict, playwright, node:fs/promises
- Used by
- run by GlobalGrid2050 Pn V962 Renewable Energy Planning Database (REPD) Scan Workflow (workflow run)
- Produces
- sample
- Defines here
- sample
- 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/202611220125/tests/repd-scan.mjs:1-85 · blob ea03558ef142e6032709a2eab211454e9af64dc2 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
// V9.62: Project/MW/MAP visible on first paint, status/year filters and full-table opt-in.
import assert from 'node:assert/strict';
import {chromium, webkit} from 'playwright';
import {mkdir} from 'node:fs/promises';
const URL='http://127.0.0.1:8765/uk_renewables_pipeline/202611220125/';
const OUT='/tmp/pn-v962-scan';
await mkdir(OUT,{recursive:true});
for(const [name,engine] of [['chromium',chromium],['webkit',webkit]]){
const browser=await engine.launch({headless:true});
try{
for(const viewport of [{label:'portrait',width:393,height:852,visible:[1,2,13]},
{label:'landscape',width:852,height:393,visible:[1,2,3,4,13]}]){
const page=await browser.newPage({viewport:{width:viewport.width,height:viewport.height},reducedMotion:'reduce'});
try{
await page.route('https://raw.githubusercontent.com/**',route=>route.abort());
await page.goto(URL,{waitUntil:'domcontentloaded',timeout:60000});
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length>0,null,{timeout:90000});
const sample=()=>page.evaluate(()=>{
const wrap=document.getElementById('repdScroll'),row=document.querySelector('#tbody tr[id^="repd-"]');
return {scan:wrap.classList.contains('pn-scan-mode'),
columns:[...wrap.querySelectorAll('thead th')].flatMap((th,i)=>getComputedStyle(th).display==='none'?[]:[i+1]),
horizontalScroll:wrap.scrollWidth>wrap.clientWidth+2,
rowHeight:row.getBoundingClientRect().height,
name:row.querySelector('.phone-project-label')?.textContent,
mw:row.querySelector('td.mw')?.textContent,
map:row.lastElementChild?.textContent,
notesHidden:getComputedStyle(wrap.querySelector('thead th:nth-child(12)')).display==='none',
gauges:document.querySelectorAll('#repdPanel>.hud-gauges canvas').length,
count:document.querySelectorAll('#tbody tr[id^="repd-"]').length};
});
const baseline=await sample();
assert.equal(baseline.scan,true);
assert.deepEqual(baseline.columns,viewport.visible);
assert.equal(baseline.notesHidden,true);
assert.equal(baseline.gauges,3);
if(baseline.rowHeight>=50){
const heights=await page.evaluate(()=>{
const row=document.querySelector('#tbody tr[id^="repd-"]');
const selectors=['td.site','.project-record','.project-record>summary','.phone-project-label',
'td.mw','td:last-child','td:last-child .project-actions',
'td:last-child a.atlaslink','td:last-child .action-link'];
return {rowStyle:getComputedStyle(row).cssText,cells:selectors.map(sel=>{
const el=row.querySelector(sel),c=el&&getComputedStyle(el);
return {sel,height:el?.getBoundingClientRect().height,display:c?.display,
minHeight:c?.minHeight,maxHeight:c?.maxHeight,padding:c?.padding,
boxSizing:c?.boxSizing,margin:c?.margin,whiteSpace:c?.whiteSpace};
})};
});
console.log('ROW HEIGHT DIAGNOSTIC',JSON.stringify(heights));
}
assert.ok(baseline.rowHeight<50,JSON.stringify(baseline));
assert.equal(baseline.horizontalScroll,false,JSON.stringify(baseline));
assert.ok(baseline.name&&baseline.mw&&baseline.map,JSON.stringify(baseline));
assert.ok(await page.locator('#tbody tr[id^="repd-"] td:last-child a.atlaslink').count()>0,'MAP action exists');
await page.locator('#pnScanStatus').selectOption('Application Submitted');
await page.waitForFunction(()=>new URL(location.href).searchParams.get('status')==='Application Submitted');
assert.equal(await page.locator('#pnScanStatus').inputValue(),'Application Submitted');
await page.locator('#pnScanStatus').selectOption('All');
await page.waitForFunction(()=>!new URL(location.href).searchParams.has('status'));
await page.locator('#pnScanDates > summary').click();
const fast=page.locator('#pnScanDates select[data-year-filter="updatedYear"]');
const options=await fast.locator('option').allTextContents();
assert.ok(options.includes('Not supplied')&&options.length>2,JSON.stringify(options));
await fast.selectOption('missing');
await page.waitForFunction(()=>new URL(location.href).searchParams.get('updated_year')==='missing');
assert.equal(await page.locator('#pnScanDateCount').textContent(),'1');
await fast.selectOption('All');
await page.waitForFunction(()=>!new URL(location.href).searchParams.has('updated_year'));
await page.locator('#pnScanDates > summary').click();
await page.locator('#pnScanModeToggle').click();
const full=await sample();
assert.equal(full.scan,false);
assert.ok(full.columns.length>=10,JSON.stringify(full));
await page.locator('#pnScanModeToggle').click();
const again=await sample();
assert.equal(again.scan,true);
assert.deepEqual(again.columns,baseline.columns);
assert.equal(again.name,baseline.name);
assert.equal(again.mw,baseline.mw);
await page.screenshot({path:OUT+'/'+name+'-'+viewport.label+'.png'});
console.log('PASS',name,viewport.label,JSON.stringify({baseline,fullColumns:full.columns.length,reset:again.scan}));
} finally {await page.close();}
}
} finally {await browser.close();}
}Report A4
A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register and solar, and uses data from the GridAtlas repository.
testglobalgrid2050 / uk_renewables_pipeline/202611220220/tests/report-a4.mjs · lines 1–86 of 86 · version 2026-11-22 02:20 · Entry point
- What it does
- It tests the REPD register and solar. Uses libraries node:assert/strict, node:fs/promises, playwright. 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, solar.
- Inputs & outputs
- In: data source: gridatlas data.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Pn V963 A4 Report 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 Pn V963 A4 Report Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611220220/tests · JavaScript module
- Uses
- Report Model (import), Report PDF (import), GridAtlas — Atlas Page (estate URL), node:assert/strict, node:fs/promises, playwright
- Used by
- run by GlobalGrid2050 Pn V963 A4 Report 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/202611220220/tests/report-a4.mjs:1-86 · blob 6245ae9e22da950d5b7dcfc35db93fb09e87ed69 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
import assert from 'node:assert/strict';
import {mkdir,writeFile} from 'node:fs/promises';
import {chromium,webkit} from 'playwright';
import {reportData} from '../report-model.mjs';
import {buildA4Pdf} from '../report-pdf.mjs';
const project={repd_ref:'123',name:'Example Solar',operator:'Operator A',capacity_mw:50,technology:'solar',
country:'England',county:'County A',region:'South',status:'Application Submitted'};
const sourceMap='https://ventusltd.github.io/gridatlas/atlas/?repd=123';
const report=reportData(project,sourceMap);
assert.equal(report.operator,'Operator A');
assert.equal(report.developer,'Developer not separately reported');
assert.equal(report.location,'County A · South · England');
assert.equal(report.mapUrl,sourceMap);
assert.equal(Object.hasOwn(report,'area'),false);
const raw=Buffer.from(buildA4Pdf(report)).toString('latin1');
assert.ok(raw.includes('/Subtype /Link')&&raw.includes('/URI'));
assert.ok(raw.includes('(LOCATION)')&&raw.includes('County A'));
assert.ok(!raw.includes('PROJECT AREA')&&!raw.includes('AREA EVIDENCE'));
assert.ok(Buffer.from(buildA4Pdf(report,{landscape:true})).toString('latin1').includes('/MediaBox [0 0 841.89 595.28]'));
const missing=reportData({...project,county:'',region:'',country:''},'');
assert.equal(missing.location,'Location not reported');
assert.ok(!Buffer.from(buildA4Pdf(missing)).toString('latin1').includes('/Subtype /Link'));
console.log('PASS existing source project location, MAP identity, no area fields, PDF URI structure');
const out='/tmp/pn-v963-report',url='http://127.0.0.1:8765/uk_renewables_pipeline/202611220220/';
await mkdir(out,{recursive:true});
for(const [engine,driver] of [['chromium',chromium],['webkit',webkit]]){
const browser=await driver.launch({headless:true});
try{
for(const viewport of [{name:'portrait',width:393,height:852},{name:'landscape',width:852,height:393}]){
const page=await browser.newPage({viewport:{width:viewport.width,height:viewport.height},acceptDownloads:true,reducedMotion:'reduce'});
const errors=[];page.on('pageerror',e=>errors.push(e.message));
try{
await page.route('https://raw.githubusercontent.com/**',route=>route.abort());
await page.goto(url,{waitUntil:'domcontentloaded',timeout:60000});
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===50&&
document.querySelectorAll('#tbody .pn-report-launch').length===50,null,{timeout:90000});
const row=page.locator('#tbody tr[id^="repd-"]').first();
const expected={
name:await row.locator('.record-grid > div:first-child span').textContent(),
operator:(await row.locator('td:nth-child(4)').textContent()).trim(),
location:(await row.locator('td:nth-child(3)').textContent()).trim(),
mw:await row.locator('td.mw').textContent(),
map:await row.evaluate(el=>{const links=[...el.querySelectorAll('td:last-child a[href]')];
const selected=links.find(a=>getComputedStyle(a).display!=='none'&&getComputedStyle(a).visibility!=='hidden'&&a.href.startsWith('https://'))||el.querySelector('td:last-child a.atlaslink[href]');
return selected?.getAttribute('href')||'';}),
};
const prior=await page.evaluate(()=>({url:location.href,x:document.getElementById('repdScroll').scrollLeft,
n:document.querySelectorAll('#tbody tr[id^="repd-"]').length}));
await row.locator('button[data-pn-a4]').click();
await page.waitForSelector('#pnRepdReport:not([hidden])');
assert.equal(await page.locator('#pnReportName').textContent(),expected.name);
assert.equal(await page.locator('#pnReportOperator').textContent(),expected.operator||'Operator not reported');
assert.ok((await page.locator('#pnReportCapacity').textContent()).startsWith(expected.mw.trim().split(' ')[0]));
assert.ok((await page.locator('#pnReportLocation').textContent()).startsWith(expected.location));
assert.equal(await page.locator('#pnReportArea').count(),0);
assert.equal(await page.locator('#pnReportMap').getAttribute('href'),expected.map);
assert.ok(await page.locator('#pnReportSheet').isVisible());
await page.locator('[data-report-action="plus"]').click();
await page.locator('[data-report-action="fitwidth"]').click();
const received=page.waitForEvent('download');
await page.locator('[data-report-action="pdf"]').click();
const download=await received;
await download.saveAs(out+'/'+engine+'-'+viewport.name+'-a4.pdf');
assert.match(download.suggestedFilename(),/REPD-.*A4-report\.pdf/);
if(engine==='chromium'&&viewport.name==='portrait'){
await page.emulateMedia({media:'print'});
await writeFile(out+'/chromium-print-a4.pdf',await page.pdf({preferCSSPageSize:true,printBackground:true}));
await page.emulateMedia({media:'screen'});
}
await page.locator('[data-report-action="rotate"]').click();
assert.equal(await page.locator('#pnReportSheet').evaluate(el=>el.classList.contains('pn-report-landscape')),true);
const landscapeDownload=page.waitForEvent('download');
await page.locator('[data-report-action="pdf"]').click();
await (await landscapeDownload).saveAs(out+'/'+engine+'-'+viewport.name+'-landscape.pdf');
await page.screenshot({path:out+'/'+engine+'-'+viewport.name+'.png'});
await page.keyboard.press('Escape');
assert.ok(await page.locator('#pnRepdReport').isHidden());
const after=await page.evaluate(()=>({url:location.href,x:document.getElementById('repdScroll').scrollLeft,
n:document.querySelectorAll('#tbody tr[id^="repd-"]').length}));
assert.deepEqual(after,prior);assert.deepEqual(errors,[]);
console.log('PASS',engine,viewport.name,expected.name,'MAP and A4 link preserved');
}finally{await page.close()}
}
}finally{await browser.close()}
}