Skip to content

MWPW-192852: add prompt-bar-upload widget for image-to-video Firefly feature#745

Open
sanjayms01 wants to merge 1 commit intostagefrom
ado-MWPW-192852
Open

MWPW-192852: add prompt-bar-upload widget for image-to-video Firefly feature#745
sanjayms01 wants to merge 1 commit intostagefrom
ado-MWPW-192852

Conversation

@sanjayms01
Copy link
Copy Markdown
Collaborator

Summary

Adds a new prompt-bar-upload Unity widget for the Image-to-Video Firefly feature page. The widget provides an image dropzone with upload/spinner/preview states, a prompt textarea, model and aspect-ratio dropdowns (aspect ratios keyed per model from a spreadsheet config), a "More" filters button, and a "Generate" CTA that passes all inputs to the connector backend.

Changes

  • unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js — New widget class (dropzone, prompt, model/aspect dropdowns, error toast overlay, generate flow)
  • unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.css — Dark-themed styles with ex-pbu-* class prefix, responsive mobile layout
  • unitylibs/core/workflow/workflow.js — Registered prompt-bar-upload in getWidgetRegistry()
  • unitylibs/core/workflow/workflow-firefly/action-binder.js — Added getSelectedAspectRatio() and getUploadedImageAssetId() getters; extended generateContent() payload with aspectRatio and referenceImageId
  • test/core/workflow/mocks/ff-upload-body.html — HTML fixture for unit tests
  • test/core/workflow/prompt-bar-upload.test.js — 42 unit tests; full suite 770 passed, 0 failed

Testing

Full test suite run: 770 tests passed, 0 failed, 3 skipped. Coverage includes widget initialization, DOM structure, slot parsing, model/aspect dropdowns, file upload wiring, drag-and-drop, spinner/preview states, error toast show/hide, and actionMap return value.

Jira: MWPW-192852

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Apr 17, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.73520% with 98 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.42%. Comparing base (6f10ed2) to head (b580aa9).

Files with missing lines Patch % Lines
...ore/widgets/prompt-bar-upload/prompt-bar-upload.js 84.41% 98 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #745      +/-   ##
==========================================
+ Coverage   80.00%   80.42%   +0.42%     
==========================================
  Files          28       29       +1     
  Lines        7975     8617     +642     
==========================================
+ Hits         6380     6930     +550     
- Misses       1595     1687      +92     
Flag Coverage Δ
unittests 80.42% <84.73%> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants