MWPW-192835: add image-to-video widget with dropzone, model/aspect-ratio selectors, and generate flow#744
Open
sanjayms01 wants to merge 1 commit intostagefrom
Open
MWPW-192835: add image-to-video widget with dropzone, model/aspect-ratio selectors, and generate flow#744sanjayms01 wants to merge 1 commit intostagefrom
sanjayms01 wants to merge 1 commit intostagefrom
Conversation
…tio selectors, and generate flow
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
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
Adds a new
image-to-videowidget to the unity block for the AI Image-to-Video Firefly feature page. The widget is injected into theupload-marqueeblock and includes a dropzone for optional image upload, a prompt bar, model selector, per-model aspect ratio selector, a More Filters button, and a Generate CTA that calls the Firefly connector API and redirects the user to the returned URL.Changes
unitylibs/core/widgets/image-to-video/image-to-video.js— NewUnityWidgetclass with dropzone (click/drag-drop, loader, preview-in-zone), prompt bar, model selector, aspect ratio selector (filtered per model), More Filters button, Generate CTAunitylibs/core/widgets/image-to-video/image-to-video.css— Widget styles including dropzone states, CSS spinner, model/AR dropdowns, centered error toastunitylibs/core/workflow/workflow-image-to-video/action-binder.js— ActionBinder withmoreFilters(), extendedgenerateContent()(optional image upload + prompt + model + aspect ratio payload), and centered error toastunitylibs/core/workflow/workflow-image-to-video/target-config.json— Target block config mappingupload-marqueewith generate and moreFilters actionsunitylibs/core/workflow/workflow.js— Registeredimage-to-videowidget andworkflow-image-to-videoworkflowtest/core/workflow/workflow.image-to-video.test.js— 21 unit teststest/core/workflow/mocks/image-to-video-body.html— Mock HTML fixtureTesting
21 new unit tests cover: widget initialization, DOM structure (dropzone/prompt/selectors), model selector rendering and selection, aspect ratio updates on model change, placeholder extraction, ActionBinder listener binding, moreFilters URL navigation, generateContent with and without image, success redirect, error toast on failure, keyboard handling. Full suite: 749 tests passing, 0 failing.
Jira: MWPW-192835