tools: add DASH-001 TOOL-001 TOOL-002 TOOL-003 and RUNNER-001 utilities
This commit is contained in:
198
tools/dashboard/index.html
Normal file
198
tools/dashboard/index.html
Normal file
@@ -0,0 +1,198 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>NT8 SDK Read-Only Dashboard</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="app-header">
|
||||
<div>
|
||||
<p class="eyebrow">NT8 SDK</p>
|
||||
<h1>Decision Or Defect?</h1>
|
||||
<p class="subhead">Headline dashboard for deciding whether a silent session was intentional strategy filtering or an operational defect.</p>
|
||||
</div>
|
||||
<div class="status-card">
|
||||
<span class="status-label">Mode</span>
|
||||
<strong>Static HTML + vanilla JS</strong>
|
||||
<span>No NT8 references. No writes.</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="panel input-panel" aria-labelledby="input-title">
|
||||
<div>
|
||||
<h2 id="input-title">Load TOOL-001 JSON</h2>
|
||||
<p>Generate with <code>python tools/logtriage/logtriage.py --json > triage.json</code>, then select that file here. The file stays local in the browser.</p>
|
||||
</div>
|
||||
<div class="input-actions">
|
||||
<label class="file-button">
|
||||
Select triage.json
|
||||
<input id="json-file" type="file" accept="application/json,.json">
|
||||
</label>
|
||||
<button id="load-sample" type="button">Load Empty Shell</button>
|
||||
</div>
|
||||
<textarea id="json-paste" placeholder="Optional: paste TOOL-001 JSON here, then click Load Pasted JSON."></textarea>
|
||||
<button id="load-pasted" type="button">Load Pasted JSON</button>
|
||||
<p id="load-message" class="load-message" role="status">No JSON loaded.</p>
|
||||
</section>
|
||||
|
||||
<section class="panel" aria-labelledby="live-title">
|
||||
<div class="section-title">
|
||||
<div>
|
||||
<h2 id="live-title">Live Local Server</h2>
|
||||
<p id="server-status" class="panel-note">Open through `server.py` to enable live polling from read-only log files.</p>
|
||||
</div>
|
||||
<button id="load-server" type="button">Load Server State</button>
|
||||
</div>
|
||||
<div class="metrics-grid">
|
||||
<article class="metric-card">
|
||||
<span>Connection</span>
|
||||
<strong id="live-connection">-</strong>
|
||||
<small>From newest session log</small>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Daily P&L</span>
|
||||
<strong id="live-pnl">-</strong>
|
||||
<small>Latest PNL_UPDATE</small>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Position</span>
|
||||
<strong id="live-position">-</strong>
|
||||
<small>Latest PNL_UPDATE</small>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Notifications</span>
|
||||
<strong id="live-notify">-</strong>
|
||||
<small>Apprise status</small>
|
||||
</article>
|
||||
</div>
|
||||
<pre id="raw-tail" class="raw-tail"></pre>
|
||||
</section>
|
||||
|
||||
<section class="panel headline-panel" aria-labelledby="headline-title">
|
||||
<div class="section-title">
|
||||
<div>
|
||||
<p class="eyebrow">Headline View</p>
|
||||
<h2 id="headline-title">Was Silence A Decision Or A Defect?</h2>
|
||||
</div>
|
||||
<p id="contract-message" class="panel-note">Load TOOL-001 JSON to classify silent sessions.</p>
|
||||
</div>
|
||||
<div class="metrics-grid decision-grid" aria-label="Decision defect summary">
|
||||
<article class="metric-card decision-card">
|
||||
<span>Silent By Decision</span>
|
||||
<strong id="metric-decision-silent">0</strong>
|
||||
<small>Primarily GradeFilter or MaxDailyTrades</small>
|
||||
</article>
|
||||
<article class="metric-card defect-card">
|
||||
<span>Silent By Defect</span>
|
||||
<strong id="metric-defect-silent">0</strong>
|
||||
<small>ORB/RTH/warmup/config defects</small>
|
||||
</article>
|
||||
<article class="metric-card unknown-card">
|
||||
<span>Silent Unknown</span>
|
||||
<strong id="metric-unknown-silent">0</strong>
|
||||
<small>No reject summary available</small>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Threshold</span>
|
||||
<strong>0.80</strong>
|
||||
<small>MinTradeGrade=5 / Grade A</small>
|
||||
</article>
|
||||
</div>
|
||||
<div id="health-strip" class="health-strip" aria-label="Session health strip"></div>
|
||||
</section>
|
||||
|
||||
<section class="panel" aria-labelledby="silent-title">
|
||||
<div class="section-title">
|
||||
<div>
|
||||
<h2 id="silent-title">Silent Day Explorer</h2>
|
||||
<p class="panel-note">Zero-SIGNAL sessions grouped by date. Decision reasons and defect reasons are color-coded.</p>
|
||||
</div>
|
||||
<div class="legend">
|
||||
<span><i class="dot decision"></i>Decision</span>
|
||||
<span><i class="dot defect"></i>Defect</span>
|
||||
<span><i class="dot unknown"></i>Unknown</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="silent-explorer" class="silent-explorer"></div>
|
||||
</section>
|
||||
|
||||
<section class="split-grid">
|
||||
<article class="panel" aria-labelledby="grade-title">
|
||||
<h2 id="grade-title">Grade Distribution</h2>
|
||||
<p class="panel-note">Histogram of computed confluence scores. The vertical marker is the Grade A threshold at 0.80.</p>
|
||||
<div id="grade-histogram" class="histogram"></div>
|
||||
</article>
|
||||
<article class="panel" aria-labelledby="factor-title">
|
||||
<h2 id="factor-title">Factor Breakdown</h2>
|
||||
<p class="panel-note">For GradeFilter rejections, identifies which factors most often drag the composite under threshold.</p>
|
||||
<div class="table-wrap"><table id="factor-table"></table></div>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="metrics-grid" aria-label="Gate progress">
|
||||
<article class="metric-card">
|
||||
<span>Trades Banked</span>
|
||||
<strong id="metric-trades">0 / 20</strong>
|
||||
<div class="progress-track"><div id="trade-progress" class="progress-fill"></div></div>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Days Elapsed</span>
|
||||
<strong id="metric-days">0</strong>
|
||||
<small>Unique session dates</small>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Current Streak</span>
|
||||
<strong id="metric-streak">0</strong>
|
||||
<small>Consecutive traded sessions</small>
|
||||
</article>
|
||||
<article class="metric-card">
|
||||
<span>Diagnostics</span>
|
||||
<strong id="metric-diagnostics">0</strong>
|
||||
<small>TOOL-001 findings</small>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="panel" aria-labelledby="timeline-title">
|
||||
<div class="section-title">
|
||||
<h2 id="timeline-title">Daily Timeline</h2>
|
||||
<div class="legend">
|
||||
<span><i class="dot traded"></i>Traded</span>
|
||||
<span><i class="dot silent"></i>Silent</span>
|
||||
<span><i class="dot violation"></i>Config violation</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-wrap"><table id="timeline-table"></table></div>
|
||||
</section>
|
||||
|
||||
<section class="panel" aria-labelledby="trade-title">
|
||||
<div class="section-title">
|
||||
<h2 id="trade-title">Trade Detail</h2>
|
||||
<p>Grade, score, entry/exit, and scaler/runner attribution are shown when present in TOOL-001 trade records.</p>
|
||||
</div>
|
||||
<div class="table-wrap"><table id="trade-table"></table></div>
|
||||
</section>
|
||||
|
||||
<section class="split-grid">
|
||||
<article class="panel" aria-labelledby="provenance-title">
|
||||
<h2 id="provenance-title">Provenance Health</h2>
|
||||
<p class="panel-note">Counts sentinel/default values per field across trade records.</p>
|
||||
<div class="table-wrap"><table id="provenance-table"></table></div>
|
||||
</article>
|
||||
<article class="panel" aria-labelledby="config-title">
|
||||
<h2 id="config-title">Config Integrity</h2>
|
||||
<p class="panel-note">ConfigHash and CodeVersion timeline with drift markers.</p>
|
||||
<div class="table-wrap"><table id="config-table"></table></div>
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<template id="empty-row">
|
||||
<tr><td class="empty" colspan="99">No data loaded.</td></tr>
|
||||
</template>
|
||||
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user