Skip to content

fix: show images on pinned and saved commits - #127

Merged
brendt merged 4 commits into
dev-null-sh:productionfrom
xHeaven:fix/pinned-commit-images
Oct 16, 2026
Merged

brendt merged 4 commits into
dev-null-sh:productionfrom
xHeaven:fix/pinned-commit-images

Conversation

@xHeaven

@xHeaven xHeaven commented Oct 15, 2026

Copy link
Copy Markdown
Member

Pinning a commit that has images showed the pinned commit without them. The saved page had the same bug.

Cause

e61fa0a added images to the log, profile and thread queries. Two queries that build commit cards were missed:

  • the pinned commit query in UserController::show
  • SavedCommitsQuery

Both now eager-load images next to user and linkPreview, like every other commit list.

Before / after (pinned commit on a profile)

Before After
Before After

Profile with a pinned image commit

Desktop light Desktop dark
Profile light Profile dark
Mobile light Mobile dark
Profile mobile light Profile mobile dark

Saved page

Desktop light Desktop dark
Saved light Saved dark
Mobile light Mobile dark
Saved mobile light Saved mobile dark

Also in this PR

production currently fails the formatting check in resources/css/app.css and resources/js/components/commit-thread.tsx, so this branch includes the formatter output in a separate commit to keep CI green. It is the same change as #117 and merges cleanly whichever lands first.

Validation

  • New tests, which failed first: PinnedProfileCommitTest "includes the images of the pinned commit" and BookmarkControllerTest "includes images on saved commits".
  • pest --parallel --coverage --exactly=100.0: 920 passed, 100.0%.
  • Pint, Rector, PHPStan, tsc and vp fmt/vp lint are clean.
  • Checked in the browser on desktop and mobile, light and dark, with no overflow or console errors.

@brendt
brendt merged commit 9d21192 into dev-null-sh:production Oct 16, 2026
1 check passed
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.

2 participants