feat: harden dashboard for production use #80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "phase-8/dashboard-ui-pr7-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Verification
- app.js: showGraphView/showThoughtsView/showStatsView/showImproveView all called detailEl.querySelector('#graph') but #graph is a sibling of #session-detail, not a child — always returned null, so the graph panel never became visible. Add module-level graphSectionEl reference and use it everywhere (matching the existing pattern for statsSectionEl/improveSectionEl). - e2e/dashboard.spec.ts: polling test asserted state.healthCalls === 1 synchronously right after the first Playwright poll resolved. With 50 ms polling the second call can fire before the assertion, causing a non- deterministic failure in CI. Relax to toBeGreaterThanOrEqual(1). - sse.rs: extract format_sse_event / format_sse_event_with_id to transport/sse/format.rs, reducing sse.rs from 813 to 775 lines and clearing the 800-line hard ceiling enforced by file-length-gate.sh.