feat: infographic scale-up — dual orientation + per-scene prompts (Task C)#640
Merged
codercatdev merged 3 commits intodevfrom Mar 13, 2026
Merged
feat: infographic scale-up — dual orientation + per-scene prompts (Task C)#640codercatdev merged 3 commits intodevfrom
codercatdev merged 3 commits intodevfrom
Conversation
Co-authored-by: research <research@miriad.systems>
Co-authored-by: research <research@miriad.systems>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Tracks which imagePrompts belong to which scene via scenePromptMap, then maps generated CDN URLs back to script.scenes[].infographicUrls so Remotion mapInputProps() can pick them up per-scene.
codercatdev
added a commit
that referenced
this pull request
Mar 13, 2026
Sprint 1: Infographic-driven explainer videos\n\nTask A (PR #638): Schema + buildPrompt — imagePrompts[] per scene, infographicsHorizontal/Vertical arrays, Gemini prompt template\nTask B (PR #639): Remotion rewrite — multi-image cycling with crossfade, NO text overlays, backward compat\nTask C (PR #640): Infographic generation — dual orientation (16:9 + 9:16), per-scene prompts, Sanity upload, scene-level URL distribution\n\nBuild verified: tsc clean, Node 22.
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.
Task C: Infographic Scale-Up for Overnight Sprint
Scale up infographic generation to support 20-50 images per video with dual orientation (16:9 + 9:16).
Changes
File 1:
lib/services/gemini-infographics.tsDualOrientationResultinterface — typed result for dual-orientation generationgenerateFromScenePrompts()function — main entry point for the new pipeline. Takes per-scene image prompts and generates both 16:9 (horizontal/YouTube) and 9:16 (vertical/shorts) versionsDEFAULT_INSTRUCTIONS— switched to Alex's brand style: "Infographic 2D architecture style, black background... #15b27b... white lines"generateInfographic,generateInfographicBatch,generateInfographicsForTopic,buildInfographicPrompt, etc.)File 2:
app/api/cron/check-research/route.tsPipelineDocinterface — addedimagePrompts?: string[]to scene typeEnrichedScriptinterface — addedimagePrompts?: string[]to scene typeimagePromptsper scene following the brand templatestepResearchComplete()— new dual-path logic:imagePrompts: usesgenerateFromScenePrompts()for both orientations, uploads toinfographicsHorizontalandinfographicsVerticalSanity fieldsgenerateInfographicsForTopic()(backward compatible)infographicsfield for existing consumersVerification
npx tsc --noEmit— clean (no errors on either file)DualOrientationResult,generateFromScenePromptsimagePromptspresent in enrichment prompt JSON schema and requirementsNotes