Skip to content

Replace "Rotate 90° clockwise" with "Flip vertical" in the View menu - #357

Merged
aperson30 merged 1 commit into
mainfrom
feat/flip-vertical-replaces-rotate
Nov 13, 2026
Merged

aperson30 merged 1 commit into
mainfrom
feat/flip-vertical-replaces-rotate

Conversation

@aperson30

Copy link
Copy Markdown
Collaborator

What

The View menu in both the case viewer and the compare viewer now offers Flip horizontal and Flip vertical on the focused pane. "Rotate 90° clockwise" is removed, together with rotatePane90Clockwise, rotateFocused90 and the rotate icon import, which nothing else used.

Flip vertical toggles like flip horizontal (a second click un-flips) and logs "Flipped vertically" to the reading timeline. The camera state already carried flipVertical, so live-room view sync needs no change.

Tests

  • New smoke test in viewer.smoke.test.tsx: the View menu lists both flips, has no rotate item, and Flip vertical calls only the vertical flip.
  • Ablation: pointing the vertical handler at the horizontal flip fails that test.
  • Helper mocks in the other viewer tests renamed to match.
  • Locally: typecheck, ESLint (0 errors) and the viewer smoke and compare tests pass. Full CI not run locally.

Not verified

The flip itself on a real scan in a browser: the tests mock the viewer.

No access-policy or backend change.

Both the case viewer and the compare viewer now offer Flip horizontal and
Flip vertical on the focused pane. Flip vertical uses the same toggle as
flip horizontal (a second click un-flips) and logs "Flipped <pane>
vertically" to the reading timeline. The rotate helpers
(rotatePane90Clockwise, rotateFocused90) and the rotate icon import are
removed, since nothing else called them.

Tests: a viewer smoke test opens the View menu, checks that both flips
are listed and no rotate item remains, and that Flip vertical calls only
the vertical flip. Ablation: pointing the vertical handler at the
horizontal flip fails that test. The helper mocks in the other viewer
tests are renamed to match.
@aperson30
aperson30 merged commit 274aac8 into main Nov 13, 2026
8 checks passed
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