Files
scadaproj/impeccable/mockups/HistorianGateway.html
T

1 line
5.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>History console — proposed HistorianGateway UI</title><link rel="stylesheet" href="shared.css"><style>:root{--accent:#2f855a;--accent-deep:#1c6540;--active-bg:#edf5f0;--hover-bg:#f0f7f3;--info-bg:#edf5f0}</style></head><body><a class="skip" href="#main">Skip to content</a><details class="mobile-nav"><summary>Navigation</summary></details><div class="shell"><aside class="rail"><a class="brand" href="../index.html">HistorianGateway</a><nav aria-label="Proposal navigation"><a class="nav-link current" aria-current="page" href="#console">Console</a><a class="nav-link " href="#results">Sample results</a><a class="nav-link " href="#write-test">Diagnostic write</a></nav><div class="rail-footer">Technical-Light family<br>Proposed UI · illustrative data<a href="../HistorianGateway.md">Read recommendations</a><a href="../index.html">All project reviews</a></div></aside><main class="main" id="main"><header class="page-head" id="console"><div><h1>History console</h1><p>Query historical samples. Diagnostic writes require a separate review.</p></div><span class="status info">Read-only query</span></header><div class="summary-strip"><span>Target <strong class="mono">historian-example</strong></span><span>Time zone <strong>UTC</strong></span><span>Values below are <strong>illustrative</strong></span></div><section class="panel"><div class="panel-head"><h2>Query history</h2></div><form id="query-form" class="panel-body"><div class="field"><label for="query-tag">Tag reference</label><input id="query-tag" value="Reactor1.Pump01.PV" required aria-describedby="tag-help"><p id="tag-help">Use the full historian tag reference.</p></div><div class="split"><div class="field"><label for="query-start">Start (UTC)</label><input id="query-start" type="datetime-local" value="2026-11-12T14:00" required></div><div class="field"><label for="query-end">End (UTC)</label><input id="query-end" type="datetime-local" value="2026-11-12T14:05" required></div></div><div class="toolbar"><div class="field"><label for="query-mode">Mode</label><select id="query-mode"><option>Raw</option><option>Aggregate</option></select></div><div class="field"><label for="max-values">Maximum sample rows</label><input id="max-values" type="number" min="1" value="1000"></div><button type="submit" class="primary">Show sample results</button></div><p class="muted">This demonstration displays three local sample rows; it sends no query.</p></form></section><section class="panel" id="results"><div class="panel-head"><h2>Sample results</h2><span id="result-summary" role="status">3 illustrative rows · Raw</span></div><div class="panel-body"><p id="submitted-query" class="mono">Reactor1.Pump01.PV · 14:00–14:05 UTC</p><p class="muted">Quality is readable as text as well as color.</p></div><div class="table-wrap" role="region" aria-label="History sample results" tabindex="0"><table><thead><tr><th scope="col">Timestamp (UTC)</th><th scope="col" class="num">Value</th><th scope="col">Quality</th></tr></thead><tbody><tr><td class="mono">2026-11-12 14:00:00.000</td><td class="num">42.18</td><td><span class="status ok">Good</span></td></tr><tr><td class="mono">2026-11-12 14:01:00.000</td><td class="num">42.26</td><td><span class="status ok">Good</span></td></tr><tr><td class="mono">2026-11-12 14:02:00.000</td><td class="num">—</td><td><span class="status warn">Uncertain · unavailable value</span></td></tr></tbody></table></div></section><section class="panel" id="write-test"><div class="detail"><details><summary>Diagnostic write · Administrator only in production</summary><p>Historical inserts and test events change historian data. The proposed production flow reviews the target, tag, UTC timestamp and value before confirmation.</p><dl><dt>Target</dt><dd class="mono">historian-example</dd><dt>Operation</dt><dd>Historical value insert</dd><dt>Scope</dt><dd>One selected tag and timestamp</dd></dl><p class="muted">Write controls are not included in this visual reference.</p></details></div></section><script>document.getElementById('query-form').addEventListener('submit',event=>{event.preventDefault();const tag=document.getElementById('query-tag').value;const start=document.getElementById('query-start').value;const end=document.getElementById('query-end').value;if(end<=start){document.getElementById('query-end').setCustomValidity('End must be after start.');document.getElementById('query-end').reportValidity();return}document.getElementById('query-end').setCustomValidity('');document.getElementById('submitted-query').textContent=tag+' · '+start+' → '+end+' UTC (sample context only)';document.getElementById('result-summary').textContent='3 fixed illustrative rows · '+document.getElementById('query-mode').value+' selected · no query sent';document.getElementById('results').scrollIntoView({block:'start'})});document.getElementById('query-end').addEventListener('input',event=>event.target.setCustomValidity(''));document.getElementById('query-start').addEventListener('input',()=>document.getElementById('query-end').setCustomValidity(''));</script><footer class="mockup-note">Proposed UI · illustrative data. Local demonstration only.<br><a href="../HistorianGateway.md">Project recommendations</a><a href="../index.html">Review index</a></footer></main></div></body></html>