Skip to content

Crop profile photos before upload and make availability saves explicit - #125

Open
AndrewG828 wants to merge 1 commit into
user/andrewgao/feature/UI-UX-Lucid-Refactor-14-profile-reviewsfrom
user/andrewgao/feature/UI-UX-Lucid-Refactor-15-settings-polish
Open

Crop profile photos before upload and make availability saves explicit#125
AndrewG828 wants to merge 1 commit into
user/andrewgao/feature/UI-UX-Lucid-Refactor-14-profile-reviewsfrom
user/andrewgao/feature/UI-UX-Lucid-Refactor-15-settings-polish

Conversation

@AndrewG828

@AndrewG828 AndrewG828 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Stacked PR 15 of 15. Based on #124 — merge in order.
#111#112#113#114#115#116#117#118#119#120#121#122#123#124#125

Picking a profile photo used the raw image, so a landscape shot became a
circle cropped through the middle of whatever the camera happened to centre.
Photos now go through an adjust step — pinch, drag or use the slider inside the
circular mask — and the crop is applied to pixels before upload rather than only
to how the image is displayed. Pan and zoom are clamped to the image bounds so
you can't drag empty space into frame.

Availability's Save button moves into the toolbar and only enables when the grid
differs from what was saved, which needed the view to track the saved selection
rather than only the current one. Previously the button was inline, always
enabled, and gave no acknowledgement — you couldn't tell a successful save from
a no-op. A confirmation alert closes that loop.

Cropping reuses UIImage.flattenedOrientation() instead of carrying its own
copy of the EXIF-flattening routine.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_017R8mua9xepzF3mnRETtd6W

Picking a profile photo used the raw image, so a landscape shot became a
circle cropped through the middle of whatever the camera happened to centre.
Photos now go through an adjust step — pinch, drag or use the slider inside the
circular mask — and the crop is applied to pixels before upload rather than only
to how the image is displayed. Pan and zoom are clamped to the image bounds so
you can't drag empty space into frame.

Availability's Save button moves into the toolbar and only enables when the grid
differs from what was saved, which needed the view to track the saved selection
rather than only the current one. Previously the button was inline, always
enabled, and gave no acknowledgement — you couldn't tell a successful save from
a no-op. A confirmation alert closes that loop.

Cropping reuses `UIImage.flattenedOrientation()` instead of carrying its own
copy of the EXIF-flattening routine.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017R8mua9xepzF3mnRETtd6W
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 2b5037c0-c7c4-4d02-b047-9a52c172ba38

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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