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-140549: CLS on drag and drop or quick file selection #511

Merged
merged 4 commits into from
Jan 8, 2024

Conversation

joaquinrivero
Copy link
Collaborator

@joaquinrivero joaquinrivero commented Jan 8, 2024

Changes Made:

Addressed the CLS (Cumulative Layout Shift) issue related to the widget moving from 70px to 30px briefly when a user tries to upload a file immediately after clicking the main CTA.
Reviews is not longer visible during file processing, preventing CLS spikes.

How to Test:

Throttle your Chrome to slow 3G or fast 3G.
Visit one of the "problem" pages, e.g., https://www.adobe.com/acrobat/online/compress-pdf.html.
Wait for the main CTA to become enabled (no longer grey).
Click on the CTA and try to upload a file.
Verify that the widget no longer moving, reviews disappears meanwhile file is processed and that there is no significant CLS spike.

Resolves: MWPW-140549

Test URLs:

PDF to Word    
Before: https://www.adobe.com/acrobat/online/pdf-to-word.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/pdf-to-word

PDF to JPG    
Before: https://www.adobe.com/acrobat/online/pdf-to-jpg.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/pdf-to-jpg

PDF to Excel    
Before: https://www.adobe.com/acrobat/online/pdf-to-excel.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/pdf-to-excel

PDF to PPT    
Before: https://www.adobe.com/acrobat/online/pdf-to-ppt.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/pdf-to-ppt

PDF to converter    
Before: https://www.adobe.com/acrobat/online/convert-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/convert-pdf

Word to PDF    
Before: https://www.adobe.com/acrobat/online/word-to-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/word-to-pdf

Jpg to PDF    
Before: https://www.adobe.com/acrobat/online/jpg-to-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/jpg-to-pdf

PNG to PDF    
Before: https://www.adobe.com/acrobat/online/png-to-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/png-to-pdf

Excel to PDF    
Before: https://www.adobe.com/acrobat/online/excel-to-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/excel-to-pdf

PPT to PDF    
Before: https://www.adobe.com/acrobat/online/ppt-to-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/ppt-to-pdf

Compress PDF    
Before: https://www.adobe.com/acrobat/online/compress-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/compress-pdf

Merge PDFs    
Before: https://www.adobe.com/acrobat/online/merge-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/merge-pdf

Split PDF    
Before: https://www.adobe.com/acrobat/online/split-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/split-pdf

Crop a PDF    
Before: https://www.adobe.com/acrobat/online/crop-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/crop-pdf

Delete PDF pages    
Before: https://www.adobe.com/acrobat/online/delete-pdf-pages.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/delete-pdf-pages

Rearrange PDF pages    
Before: https://www.adobe.com/acrobat/online/rearrange-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/rearrange-pdf

Extract PDF pages    
Before: https://www.adobe.com/acrobat/online/extract-pdf-pages.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/extract-pdf-pages

Insert PDF pages    
Before: https://www.adobe.com/acrobat/online/add-pages-to-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/add-pages-to-pdf

Number PDF pages    
Before: https://www.adobe.com/acrobat/online/add-pdf-page-numbers.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/add-pdf-page-numbers

Protect password    
Before: https://www.adobe.com/acrobat/online/password-protect-pdf.html
After: https://mwpw-140549--dc--adobecom.hlx.live/acrobat/online/password-protect-pdf

Copy link

aem-code-sync bot commented Jan 8, 2024

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

codecov-commenter commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (26f56a9) 97.90% compared to head (44aedfe) 97.90%.
Report is 1 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff           @@
##            stage     #511   +/-   ##
=======================================
  Coverage   97.90%   97.90%           
=======================================
  Files          26       26           
  Lines        2907     2907           
=======================================
  Hits         2846     2846           
  Misses         61       61           

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

Copy link
Collaborator

@peller peller left a comment

Choose a reason for hiding this comment

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

🔥

@peller
Copy link
Collaborator

peller commented Jan 8, 2024

Is MWPW-137866 the right ticket?

@joaquinrivero joaquinrivero changed the title MWPW-137866: CLS on drag and drop or quick file selection MWPW-140549: CLS on drag and drop or quick file selection Jan 8, 2024
@joaquinrivero
Copy link
Collaborator Author

@peller this is the correct one MWPW-140549

@Blainegunn Blainegunn requested review from Sartxi and TsayAdobe January 8, 2024 20:16
@Blainegunn
Copy link
Collaborator

@joaquinrivero thank you so much! If you have time would you mind resolved the css linting errors too please.

@Blainegunn Blainegunn self-requested a review January 8, 2024 20:17
@Blainegunn Blainegunn merged commit de7f509 into stage Jan 8, 2024
7 checks passed
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.

4 participants