Add textless poster art for mobile featured heroes - #771
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe API now supports authenticated textless portrait posters for movies and series. Capability metadata reports route availability. Section item responses now include optional media taglines. ChangesTextless poster delivery
Section tagline output
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The change is merge-ready after normal checks and review; no actionable merge-blocking risk remains in the supplied evidence. Sequence Diagram(s)sequenceDiagram
participant Client
participant Router
participant TextlessPosterHandler
participant Catalog
participant MetadataProvider
participant ImageURLResolver
Client->>Router: GET /catalog/items/{id}/images/textless-poster
Router->>TextlessPosterHandler: dispatch authenticated request
TextlessPosterHandler->>Catalog: validate access and load item
TextlessPosterHandler->>MetadataProvider: fetch provider images
MetadataProvider-->>TextlessPosterHandler: return poster candidates
TextlessPosterHandler->>ImageURLResolver: resolve featured URL
ImageURLResolver-->>TextlessPosterHandler: return poster URL
TextlessPosterHandler-->>Client: return poster response
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What I changed
I added a safe, authenticated way for the mobile apps to request clean textless poster art for featured hero cards. This keeps the phone design consistent without using an admin image route or trying to scrape artwork client-side.
The endpoint:
I also exposed the existing media tagline in Home section items so the phone hero can show a short quote instead of truncating a long overview.
Linked mobile PRs
These three PRs are designed to land together. The clients retain their normal poster/title fallbacks if the new endpoint is unavailable.
Testing
go test ./internal/api/handlersgo test ./internal/apiAI disclosure
I designed the mobile hero experience and its clean-art behaviour, directed the implementation, and tested the result in the iPhone and Android emulators. I used OpenAI Codex (GPT-5) to help implement and refine the code.
Summary by CodeRabbit