Fix landscape composite moon rendering alignment in photography guide#19
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
Aligns the Photography Guide landscape composite modal’s moon placement with the same preview-geometry model used by schedule thumbnails, reducing drift/mismatch between composite renders and previews.
Changes:
- Replaced the landscape composite moon placement math with
calculatePreviewMoonGeometry-based offsets. - Normalized/reused
travelVectorin the observer-driven composite layout path for stable moon offset computation. - Strengthened the Gibraltar 2027 regression test with assertions around moon visibility and proximity to the sun per placement.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| documents/reference/CHANGELOG.md | Documents the moon alignment fix and version bump. |
| apps/mobile/src/utils/photographyGuide.ts | Switches composite moon positioning to preview geometry and normalizes travel vector. |
| apps/mobile/tests/photography-guide.test.ts | Adds regression assertions ensuring moon geometry is present and near the sun. |
| apps/mobile/package.json | Bumps mobile package version to 1.1.36. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Motivation
Description
buildLandscapeCompositeLayoutwith the samecalculatePreviewMoonGeometrymodel used by thumbnails so moon offsets are computed from the phase geometry and travel vector. (apps/mobile/src/utils/photographyGuide.ts)travelVectorin the observer-based composite path so moon offsets are stable per layout render. (apps/mobile/src/utils/photographyGuide.ts)apps/mobile/src/utils/photographyGuide.ts)apps/mobile/tests/photography-guide.test.ts)Testing
pnpm --filter @eclipse-timer/mobile test -- photography-guide.test.tsand all tests passed (1 file, 8 tests).Codex Task