Skip to content

[MWPW-193670] Wave2.1 - Image to video changes#751

Merged
arugupta1992 merged 25 commits into
stagefrom
wave2-video
Apr 28, 2026
Merged

[MWPW-193670] Wave2.1 - Image to video changes#751
arugupta1992 merged 25 commits into
stagefrom
wave2-video

Conversation

@arugupta1992
Copy link
Copy Markdown
Collaborator

@arugupta1992 arugupta1992 commented Apr 24, 2026

@arugupta1992 arugupta1992 requested a review from sanjayms01 April 24, 2026 21:30
@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Apr 24, 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

@arugupta1992 arugupta1992 changed the title Wave2.1 - Image to video Wave2.1 - Image to video changes Apr 25, 2026
Comment thread unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js Outdated
Comment thread unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js
Comment thread unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js Outdated
Comment thread unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js Outdated
Comment thread unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js
Comment thread unitylibs/core/workflow/workflow-prompt-bar-upload/action-binder.js Outdated
Comment on lines +135 to +143
getVerbFromDom() {
const verbEl = this.unityEl?.querySelector('[class*="icon-operation-"]');
if (verbEl) {
const verbClass = Array.from(verbEl.classList).find((cls) => cls.startsWith('icon-operation-'));
const fromDom = verbClass?.slice('icon-operation-'.length);
if (fromDom) return fromDom;
}
return this.workflowCfg?.enabledFeatures?.[0];
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it was previously discussed that a better approach would be to extract verb from the block class token instead. What do you think?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can discuss this further, but from an approach standpoint, I think both options are reasonable. My main concern is maintaining consistency across waves. At the moment, we already have two different class naming conventions:

    1. Wave 1: icon-verb-*
    1. Wave 1.5.1: icon-operation-*

If we switch approaches for this workflow, we’ll end up maintaining three different patterns for extracting the verb name since I don’t think it would be practical to request changes in pages from previous waves.

My concern is that, over time, this becomes harder to reason about and remember, especially when revisiting the codebase later. So IMO, we should continue with the current approach until we have an opportunity to make this consistent across waves. Wdyt?

Comment thread unitylibs/core/workflow/workflow-prompt-bar-upload/action-binder.js
Comment thread unitylibs/core/workflow/workflow-prompt-bar-upload/action-binder.js Outdated
Comment thread unitylibs/core/workflow/workflow-prompt-bar-upload/target-config.json Outdated
Comment thread unitylibs/core/workflow/workflow.js Outdated
@arugupta1992 arugupta1992 changed the title Wave2.1 - Image to video changes [MWPW-193670] Wave2.1 - Image to video changes Apr 27, 2026
Testing Notes: 
1. Regress all the upload workflow acros products
2. Test the limits for each product

Resolves: [MWPW-NUMBER](https://jira.corp.adobe.com/browse/MWPW-NUMBER)

**Test URLs:**
- Before:
https://main--da-cc--adobecom.aem.page/drafts/arugupta/image-to-video/doodlebug/upscale-video?unitylibs=stage
- After:
https://main--da-cc--adobecom.aem.page/drafts/arugupta/image-to-video/doodlebug/upscale-video?unitylibs=upscaleVid

---------

Co-authored-by: Arushi Gupta <arugupta@Arushis-MacBook-Pro.local>
letter-spacing: -1.92px;
}
}
} No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a git error. Nothing to revert here.

}

readFeatureFlags() {
this.showAspectRatio = !!this.el.querySelector('[class*="icon-show-aspect-ratio"]');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also check for the value as true or not for these keys?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, can you elaborate the intention around that? By default we are taking it as false. If it needs to be added then it should be authored.

return rightSection;
}

buildDropZone() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check with Jordan once if the complete marquee should act as a dropzone for drag and drop, as this was a requirement in earlier upload-marquee workflows.

Comment thread unitylibs/core/widgets/prompt-bar-upload/prompt-bar-upload.js Outdated
});
}

async initWidget() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check the left side of the upload marquee is taking more than 50% of the total width.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's as per design

this.actionMap = actionMap;
this.errorToastEl = null;
this.transitionScreen = null;
this.LOADER_LIMIT = 95;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this 95?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the max cap for progress bar avoid going beyond 100 without finishing the upload tasks.

}
if (this.limits.maxDuration && duration > this.limits.maxDuration) {
this.handleClientUploadError('.icon-error-videoduration', 'error-videoduration', 'Video is too long');
throw new Error('Video is too long');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do these need to be localized?

Copy link
Copy Markdown
Collaborator Author

@arugupta1992 arugupta1992 Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for analytics.

Arushi Gupta and others added 5 commits April 28, 2026 14:26
#760)

… drop

<!-- Before submitting, please review all open PRs. -->

* Add your
* Specific
* Features or fixes

Resolves: [MWPW-NUMBER](https://jira.corp.adobe.com/browse/MWPW-NUMBER)

**Test URLs:**
- Before: https://main--unity--adobecom.aem.page/?martech=off
- After: https://<branch>--unity--adobecom.aem.page/?martech=off

Co-authored-by: vipulg <vipulg@adobe.com>
@asonnalagi
Copy link
Copy Markdown
Collaborator

Validation completed in the branch URL. Test results are in the task :MWPW-193897

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants