Expand description
Browser-viewable HTML rendering of self-test request/response capture.
Issue #79 round 24 (Srikanth (d) follow-up). conformance-self-test- requests.jsonl is great for jq and grep, but Srikanth asked for
something that can be loaded in a browser without external tooling.
This module renders the same CaseCapture records into a single
self-contained HTML file (no external CSS / JS / images).
Round 27 (Srikanth d3) — replaced the prior content-visibility +
1000-card cap approach with proper pagination. The 1000-card cap
silently hid the 4xx/5xx probes Srikanth needed to investigate
because they sat past the cap. The viewer now embeds the full
capture as a JSON array (window.__captures), filters that array
in JS, then renders only the current page (50 cards) of the
filtered subset. Filters span ALL probes regardless of which page
is visible, so paging never hides matching probes.
Functions§
- render_
capture_ html - Render the full HTML viewer for a slice of captured probes.
Bodies are kept verbatim (already truncated upstream to
CAPTURE_BODY_CAP_BYTES). The whole capture is serialised as a JSON array embedded in a<script>tag and rendered on demand by the inline JS handler; cross-page filters work over the full array, not the visible page.