dashboard: mark neutral votes and no-pattern rows on the indicator chart

A NEUTRAL vote (value 0) and an absent divergence/candlestick entry both
drew no bar, so RSI, Div and Cndl looked missing on the live page. The
engine computes them on every scan; divergence and candlestick only exist
when a pattern is found (by design, "no opinion"). The chart now draws a
grey dot on the zero line for a neutral vote and a faint "no pattern" tag
for an absent pattern indicator; rows hover as a whole. Display-only,
signal code and books untouched. Suite 554/554.
This commit is contained in:
Harwinder Sekhon
2026-09-22 14:29:21 -04:00
parent 3005e57367
commit 266f204d35
2 changed files with 58 additions and 5 deletions
+13
View File
@@ -5537,6 +5537,19 @@ def _():
assert "scheduleBoundaryRefresh" in js and "localStorage" in js
@test("dashboard: indicator chart marks neutral votes and no-pattern rows")
def _():
# A NEUTRAL vote (value 0) and an absent divergence/candlestick entry
# both draw no bar; the chart must mark them so they don't read as
# missing data.
with open(os.path.join(os.path.dirname(__file__), "static", "dashboard.js"),
encoding="utf-8") as fh:
js = fh.read()
assert 'id: "indMarkers"' in js and "afterDatasetsDraw" in js
assert 'PATTERN_IND = new Set(["divergence", "candlestick"])' in js
assert '"no pattern"' in js and 'intersect: false' in js
@test("dashboard: publish is atomic and leaves no temp file")
def _():
with tempfile.TemporaryDirectory() as tmp: