Skip to content

Rotate selected pages in a saved PDF copy - #95

Open
mberman84 wants to merge 9 commits into
mainfrom
codex/organize-rotate
Open

mberman84 wants to merge 9 commits into
mainfrom
codex/organize-rotate

Conversation

@mberman84

@mberman84 mberman84 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The reader’s Rotate command changes the view of the whole document. Users need to turn selected pages permanently in a saved PDF.

Change

Rotate one or more pages left or right from Organize pages or the thumbnail context menu. The thumbnails show the proposed orientation, Undo restores it, and Save writes a separate PDF. The organizer supports a one-page document. Saved version history records which pages were rotated.

Issue or approval

Second part of #69, after deletion in #85. The base branch points to the reviewed deletion commit. Retarget to main once deletion lands.

How I checked it

On macOS, the unit tests, production build with type checking, and full hidden smoke suite passed. The smoke test selects two pages, rotates them, undoes a second rotation, saves a reordered copy, and reads the actual rotations and text back from the PDF. It captures the sidebar before and after at release/smoke/organizer-before-rotation.png and release/smoke/organizer-after-rotation.png.

Implemented with GPT-6 in Codex.

Two selected pages before rotation

The two selected pages after a quarter turn

joswalt and others added 7 commits November 7, 2026 23:07
Reorder pages becomes Organize pages. Select several pages with Ctrl-click
(Cmd-click on macOS) or Shift-click and delete them with the toolbar or the
Delete key; Ctrl+Z and Ctrl+Shift+Z undo and redo every change until the copy
is saved. The Pages tab's thumbnail menu can start with the selected pages
deleted. A PDF always keeps at least one page.

Built with Claude in Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Dragging a thumbnail a second time in one smoke run froze the page on
Windows CI. The existing reorder check still covers dragging.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/App.tsx
#	src/VersionHistoryPanel.tsx
#	src/versionHistory.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joswalt

joswalt commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

@mberman84, thanks for picking up rotate and insert. Tested this rebased onto current main, and everything passes on macOS. One small thing: rotating a page in a portrait document shrinks all the organizer thumbnails (132 px to about 102 px wide), because the scale now comes from the draft pages instead of the whole document. Fine if that's intended.

@mberman84
mberman84 changed the base branch from codex/organizer-delete-base to main November 18, 2026 01:54

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.

2 participants