Skip to content

Conversation

psychedelicious
Copy link
Collaborator

@psychedelicious psychedelicious commented Sep 12, 2025

Summary

  • Add crop tool
  • Enabled only on Video tab

Related Issues / Discussions

n/a

QA Instructions

It's only on the video tab and only partially integrated.

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Sep 12, 2025
@psychedelicious psychedelicious force-pushed the maryhipp/starting-frame-crop branch from 7d98d66 to e9a79ae Compare September 15, 2025 10:03
@psychedelicious psychedelicious marked this pull request as ready for review September 15, 2025 13:03
@psychedelicious psychedelicious enabled auto-merge (rebase) September 16, 2025 08:24
@psychedelicious psychedelicious force-pushed the maryhipp/starting-frame-crop branch from 4ceeaa2 to c2683b2 Compare September 16, 2025 08:24
@psychedelicious psychedelicious changed the title feat(ui): mini image editor (crop only) feat(ui): crop tool Sep 16, 2025
@psychedelicious psychedelicious force-pushed the maryhipp/starting-frame-crop branch 3 times, most recently from 312695e to 2a42a9c Compare September 17, 2025 03:34
@psychedelicious
Copy link
Collaborator Author

Add support for cropping global ref images. This requires quite a few changes scattered around. Thankfully, it's mostly TS whack-a-mole.

This means we are changing the zod schema for ref images (from zImageWithDims to zCroppableImageWithDims). Without care, this would break metadata recall and loading/rehydrating persisted client state. The simplest way I could figure out to handle this is to use zod's "preprocess" API to migrate. See comments for zCroppableImageWithDims for details.

I tested this strategy for both metadata recall and rehydrating client state and it works fine.

@psychedelicious psychedelicious force-pushed the maryhipp/starting-frame-crop branch from 2a42a9c to 2c3d60c Compare September 17, 2025 03:39
@psychedelicious psychedelicious enabled auto-merge (rebase) September 17, 2025 03:39
@psychedelicious psychedelicious merged commit e0d7a40 into main Sep 17, 2025
13 checks passed
@psychedelicious psychedelicious deleted the maryhipp/starting-frame-crop branch September 17, 2025 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants