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-158059 [MEP] PHONE_SIZE limit is too large to exclude smaller tablets #2854

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

vgoodric
Copy link
Contributor

@vgoodric vgoodric commented Sep 9, 2024

Note: this is listed a high priority because it is needed for MAX.

Detailed Description: experience columns using tablet are not catching smaller tablets
................................
URL: https://main--cc--adobecom.hlx.page/products/photoshop-lightroom/features?target=off&mep=
................................
Steps to Reproduce:

  1. Simulate a device that is android and tablet
  2. Go to the link above (choosing any samsung tab) should work

Expected Results: MEP button indicates Android & Tablet is chosen
................................
Actual Results: MEP button indicates mobile-device is chosen

Resolves: MWPW-158059

Test URLs:

@vgoodric vgoodric requested a review from a team as a code owner September 9, 2024 17:47
Copy link
Contributor

aem-code-sync bot commented Sep 9, 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

@vgoodric vgoodric requested a review from a team September 9, 2024 17:47
Copy link
Contributor

aem-code-sync bot commented Sep 9, 2024

Page Scores Audits Google
M /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
D /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@vgoodric vgoodric added the high priority Why is this a high priority? Blocker? Critical? Dependency? 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.09%. Comparing base (38beea9) to head (0767404).
Report is 4 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff           @@
##            stage    #2854   +/-   ##
=======================================
  Coverage   96.09%   96.09%           
=======================================
  Files         215      215           
  Lines       53950    53969   +19     
=======================================
+ Hits        51841    51860   +19     
  Misses       2109     2109           

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

@@ -7,7 +7,7 @@ import {
import { getEntitlementMap } from './entitlements.js';

/* c8 ignore start */
const PHONE_SIZE = window.screen.width < 768 || window.screen.height < 768;
const PHONE_SIZE = window.screen.width < 600 || window.screen.height < 600;
Copy link
Member

Choose a reason for hiding this comment

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

Using 600 as breakpoint would exclude some smartphones when on landscape mode. Typically the smallest tablet has 768 of width (iPad mini), why not use 767 instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's why the line checks width and height. Either being smaller avoids miscategorizing a device in landscape. Essentially, I trying to check that the SMALLEST dimension is less than our checkpoint.

Someone pointed me to a site that lists the viewports for a bunch of devices and I've updated to go down to 550 instead. Trying to catch the smaller tablets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I should mention. This came up in reference to a specific use case: Samsung Galaxy tablets. They are smaller than iPads.

@vgoodric vgoodric added verified PR has been E2E tested by a reviewer Ready for Stage labels Sep 9, 2024
@milo-pr-merge milo-pr-merge bot merged commit 5ad94df into stage Sep 10, 2024
21 checks passed
@milo-pr-merge milo-pr-merge bot deleted the meptablet branch September 10, 2024 09:16
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Why is this a high priority? Blocker? Critical? Dependency? Ready for Stage verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants