feat(enrichment): rename image/screenshot schema and add previewImage OG URLs#2734
Merged
Conversation
…ilImage/captureImage/enrichment_captures - EnrichmentResult.image → thumbnailImage, screenshot → captureImage, add previewImage - EnrichmentScreenshot/Palette types → EnrichmentCapture/CapturePalette - enrichment_screenshots table → enrichment_captures (migration 0014) - enrichment-screenshot.repository → enrichment-capture.repository - screenshot-pipeline/screenshot-storage services → capture-pipeline/capture-storage - api-client bumped to 4.3.0 with updated EnrichmentResult shape
Each provider now populates EnrichmentResult.previewImage with the opengraph.githubassets.com hero image (1280×640). The cache token is derived from the entity's mutation timestamp (pushed_at/updated_at for repos, updated_at for issues/PRs, commit author date for commits, updatedAt for discussions) so the URL invalidates when the entity changes. The discussion GraphQL query is extended to return updatedAt. Tests assert URL shape per provider plus width/height invariants and thumbnailImage regression-guard.
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep Github App |
…ing github provider specs
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
Rename
image/screenshotfields and table tothumbnailImage/captureImage/enrichment_capturesfor clarity, and addpreviewImageOG URLs to all five GitHub providers.Changes
enrichment_screenshots→enrichment_captures, image/screenshot fields →thumbnailImage/captureImage0014_enrichment_captures.sqlwith rename + column adjustmentsgetGitHubOGUrl()helper, add OG preview images to commit, discussion, issue, PR, and repo providersscreenshot-pipeline→capture-pipeline,screenshot-storage→capture-storage,screenshot-repository→enrichment-capture.repositoryMigration note
0014_enrichment_captures.sqlhandles the transitionTest plan
previewImagein enrichment data