Redesign the compare report as a single-page triage UI#53
Merged
Conversation
Replace the flat per-comparison report pages with one static reports/index.html that embeds every result as JSON (window.REGLANCE) and renders three views client-side from the location hash, with no framework and no network access: - Overview: results grouped by page, changed-only by default, diff thumbnails, +added/-removed HTML counts, search, and full keyboard triage (worst-first queue). - Comparison: swipe, side-by-side, onion skin, diff overlay, and blink modes. - HTML diff: unified diff with line numbers, hunk headers, and collapsed unchanged regions. Generator changes: - report.mjs: buildHtmlDiff() emits changed-line counts and unified-diff hunk JSON (replacing the boolean Yes/No signal); generateReport() groups per-slug results into one entry per page and writes the single page with run metadata (compared/baseline timestamps, duration). - compare.mjs: compareSlug() returns HTML add/del/hunks inline and no longer writes per-result report or html-diff files; compare() gathers run metadata and builds the single report. Templates: new index.html shell plus assets/reglance.css (the "Quiet" direction, auto light/dark) and assets/app.js (vanilla renderer). Remove the old report.html, index.html table, diff-viewer.html, html-diff.html, and their stylesheets/script. Tests and docs updated; eslint ignores the design handoff prototypes. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the flat per-comparison report pages with one static
reports/index.htmlthat embeds every result as JSON (window.REGLANCE) and renders three views client-side from the location hash — no framework, no network access (opens straight from disk).Views
+added −removedHTML counts, search, and full keyboard triage (worst-firstj/kqueue,Enterto compare,spacequick look,hHTML diff,?shortcuts).Auto light/dark via CSS
light-dark(); the "Quiet" design direction from the handoff.Generator changes
report.mjs: newbuildHtmlDiff()emits changed-line counts and unified-diff hunk JSON (replacing the boolean Yes/No signal);generateReport()groups per-slug results into one entry per page and writes the single page with run metadata (compared/baseline timestamps, duration).compare.mjs:compareSlug()returns HTML add/del/hunks inline and no longer writes per-result report or html-diff files;compare()gathers run metadata and builds the single report.Templates
New
index.htmlshell plusassets/reglance.cssandassets/app.js(vanilla renderer). Removes the oldreport.html, the index table,diff-viewer.html,html-diff.html, and their stylesheets/script.Notes
textContent, and the embedded JSON neutralizes</script>— verified by tests and a headless-browser smoke check.npm test→ 111 passing);npm run lintclean. eslint ignores the design-handoff prototypes.design_handoff_reglance_report/reference bundle is intentionally not included in this branch.🤖 Generated with Claude Code