Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Bluesky image galleries for 5–10 images per post or thread segment, preserving the existing
app.bsky.embed.imagesrecord for 1–4 images. The backend emitsapp.bsky.embed.galleryfor larger image sets, preserving image order, alt text, blob references and aspect ratios. The server capability catalogue and frontend validation now expose the ten-image limit.Includes regression tests, an updated media-limits guide and Bluesky provider reference, and the required
changes/bluesky-gallery.mdfragment.Motivation
OpenPost currently prevents authors from selecting more than four Bluesky images. Supporting gallery embeds lets authors publish multi-slide posts without splitting content or losing image descriptions.
Testing
go test ./...) — full backend PASS with OpenPost's supported dev build tag:go test -tags dev -p 1 -count=1 -timeout 30m ./...(isolated Railway SUCCESS0916b7d4-a027-4fcb-8a56-2916d1a2d0b0). Untaggedgo test ./...requires generated frontend embed assets not present in the Go-only QA image.bun run --filter @openpost/web test) — complete server/unit suite PASS: 368/368 files and 1,877/1,877 tests (bunx vitest run --project server, Railway SUCCESS35c155cf-868a-4d42-8a86-d34df7aa162a). Tested with upstream-CI-matched Node 24.19.0, Bun 1.4.4, full frozen-lockfile install and CI mode. Chromium/production-mode web sub-suites were not run.oxfmt --checkon modified frontend files.Tests cover 1, 4, 5, 8 and 10 images; legacy/gallery embeds; quoted posts; ordered image metadata; and rejection of more than ten images or invalid media.
QA investigation: An initial isolated Railway run had 82 failing frontend test files and eight failed cURL assertions. Identical failures reproduced on unchanged upstream using that non-CI-matched runner. Reproducing OpenPost's official Node/Bun/CI environment cleared them without changing application code; the full server suite above then passed. QA-only Dockerfiles are not in this PR.
Screenshots
No layout changes; only Bluesky media-count validation/warnings change. Screenshots not applicable.
Checklist
Breaking Changes
Affected Components
Platform Impact
Does this affect any social platforms?
Review notes
go run ./cmd/openpost-media-limits), formatted withoxfmt@0.61.0, and confirmed byte-for-byte identical to the committed guide (isolated Railway SUCCESS3de8fe2e-75ea-489c-89c6-10c193f6c6be).