Skip to content

Retain all saved image rotations in GalleryThumbnails - #919

Merged
Vetle444 merged 1 commit into
mainfrom
vefi/bugfix-1915
Aug 3, 2026
Merged

Retain all saved image rotations in GalleryThumbnails#919
Vetle444 merged 1 commit into
mainfrom
vefi/bugfix-1915

Conversation

@Vetle444

@Vetle444 Vetle444 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Description of Change

Fixes GalleryThumbnails losing later image rotations when several images are edited during the same full-screen preview session.

  • Passes the gallery bottom sheet's current image collection back after each saved rotation instead of copying stale bound state.
  • Adds regression coverage for sequential edits in one open gallery.
  • Documents post-capture review and rotation behavior.

Todos

  • I have tested on an Android device.
  • I have tested on an iOS device.
  • I have supported accessibility

Copilot AI review requested due to automatic review settings August 3, 2026 08:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pull request overview

This PR fixes a state-sync issue in the camera gallery flow where GalleryThumbnails could lose later rotations when multiple images are rotated and saved during the same full-screen preview session. The fix ensures the bottom sheet returns its current (authoritative) image list on each save, so subsequent edits build on the latest state.

Changes:

  • Update the gallery bottom sheet callback to pass the current image collection back to GalleryThumbnails on each saved rotation.
  • Add a unit test covering sequential edits within a single open gallery session.
  • Document the expected post-capture review/rotation behavior in the wiki.
📁 File summary (5 files changed)
File Description
src/library/DIPS.Mobile.UI/API/Camera/Gallery/GalleryThumbnails.cs Accept updated image list from the bottom sheet and rebind using a fresh list copy.
src/library/DIPS.Mobile.UI/API/Camera/Gallery/BottomSheet/GalleryBottomSheet.cs Change update callback to supply the current Images collection on save.
src/tests/unittests/API/Camera/Gallery/GalleryThumbnailsTests.cs Regression test for multiple sequential edits in one open gallery.
wiki/Media/ImageCapture.md Document post-capture review behavior and rotation retention expectations.
CHANGELOG.md Add patch note describing the rotation retention fix.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
CHANGELOG.md Adds a patch entry documenting the fix.
src/library/DIPS.Mobile.UI/API/Camera/Gallery/BottomSheet/GalleryBottomSheet.cs Passes the bottom sheet’s current image list back on save to avoid stale state.
src/library/DIPS.Mobile.UI/API/Camera/Gallery/GalleryThumbnails.cs Updates UpdateImages to accept the authoritative image list and rebind.
src/tests/unittests/API/Camera/Gallery/GalleryThumbnailsTests.cs Adds regression coverage for sequential rotations in a single session.
wiki/Media/ImageCapture.md Documents expected review/rotation behavior after capture.

@Vetle444
Vetle444 enabled auto-merge (squash) August 3, 2026 08:48
@Vetle444
Vetle444 merged commit b1187e6 into main Aug 3, 2026
2 checks passed
@Vetle444
Vetle444 deleted the vefi/bugfix-1915 branch August 3, 2026 08:53
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.

3 participants