Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWPW-156749: Fix video CLS #2849

Merged
merged 14 commits into from
Sep 17, 2024
Merged

MWPW-156749: Fix video CLS #2849

merged 14 commits into from
Sep 17, 2024

Conversation

mokimo and others added 6 commits September 5, 2024 17:16
* fix cls by adding the videoEl without a source

* adapt the video hover and in view port play

* Remove no-lazy and return earlier

* Fix linting issue

* Consolidate duplicated logic

* Move functions into the init function

* Move root margin and use optional chaining

* Only query for the videoEl once
@mokimo mokimo added the run-nala Run Nala Test Automation against PR label Sep 9, 2024
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.25%. Comparing base (264c998) to head (bea6b25).
Report is 38 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2849      +/-   ##
==========================================
+ Coverage   95.89%   96.25%   +0.36%     
==========================================
  Files         173      238      +65     
  Lines       46316    54296    +7980     
==========================================
+ Hits        44415    52265    +7850     
- Misses       1901     2031     +130     

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

Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

@mokimo mokimo changed the title Fix video CLS MWPW-156749: Fix video CLS Sep 10, 2024
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/blocks/video/video.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

Copy link

@SilviuLCF SilviuLCF left a comment

Choose a reason for hiding this comment

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

@milo-pr-merge milo-pr-merge bot merged commit d4134c8 into adobecom:stage Sep 17, 2024
18 checks passed
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 17, 2024
mokimo added a commit that referenced this pull request Sep 18, 2024
mokimo added a commit that referenced this pull request Sep 18, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
mokimo added a commit that referenced this pull request Sep 18, 2024
mokimo added a commit that referenced this pull request Sep 18, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
mokimo added a commit that referenced this pull request Sep 18, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
denlight pushed a commit that referenced this pull request Sep 25, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
denlight pushed a commit that referenced this pull request Sep 25, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
denlight pushed a commit that referenced this pull request Sep 25, 2024
…2917)

Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
denlight pushed a commit that referenced this pull request Sep 25, 2024
…2917)

Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
mokimo added a commit that referenced this pull request Oct 1, 2024
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* MWPW-158886: modify the way arbitrary fields are sent to caas from milo

* lint

* lint again

* validated with testing

* MWPW-158886: add tests for malformed arbitrary fields

* lint

* lint

* unit tests

* actually filling out expected behavior from unit tests

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Sheridan Sunier <[email protected]>
overmyheadandbody pushed a commit that referenced this pull request Oct 11, 2024
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>
overmyheadandbody pushed a commit to overmyheadandbody/milo that referenced this pull request Oct 11, 2024
…becom#2991)

* Revert "MWPW-156749: Fix video CLS " (adobecom#2899) (adobecom#2900)

Revert "MWPW-156749: Fix video CLS  (adobecom#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>
milo-pr-merge bot added a commit that referenced this pull request Oct 23, 2024
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* MWPW-157946: added colon to be consistent with other sort options

* MWPW-157946: rearranged sort orders

* missed changing the way last modified was displayed

* missed changing the way last modified was displayed

* missed changing the way last modified was displayed

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Sheridan Sunier <[email protected]>
Co-authored-by: Sheridan Sunier <[email protected]>
mokimo added a commit that referenced this pull request Oct 24, 2024
…ub (#3086)

* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* [MWPW-159903] Fix quiz video marquees (#3009) (#3013)

fix quiz marquees

* [MWPW-159328] handle a case where there are not placeholders availabl… (#3014)

[MWPW-159328] handle a case where there are not placeholders available (#2998)

* [MWPW-159328] handle a case where there are not palceholders availble

* fixed typos

---------

Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>

* MWPW-146211 [MILO][MEP] Option to select all elements (#2976) (#3023)

* stash

* stash

* stash

* working well

* set updated command list for inline

* remove querySelector function

* unit test and custom block fix

* updates for in-block

* merch-card-collection unit test fixed

* unit test updates

* more unit test repair

* linting errors

* more linting

* Fix Invalid selector test

* add coverage

* force git checks to refire

* remove comment

* pass rootEl to getSelectedElements for use when needed (gnav)

* skip if clause in codecov

---------

Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>

* MWPW-158455: Promobar overlays with localnav elements in devices (#2991)

* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>

* increase workercount and add webkit run

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Rares Munteanu <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>
Co-authored-by: Akansha Arora <[email protected]>
Co-authored-by: Santoshkumar Sharanappa Nateekar <[email protected]>
milo-pr-merge bot added a commit that referenced this pull request Oct 30, 2024
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* [MWPW-159903] Fix quiz video marquees (#3009) (#3013)

fix quiz marquees

* [MWPW-159328] handle a case where there are not placeholders availabl… (#3014)

[MWPW-159328] handle a case where there are not placeholders available (#2998)

* [MWPW-159328] handle a case where there are not palceholders availble

* fixed typos

---------

Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>

* MWPW-146211 [MILO][MEP] Option to select all elements (#2976) (#3023)

* stash

* stash

* stash

* working well

* set updated command list for inline

* remove querySelector function

* unit test and custom block fix

* updates for in-block

* merch-card-collection unit test fixed

* unit test updates

* more unit test repair

* linting errors

* more linting

* Fix Invalid selector test

* add coverage

* force git checks to refire

* remove comment

* pass rootEl to getSelectedElements for use when needed (gnav)

* skip if clause in codecov

---------

Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>

* MWPW-158455: Promobar overlays with localnav elements in devices (#2991)

* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>

* a11y-bot

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Rares Munteanu <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>
Co-authored-by: Akansha Arora <[email protected]>
Co-authored-by: Santoshkumar Sharanappa Nateekar <[email protected]>
milo-pr-merge bot added a commit that referenced this pull request Nov 4, 2024
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* [MWPW-159903] Fix quiz video marquees (#3009) (#3013)

fix quiz marquees

* [MWPW-159328] handle a case where there are not placeholders availabl… (#3014)

[MWPW-159328] handle a case where there are not placeholders available (#2998)

* [MWPW-159328] handle a case where there are not palceholders availble

* fixed typos

---------

Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>

* MWPW-146211 [MILO][MEP] Option to select all elements (#2976) (#3023)

* stash

* stash

* stash

* working well

* set updated command list for inline

* remove querySelector function

* unit test and custom block fix

* updates for in-block

* merch-card-collection unit test fixed

* unit test updates

* more unit test repair

* linting errors

* more linting

* Fix Invalid selector test

* add coverage

* force git checks to refire

* remove comment

* pass rootEl to getSelectedElements for use when needed (gnav)

* skip if clause in codecov

---------

Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>

* MWPW-158455: Promobar overlays with localnav elements in devices (#2991)

* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>

* MWPW-160058: Fixes tag matching case logic

* Update send-utils.js

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Rares Munteanu <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>
Co-authored-by: Akansha Arora <[email protected]>
milo-pr-merge bot added a commit that referenced this pull request Nov 4, 2024
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* [MWPW-159903] Fix quiz video marquees (#3009) (#3013)

fix quiz marquees

* [MWPW-159328] handle a case where there are not placeholders availabl… (#3014)

[MWPW-159328] handle a case where there are not placeholders available (#2998)

* [MWPW-159328] handle a case where there are not palceholders availble

* fixed typos

---------

Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>

* MWPW-146211 [MILO][MEP] Option to select all elements (#2976) (#3023)

* stash

* stash

* stash

* working well

* set updated command list for inline

* remove querySelector function

* unit test and custom block fix

* updates for in-block

* merch-card-collection unit test fixed

* unit test updates

* more unit test repair

* linting errors

* more linting

* Fix Invalid selector test

* add coverage

* force git checks to refire

* remove comment

* pass rootEl to getSelectedElements for use when needed (gnav)

* skip if clause in codecov

---------

Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>

* MWPW-158455: Promobar overlays with localnav elements in devices (#2991)

* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>

* MWPW-159381: Removes body overrides from caas.css

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Rares Munteanu <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>
Co-authored-by: Akansha Arora <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Stage run-nala Run Nala Test Automation against PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants