♻️ Reporter review fixes + stable visual snapshots#218
Conversation
Document repository structure, commands, style, testing, and PR expectations for contributors.
Normalize baseline-created status handling across reporter views, filters, and stats.\nWire controlled toggle mode so review-mode 'd' shortcut works reliably.\nReduce unnecessary management-route report polling and simplify image loading.\nAdd Playwright coverage for baseline-created behavior and toggle shortcut.
Disable CSS transitions/animations in the reporter test harness and capture only the fullscreen viewer region after images/fonts settle. This removes run-to-run visual drift while preserving user-facing workflow assertions.
Vizzly - Visual Test Results
|
Code ReviewThis PR delivers solid improvements to the reporter and stabilizes visual testing. The changes are well-structured and test coverage demonstrates attention to detail. ✅ StrengthsStatus Handling Normalization
Visual Snapshot Stability
Performance Improvements
Documentation
🔍 Code QualityFullscreen Viewer Effect (fullscreen-viewer.jsx:372) Toggle Mode State (screenshot-display.jsx:31-37) Query Optimization (app-router.jsx) 🐛 Potential IssuesSmartImage Init (smart-image.jsx:8) Image Decode Comment (viewer-test-utils.js:36-43) Missing Guard (viewer-test-utils.js:15-16) 🔒 SecurityNo issues identified. UI-focused changes. ⚡ PerformanceSmartImage improvements are excellent. Query optimization is measurable. CSS animation disabling is test-only and appropriate. 🧪 Test CoverageGood status normalization and viewer shortcut tests. Consider adding queue auto-scroll test and unit test for showBaseline/onToggleBaseline props. ✨ SummarySolid PR with well-architected improvements. Status handling, performance, and snapshot stability are all thoughtful. Next steps:
Approve with minor suggestions. Nice work! |
Summary
This PR wraps up the reporter review pass and hardens the visual test workflow we’ve been dogfooding.
It includes targeted reporter UX/perf fixes, stronger status handling, and snapshot stability improvements so repeated
test:reporterruns stop bouncing around.Also included: a new
AGENTS.mdcontributor guide for this repo.What changed
AGENTS.mdwith concise contributor guidelines.baseline-createdbehaves likenewin filters/actions.d) by preserving toggle intent while in review mode.SmartImagerendering path for perf (native lazy loading/decoding and less JS overhead).use-image-loaderhook.status-handling.spec.jsand expanded viewer shortcut coverage.Validation
npm run lintnpm run test:reporter(re-run multiple times).vizzly/report-data.json:19 passed,0 failed