Skip to content

Show PDF review changes in aligned side-by-side columns - #40

Open
CatIIIIIIII wants to merge 3 commits into
PapilotAI:mainfrom
CatIIIIIIII:feat/pdf-review-comparison
Open

CatIIIIIIII wants to merge 3 commits into
PapilotAI:mainfrom
CatIIIIIIII:feat/pdf-review-comparison

Conversation

@CatIIIIIIII

Copy link
Copy Markdown

PDF review currently places the original and revised strips vertically, making corresponding passages difficult to compare. This change places Before and After in aligned columns within one scroll container, including paired unchanged context and full-paper sections. Insertions and deletions leave a blank cell on the missing side.

Accept/reject, comments, History, and Undo keep their existing review actions. Resolved changes retain their headings and status; rejected content shows the restored text on the right. Mixed decisions are inspected in History instead of displaying a misleading whole-block result. Narrow windows scroll horizontally within the viewer.

Side-by-side change review

Full-paper view

Paired full-paper context

Validation:

  • Engine frontend source TypeScript check (tests excluded because Vitest is unavailable locally).
  • Host and engine Vite production builds.
  • node --import tsx scripts/check-review-comparison.mjs: alignment, unequal heights, blank insertion/deletion cells, accept/reject/undo, full-paper canvases, and narrow desktop.
  • node --import tsx scripts/check-review-flow.mjs: existing review workflow, history, notes, shortcuts, reload, mobile, and mocked commit/apply flows.

Browser checks use synthetic fixtures; the full engine test suite was not run. This branch is based on official 0.8.9 and is independent of the annotation, reasoning-slider, and paper Q&A PRs. Screenshots are hosted on a separate branch; no DMG or generated build files are included.

Pair unchanged context and changed PDF strips in a shared scroller, with blank cells for insertions and deletions. Preserve full-paper rendering, review decisions, history and inline undo. Exercise unequal heights, PDF mode and the existing review workflow.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant