Skip to content

Open the gallery for a lone photo on the map - #72

Merged
aquasolterra merged 1 commit into
mainfrom
map-photo-opens-gallery
Sep 18, 2026
Merged

aquasolterra merged 1 commit into
mainfrom
map-photo-opens-gallery

Conversation

@aquasolterra

Copy link
Copy Markdown
Member

Tapping a photo on the trip map now always opens the gallery, including when the marker holds a single picture.

Before, one picture opened AttachmentSheet and several opened the gallery. Whether a marker holds one or several depends on the zoom (clusterPhotos gathers in screen pixels), so the same photograph opened different things depending on how far out the map was, and a lone picture was capped at a third of the screen. The sheet with the position controls is still one tap away behind the gallery's ⋮.

  • trip_map_screen.dart: drop the single-photo branch in _showPhotos
  • New widget test: a lone photo marker opens GalleryScreen, not AttachmentSheet (fails on the old code)
  • AGENTS.md, docs/features.md, CHANGELOG updated

🤖 Generated with Claude Code

A photo marker used to open the attachment sheet when it held one
picture and the gallery when it held several. Which of the two a mark
holds depends on the zoom, since clusterPhotos gathers in screen pixels,
so the same photograph opened different things depending on how far out
the map was, and a lone picture could not be seen full screen without
going through the sheet. Every photo marker now opens the gallery; the
sheet, with the position controls, stays behind the gallery's menu.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@aquasolterra
aquasolterra merged commit 69689af into main Sep 18, 2026
5 checks passed
@aquasolterra
aquasolterra deleted the map-photo-opens-gallery branch September 18, 2026 20:14
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