Files
scadaproj/impeccable/mockups/ScadaBridge-Audit.html
T

1 line
6.5 KiB
HTML

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>ScadaBridge — proposed Technical-Light UI</title><link rel="stylesheet" href="shared.css"></head><body><a class="skip" href="#main">Skip to content</a><details class="mobile-nav"><summary>ScadaBridge navigation</summary></details><div class="shell"><aside class="rail"><a class="brand" href="ScadaBridge.html">ScadaBridge</a><nav aria-label="ScadaBridge"><a class="nav-link" href="ScadaBridge.html#context">Dashboard concept</a><details open><summary>Deployment</summary><a class="nav-link" href="ScadaBridge.html">Topology</a><a class="nav-link" href="ScadaBridge.html#instance-detail">Instance details</a></details><details open><summary>Audit</summary><a class="nav-link current" href="ScadaBridge-Audit.html">Audit Log</a></details></nav><div class="rail-footer"><span class="status idle">Review fixture</span><p>Example role: Deployer<br>Environment: demonstration</p><a href="../index.html">All project mockups</a></div></aside><main class="main" id="main"><div class="page-head"><div><h1>Audit Log</h1><p>Find an execution, then follow its context without losing your search.</p></div><div class="actions"><a class="button" href="ScadaBridge.html">Back to topology</a></div></div><section class="panel"><div class="panel-head"><h2>Search audit events</h2><span class="muted">Proposed filter layout</span></div><form id="audit-form"><div class="toolbar"><div class="field" style="margin:0"><label for="range">Time range</label><select id="range"><option>Last hour</option><option>Last 24 hours</option></select></div><div class="field" style="margin:0"><label for="site">Site</label><select id="site"><option value="">All sites</option><option>Packaging</option><option>Blending</option></select></div><div class="field" style="margin:0"><label for="outcome">Outcome</label><select id="outcome"><option value="">All outcomes</option><option>Failed</option><option>Completed</option></select></div><button class="primary" type="submit">Apply filters</button><button id="reset" type="reset">Clear</button></div><div class="panel-body"><details><summary>More filters · exact execution id</summary><div class="field"><label for="execution">Execution ID</label><input id="execution" placeholder="Paste a complete execution GUID" aria-describedby="execution-help"><p id="execution-help">A malformed id keeps your filter pending instead of broadening the query.</p></div><p id="execution-error" class="status bad" role="alert" hidden>Enter a complete execution GUID, or clear the field.</p></details><p class="muted small">Time zone: UTC. Custom date fields in the proposed implementation must parse UTC explicitly.</p></div></form></section><p id="applied" role="status">Applied: last hour · all sites · all outcomes · UTC. 3 illustrative results.</p><div class="split"><section class="panel"><div class="table-wrap" role="region" aria-label="Illustrative audit results" tabindex="0"><table><caption>Illustrative results — open event details with the text link.</caption><thead><tr><th scope="col">Time (UTC)</th><th scope="col">Execution / target</th><th scope="col">Outcome</th></tr></thead><tbody id="events"><tr data-site="Packaging" data-outcome="Failed" data-id="784d1f30-4e22-4f3a-9b23-55c5f8aa35b1"><td class="mono">14:29:08</td><td><a href="#audit-detail">Pump-02 · OnChange</a><br><span class="muted">Packaging</span></td><td><span class="status bad">Failed</span></td></tr><tr data-site="Packaging" data-outcome="Completed" data-id="784d1f30-4e22-4f3a-9b23-55c5f8aa35b2"><td class="mono">14:28:31</td><td>Pump-01 · OnChange<br><span class="muted">Packaging</span></td><td><span class="status ok">Completed</span></td></tr><tr data-site="Blending" data-outcome="Completed" data-id="784d1f30-4e22-4f3a-9b23-55c5f8aa35b3"><td class="mono">14:27:42</td><td>Mixer-01 · Timer<br><span class="muted">Blending</span></td><td><span class="status ok">Completed</span></td></tr></tbody></table></div><div id="audit-empty" class="empty" hidden>No illustrative events match. Clear filters to return to all three events.</div></section><section class="panel" id="audit-detail" aria-labelledby="audit-detail-title"><div class="panel-head"><h2 id="audit-detail-title">Pump-02 · OnChange</h2><span class="status bad">Failed</span></div><div class="detail"><p class="muted">Selected event · illustrative record</p><dl><dt>Time</dt><dd class="mono">14:29:08 UTC</dd><dt>Site</dt><dd>Packaging</dd><dt>Execution</dt><dd class="mono">784d1f30-4e22-4f3a-9b23-55c5f8aa35b1</dd><dt>Channel</dt><dd>Script</dd></dl><hr><h3>Write destination unavailable</h3><p>Keep the failure message beside target context. Preserve the event's original outcome when replaying its execution.</p><details><summary>Request payload example</summary><pre>{ "instance": "Pump-02", "attribute": "Running" }</pre></details><p class="muted small">Production detail offers execution-chain and replay links under the existing policies. A narrow-screen drawer must move and return focus; this static concept uses an inline inspector.</p></div></section></div><footer class="mockup-note"><strong>Proposed UI · illustrative data.</strong><p>Local filters and disclosures work. These concepts are disconnected from SCADA services and do not deploy, approve or write process data.</p><a href="../index.html">Suite index</a><a href="../ScadaBridge.md">Recommendations</a></footer></main></div><script>const form=document.querySelector('#audit-form');function apply(e){e.preventDefault();const id=document.querySelector('#execution').value.trim(),invalid=id&&!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(id);document.querySelector('#execution-error').hidden=!invalid;document.querySelector('#execution').setAttribute('aria-invalid',String(!!invalid));if(invalid){document.querySelector('#execution').focus();return}const site=document.querySelector('#site').value,outcome=document.querySelector('#outcome').value;let count=0;for(const row of document.querySelectorAll('#events tr')){row.hidden=(site&&row.dataset.site!==site)||(outcome&&row.dataset.outcome!==outcome)||(id&&row.dataset.id!==id.toLowerCase());if(!row.hidden)count++}document.querySelector('#audit-empty').hidden=count!==0;document.querySelector('#applied').textContent='Applied: '+document.querySelector('#range').value.toLowerCase()+' · '+(site||'all sites')+' · '+(outcome||'all outcomes')+' · UTC. '+count+' illustrative results.'}form.addEventListener('submit',apply);form.addEventListener('reset',()=>setTimeout(()=>apply({preventDefault(){}}),0));</script></body></html>