In this section
- News Compact render · globalgrid2050 / uk_renewables_pipeline/202611191154/news-compact.mjs lines 1–53
- Live News interaction · globalgrid2050 / uk_renewables_pipeline/202611191154/scripts/plugins/live-news.js lines 1–237
- News Compact render · globalgrid2050 / uk_renewables_pipeline/202611191154/styles/news-compact.css lines 1–36
- Gauges V9 2 render · globalgrid2050 / uk_renewables_pipeline/202611191418/scripts/plugins/gauges-v9-2.js lines 1–71
- Compact Register energy-data · globalgrid2050 / uk_renewables_pipeline/202611191418/styles/compact-register.css lines 1–180
- Hud V955 render · globalgrid2050 / uk_renewables_pipeline/202611191418/styles/hud-v955.css lines 1–41
- Hud V955 test · globalgrid2050 / uk_renewables_pipeline/202611201709/tests/hud-v955.mjs lines 1–66
News Compact
A JavaScript module in the UK renewables pipeline folder of GlobalGrid2050 that cleans ticker (`cleanTicker`). It cleans ticker (`cleanTicker`).
renderglobalgrid2050 / uk_renewables_pipeline/202611191154/news-compact.mjs · lines 1–53 of 53 · version 2026-11-19 11:54 · Entry point
- What it does
- It draws its content. Defines cleanTicker. 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.
- 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
- Defines `cleanTicker`.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611191154 · JavaScript module
- Uses
- Header (import), View (import)
- Used by
- loaded by GlobalGrid2050 — UK Renewables Pipeline Page (script src)
- Produces
- cleanTicker
- Defines here
- cleanTicker
- 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/202611191154/news-compact.mjs:1-53 · blob 0db1410aae8a90f4a8645174b921adf270ee5a20 · 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.49: retain the original controls and listeners; collapse secondary news UI.
import '../../automation/ticker_neon_ui/20261117-v940/header.mjs';
import '../../automation/energy_context_ui/20261118/view.mjs';
const D=document;
const panel=D.querySelector('.newspaper .pn-news-quality');
const search=D.querySelector('.newspaper .pn-news-header-search');
if(panel&&!panel.querySelector('.pn-news-disclosure')){
const disclosure=D.createElement('details');
disclosure.className='pn-news-disclosure';
const summary=D.createElement('summary');
summary.textContent='Search, filters & sources';
const settings=D.createElement('div');
settings.className='pn-news-settings';
if(search)settings.append(search);
for(const child of [...panel.children])settings.append(child);
disclosure.append(summary,settings);
panel.append(disclosure);
const status=D.getElementById('newsStatus');
if(status)settings.prepend(status);
const ticker=D.getElementById('headlineTicker');
if(ticker&&ticker.parentElement===panel.parentElement)ticker.after(panel);
const context=D.getElementById('headlineContextStatus');
if(context)settings.prepend(context);
}
const ticker=D.getElementById('headlineTicker');
const cleaned=new WeakSet();
function cleanTicker(){
if(!ticker)return;
const originals=ticker.querySelectorAll('.pn-ticker-cycle:not(.pn-ticker-copy) .pn-ticker-title');
const copies=ticker.querySelectorAll('.pn-ticker-copy .pn-ticker-title');
const items=window.pipelineHeadlineDocument?.items||[];
originals.forEach((a,i)=>{
if(!cleaned.has(a)){
const match=items.find(item=>item.link===a.href);
const original=a.textContent;
const cut=original.lastIndexOf(' — ');
const title=match?.title||(cut>=0?original.slice(0,cut):original);
cleaned.add(a);
if(a.textContent!==title)a.textContent=title;
}
if(copies[i]&&copies[i].textContent!==a.textContent)copies[i].textContent=a.textContent;
});
for(const item of ticker.querySelectorAll('.pn-ticker-item')){
for(const n of [...item.childNodes])if(n.nodeType===3&&n.textContent.trim()==='·')n.remove();
}
const list=ticker.querySelector('ul.pn-ticker-cycle');
if(list)list.setAttribute('aria-label','Latest headlines');
}
if(ticker){new MutationObserver(cleanTicker).observe(ticker,{childList:true,subtree:true});cleanTicker();}
// Masthead remains in the DOM for accessible naming and lifecycle compatibility; CSS hides it from sight.Live News
A JavaScript file in the plugins folder of GlobalGrid2050 that draws pipeline headlines snapshot, rank, solar and wind, using SHA-256. It gets bytes (`getBytes`) and validates priority (`validatePriority`).
interactionglobalgrid2050 / uk_renewables_pipeline/202611191154/scripts/plugins/live-news.js · lines 1–237 of 237 · version 2026-11-19 11:54 · Entry point · pattern quality (shared by 2 files)
- What it does
- It draws pipeline headlines snapshot, rank, solar and wind. Defines 17 functions or classes, including quality, el, stamp, label, valid. Side effects: changes the web page (DOM); makes network requests.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'renewables'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar, wind.
- Inputs & outputs
- In: JSON file pipeline_headlines.json; JSON file pipeline_headlines.snapshot.json; JSON file .rank.json.
- Downstream impact
- Used directly by 2 files: GlobalGrid2050 — UK Renewables Pipeline Page (globalgrid2050, https://globalgrid2050.com/uk_renewables_pipeline/202611280922/); GlobalGrid2050 V923 Six Hour Python Repair 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).
- What it achieves
- Defines `quality`, `stamp`, `label` and 13 more. It responds to click and DOMContentLoaded events.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/. Run by GlobalGrid2050 V923 Six Hour Python Repair Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611191154/scripts/plugins · script
- Uses
- none found
- Used by
- loaded by GlobalGrid2050 — UK Renewables Pipeline Page (script src), run by GlobalGrid2050 V923 Six Hour Python Repair Workflow (workflow run)
- Produces
- quality, el, stamp, label, valid, getBytes, decode, keys, safeLink, current, validatePriority, when
- Defines here
- quality, el, stamp, label, valid, getBytes, decode, keys, safeLink, current, validatePriority, when, shortPublisher, row, render, draw, start
- 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/202611191154/scripts/plugins/live-news.js:1-237 · blob 056a9623330aabbb397bfee520fd7f9b99b76223 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, network · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
(function () {
'use strict';
var LIVE = 'https://raw.githubusercontent.com/Ventusltd/globalgrid2050/pipeline-news-data/dist/pipeline_headlines.json';
var SNAPSHOT = 'news/pipeline_headlines.snapshot.json';
var PRIORITY = LIVE.replace(/\.json$/, '.rank.json');
var SCHEMA = 'globalgrid2050.news.pipeline-headlines.v1';
var PRIORITY_SCHEMA = 'globalgrid2050.news.headline-priority.v1';
var PROFILE_SHA256 = '06250f2435088a522d8d25676f31f813165a430df1e19f602bd8baae03961c05';
var priorities = new WeakMap();
var MAX_BYTES = 2000000;
var STALE_MS = 36 * 3600 * 1000;
var PAGE = 12;
var qualityAdapter = null, lastQuality = null, viewShown = PAGE;
function quality(view) { lastQuality = view; if (qualityAdapter) qualityAdapter(view); else view.draw(view.entries, true); }
var CATEGORY = { planning_decision: 'PLANNING DECISION', consent: 'CONSENTED', refusal: 'REFUSED', dco: 'DCO', finance: 'FINANCE',
construction: 'CONSTRUCTION', energisation: 'ENERGISED', grid: 'GRID', policy: 'POLICY', datacentre: 'DATA CENTRES', other: '' };
var TECHNOLOGY = { solar: 'SOLAR', wind: 'WIND', offshore_wind: 'OFFSHORE WIND', battery: 'BATTERY', hydro: 'HYDRO', tidal: 'TIDAL' };
function el(tag, cls, text) { var n = document.createElement(tag); if (cls) n.className = cls; if (text != null) n.textContent = text; return n; }
function stamp(iso, withTime) {
var match = typeof iso === 'string' && /^(\d{4})-(\d{2})-(\d{2})(?:T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d))?$/.exec(iso);
if (!match) return '';
var y=Number(match[1]),m=Number(match[2]),day=Number(match[3]),days=[31,y%4===0&&(y%100!==0||y%400===0)?29:28,31,30,31,30,31,31,30,31,30,31];
if (y<1900||m<1||m>12||day<1||day>days[m-1]) return '';
var d = new Date(iso);
if (!iso || isNaN(d)) return '';
var day = d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' });
if (!withTime || iso.indexOf('T') < 0) return day;
return day + ' ' + ('0' + d.getUTCHours()).slice(-2) + ':' + ('0' + d.getUTCMinutes()).slice(-2) + ' UTC';
}
/* The label, as a pure function of the file's date, its status and the clock. */
function label(generatedAt, status, nowMs, source, counts) {
var when = Date.parse(generatedAt);
if (source === 'none' || isNaN(when)) return { state: 'unavailable', text: 'Live headlines are not available at the moment.' };
if (source === 'snapshot') return { state: 'snapshot', text: 'Live source unavailable. Showing a saved snapshot collected ' + stamp(generatedAt, true) + '; its articles may be older.' };
if (status === 'failed') return { state: 'failed', text: 'Source collection failed at ' + stamp(generatedAt, true) + '. Any displayed headlines were retained from earlier collections.' };
if (when - nowMs > 300000) return {state:'future',text:'Feed timestamp is ahead of this browser clock. Collection time needs review: ' + stamp(generatedAt, true) + '.'};
var overdue = nowMs - when > STALE_MS;
if (status === 'partial') {
var ok = counts && Number.isInteger(counts.feeds_ok) ? counts.feeds_ok : null;
var bad = counts && Number.isInteger(counts.feeds_failed) ? counts.feeds_failed : null;
var coverage = ok !== null && bad !== null ? ' (' + ok + ' sources succeeded, ' + bad + ' failed)' : '';
return { state: overdue ? 'overdue-partial' : 'partial',
text: 'Partial source collection' + coverage + '. Feed checked ' + stamp(generatedAt, true)
+ (overdue ? '; refresh is overdue.' : '. Displaying available headlines.') };
}
if (overdue) return { state: 'overdue', text: 'Feed last checked ' + stamp(generatedAt, true) + '; refresh is overdue. Article dates may be older.' };
return { state: 'live', text: 'Feed checked ' + stamp(generatedAt, true) + '. Article dates are shown separately.' };
}
function valid(doc) {
return !!(doc && doc.schema === SCHEMA && Array.isArray(doc.items)
&& doc.items.length <= 200 && doc.items.every(function (item) { return item && typeof item === 'object'
&& typeof item.title === 'string' && item.title.length > 0 && item.title.length <= 300
&& typeof item.link === 'string' && typeof item.source === 'string'; })
&& typeof doc.generated_at === 'string' && !isNaN(Date.parse(doc.generated_at)) && !!stamp(doc.generated_at, true)
&& ['ok', 'partial', 'failed'].indexOf(doc.status) !== -1);
}
function getBytes(url, ms) {
var ctl = typeof AbortController === 'function' ? new AbortController() : null;
var timer = setTimeout(function () { if (ctl) ctl.abort(); }, ms);
return fetch(url, { cache: 'no-store', signal: ctl ? ctl.signal : undefined })
.then(function (r) { if (!r.ok) throw new Error(r.status); return r.arrayBuffer(); })
.then(function (bytes) { if (bytes.byteLength > MAX_BYTES) throw new Error('oversize'); return bytes; })
.then(function (d) { clearTimeout(timer); return d; }, function (e) { clearTimeout(timer); throw e; });
}
function decode(bytes) { return JSON.parse(new TextDecoder('utf-8', {fatal: true}).decode(bytes)); }
function keys(value, expected) {
return value && typeof value === 'object' && !Array.isArray(value)
&& Object.keys(value).sort().join('|') === expected.slice().sort().join('|');
}
function safeLink(value) {
try {
if (typeof value !== 'string' || /[\\\s\u0000-\u001f\u007f]/.test(value)) return '';
var url = new URL(value), host = url.hostname;
if (url.protocol !== 'https:' || url.username || url.password || url.port && url.port !== '443'
|| host.endsWith('.') || !/^[a-z0-9.-]+$/.test(host) || host.indexOf('.') < 0 || /(?:^|\.)\d+$/.test(host)
|| /\.(?:local|localhost|internal)$/.test(host)) return '';
return url.href;
} catch (_) { return ''; }
}
function current(doc, source, nowMs) {
var age = nowMs - Date.parse(doc.generated_at);
return source === 'live' && doc.status !== 'failed' && age >= -300000 && age <= STALE_MS;
}
async function validatePriority(doc, bytes, sidecar) {
priorities.delete(doc);
if (!valid(doc) || !bytes || bytes.byteLength > MAX_BYTES || !globalThis.crypto || !crypto.subtle
|| JSON.stringify(decode(bytes)) !== JSON.stringify(doc)) return false;
var envelope = ['schema','input_sha256','input_bytes','input_generated_at','input_count','as_of','profile_id','profile_sha256','entries'];
if (!keys(sidecar, envelope) || sidecar.schema !== PRIORITY_SCHEMA
|| sidecar.profile_id !== 'uk-transition-global-context.v1' || sidecar.profile_sha256 !== PROFILE_SHA256
|| sidecar.input_generated_at !== doc.generated_at || sidecar.as_of !== doc.generated_at
|| sidecar.input_count !== doc.items.length || sidecar.input_bytes !== bytes.byteLength
|| !Array.isArray(sidecar.entries) || sidecar.entries.length !== doc.items.length || doc.items.length > 200
|| !/^[a-f0-9]{64}$/.test(sidecar.input_sha256)) return false;
var hash = Array.from(new Uint8Array(await crypto.subtle.digest('SHA-256', bytes))).map(function (v) { return v.toString(16).padStart(2, '0'); }).join('');
if (hash !== sidecar.input_sha256) return false;
var originals = new Map(), seen = new Set(), output = [];
for (var original of doc.items) {
if (!safeLink(original.link) || originals.has(original.link)) return false;
originals.set(original.link, original);
}
var fields = ['link','source','title','rank','source_kind','role','topics','freshness_state','uk_context','score','requires_primary_followup','subscription_notice'];
for (var i = 0; i < sidecar.entries.length; i++) {
var entry = sidecar.entries[i], item = originals.get(entry && entry.link);
if (!keys(entry, fields) || !item || seen.has(entry.link) || entry.rank !== i + 1
|| entry.source !== item.source || entry.title !== item.title || !Number.isFinite(entry.score)
|| ['government','regulator','institution','listed_parent','reporting','discovery'].indexOf(entry.source_kind) < 0
|| ['primary_context','discovery_lead','attributed_reporting'].indexOf(entry.role) < 0
|| ['current','unknown','future','stale'].indexOf(entry.freshness_state) < 0
|| typeof entry.uk_context !== 'boolean' || typeof entry.requires_primary_followup !== 'boolean'
|| typeof entry.subscription_notice !== 'boolean' || !Array.isArray(entry.topics)
|| entry.topics.length > 6 || new Set(entry.topics).size !== entry.topics.length
|| entry.topics.some(function (t) { return ['solar','storage','grid','datacentre','wind','renewables'].indexOf(t) < 0; })) return false;
seen.add(entry.link);
output.push({item:item, priority:JSON.parse(JSON.stringify(entry))});
}
priorities.set(doc, output);
return true;
}
function when(item) { return Date.parse(item.date || item.first_seen || '') || 0; }
function shortPublisher(value) {
var s=String(value||'').trim();
if (/^BBC(?:\s|$)/i.test(s)) return 'BBC';
if (/DESNZ|Department for Energy Security/i.test(s)) return 'DESNZ';
if (/^GOV\.UK$/i.test(s)) return 'GOV.UK';
if (/Planning Inspectorate/i.test(s)) return 'PINS';
if (/National Energy System Operator/i.test(s)) return 'NESO';
if (/^Solar Power Portal$/i.test(s)) return 'Solar Power Portal';
if (/^Energy.Storage\.news$/i.test(s)) return 'Energy Storage News';
if (/^Data Centre Dynamics$/i.test(s)) return 'DCD';
return s || 'Source unknown';
}
function row(item, priority) {
var box = el('div', 'ln-item');
var articleDate = stamp(item.date, typeof item.date==='string' && item.date.indexOf('T')>=0);
var collectedDate = stamp(item.first_seen, false);
var dateLabel = articleDate ? 'PUBLISHER DATE ' + articleDate.toUpperCase()
: (collectedDate ? 'FIRST COLLECTED ' + collectedDate.toUpperCase() : 'ARTICLE DATE UNKNOWN');
var meta = [dateLabel, CATEGORY[item.category] || '', TECHNOLOGY[item.technology] || '', String(item.source || '')];
box.appendChild(el('span', 'ln-meta', meta.filter(Boolean).join(' · ')));
if (articleDate && collectedDate) box.appendChild(el('span', 'ln-collected', 'FIRST COLLECTED ' + stamp(item.first_seen, true).toUpperCase()));
var a = el('a', 'ln-title', String(item.title || ''));
var safe = safeLink(item.link);
if (safe) a.href = safe;
a.target = '_blank';
a.rel = 'noopener noreferrer';
box.appendChild(a);
var shortDate=stamp(item.date,false);
if(shortDate&&shortDate.endsWith(' '+new Date().getUTCFullYear()))shortDate=shortDate.slice(0,-5);
var brief=el('span','ln-brief', (shortDate||'Date unknown')+' · '+shortPublisher(item.source));
brief.title=[stamp(item.date,true)||'Publisher date unknown',String(item.source||'Source unknown')].join(' · ');
box.appendChild(brief);
// Ranking remains an internal ordering signal. Public rows retain only
// original headlines, source attribution, clocks and provisional links.
var m = item.possible_match;
if (m && /^\d+$/.test(String(m.repd_ref || '')) && m.site_name) {
var chip = el('span', 'ln-match', 'Possible match: ' + m.site_name + ' (REPD ' + m.repd_ref + ')');
chip.title = 'Unverified name coincidence; not a confirmed link to a project event; inspect the original publisher.';
box.appendChild(chip);
}
return box;
}
function render(doc, source, nowMs) {
var status = document.getElementById('newsStatus');
var list = document.getElementById('liveNews');
if (!status || !list) return;
var ok = valid(doc);
var l = label(ok ? doc.generated_at : '', ok ? doc.status : '', nowMs == null ? Date.now() : nowMs,
ok ? source : 'none', null);
status.textContent = l.text;
status.setAttribute('data-state', l.state);
status.setAttribute('data-order', 'none');
list.textContent = '';
var archive = document.getElementById('newsArchive');
window.pipelineHeadlineDocument = ok ? doc : null;
if (typeof window.dispatchEvent === 'function' && typeof CustomEvent === 'function') window.dispatchEvent(new CustomEvent('pipeline-feed-loaded', { detail: ok ? doc : null }));
if (!ok) { quality({doc:null,source:'none',entries:[],ranked:false,draw:function(){ list.textContent=''; }}); if (archive) archive.open = true; return; }
// Exact-input priority only for a current live collection; preserve every credited item.
var ranked = current(doc, source, nowMs == null ? Date.now() : nowMs) ? priorities.get(doc) : null;
var items = (ranked || doc.items.map(function (it,i) {return {item:it,index:i};})).slice();
// Publication order is independent of editorial ranking metadata; unknown dates go last.
items.sort(function(a,b){return (Date.parse(b.item.date||'')||0)-(Date.parse(a.item.date||'')||0);});
status.setAttribute('data-order','date');
status.textContent += ' Showing publisher-date order; unknown dates last.';
quality({doc:doc,source:source,entries:items,ranked:!!ranked,draw:function(selected,reset){
if (reset) viewShown = PAGE;
list.textContent = '';
if (!selected.length) { list.appendChild(el('p','ln-empty',doc.items.length?'No headlines match these filters.':'No headlines currently meet the feed criteria.')); if(doc.scope)list.appendChild(el('p','ln-scope',doc.scope));return; }
var shown=0, wanted=Math.min(selected.length,Math.max(PAGE,viewShown));
var more=el('button','ln-more','');more.type='button';
function draw(){
selected.slice(shown,shown+PAGE).forEach(function(entry){list.insertBefore(row(entry.item,entry.priority),more.parentNode===list?more:null);});
shown=Math.min(shown+PAGE,selected.length);viewShown=shown;
if(shown<selected.length){more.textContent='SHOW MORE HEADLINES ('+(selected.length-shown)+')';if(more.parentNode!==list)list.appendChild(more);}else if(more.parentNode===list)list.removeChild(more);
}
more.addEventListener('click',draw);draw();while(shown<wanted)draw();if(doc.scope)list.appendChild(el('p','ln-scope',doc.scope));
}});
}
function start() {
window.pipelineHeadlinePriorityState = 'not-requested';
if (typeof fetch !== 'function') { render(null, 'none'); return; }
getBytes(LIVE, 6000).then(function (bytes) {
var doc = decode(bytes);
if (!valid(doc)) throw new Error('invalid');
render(doc, 'live');
window.pipelineHeadlinePriorityState = 'pending';
// A ranking failure is not a headline-fetch failure and never selects the saved snapshot.
return getBytes(PRIORITY, 4000).then(function (rankBytes) { return validatePriority(doc, bytes, decode(rankBytes)); })
.then(function (accepted) {
if (accepted && window.pipelineHeadlineDocument === doc) render(doc, 'live');
window.pipelineHeadlinePriorityState = accepted ? 'accepted' : 'rejected';
})
.catch(function () { window.pipelineHeadlinePriorityState = 'unavailable'; });
})
.catch(function () {
return getBytes(SNAPSHOT, 6000).then(function (bytes) { var doc = decode(bytes); render(valid(doc) ? doc : null, valid(doc) ? 'snapshot' : 'none'); });
})
.catch(function () { render(null, 'none'); });
}
// For the release checks: the label rule and the renderer, callable with a document of the same schema.
window.pipelineHeadlines = { label: label, render: render, valid: valid, schema: SCHEMA, validatePriority: validatePriority, prioritySchema: PRIORITY_SCHEMA, getViewAdapter:function(){return qualityAdapter;},attachView: function(adapter) { qualityAdapter=adapter; if(lastQuality)adapter(lastQuality); } };
window.dispatchEvent(new Event('pipeline-news-ready'));
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start);
else start();
})();News Compact
A style sheet in the styles folder of GlobalGrid2050.
renderglobalgrid2050 / uk_renewables_pipeline/202611191154/styles/news-compact.css · lines 1–36 of 36 · version 2026-11-19 11:54 · 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.
- 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
- No statement of purpose was found in the file, a README line naming it, or its name. Described from its file name only (a candidate, not yet checked against the code).
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611191154/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/202611191154/styles/news-compact.css:1-36 · blob f1ed650575c453a0729f023393d6a8b564e8b0dc · 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.48: headline-first layout; existing controls remain accessible on demand. */
.newspaper .masthead{padding:10px 14px}
.newspaper .pn-news-header-line{display:block}
.newspaper .pn-news-quality{padding:0 12px}
.newspaper .pn-news-disclosure>summary{display:list-item;min-height:34px;padding:8px 0;font-size:11px;cursor:pointer}
.newspaper .pn-news-quality .pn-news-disclosure>.pn-news-settings{max-height:none;overflow:visible;line-height:normal;padding:0 0 8px}
.newspaper .pn-news-settings .pn-news-header-search{margin-bottom:8px;max-width:100%}
#headlineTicker{-webkit-text-size-adjust:100%;text-size-adjust:100%;font-size:11px!important}
#headlineTicker .pn-ticker-title,#headlineTicker a{font-size:11px!important;line-height:1.3!important}
#headlineTicker .pn-ticker-item{min-height:32px!important}
#headlineTicker time,#headlineTicker .pn-ticker-date{font-size:10px!important}
/* V9.49: headlines only; secondary tools at the bottom. */
.newspaper .pn-news-quality{border-bottom:0;border-top:1px solid #303740}
.newspaper #liveNews .ln-meta,.newspaper #liveNews .ln-collected,.newspaper #liveNews .ln-match,.newspaper #liveNews .ln-scope{display:none!important}
.newspaper #liveNews .ln-title{margin-top:0}
.newspaper #liveNews .ln-item{padding:10px 14px}
#headlineTicker time,#headlineTicker .pn-ticker-date{display:none!important}
.newspaper .pn-news-settings #newsStatus{display:block;font-size:10px;color:#aeb2b8;margin:0 0 8px}
/* V9.54: calm full-viewport news reading window, no visible masthead or borders. */
.main>.newspaper{box-sizing:border-box;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;height:100vh;height:100svh;max-height:none!important;margin:0 0 24px!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#000;overflow:hidden}
.newspaper .masthead{display:none!important}
.newspaper .pn-news-header-search:not(.pn-news-settings *){display:none!important}
.newspaper .pn-news-quality:not(:has(.pn-news-disclosure)){display:none!important}
.newspaper .pn-news-quality,.newspaper .pn-news-settings,.newspaper .pn-news-disclosure,.newspaper .pn-news-header-search,.newspaper input[type="search"]{animation:none!important;transition:none!important}
.newspaper #liveNews{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto!important;overscroll-behavior-y:auto;border:0!important;background:#000;scrollbar-width:thin}
.newspaper #liveNews .ln-item{border:0!important;box-shadow:none!important;background:transparent;padding:12px 12px 13px}
.newspaper #liveNews .ln-title{font-weight:400;line-height:1.4;font-size:15px}
.newspaper #liveNews .ln-brief{display:block;font-size:10px;line-height:1.5;color:#9299a3;font-weight:400;margin-top:4px;letter-spacing:0}
.newspaper #liveNews .ln-more{border:0!important;background:transparent}
.newspaper #headlineTicker,.newspaper .pn-news-quality,.newspaper .pn-news-disclosure,.newspaper .pn-news-quality>*{border:0!important;box-shadow:none!important}
.newspaper #headlineTicker,.newspaper .pn-news-quality{flex:none;background:#000}
.newspaper .pn-news-quality .pn-news-disclosure[open] .pn-news-settings{max-height:32svh;overflow-y:auto}
.newspaper .pn-news-disclosure>summary{padding:7px 0}
@media(max-width:768px){.main>.newspaper{height:calc(100svh - 8px);min-height:calc(100svh - 8px)}.newspaper #liveNews .ln-item{padding:13px 5px}.newspaper #liveNews .ln-title{font-size:15px}}Gauges V9 2
A JavaScript module in the plugins folder of GlobalGrid2050 that updates chart (`updateChart`) and formats capacity v9 (`formatCapacityV9_2`) and largest v9 (`formatLargestV9_2`) (units: MW).
renderglobalgrid2050 / uk_renewables_pipeline/202611191418/scripts/plugins/gauges-v9-2.js · lines 1–71 of 71 · version 2026-11-19 14:18 · pattern formatLargest (shared by 4 files)
- What it does
- Defines 7 functions or classes, including createGauge, updateChart, formatCapacityV9_2, formatLargestV9_2, initialiseGaugesV9_2. 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.
- Downstream impact
- Used directly by 5 files: Projects V9 5 1 (globalgrid2050); App V9 8 (globalgrid2050); App V9 9 (globalgrid2050); Projects V9 9 (globalgrid2050); and 1 more. Reached from 12 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 V973 Capacity Reports Workflow (globalgrid2050).
- What it achieves
- It creates gauge (`createGauge`), updates chart (`updateChart`) and formats capacity v9 (`formatCapacityV9_2`). Defines `createGauge`, `updateChart`, `formatCapacityV9_2` and 4 more.
- Why it matters
- Imported by 5 files, including Projects V9 5 1, App V9 8 and App V9 9.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611191418/scripts/plugins · JavaScript module
- Uses
- none found
- Used by
- imported by Projects V9 5 1 (import), imported by App V9 8 (import), imported by App V9 9 (import), imported by Projects V9 9 (import), imported by Projects V9 8 (import)
- Produces
- formatCapacityV9_2, formatLargestV9_2, initialiseGaugesV9_2, setGaugeUniverseV9_2, updateGaugesV9_2
- Defines here
- createGauge, updateChart, formatCapacityV9_2, formatLargestV9_2, initialiseGaugesV9_2, setGaugeUniverseV9_2, updateGaugesV9_2
- 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/202611191418/scripts/plugins/gauges-v9-2.js:1-71 · blob 1c8a158a98621eded5caf81714fd96f9221514fa · 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
const charts = { capacity: null, projects: null, largest: null };
let universe = [];
function createGauge(canvasId, colour, options) {
const config = {
type: "doughnut",
data: { datasets: [{ data: [0, 1], backgroundColor: [colour, "#222"], borderWidth: 0 }] },
options,
};
if (typeof globalThis.Chart !== "function") return null;
return new globalThis.Chart(document.getElementById(canvasId), config);
}
function updateChart(chart, value, maximum) {
if (!chart) return;
chart.data.datasets[0].data = [value, Math.max(maximum - value, 0)];
chart.update();
}
export function formatCapacityV9_2(value) {
const rounded = Math.round(((Number(value) || 0) + Number.EPSILON) * 100) / 100;
return rounded.toLocaleString("en-GB", {
minimumFractionDigits: 0,
maximumFractionDigits: 2,
});
}
export function formatLargestV9_2(value) {
return (Number(value) || 0).toLocaleString("en-GB", { maximumFractionDigits: 2 });
}
export function initialiseGaugesV9_2() {
const options = {
responsive: true,
maintainAspectRatio: false,
circumference: 180,
rotation: 270,
cutout: "80%",
plugins: { tooltip: { enabled: false }, legend: { display: false } },
};
const warning = document.getElementById("gaugeWarning");
if (warning) warning.hidden = typeof globalThis.Chart === "function";
charts.capacity = createGauge("g1", "#ff00ff", options);
charts.projects = createGauge("g2", "#00ffff", options);
charts.largest = createGauge("g3", "#00ff88", options);
}
export function setGaugeUniverseV9_2(projects) {
universe = projects;
}
export function updateGaugesV9_2(projects) {
const total = projects.reduce((sum, project) => sum + project.capacity_mw, 0);
const largest = projects.length ? Math.max(...projects.map((project) => project.capacity_mw)) : 0;
const universeTotal = universe.reduce((sum, project) => sum + project.capacity_mw, 0) || 1;
const universeLargest = universe.length ? Math.max(...universe.map((project) => project.capacity_mw)) : 1;
const capacityValue = document.getElementById("v1");
const projectValue = document.getElementById("v2");
const largestValue = document.getElementById("v3");
capacityValue.textContent = formatCapacityV9_2(total);
projectValue.textContent = projects.length.toLocaleString("en-GB");
largestValue.textContent = formatLargestV9_2(largest);
capacityValue.setAttribute("aria-label", `${formatCapacityV9_2(total)} megawatts filtered capacity`);
projectValue.setAttribute("aria-label", `${projects.length.toLocaleString("en-GB")} filtered records`);
largestValue.setAttribute("aria-label", `${formatLargestV9_2(largest)} megawatts largest single site`);
updateChart(charts.capacity, total, universeTotal);
updateChart(charts.projects, projects.length, universe.length || 1);
updateChart(charts.largest, largest, universeLargest);
}Compact Register
A style sheet in the styles folder of GlobalGrid2050 covering the Renewable Energy Planning Database (REPD) register.
energy-dataglobalgrid2050 / uk_renewables_pipeline/202611191418/styles/compact-register.css · lines 1–180 of 180 · version 2026-11-19 14:18 · 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
- Retain existing IDs, links and listeners.
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611191418/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/202611191418/styles/compact-register.css:1-180 · blob ed8901f1cc6c3df2eec727e40f7b0f285ad23b8b · 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.50: compact default register. Retain existing IDs, links and listeners. */
.release-header .release-links>a:not(.active):not(#mapAtlasNav),.preview-status{display:none!important}
#repdPanel>.category-scope{display:none}
#repdPanel .tablewrap table{width:100%;min-width:0!important;table-layout:fixed}
#repdPanel #tbody :is(.project-meta,.mobile-extra,.copy-id,.newslink,.map-note){display:none!important}
#repdPanel .tablewrap :is(th,td){padding:8px;overflow-wrap:anywhere;white-space:normal}
#repdPanel .tablewrap thead th:first-child{width:36%}
#repdPanel .tablewrap thead th:last-child{width:76px}
#repdPanel .tablewrap :is(th,td):last-child{right:auto;border-left:0;width:76px;max-width:76px}
#repdPanel .tablewrap td:last-child{position:static}
#repdPanel .project-actions{min-width:0;max-width:none;width:auto;gap:0;display:flex;align-items:center;justify-content:center}
#repdPanel .project-actions :is(.action-link,.action-disabled,.pn-journey-unavailable){min-height:44px;min-width:44px;align-items:center;justify-content:center;font-size:12px;padding:6px}
#repdPanel .project-record{margin:2px 0 0}
#repdPanel .project-record summary{font-size:11px;padding:5px 0;min-height:28px}
#repdPanel .record-grid{min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));max-width:100%}
#repdPanel .record-grid :is(b,span){font-size:11px}
#repdPanel .compact-machine-note{display:inline-block;min-width:0;max-width:100%;min-height:44px;font-size:11px;padding:6px}
#repdPanel .compact-news-detail .machine-note-headline{font-size:11px}
.compact-mw-filter{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.compact-mw-filter input{width:80px;max-width:100%;min-height:44px;background:#000;color:#fff;border:1px solid var(--line);padding:6px;font:13px monospace}
.compact-mw-filter label{color:var(--muted);font-size:11px}
#mwRangeError:not(:empty){color:#ff9c9c;flex:1 0 100%;font-size:11px}
.compact-register-filters{margin:0 0 8px;color:var(--muted)}.compact-register-filters>summary{padding:10px 0;color:var(--accent);cursor:pointer}
@media(max-width:768px){
#repdPanel .tablewrap{width:100%;max-height:none!important;overflow:visible!important}
#repdPanel .tablewrap table,#repdPanel .tablewrap tbody{display:block;width:100%}
#repdPanel .tablewrap thead{display:none}
#repdPanel #tbody tr[id^="repd-"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 58px;gap:4px 8px;padding:9px 8px;border-bottom:1px solid var(--line);align-items:start}
#repdPanel #tbody tr[id^="repd-"]>td{padding:0;border:0;min-width:0;font-size:11px;background:transparent;position:static;width:auto;max-width:none}
#repdPanel #tbody tr[id^="repd-"]>td.site{display:contents}
#repdPanel .compact-project-name{grid-column:1/3;grid-row:1;font-size:14px;line-height:1.25;min-width:0}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(5){grid-column:1;grid-row:2}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(6){grid-column:2;grid-row:2;color:var(--ok);font-size:13px;text-align:right}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(10){grid-column:1;grid-row:3}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(11){grid-column:2/4;grid-row:3}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(10)::before{content:"Submitted ";color:var(--muted)}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(11)::before{content:"Operational ";color:var(--muted)}
#repdPanel #tbody tr[id^="repd-"]>td:last-child{grid-column:3;grid-row:1/3;align-self:center;width:auto;max-width:none}
#repdPanel .project-record{grid-column:1/-1;grid-row:4;min-width:0}
#repdPanel .project-record:not([open]){margin:0}
#repdPanel .project-record summary{min-height:28px;padding:4px 0}
#repdPanel .record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#repdPanel .machine-note-dialog{width:calc(100vw - 16px);max-height:88dvh}
.machine-note-dialog h2{font-size:15px!important}
.machine-note-dialog{font-size:12px!important;line-height:1.4!important}
}
/* Put analytics and advanced filters behind a disclosure, not before the records. */
.compact-analytics>summary{cursor:pointer;padding:8px 0;color:var(--accent)}
#repdPanel>.results-meta{display:block;margin:4px 0 7px;font-size:10px}
#repdPanel>.compact-register-scope{margin:0 0 6px;font-size:10px}
#repdPanel>.compact-register-scope>summary{min-height:0;padding:5px 0}
@media(max-width:768px){
#officialRegister .repd-expand-launcher{display:none}
#repdPanel .compact-mw-filter{margin-bottom:4px}
#repdPanel .compact-register-filters>summary{padding:6px 0}
#repdPanel .compact-analytics .gauges{grid-template-columns:repeat(3,minmax(0,1fr))}
#repdPanel .compact-analytics .gauges .card{min-width:0}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(5){line-height:1.2;overflow-wrap:break-word}
#repdPanel #tbody .project-record summary{min-height:23px;padding:3px 0}
#repdPanel #tbody tr[id^="repd-"]>td:nth-child(10),#repdPanel #tbody tr[id^="repd-"]>td:nth-child(11){font-size:10px;line-height:1.25}
}
/* V9.51: news first, with compact mobile project summaries. */
.minimal-page-tools{margin-top:12px;color:var(--muted);font-size:11px}
.minimal-page-tools>summary{cursor:pointer;color:var(--accent);padding:12px 0}
.minimal-page-tools .release-links{display:flex;flex-wrap:wrap}
.minimal-page-tools .release-links>a{display:inline-flex!important}
.minimal-page-tools .release-links>a.active{display:none!important}
.minimal-page-tools p{padding:8px 0}
.main>.newspaper{margin-top:0}
.phone-project-label,.phone-project-mw,.phone-project-status{display:none}
.compact-sort{margin:0 0 6px}
.compact-sort select{width:100%;max-width:320px;min-height:44px;background:#000;color:var(--muted);border:1px solid var(--line);font:12px monospace;padding:6px}
.copy-id,[data-copy-id]{display:none!important}
@media(max-width:768px){
.main{padding-top:4px}
#repdPanel #tbody tr[id^="repd-"]{display:block;padding:0}
#repdPanel #tbody tr[id^="repd-"]>td.site{display:block;padding:0}
#repdPanel #tbody .compact-project-name{display:none}
#repdPanel #tbody .project-record{margin:0;font-weight:normal}
#repdPanel #tbody .project-record>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;min-height:44px;padding:8px;font-size:12px;color:#fff;letter-spacing:0;list-style:none;cursor:pointer}
#repdPanel #tbody .project-record>summary::before{display:none}
#repdPanel #tbody .project-record>summary::-webkit-details-marker{display:none}
#repdPanel #tbody .desktop-details-label{display:none}
#repdPanel #tbody .phone-project-label{display:block;grid-column:1;font-weight:700;min-width:0;overflow-wrap:anywhere}
#repdPanel #tbody .phone-project-mw{display:block;grid-column:2;grid-row:1;color:var(--ok);font-weight:700;text-align:right;white-space:nowrap}
#repdPanel #tbody .phone-project-status{display:block;grid-column:1/-1;grid-row:2;font-size:10px;color:var(--muted);overflow-wrap:anywhere}
#repdPanel #tbody .record-grid{margin:0 8px 8px}
#repdPanel #tbody .compact-news-detail{grid-column:1/-1}
#repdPanel #tbody .compact-machine-note{font-size:11px}
#repdPanel #tbody .project-actions{justify-content:flex-start}
}
/* V9.52: restore all columns, preserve V9.51 mobile viewport on the first column. */
.column-scroll-tools{display:flex;align-items:center;gap:8px;margin:5px 0;color:var(--muted);font-size:11px}
.column-scroll-tools input{flex:1;min-width:0;height:28px;accent-color:var(--accent)}
#repdPanel #repdScroll{--first-col:300px;width:100%;max-height:70vh;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
#repdPanel #repdScroll table{display:table;width:calc(var(--first-col) + 1655px);min-width:100%!important;table-layout:fixed}
#repdPanel #repdScroll .project-first-col{width:var(--first-col)}
#repdPanel #repdScroll thead{display:table-header-group}
#repdPanel #repdScroll tbody{display:table-row-group}
#repdPanel #repdScroll tr{display:table-row}
#repdPanel #repdScroll tr>th,#repdPanel #repdScroll tr>td{display:table-cell!important;vertical-align:middle;width:auto;max-width:none;position:static;padding:8px;min-width:0}
#repdPanel #repdScroll thead th{position:sticky;top:0;z-index:6;background:#050505;color:var(--accent)}
#repdPanel #repdScroll th:first-child{width:var(--first-col)}
#repdPanel #repdScroll th:last-child{width:80px}
#repdPanel #repdScroll .column-sort{background:transparent;border:0;color:var(--accent);font:700 11px 'Courier New',monospace;text-align:left;padding:5px 0;min-height:36px;cursor:pointer}
#repdPanel #repdScroll .column-sort[aria-pressed="true"]{color:#fff}
#repdPanel #repdScroll .project-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
#repdPanel #repdScroll .phone-sort,#repdPanel .phone-map-detail{display:none}
#repdPanel #repdScroll .machine-note-cell{min-width:0;max-width:none}
#repdPanel #repdScroll .machine-note-cell .machine-note-button{width:100%;min-width:0;max-width:none;font-size:10px;box-sizing:border-box;padding:5px}
@media(max-width:768px){
#repdPanel #repdScroll{--first-col:var(--phone-first,calc(100vw - 26px));max-height:70vh!important;max-height:70dvh!important;scrollbar-gutter:auto}
#repdPanel #repdScroll #tbody tr[id^="repd-"]{display:table-row;padding:0}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td{display:table-cell!important;padding:6px 8px;position:static;border-bottom:1px solid var(--line);vertical-align:middle}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td.site{display:table-cell!important;padding:0}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td:nth-child(10)::before,#repdPanel #repdScroll #tbody tr[id^="repd-"]>td:nth-child(11)::before{content:none}
#repdPanel #repdScroll .phone-sort{display:inline-flex;align-items:center;gap:3px}
#repdPanel #repdScroll .column-sort{min-height:44px}
#repdPanel .phone-map-detail{display:block}
#repdPanel .phone-map-detail button{min-height:44px}
#repdPanel .phone-map-status{color:var(--muted);font-size:10px}
}
#pipelineHeading #repdReportDate{color:var(--accent);font-weight:700}#pipelineHeading #repdDataDate{display:block;color:var(--muted);font:400 10px/1.45 'Courier New',monospace;letter-spacing:0;margin-top:3px}
/* V9.53: shallow, flexible MW range controls; all validation and input IDs retained. */
#repdPanel .compact-mw-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;align-items:center;width:100%;max-width:640px;margin:4px 0 8px}
#repdPanel .mw-bound{display:flex;gap:4px;align-items:center;min-width:0;height:36px;box-sizing:border-box;padding:0 7px;border:1px solid var(--line);background:#000;white-space:nowrap}
#repdPanel .mw-bound span{flex:none;font-size:10px}
#repdPanel .mw-bound input{flex:1 1 0;min-width:0;width:0;height:34px;min-height:0;box-sizing:border-box;padding:0 2px;border:0;background:transparent;color:#fff;text-align:right;font-size:16px;appearance:textfield;-moz-appearance:textfield}
#repdPanel .mw-bound input::-webkit-inner-spin-button,#repdPanel .mw-bound input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#repdPanel .mw-bound:focus-within{border-color:var(--accent)}
#repdPanel #applyMW{height:36px;min-height:36px;margin:0;padding:0 10px;font-size:10px;white-space:nowrap}
#repdPanel #mwRangeError{grid-column:1/-1}
#repdPanel #mwRangeError:empty{display:none}
@media(max-width:360px){#repdPanel .mw-bound{padding:0 4px;gap:2px}#repdPanel #applyMW{padding:0 6px}}
/* V9.54: frozen project column, real MW column alongside, compact rows. */
#repdPanel #repdScroll{--first-col:300px;--mw-col:95px}
#repdPanel #repdScroll table{border-collapse:separate;border-spacing:0;width:calc(var(--first-col) + var(--mw-col) + 1560px);min-width:100%!important}
#repdPanel #repdScroll tr>th{box-sizing:border-box;padding:6px 8px}
#repdPanel #repdScroll th[data-column-heading="name"]{width:var(--first-col)}
#repdPanel #repdScroll th[data-column-heading="capacity"]{width:var(--mw-col);text-align:center}
#repdPanel #repdScroll th[data-column-heading="county"]{width:170px}
#repdPanel #repdScroll th[data-column-heading="operator"]{width:210px}
#repdPanel #repdScroll th[data-column-heading="technology"]{width:120px}
#repdPanel #repdScroll th[data-column-heading="status"]{width:155px}
#repdPanel #repdScroll th[data-column-heading="repd"]{width:105px}
#repdPanel #repdScroll th[data-column-heading="globalgrid"]{width:155px}
#repdPanel #repdScroll #repdUpdatedHeader{width:130px}
#repdPanel #repdScroll #planningSubmittedHeader,#repdPanel #repdScroll #operationalHeader{width:145px}
#repdPanel #repdScroll th:nth-last-child(2){width:145px}
#repdPanel #repdScroll th:last-child{width:80px}
#repdPanel #repdScroll thead th:first-child{position:sticky!important;left:0;top:0;z-index:12;background:#050505}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td.site{position:sticky!important;left:0;z-index:8;background:#0e1116;box-shadow:1px 0 0 #303740}
#repdPanel #repdScroll td.mw,#repdPanel #repdScroll th[data-column-heading="capacity"]{text-align:center!important;vertical-align:middle;color:#38f58c;font-variant-numeric:tabular-nums;white-space:nowrap}
#repdPanel #repdScroll th[data-column-heading="capacity"] .column-sort{text-align:center!important}
@media(max-width:768px){
#repdPanel #repdScroll{--first-col:var(--phone-name,calc((100vw - 26px)*0.62));--mw-col:var(--phone-capacity,calc((100vw - 26px)*0.38))}
#repdPanel #repdScroll table{width:calc(var(--first-col) + var(--mw-col) + 1405px)}
/* Status is already shown inside the frozen summary; keep the desktop status column and status sort. */
#repdPanel #repdScroll tr>th[data-column-heading="status"],#repdPanel #repdScroll #tbody tr[id^="repd-"]>td:nth-child(6){display:none!important}
#repdPanel #repdScroll #tbody .project-record>summary{grid-template-columns:minmax(0,1fr);min-height:42px;gap:3px;padding:7px 8px;font-size:12px}
#repdPanel #repdScroll #tbody .phone-project-label,#repdPanel #repdScroll #tbody .phone-project-status{grid-column:1}
#repdPanel #repdScroll #tbody .phone-project-status{grid-row:2;font-size:10px}
#repdPanel #repdScroll #tbody .record-grid{grid-template-columns:1fr}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td:not(.site){font-size:11px;line-height:1.15;padding:4px 6px;vertical-align:middle}
#repdPanel #repdScroll #tbody tr[id^="repd-"]>td.mw{font-size:13px;color:#38f58c;text-align:center!important}
#repdPanel #repdScroll .project-head{gap:4px}
#repdPanel #repdScroll .column-sort{min-height:36px;font-size:10px}
#repdPanel #repdScroll #tbody .project-actions :is(.action-link,.action-disabled,.pn-journey-unavailable){min-height:32px;height:32px;font-size:10px;padding:4px}
}
/* Keep the notes trigger compact even when its column starts off screen. */
#repdPanel #repdScroll #tbody .machine-note-cell .machine-note-button{display:block;min-height:32px;height:32px;padding:4px;overflow:hidden;font-size:0!important;white-space:nowrap}
#repdPanel #repdScroll #tbody .machine-note-cell .machine-note-button>*{display:none!important}
#repdPanel #repdScroll #tbody .machine-note-cell .machine-note-button::after{content:"NOTES";font-size:10px;color:var(--accent)}Hud V955
A style sheet in the styles folder of GlobalGrid2050.
renderglobalgrid2050 / uk_renewables_pipeline/202611191418/styles/hud-v955.css · lines 1–41 of 41 · version 2026-11-19 14:18 · 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.
- 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
- No statement of purpose was found in the file, a README line naming it, or its name. Described from its file name only (a candidate, not yet checked against the code).
- Why it matters
- Loaded by the UK Renewables Pipeline page at https://globalgrid2050.com/uk_renewables_pipeline/202611280922/.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611191418/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/202611191418/styles/hud-v955.css:1-41 · blob 042487aa25cdf2d386e6f873e49594190a832f34 · 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.55: keep the original real Chart.js gauges visible, centred and above the register controls. */
.main{width:100%;max-width:1360px;margin-inline:auto!important;padding:12px 24px!important;min-width:0}
.main>.newspaper{height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 8px!important;overflow:visible!important}
.newspaper #liveNews{flex:none;height:clamp(128px,24vh,220px);max-height:none!important;overflow:auto!important;scrollbar-color:#383d44 #000;scrollbar-width:thin}
.newspaper #liveNews .ln-item{padding:8px 8px 9px}
.newspaper #liveNews .ln-title{font-size:15px;line-height:1.35}
.newspaper #liveNews .ln-brief{color:#a6adbb;font-size:11px}
.newspaper .pn-news-quality{order:2}
.newspaper #headlineTicker{order:3;margin:4px 0 0!important;min-width:0;overflow:hidden!important}
#headlineTicker .pn-ticker-title,#headlineTicker a{color:#ff3038!important;text-shadow:0 0 4px #ff2029b3,0 0 9px #ff20294d!important;font-weight:700!important;font-size:11px!important}
#headlineTicker .pn-ticker-item{min-height:30px!important}
#officialRegister{min-width:0}
#officialRegister #pipelineHeading{text-align:center;margin:8px 0 6px}
#officialRegister .pipeline-tabs{justify-content:center;margin-bottom:8px;gap:5px;padding-bottom:6px}
#officialRegister .repd-expand-launcher{margin:0 0 5px}
#repdPanel>.hud-gauges{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px;width:100%;max-width:960px;margin:4px auto 12px!important;align-items:stretch}
#repdPanel>.hud-gauges>.card{min-width:0;background:#080b10;border:1px solid #202731;border-radius:5px;padding:10px 8px 12px}
#repdPanel>.hud-gauges h3{font-size:11px;line-height:1.25;min-height:2.5em;display:flex;justify-content:center;align-items:center;text-align:center;margin:0 0 3px;color:#b0b8c5}
#repdPanel>.hud-gauges .chart{height:clamp(86px,11vw,140px);max-width:260px;margin-inline:auto;min-width:0}
#repdPanel>.hud-gauges .value{font-size:clamp(19px,2vw,29px);bottom:0;white-space:nowrap;color:#fff;line-height:1.1;font-variant-numeric:tabular-nums}
@media(max-width:768px){
.main{padding:6px 9px!important}
.newspaper #liveNews{height:clamp(90px,16svh,145px)}
.newspaper #liveNews .ln-item{padding:6px 3px}
.newspaper #liveNews .ln-title{font-size:13px}
.newspaper #liveNews .ln-brief{font-size:10px}
#officialRegister .pipeline-tabs{gap:3px;margin-bottom:5px;padding-bottom:5px}
#officialRegister .pipeline-tabs button{padding:5px 7px;min-height:33px;font-size:10px}
#repdPanel>.hud-gauges{gap:4px;margin:3px auto 8px!important}
#repdPanel>.hud-gauges>.card{padding:6px 2px 7px;border-radius:3px}
#repdPanel>.hud-gauges h3{font-size:9px;min-height:2.5em;margin-bottom:2px}
#repdPanel>.hud-gauges .chart{height:clamp(56px,16vw,88px)}
#repdPanel>.hud-gauges .value{font-size:clamp(13px,4vw,20px)}
}
/* Keep the instrument cluster in view on short desktop and rotated phones. */
.gauge-warning{color:#ff535c;text-align:center;font-size:11px}
@media(max-height:500px){
.newspaper #liveNews{height:clamp(56px,15svh,78px)}
#repdPanel>.hud-gauges .chart{height:clamp(48px,15svh,72px)}
}Hud V955
A JavaScript module in the tests folder of GlobalGrid2050 that tests the Renewable Energy Planning Database (REPD) register and solar.
testglobalgrid2050 / uk_renewables_pipeline/202611201709/tests/hud-v955.mjs · lines 1–66 of 66 · version 2026-11-20 17:09 · Entry point
- What it does
- It tests the REPD register and solar. Defines box. 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, solar.
- Downstream impact
- Used directly by 5 files: GlobalGrid2050 Pn V955 Hud Workflow (globalgrid2050); GlobalGrid2050 Pn V956 Hud Workflow (globalgrid2050); GlobalGrid2050 Pn V957 Hud Workflow (globalgrid2050); GlobalGrid2050 Pn V958 News Maximise Workflow (globalgrid2050); and 1 more.
- What it achieves
- Defines `box`.
- Why it matters
- Run by 5 workflows and scripts, including GlobalGrid2050 Pn V955 Hud Workflow, GlobalGrid2050 Pn V956 Hud Workflow and GlobalGrid2050 Pn V957 Hud Workflow.
- Application
- globalgrid2050 · uk_renewables_pipeline/202611201709/tests · JavaScript module
- Uses
- Renewable Energy Planning Database (REPD) Summary Regression (dynamic import), node:assert/strict, playwright, node:fs/promises
- Used by
- run by GlobalGrid2050 Pn V955 Hud Workflow (workflow run), run by GlobalGrid2050 Pn V956 Hud Workflow (workflow run), run by GlobalGrid2050 Pn V957 Hud Workflow (workflow run), run by GlobalGrid2050 Pn V958 News Maximise Workflow (workflow run), run by GlobalGrid2050 Pn V959 Compact News Workflow (workflow run)
- Produces
- box
- Defines here
- box
- 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/202611201709/tests/hud-v955.mjs:1-66 · blob a13a2899234b66b8ae47213134d8aaff8d7a90a8 · 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 { chromium, webkit } from 'playwright';
import { mkdir } from 'node:fs/promises';
const base=process.env.HUD_URL||'http://127.0.0.1:8765/uk_renewables_pipeline/202611201709/';
const out=process.env.HUD_ARTIFACTS||'/tmp/pn-hud';
await mkdir(out,{recursive:true});
const failures=[];
for(const [engine,launcher] of [['chromium',chromium],['webkit',webkit]]){
const browser=await launcher.launch({headless:true});
try{
for(const [width,height] of [[320,568],[393,852],[667,375],[768,1024],[1280,480],[1440,900],[1920,1080]]){
const name=engine+'-'+width;
const page=await browser.newPage({viewport:{width,height},reducedMotion:'reduce'});
const errors=[]; page.on('pageerror',e=>errors.push(e.message));
try{
await page.route("https://cdn.jsdelivr.net/npm/chart.js@4.5.1/**", route => route.abort());
await page.goto(base+'?technology=solar',{waitUntil:'domcontentloaded',timeout:60000});
await page.waitForFunction(()=>document.querySelector('#v2')?.textContent.replaceAll(',','')==='3604'&&document.querySelectorAll('#tbody tr[id^="repd-"]').length>0,null,{timeout:90000});
await page.waitForFunction(()=>typeof Chart==='function'&&['g1','g2','g3'].every(id=>Chart.getChart(document.getElementById(id))?.data.datasets[0].data[0]>0),null,{timeout:30000});
await page.waitForFunction(()=>document.querySelector('#headlineTicker .pn-ticker-title'),null,{timeout:30000});
const v=await page.evaluate(()=>{
const box=s=>{const e=document.querySelector(s),r=e.getBoundingClientRect();return {x:r.x,y:r.y,w:r.width,h:r.height,bottom:r.bottom,right:r.right}};
const t=document.querySelector('#headlineTicker .pn-ticker-title'),style=getComputedStyle(t);
return {main:box('.main'),gauges:box('.hud-gauges'),ticker:box('#headlineTicker'),cards:[...document.querySelectorAll('.hud-gauges>.card')].map(e=>({w:e.clientWidth,h:e.clientHeight})),canvases:['g1','g2','g3'].map(id=>box('#'+id)),values:['v1','v2','v3'].map(id=>document.getElementById(id).textContent),shadow:style.textShadow,color:style.color,scroll:document.documentElement.scrollWidth,clien … [line shortened here: 536 characters; full line on GitHub]
});
assert.equal(v.cards.length,3);assert.equal(v.hidden,false);assert.ok(v.canvases.every(c=>c.w>35&&c.h>40));assert.ok(v.gauges.bottom<=height,'HUD outside initial viewport '+JSON.stringify(v));assert.ok(v.ticker.bottom<=v.gauges.y,'ticker must precede HUD');assert.ok(v.scroll<=v.client+2,'page overflows horizontally');assert.ok(Math.abs(v.main.x-(v.client-v.main.right))<=4,'main not centred');as … [line shortened here: 472 characters; full line on GitHub]
assert.match(await page.title(), /V9\.57.*202611201709/);
assert.equal(await page.locator("#gaugeWarning").isVisible(), false);
assert.deepEqual(errors, []);
await page.screenshot({path:out+'/'+name+'.png'});
const rows = await page.locator('#tbody tr[id^="repd-"]').evaluateAll(records => records.map(record => {
const name = record.querySelector('td.site');
const capacity = record.querySelector('td.mw');
return {height:record.getBoundingClientRect().height, beside:capacity.cellIndex===name.cellIndex+1,
alignment:getComputedStyle(capacity).textAlign, notes:record.querySelector('td.machine-note-cell .machine-note-button')?.getBoundingClientRect().height};
}));
assert.equal(rows.length, 50);
assert.ok(rows.every(row => row.beside && row.alignment === 'center'), 'MW column lost alignment');
assert.ok(rows.filter(row => row.notes).every(row => row.notes <= 34), 'Expanded news preview inflated a collapsed row');
const wrap=page.locator('#repdScroll');await wrap.scrollIntoViewIfNeeded();
const result=await page.evaluate(()=>{const w=document.querySelector('#repdScroll'),cell=w.querySelector('tbody tr[id^="repd-"] td.site');const before=cell.getBoundingClientRect().x;w.scrollLeft=Math.min(350,w.scrollWidth-w.clientWidth);return {before,after:cell.getBoundingClientRect().x,scroll:w.scrollLeft,width:cell.getBoundingClientRect().width,wrap:w.clientWidth}});
assert.ok(result.scroll>0,'table not horizontally scrollable');assert.ok(Math.abs(result.before-result.after)<3,'project column not frozen');assert.ok(result.width<result.wrap*.85,'project column consumes viewport');
await page.screenshot({path:out+'/'+name+'-register.png'});
console.log(JSON.stringify({name,status:'PASS',...v,table:result,pageErrors:errors}));
}catch(e){failures.push(name+': '+e.message);console.error(name,e.message,errors);await page.screenshot({path:out+'/'+name+'-FAIL.png'}).catch(()=>{});}
finally{await page.close();}
}
if (process.env.HUD_TEST_LOCAL_FAILURE !== '0') {
const page = await browser.newPage({viewport:{width:393,height:852}});
try {
await page.route('**/vendor/chart.umd.min.js', route => route.abort());
await page.goto(base+'?technology=solar', {waitUntil:'domcontentloaded'});
await page.waitForFunction(() => document.querySelector('#v2')?.textContent === '3,604');
assert.equal(await page.locator('#gaugeWarning').isVisible(), true);
assert.equal(await page.locator('#tbody tr[id^="repd-"]').count(), 50);
} catch (error) {
failures.push(engine + ' local chart outage: ' + error.message);
} finally {
await page.close();
}
}
}finally{await browser.close();}
}
await import('./repd-summary-regression.mjs');
assert.deepEqual(failures,[]);