GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Solar and storage design / globalgrid2050 / solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons

Manifest and 6 more files

A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV.

678 lines of YAML and HTML from globalgrid2050, in 7 files. Topic: Solar and storage design. Section 97 of 2044.

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

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

In this section

  1. Manifest docs-config · globalgrid2050 / solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml lines 1–153
  2. Manifest docs-config · globalgrid2050 / solar-bess-topology-v6/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml lines 1–82
  3. Manifest docs-config · globalgrid2050 / solar-bess-topology-v6/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml lines 1–109
  4. Manifest docs-config · globalgrid2050 / solar-bess-topology-v6/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml lines 1–83
  5. Manifest docs-config · globalgrid2050 / solar-bess-topology-v6/upgrades/006_gis_sld_map_tool_overlay/manifest.yml lines 1–130
  6. Active Upgrade docs-config · globalgrid2050 / solar-bess-topology-v6/upgrades/ACTIVE_UPGRADE.yml lines 1–3
  7. Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page render · globalgrid2050 / solar-bess-topology-v7/dc-ac-lv-topology-review/index.html lines 1–118

Manifest

A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV.

docs-configglobalgrid2050 / solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml · lines 1–153 of 153 · Not reached from any entry point (candidate for review)

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 400kV, 66kV, 275kV, 132kV.
Inputs & outputs
Voltage levels named: 400kV, 275kV, 132kV, 66kV.
What it achieves
Replace legend based Atlas V8 voltage toggles with real map buttons using the same interaction pattern as SUBS and SATELLITE VIEW.
Why it matters
No other file in the estate was found to import it.
Application
globalgrid2050 · solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons · configuration
Uses
none found
Used by
none found
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 solar-bess-topology-v6/upgrades/004_gis_sld_atlas_v8_voltage_buttons/manifest.yml:1-153 · blob 9c00a09fd2cf4f8c9db8033369aab8fe00295439 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
upgrade_id: 004_gis_sld_atlas_v8_voltage_buttons
target_app: gis-sld-financial-sandbox
description: Replace legend based Atlas V8 voltage toggles with real map buttons using the same interaction pattern as SUBS and SATELLITE VIEW.
allowed_paths:
  - solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
operations:
  - type: replace
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    find: |
      <div style="position: absolute; top: 10px; right: 10px; z-index: 20; display: flex; gap: 8px;">
              <button id="btn_subs_toggle" class="map-toggle-btn active">SUBS ON</button>
              <button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>
          </div>
    replace: |
      <div class="map-controls">
              <div class="map-toggle-row">
                  <button id="btn_subs_toggle" class="map-toggle-btn active">SUBS ON</button>
                  <button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>
              </div>
              <div class="map-toggle-row voltage-toggle-row">
                  <button id="btn_atlas_66kv" class="map-toggle-btn active atlas-voltage-btn atlas-66kv" data-atlas-voltage="66kv">66 kV ON</button>
                  <button id="btn_atlas_132kv" class="map-toggle-btn active atlas-voltage-btn atlas-132kv" data-atlas-voltage="132kv">132 kV ON</button>
                  <button id="btn_atlas_275kv" class="map-toggle-btn active atlas-voltage-btn atlas-275kv" data-atlas-voltage="275kv">275 kV ON</button>
                  <button id="btn_atlas_400kv" class="map-toggle-btn active atlas-voltage-btn atlas-400kv" data-atlas-voltage="400kv">400 kV ON</button>
              </div>
          </div>
  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    marker: '/* Map Elements */'
    insert: |
      .map-controls {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
      }

      .map-toggle-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .voltage-toggle-row .map-toggle-btn {
        font-size: 10px;
        padding: 5px 8px;
      }

      .atlas-voltage-btn:not(.active) {
        color: #777;
        border-color: #333;
        opacity: 0.65;
      }

      .atlas-66kv.active { border-color: #66ff66; color: #66ff66; }
      .atlas-132kv.active { border-color: #ffcc00; color: #ffcc00; }
      .atlas-275kv.active { border-color: #ff66ff; color: #ff66ff; }
      .atlas-400kv.active { border-color: #ff3333; color: #ff3333; }

  - type: replace
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js
    find: |
      function toggleAtlasV8GridLayer(voltageKey) {
          if (!atlasV8GridLayerIds[voltageKey]) return;
          atlasV8GridLayerVisibility[voltageKey] = !atlasV8GridLayerVisibility[voltageKey];
          const layerId = atlasV8GridLayerIds[voltageKey];
          if (map && map.getLayer(layerId)) {
              map.setLayoutProperty(layerId, "visibility", atlasV8GridLayerVisibility[voltageKey] ? "visible" : "none");
          }
          updateLegend();
      }
    replace: |
      function toggleAtlasV8GridLayer(voltageKey) {
          if (!atlasV8GridLayerIds[voltageKey]) return;
          atlasV8GridLayerVisibility[voltageKey] = !atlasV8GridLayerVisibility[voltageKey];
          const layerId = atlasV8GridLayerIds[voltageKey];
          if (map && map.getLayer(layerId)) {
              map.setLayoutProperty(layerId, "visibility", atlasV8GridLayerVisibility[voltageKey] ? "visible" : "none");
          }
          updateLegend();
          if (typeof updateAtlasV8GridToggleButtons === "function") updateAtlasV8GridToggleButtons();
      }
  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: |
      function toggleSubs() {
          if (!map || !map.getLayer("l-subs")) return;
          state.subsVisible = !state.subsVisible;
          map.setLayoutProperty("l-subs", "visibility", state.subsVisible ? "visible" : "none");
          const btn = $("btn_subs_toggle");
          if (btn) {
              btn.textContent = state.subsVisible ? "SUBS ON" : "SUBS OFF";
              btn.classList.toggle("active", state.subsVisible);
          }
      }
    insert: |

      function updateAtlasV8GridToggleButtons() {
          const labels = {
              "66kv": "66 kV",
              "132kv": "132 kV",
              "275kv": "275 kV",
              "400kv": "400 kV"
          };
          Object.keys(labels).forEach(voltageKey => {
              const btn = $(`btn_atlas_${voltageKey}`);
              if (!btn) return;
              const visible = atlasV8GridLayerVisibility?.[voltageKey] !== false;
              btn.textContent = `${labels[voltageKey]} ${visible ? "ON" : "OFF"}`;
              btn.classList.toggle("active", visible);
          });
      }

      function wireAtlasV8GridToggleButtons() {
          document.querySelectorAll(".atlas-voltage-btn").forEach(btn => {
              btn.addEventListener("click", () => {
                  const voltageKey = btn.dataset.atlasVoltage;
                  toggleAtlasV8GridLayer(voltageKey);
              });
          });
          updateAtlasV8GridToggleButtons();
      }
  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: |
          $("btn_basemap")?.addEventListener("click", toggleBasemap);
          $("btn_subs_toggle")?.addEventListener("click", toggleSubs);
    insert: |
          wireAtlasV8GridToggleButtons();
checks:
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'btn_atlas_66kv'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'data-atlas-voltage="400kv"'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    text: 'wireAtlasV8GridToggleButtons'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js
    text: 'updateAtlasV8GridToggleButtons'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    text: '.map-controls'

Manifest

A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 66kV and 132kV.

docs-configglobalgrid2050 / solar-bess-topology-v6/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml · lines 1–82 of 82 · Not reached from any entry point (candidate for review)

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 66kV, 132kV, 400kV, 275kV.
Inputs & outputs
Voltage levels named: 400kV, 275kV, 132kV, 66kV.
What it achieves
Add real Atlas voltage toggle buttons using the same event listener pattern as existing map buttons.
Why it matters
No other file in the estate was found to import it.
Application
globalgrid2050 · solar-bess-topology-v6/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe · configuration
Uses
none found
Used by
none found
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 solar-bess-topology-v6/upgrades/004b_gis_sld_atlas_v8_voltage_buttons_safe/manifest.yml:1-82 · blob 17accbe4ad2bd8e9bce8233ea61f6cd89cc8c29c · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
upgrade_id: 004b_gis_sld_atlas_v8_voltage_buttons_safe
target_app: gis-sld-financial-sandbox
description: Add real Atlas voltage toggle buttons using the same event listener pattern as existing map buttons.
allowed_paths:
  - solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
operations:
  - type: regex_replace
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    flags: s
    pattern: '<div style="position: absolute; top: 10px; right: 10px; z-index: 20; display: flex; gap: 8px;">\s*<button id="btn_subs_toggle" class="map-toggle-btn active">SUBS ON</button>\s*<button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>\s*</div>'
    replace: |
      <div class="map-controls">
              <div class="map-toggle-row">
                  <button id="btn_subs_toggle" class="map-toggle-btn active">SUBS ON</button>
                  <button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>
              </div>
              <div class="map-toggle-row voltage-toggle-row">
                  <button id="btn_atlas_66kv" class="map-toggle-btn active atlas-voltage-btn atlas-66kv" data-atlas-voltage="66kv">66 kV ON</button>
                  <button id="btn_atlas_132kv" class="map-toggle-btn active atlas-voltage-btn atlas-132kv" data-atlas-voltage="132kv">132 kV ON</button>
                  <button id="btn_atlas_275kv" class="map-toggle-btn active atlas-voltage-btn atlas-275kv" data-atlas-voltage="275kv">275 kV ON</button>
                  <button id="btn_atlas_400kv" class="map-toggle-btn active atlas-voltage-btn atlas-400kv" data-atlas-voltage="400kv">400 kV ON</button>
              </div>
          </div>
  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    marker: '/* Map Elements */'
    insert: |
      .map-controls { position:absolute; top:10px; right:10px; z-index:20; display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
      .map-toggle-row { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
      .voltage-toggle-row .map-toggle-btn { font-size:10px; padding:5px 8px; }
      .atlas-voltage-btn:not(.active) { color:#777; border-color:#333; opacity:0.65; }
      .atlas-66kv.active { border-color:#66ff66; color:#66ff66; }
      .atlas-132kv.active { border-color:#ffcc00; color:#ffcc00; }
      .atlas-275kv.active { border-color:#ff66ff; color:#ff66ff; }
      .atlas-400kv.active { border-color:#ff3333; color:#ff3333; }

  - type: replace
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js
    find: '    updateLegend();\n}'
    replace: '    updateLegend();\n    if (typeof updateAtlasV8GridToggleButtons === "function") updateAtlasV8GridToggleButtons();\n}'
    count: 1
  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: '// ============================================================\n// WIRE EVERYTHING UP'
    insert: |
      function updateAtlasV8GridToggleButtons() {
          const labels = { "66kv": "66 kV", "132kv": "132 kV", "275kv": "275 kV", "400kv": "400 kV" };
          Object.keys(labels).forEach(voltageKey => {
              const btn = $(`btn_atlas_${voltageKey}`);
              if (!btn) return;
              const visible = atlasV8GridLayerVisibility?.[voltageKey] !== false;
              btn.textContent = `${labels[voltageKey]} ${visible ? "ON" : "OFF"}`;
              btn.classList.toggle("active", visible);
          });
      }

      function wireAtlasV8GridToggleButtons() {
          document.querySelectorAll(".atlas-voltage-btn").forEach(btn => {
              btn.addEventListener("click", () => toggleAtlasV8GridLayer(btn.dataset.atlasVoltage));
          });
          updateAtlasV8GridToggleButtons();
      }

  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: '    $("btn_subs_toggle")?.addEventListener("click", toggleSubs);'
    insert: |

          wireAtlasV8GridToggleButtons();
checks:
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'btn_atlas_66kv'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    text: 'wireAtlasV8GridToggleButtons'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-map.js
    text: 'updateAtlasV8GridToggleButtons'

Manifest

A configuration file in the upgrades folder of GlobalGrid2050 covering solar, battery storage (BESS), 400kV and 66kV.

docs-configglobalgrid2050 / solar-bess-topology-v6/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml · lines 1–109 of 109 · Not reached from any entry point (candidate for review)

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS), 400kV, 66kV, 275kV, 132kV.
Inputs & outputs
Voltage levels named: 400kV, 275kV, 132kV, 66kV.
What it achieves
Add real Atlas voltage toggle buttons without patching the map layer function.
Why it matters
No other file in the estate was found to import it.
Application
globalgrid2050 · solar-bess-topology-v6/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch · configuration
Uses
none found
Used by
none found
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 solar-bess-topology-v6/upgrades/004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch/manifest.yml:1-109 · blob 3d79df7177b34b39f29399cede8e3ae6009cd6db · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
upgrade_id: 004c_gis_sld_atlas_v8_voltage_buttons_no_map_patch
target_app: gis-sld-financial-sandbox
description: Add real Atlas voltage toggle buttons without patching the map layer function. Uses existing toggleAtlasV8GridLayer logic and updates button states from UI listeners.
allowed_paths:
  - solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
operations:
  - type: regex_replace
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    flags: s
    pattern: '<div style="position: absolute; top: 10px; right: 10px; z-index: 20; display: flex; gap: 8px;">\s*<button id="btn_subs_toggle" class="map-toggle-btn active">SUBS ON</button>\s*<button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>\s*</div>'
    replace: |
      <div class="map-controls">
              <div class="map-toggle-row">
                  <button id="btn_subs_toggle" class="map-toggle-btn active">SUBS ON</button>
                  <button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>
              </div>
              <div class="map-toggle-row voltage-toggle-row">
                  <button id="btn_atlas_66kv" class="map-toggle-btn active atlas-voltage-btn atlas-66kv" data-atlas-voltage="66kv">66 kV ON</button>
                  <button id="btn_atlas_132kv" class="map-toggle-btn active atlas-voltage-btn atlas-132kv" data-atlas-voltage="132kv">132 kV ON</button>
                  <button id="btn_atlas_275kv" class="map-toggle-btn active atlas-voltage-btn atlas-275kv" data-atlas-voltage="275kv">275 kV ON</button>
                  <button id="btn_atlas_400kv" class="map-toggle-btn active atlas-voltage-btn atlas-400kv" data-atlas-voltage="400kv">400 kV ON</button>
              </div>
          </div>
  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    marker: '/* Map Elements */'
    insert: |
      .map-controls {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
      }

      .map-toggle-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .voltage-toggle-row .map-toggle-btn {
        font-size: 10px;
        padding: 5px 8px;
      }

      .atlas-voltage-btn:not(.active) {
        color: #777;
        border-color: #333;
        opacity: 0.65;
      }

      .atlas-66kv.active { border-color: #66ff66; color: #66ff66; }
      .atlas-132kv.active { border-color: #ffcc00; color: #ffcc00; }
      .atlas-275kv.active { border-color: #ff66ff; color: #ff66ff; }
      .atlas-400kv.active { border-color: #ff3333; color: #ff3333; }

  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: |
      // ============================================================
      // WIRE EVERYTHING UP
    insert: |
      function updateAtlasV8GridToggleButtons() {
          const labels = { "66kv": "66 kV", "132kv": "132 kV", "275kv": "275 kV", "400kv": "400 kV" };
          Object.keys(labels).forEach(voltageKey => {
              const btn = $(`btn_atlas_${voltageKey}`);
              if (!btn) return;
              const visible = atlasV8GridLayerVisibility?.[voltageKey] !== false;
              btn.textContent = `${labels[voltageKey]} ${visible ? "ON" : "OFF"}`;
              btn.classList.toggle("active", visible);
          });
      }

      function wireAtlasV8GridToggleButtons() {
          document.querySelectorAll(".atlas-voltage-btn").forEach(btn => {
              btn.addEventListener("click", () => {
                  toggleAtlasV8GridLayer(btn.dataset.atlasVoltage);
                  updateAtlasV8GridToggleButtons();
              });
          });
          updateAtlasV8GridToggleButtons();
      }

  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: '    $("btn_subs_toggle")?.addEventListener("click", toggleSubs);'
    insert: |
      
          wireAtlasV8GridToggleButtons();
checks:
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'btn_atlas_66kv'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'data-atlas-voltage="400kv"'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    text: 'wireAtlasV8GridToggleButtons'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    text: '.map-controls'

Manifest

A configuration file in the upgrades folder of GlobalGrid2050 covering solar and battery storage (BESS).

docs-configglobalgrid2050 / solar-bess-topology-v6/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml · lines 1–83 of 83 · Not reached from any entry point (candidate for review)

What it does
Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS).
What it achieves
Add map expand mode and key collapse controls.
Why it matters
No other file in the estate was found to import it.
Application
globalgrid2050 · solar-bess-topology-v6/upgrades/005_gis_sld_map_expand_and_key_collapse · configuration
Uses
none found
Used by
none found
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 solar-bess-topology-v6/upgrades/005_gis_sld_map_expand_and_key_collapse/manifest.yml:1-83 · blob 7daf09adee5aab0ded98036d3758c277f0970316 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
upgrade_id: 005_gis_sld_map_expand_and_key_collapse
target_app: gis-sld-financial-sandbox
description: Add map expand mode and key collapse controls.
allowed_paths:
  - solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
operations:
  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    marker: '<button id="btn_basemap" class="map-toggle-btn">SATELLITE VIEW</button>'
    insert: |

                  <button id="btn_map_expand" class="map-toggle-btn">MAP MAX</button>
                  <button id="btn_key_toggle" class="map-toggle-btn active">KEY ON</button>
  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    marker: '/* Map Elements */'
    insert: |
      body.map-expanded { overflow: hidden; padding: 0; }
      body.map-expanded .dashboard { max-width: none; width: 100vw; height: 100vh; }
      body.map-expanded .panel-left { display: none; }
      .panel-right.map-expanded { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; border-radius: 0; border: none; }
      .panel-right.map-expanded #map { min-height: 100vh; }
      .legend.key-collapsed { display: none; }
      @media (max-width: 900px) {
        .map-controls { left: 10px; right: 10px; align-items: flex-end; }
        .map-toggle-row { gap: 6px; }
        .map-toggle-btn { font-size: 10px; padding: 5px 7px; }
      }

  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: |
      // ============================================================
      // WIRE EVERYTHING UP
    insert: |
      function toggleMapExpand() {
          const panel = document.querySelector(".panel-right");
          const btn = $("btn_map_expand");
          if (!panel) return;
          const active = !panel.classList.contains("map-expanded");
          panel.classList.toggle("map-expanded", active);
          document.body.classList.toggle("map-expanded", active);
          if (btn) {
              btn.textContent = active ? "MAP MIN" : "MAP MAX";
              btn.classList.toggle("active", active);
          }
          setTimeout(() => { if (map && typeof map.resize === "function") map.resize(); }, 150);
      }

      function toggleKeyCollapse() {
          const legend = $("map_legend");
          const btn = $("btn_key_toggle");
          if (!legend) return;
          const hidden = !legend.classList.contains("key-collapsed");
          legend.classList.toggle("key-collapsed", hidden);
          if (btn) {
              btn.textContent = hidden ? "KEY OFF" : "KEY ON";
              btn.classList.toggle("active", !hidden);
          }
      }

  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: 'wireAtlasV8GridToggleButtons();'
    insert: |

          $("btn_map_expand")?.addEventListener("click", toggleMapExpand);
          $("btn_key_toggle")?.addEventListener("click", toggleKeyCollapse);
checks:
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'btn_map_expand'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'btn_key_toggle'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    text: '.panel-right.map-expanded'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    text: 'toggleMapExpand'

Manifest

A configuration file in the upgrades folder of GlobalGrid2050 covering solar and battery storage (BESS).

docs-configglobalgrid2050 / solar-bess-topology-v6/upgrades/006_gis_sld_map_tool_overlay/manifest.yml · lines 1–130 of 130 · Not reached from any entry point (candidate for review)

Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar, battery storage (BESS).
What it achieves
Add collapsible map overlay tools for draw, cable route pins, array movement and rotation using existing functions.
Why it matters
No other file in the estate was found to import it.
Application
globalgrid2050 · solar-bess-topology-v6/upgrades/006_gis_sld_map_tool_overlay · configuration
Uses
none found
Used by
none found
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 solar-bess-topology-v6/upgrades/006_gis_sld_map_tool_overlay/manifest.yml:1-130 · blob a4568929bc9312556691f1919d5f8751eda7ab49 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
upgrade_id: 006_gis_sld_map_tool_overlay
target_app: gis-sld-financial-sandbox
description: Add collapsible map overlay tools for draw, cable route pins, array movement and rotation using existing functions.
allowed_paths:
  - solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
  - solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
operations:
  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    marker: |
      </div>
          </div>
      
          <div class="crosshair">⌖</div>
    insert: |
          <div class="map-tool-overlay" id="map_tool_overlay">
              <div class="map-toggle-row">
                  <button id="btn_map_tools_toggle" class="map-toggle-btn active">TOOLS ON</button>
                  <button id="btn_map_draw" class="map-toggle-btn">DRAW</button>
                  <button id="btn_map_pick_array" class="map-toggle-btn">PICK ARRAY</button>
                  <button id="btn_map_drop_pins" class="map-toggle-btn">DROP PINS</button>
                  <button id="btn_map_draw_route" class="map-toggle-btn">DRAW ROUTE</button>
              </div>
              <div class="map-toggle-row map-tool-row-secondary">
                  <button id="btn_map_rotate_left" class="map-toggle-btn">ROT -30</button>
                  <button id="btn_map_rotate_right" class="map-toggle-btn">ROT +30</button>
                  <button id="btn_map_rotate_90" class="map-toggle-btn">ROT +90</button>
                  <button id="btn_map_nudge_up" class="map-toggle-btn">↑</button>
                  <button id="btn_map_nudge_left" class="map-toggle-btn">←</button>
                  <button id="btn_map_nudge_right" class="map-toggle-btn">→</button>
                  <button id="btn_map_nudge_down" class="map-toggle-btn">↓</button>
              </div>
              <div class="map-toggle-row map-tool-row-secondary">
                  <button id="btn_map_undo_pin" class="map-toggle-btn">UNDO PIN</button>
                  <button id="btn_map_clear_route" class="map-toggle-btn">CLEAR ROUTE</button>
                  <button id="btn_map_reset_rotation" class="map-toggle-btn">RESET ROT</button>
                  <button id="btn_map_reset_array" class="map-toggle-btn">RESET ARRAY</button>
              </div>
          </div>

  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    marker: '/* Map Elements */'
    insert: |
      .map-tool-overlay {
        position: absolute;
        top: 110px;
        right: 10px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: flex-end;
        max-width: 520px;
      }

      .map-tool-overlay.tools-collapsed .map-tool-row-secondary,
      .map-tool-overlay.tools-collapsed button:not(#btn_map_tools_toggle) {
        display: none;
      }

      .map-tool-row-secondary .map-toggle-btn {
        font-size: 10px;
        padding: 5px 7px;
      }

      @media (max-width: 900px) {
        .map-tool-overlay {
          left: 10px;
          right: 10px;
          top: 118px;
          max-width: none;
        }
      }

  - type: insert_before
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: |
      // ============================================================
      // WIRE EVERYTHING UP
    insert: |
      function toggleMapToolsOverlay() {
          const overlay = $("map_tool_overlay");
          const btn = $("btn_map_tools_toggle");
          if (!overlay || !btn) return;
          const collapsed = !overlay.classList.contains("tools-collapsed");
          overlay.classList.toggle("tools-collapsed", collapsed);
          btn.textContent = collapsed ? "TOOLS OFF" : "TOOLS ON";
          btn.classList.toggle("active", !collapsed);
      }

      function wireMapToolOverlayButtons() {
          $("btn_map_tools_toggle")?.addEventListener("click", toggleMapToolsOverlay);
          $("btn_map_draw")?.addEventListener("click", triggerDrawAtCenter);
          $("btn_map_pick_array")?.addEventListener("click", toggleArrayMoveMode);
          $("btn_map_drop_pins")?.addEventListener("click", toggleCablePinMode);
          $("btn_map_draw_route")?.addEventListener("click", commitCablePinRoute);
          $("btn_map_rotate_left")?.addEventListener("click", () => rotateArrayBy(-30));
          $("btn_map_rotate_right")?.addEventListener("click", () => rotateArrayBy(30));
          $("btn_map_rotate_90")?.addEventListener("click", () => rotateArrayBy(90));
          $("btn_map_reset_rotation")?.addEventListener("click", resetArrayRotation);
          $("btn_map_reset_array")?.addEventListener("click", resetArrayLocation);
          $("btn_map_nudge_up")?.addEventListener("click", () => nudgeArray(0));
          $("btn_map_nudge_right")?.addEventListener("click", () => nudgeArray(90));
          $("btn_map_nudge_down")?.addEventListener("click", () => nudgeArray(180));
          $("btn_map_nudge_left")?.addEventListener("click", () => nudgeArray(270));
          $("btn_map_undo_pin")?.addEventListener("click", undoCablePin);
          $("btn_map_clear_route")?.addEventListener("click", clearCableRoute);
      }

  - type: insert_after
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    marker: '$("btn_key_toggle")?.addEventListener("click", toggleKeyCollapse);'
    insert: |
      
          wireMapToolOverlayButtons();
checks:
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'map_tool_overlay'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/index.html
    text: 'btn_map_draw_route'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5.css
    text: '.map-tool-overlay'
  - type: assert_contains
    file: solar-bess-topology-v6/gis-sld-financial-sandbox/gis-sld-v5-ui.js
    text: 'wireMapToolOverlayButtons'

Active Upgrade

A configuration file in the upgrades folder of GlobalGrid2050.

docs-configglobalgrid2050 / solar-bess-topology-v6/upgrades/ACTIVE_UPGRADE.yml · lines 1–3 of 3 · Not reached from any entry point (candidate for review)

Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'bess'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
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
No other file in the estate was found to import it.
Application
globalgrid2050 · solar-bess-topology-v6/upgrades · configuration
Uses
none found
Used by
none found
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 solar-bess-topology-v6/upgrades/ACTIVE_UPGRADE.yml:1-3 · blob 229c28fd68fff976f3e4ffce1f6f93787758c269 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
upgrade_id: 006_gis_sld_map_tool_overlay
target_app: gis-sld-financial-sandbox
dry_run: false

Solar Battery Energy Storage System (BESS) Topology V7 — DC AC LV Topology Review Page

A web page in GlobalGrid2050 that draws SVG graphics and reads inputs for mod wp, voc and vmp (units: MVA, °C, MW). Published at https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/.

renderglobalgrid2050 / solar-bess-topology-v7/dc-ac-lv-topology-review/index.html · lines 1–118 of 118 · Entry point

What it does
It draws cables, 33kV, solar and transformers. Side effects: changes the web page (DOM).
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'ac'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables, 33kV, solar, transformers.
Inputs & outputs
In: form fields (user input). Out: web page; SVG drawing. Voltage levels named: 33kV.
Downstream impact
Used directly by 4 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/module-layout/); Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (globalgrid2050, https://globalgrid2050.com/testcode/202609051958/layer-apps/solar-bess-topology-v7/module-layout/); Spider Maya — V1 Page (spiders, https://ventusltd.github.io/spiders/spider_maya/v1/). Reached from 136 other entry points, including Iterations — 43 Registry Growth Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/43-registry-growth/); Iterations — 47 Federation Honesty Page (galaxies-wafers, https://ventusltd.github.io/galaxies-wafers/iterations/47-federation-honesty/); Demonstration Videos (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/docs/demonstration-videos.html). It is itself an entry point, published at https://globalgrid2050.com/solar-bess-topology-v7/dc-ac-lv-topology-review/.
What it achieves
Its code works with 33 kV and 0 MVA.
Why it matters
Loaded by the Solar Battery Energy Storage System (BESS) Topology V7 page at https://globalgrid2050.com/solar-bess-topology-v7/ and 3 other pages.
Application
globalgrid2050 · solar-bess-topology-v7/dc-ac-lv-topology-review · page
Uses
GIS Single-Line Diagram (SLD) V4 (stylesheet), Module Layout V5 (stylesheet), DC AC LV Topology Review V5 (stylesheet), Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (link), Solar Battery Energy Storage System (BESS) Topology V7 — GIS Single-Line Diagram (SLD) Financial Sandbox Page (link), DC AC LV Topology Review V5 (script src)
Used by
linked from GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (link), linked from Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (link), linked from Solar Battery Energy Storage System (BESS) Topology V7 — Module Layout Page (link), named by URL in Spider Maya — V1 Page (estate URL)
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 solar-bess-topology-v7/dc-ac-lv-topology-review/index.html:1-118 · blob 83c44bb388568f5e4ae1b2b93eae482fc6187df4 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>DC AC LV Topology Review V7 | GlobalGrid2050</title>
    <link rel="stylesheet" href="./gis-sld-v5.css" />
    <link rel="stylesheet" href="./module-layout-v5.css" />
    <link rel="stylesheet" href="./dc-ac-lv-topology-review-v5.css" />
</head>
<body>
    <div class="module-app-shell topo-app-shell">
        <header class="module-header topo-header">
            <div>
                <div class="module-kicker">GlobalGrid2050 V7</div>
                <h1>DC AC LV Topology Review</h1>
                <p>Separate low voltage and DC engineering app for solar PV cable topology, string sizing, inverter aggregation, skid loading and SCADA style topology review.</p>
            </div>
            <div class="topo-header-links">
<button id="topo_print_report" class="module-link print-btn" type="button" onclick="window.print()">Print</button>
                <a class="module-link" href="../module-layout/index.html">Module Layout V7</a>
                <a class="module-link" href="../gis-sld-financial-sandbox/index.html">Back to GIS SLD V7</a>
            </div>
        </header>

        <main class="module-main topo-main">
            <section class="module-panel topo-panel">
                <div class="topo-tabs">
                    <button id="topo_tab_string" class="topo-tab active" data-mode="string">String Inverter</button>
                    <button id="topo_tab_central" class="topo-tab" data-mode="central">Central Inverter</button>
                </div>

                <div class="topo-mode active" data-mode-panel="string">
                    <h2>Module Electrical Data</h2>
                    <label>Module Rating Wp</label><input id="s_mod_wp" type="number" value="660" step="1" />
                    <label>Module Voc V</label><input id="s_voc" type="number" value="45.9" step="0.01" />
                    <label>Module Vmp V</label><input id="s_vmp" type="number" value="38.1" step="0.01" />
                    <label>Module Isc A</label><input id="s_isc" type="number" value="18.45" step="0.01" />
                    <label>Module Imp A</label><input id="s_imp" type="number" value="17.35" step="0.01" />
                    <label>Maximum Series Fuse A</label><input id="s_fuse_a" type="number" value="35" step="1" />
                    <label>Maximum System Voltage Vdc</label><input id="s_system_v" type="number" value="1500" step="10" />
                    <label>Voc Temperature Coefficient % per °C</label><input id="s_voc_coeff" type="number" value="-0.25" step="0.01" />
                    <label>Isc Temperature Coefficient % per °C</label><input id="s_isc_coeff" type="number" value="0.04" step="0.01" />
                    <label>Minimum Design Temperature °C</label><input id="s_min_temp" type="number" value="-10" step="1" />
                    <label>Current Correction Factor</label><input id="s_current_factor" type="number" value="1.25" step="0.01" />
                    <label>Bifacial Current Uplift %</label><input id="s_bifacial_current" type="number" value="10" step="1" />

                    <h2>String Inverter Topology</h2>
                    <label>Modules per String</label><input id="s_modules_per_string" type="number" value="30" min="1" step="1" />
                    <label>Strings per String Inverter</label><input id="s_strings_per_inverter" type="number" value="21" min="1" step="1" />
                    <label>String Inverter Rating kVA</label><input id="s_inverter_kva" type="number" value="352" min="1" step="1" />
                    <label>String Inverters per Skid</label><input id="s_inverters_per_skid" type="number" value="28" min="1" step="1" />
                    <label>Skid Transformer Rating MVA</label><input id="s_skid_mva" type="number" value="8.96" min="0.1" step="0.01" />
                    <label>Skids per 33 kV Ring</label><input id="s_skids_per_ring" type="number" value="5" min="1" step="1" />

                    <h2>DC Cable Review</h2>
                    <label>DC String Cable Length m</label><input id="s_dc_length_m" type="number" value="300" min="1" step="1" />
                    <label>DC Cable CSA mm²</label><input id="s_dc_csa" type="number" value="6" min="1" step="1" />
                    <label>DC Cable Material</label><select id="s_dc_material"><option value="cu" selected>Copper</option><option value="al">Aluminium</option></select>
                    <label>Allowable DC Voltage Drop %</label><input id="s_dc_vdrop_limit" type="number" value="1.0" step="0.1" />
                </div>

                <div class="topo-mode" data-mode-panel="central">
                    <h2>Module Electrical Data</h2>
                    <label>Module Rating Wp</label><input id="c_mod_wp" type="number" value="660" step="1" />
                    <label>Module Voc V</label><input id="c_voc" type="number" value="45.9" step="0.01" />
                    <label>Module Vmp V</label><input id="c_vmp" type="number" value="38.1" step="0.01" />
                    <label>Module Isc A</label><input id="c_isc" type="number" value="18.45" step="0.01" />
                    <label>Maximum System Voltage Vdc</label><input id="c_system_v" type="number" value="1500" step="10" />
                    <label>Voc Temperature Coefficient % per °C</label><input id="c_voc_coeff" type="number" value="-0.25" step="0.01" />
                    <label>Minimum Design Temperature °C</label><input id="c_min_temp" type="number" value="-10" step="1" />
                    <label>Current Correction Factor</label><input id="c_current_factor" type="number" value="1.25" step="0.01" />
                    <label>Bifacial Current Uplift %</label><input id="c_bifacial_current" type="number" value="10" step="1" />

                    <h2>Central Inverter Topology</h2>
                    <label>Modules per String</label><input id="c_modules_per_string" type="number" value="30" min="1" step="1" />
                    <label>Strings per Combiner Box</label><input id="c_strings_per_combiner" type="number" value="24" min="1" step="1" />
                    <label>Combiner Box Design Limit kWdc</label><input id="c_combiner_limit_kw" type="number" value="500" min="1" step="10" />
                    <label>Central Inverter DC Input Rating MWdc</label><input id="c_inv_dc_mw" type="number" value="5.28" min="0.1" step="0.01" />
                    <label>Central Inverter AC Output Rating MWac</label><input id="c_inv_ac_mw" type="number" value="4.40" min="0.1" step="0.01" />
                    <label>Central Skid Transformer Rating MVA</label><input id="c_skid_mva" type="number" value="4.40" min="0.1" step="0.01" />
                    <label>Central Inverter Units per Skid</label><input id="c_inverters_per_skid" type="number" value="1" min="1" step="1" />
                    <label>Central Skids per 33 kV Ring</label><input id="c_skids_per_ring" type="number" value="5" min="1" step="1" />

                    <h2>DC Cable Review</h2>
                    <label>Home Run Cable Length m</label><input id="c_dc_length_m" type="number" value="300" min="1" step="1" />
                    <label>DC Cable CSA mm²</label><input id="c_dc_csa" type="number" value="6" min="1" step="1" />
                    <label>DC Cable Material</label><select id="c_dc_material"><option value="cu" selected>Copper</option><option value="al">Aluminium</option></select>
                    <label>Allowable DC Voltage Drop %</label><input id="c_dc_vdrop_limit" type="number" value="1.0" step="0.1" />
                </div>

                <h2>Topology Results</h2>
                <div class="module-stat"><span>String kWp</span><strong id="out_string_kwp">0</strong></div>
                <div class="module-stat"><span>String Vmp</span><strong id="out_string_vmp">0 V</strong></div>
                <div class="module-stat"><span>String Voc STC</span><strong id="out_string_voc_stc">0 V</strong></div>
                <div class="module-stat"><span>Cold String Voc</span><strong id="out_string_voc_cold">0 V</strong></div>
                <div class="module-stat"><span>Max Modules per String</span><strong id="out_max_modules">0</strong></div>
                <div class="module-stat"><span>Design String Current</span><strong id="out_design_current">0 A</strong></div>
                <div class="module-stat"><span>DC per Inverter</span><strong id="out_dc_per_inv">0 kWp</strong></div>
                <div class="module-stat"><span>Inverter DC/AC</span><strong id="out_dcac">0</strong></div>
                <div class="module-stat"><span>Skid DC / AC</span><strong id="out_skid_block">0</strong></div>
                <div class="module-stat"><span>Ring AC Rating</span><strong id="out_ring_ac">0 MVA</strong></div>
                <div class="module-stat"><span>DC Cable Loss</span><strong id="out_dc_loss">0%</strong></div>
                <div id="topo_status" class="module-status">Ready.</div>

                <div class="module-note">Screening tool only. It does not replace manufacturer checks, cable schedules, load flow, fault studies, insulation coordination, SPD coordination, protection grading, earthing design or IFC drawings.</div>
            </section>

            <section class="topo-scada-card">
                <div class="topo-scada-title">SCADA Style Cable Topology Panel</div>
                <svg id="topo_scada" viewBox="0 0 1200 760" role="img" aria-label="SCADA style topology drawing"></svg>
                <div class="topo-scada-footer"><span id="topo_footer_left">String inverter topology</span><span>Values recalculate live from left panel</span></div>
            </section>
        </main>
    </div>
    <script src="./dc-ac-lv-topology-review-v5.js?v=v6-migration-1"></script>
</body>
</html>