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 142003: Mini Compare Chart card fixes #2093

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

Axelcureno
Copy link
Member

@Axelcureno Axelcureno commented Mar 28, 2024

Fixes multiple Mini Compare Chart card alignment and spacing issues.

Resolves: MWPW-142003

Note: Alignment across cards will show broken in test URL because prices are not resolved due to CORS policy. To properly test alignment, please use this URL: https://main--cc--adobecom.hlx.page/drafts/axel/mini-compare-chart-edgecase?milolibs=MWPW-142003--milo--axelcureno

Test URLs:

@Axelcureno Axelcureno added commerce needs-verification PR requires E2E testing by a reviewer merch card labels Mar 28, 2024
@Axelcureno Axelcureno self-assigned this Mar 28, 2024
@Axelcureno Axelcureno requested a review from a team as a code owner March 28, 2024 23:58
Copy link
Contributor

aem-code-sync bot commented Mar 28, 2024

Page Scores Audits Google
/drafts/axel/mini-compare-chart?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.45%. Comparing base (521defb) to head (f0588fb).

❗ Current head f0588fb differs from pull request most recent head a53853b. Consider uploading reports for the commit a53853b to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2093      +/-   ##
==========================================
- Coverage   96.63%   96.45%   -0.18%     
==========================================
  Files         165      166       +1     
  Lines       43523    43466      -57     
==========================================
- Hits        42058    41926     -132     
- Misses       1465     1540      +75     

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

@narcis-radu narcis-radu self-requested a review April 1, 2024 13:11
Copy link
Contributor

@narcis-radu narcis-radu left a comment

Choose a reason for hiding this comment

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

I am requesting changes since I have identified a couple of issues:

  1. all browsers - you cannot tab anymore through clickable elements in the card
  2. safari and firefox - in the 3rd card, there's a small overlapping between "Save 19% ($US7.99/mo) for the first year if you buy now" and "Secure transaction"
  3. all browsers - mobile view is broken, the cards don't adjust width; the same issue is visible in the before link though.

@Axelcureno
Copy link
Member Author

I am requesting changes since I have identified a couple of issues:

  1. all browsers - you cannot tab anymore through clickable elements in the card
  2. safari and firefox - in the 3rd card, there's a small overlapping between "Save 19% ($US7.99/mo) for the first year if you buy now" and "Secure transaction"
  3. all browsers - mobile view is broken, the cards don't adjust width; the same issue is visible in the before link though.

@narcis-radu thanks for the review, I have addressed the mentioned issues. The Test URL from my fork will not reflect the actual changes (alignment inside cards) because prices fail in milo-forked URLs. To see the changes with prices displaying properly please see https://main--cc--adobecom.hlx.page/drafts/axel/mini-compare-chart-edgecase?milolibs=MWPW-142003--milo--axelcureno
For testing mobile, this card has mobile-specific styles and height calculations triggered upon page load. Please refresh the page when testing in mobile. We decided not to trigger mobile view when the page is resized to avoid performance impact (since most users will not go from desktop to mobile in the same window).

@@ -25,6 +25,7 @@ function createDynamicSlots(el, bodySlot) {
const descriptionSlot = el.querySelector('p[slot="description"]');
if (descriptionSlot) {
descriptionSlot.innerHTML += description.innerHTML;
description.parentNode.removeChild(description);
Copy link
Contributor

Choose a reason for hiding this comment

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

description.remove(); should do it as well.

@narcis-radu
Copy link
Contributor

@Axelcureno - I still cannot tab through items when I use your feature branch. The #1 item from my initial feedback is still problematic.

@Axelcureno
Copy link
Member Author

@Axelcureno - I still cannot tab through items when I use your feature branch. The #1 item from my initial feedback is still problematic.

@narcis-radu I forgot to mention, this is fixed in a separate ticket: #2078

Copy link

@Roycethan Roycethan left a comment

Choose a reason for hiding this comment

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

@Axelcureno
1)On mobile version the pricing text is "per" is broken in next line
https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno
image

  1. Regarding CTA alignment its different in different page, which on'es correct?
    https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno
image https://main--cc--adobecom.hlx.page/products/premiere?milolibs=MWPW-142003--milo--axelcureno image 3)'Best value' either should be in center align with product title or at top - plz review https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno image 4)Strikethrough pricing font size is bit larger https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno image

@Axelcureno
Copy link
Member Author

@Axelcureno 1)On mobile version the pricing text is "per" is broken in next line https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno image

  1. Regarding CTA alignment its different in different page, which on'es correct?
    https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno

image https://main--cc--adobecom.hlx.page/products/premiere?milolibs=MWPW-142003--milo--axelcureno image 3)'Best value' either should be in center align with product title or at top - plz review https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno image 4)Strikethrough pricing font size is bit larger https://main--cc--adobecom.hlx.page/creativecloud?milolibs=MWPW-142003--milo--axelcureno image

I have addressed the mentioned comments @Roycethan, please check:

Screenshot 2024-04-08 at 5 03 28 PM
Screenshot 2024-04-08 at 5 03 20 PM
Screenshot 2024-04-08 at 5 03 05 PM
Screenshot 2024-04-08 at 5 02 51 PM

@Roycethan
Copy link

@Roycethan
Copy link

Roycethan commented Apr 9, 2024

Also observed one weird issue with quantity selector here: https://main--dc--adobecom.hlx.page/acrobat/features?milolibs=MWPW-142003--milo--axelcureno
4) On inner edit box theres up/down for increment/decrement when i use that the quanity is not getting applied to the Buy now CTA Href. although it works when using dropdown.
will loop @VKniaz as well since he has worked on it before
image

fyi @afmicka

Copy link

@Roycethan Roycethan left a comment

Choose a reason for hiding this comment

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

@Axelcureno Plz check 4 above

@Axelcureno
Copy link
Member Author

Also observed one weird issue with quantity selector here: https://main--dc--adobecom.hlx.page/acrobat/features?milolibs=MWPW-142003--milo--axelcureno 4) On inner edit box theres up/down for increment/decrement when i use that the quanity is not getting applied to the Buy now CTA Href. although it works when using dropdown. will loop @VKniaz as well since he has worked on it before image

fyi @afmicka

@Axelcureno Plz check 4 above

Thanks @Roycethan . Quantity selector issue is not related to this card but to the component itself. Will follow up offline to get browser details from your testing.

Regarding issue #4, strikethrough should be in normal font weight and smaller font size as per Consonant XD:

XD:
Screenshot 2024-04-08 at 7 03 30 PM

With PR changes:
Screenshot 2024-04-08 at 7 04 05 PM

Copy link

@Roycethan Roycethan left a comment

Choose a reason for hiding this comment

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

Issue mentioned above related to this PR are fixed, for few created separate tickets since they are not related to this PR and exist in main. Few other issues noted while doing regressions are also fixed. Marking as verified since this urgent request and continue testing, and if theres anything comes up will create separate ticket.
@Axelcureno cc @afmicka

@Roycethan Roycethan added verified PR has been E2E tested by a reviewer and removed needs-verification PR requires E2E testing by a reviewer labels Apr 18, 2024
Fixes multiple Mini Compare Chart card alignment and spacing issues.

Resolves: MWPW-142003

Note: Alignment across cards will show broken in test URL because prices are not resolved due to CORS policy. To properly test alignment, please use this URL: https://main--cc--adobecom.hlx.page/drafts/axel/mini-compare-chart-edgecase?milolibs=MWPW-142003--milo--axelcureno

Test URLs:

Before: https://main--milo--axelcureno.hlx.page/drafts/axel/mini-compare-chart?martech=off
After: https://mwpw-142003--milo--axelcureno.hlx.page/drafts/axel/mini-compare-chart?martech=off
Co-Authored-By: ilyas Stéphane Türkben <isturkben@gmail.com>
@mokimo
Copy link
Contributor

mokimo commented Apr 19, 2024

This PR has changes requested from @narcis-radu - this cant be merged with changes requested and thus isn't ready for stage.

@Axelcureno
Copy link
Member Author

This PR has changes requested from @narcis-radu - this cant be merged with changes requested and thus isn't ready for stage.

@narcis-radu as per our requirements, tab click is to navigate within inner clickable elements of a merch card and arrow keys to navigate between cards. You may check this functionality in the test URL.
This PR is getting escalated because it's blocking important CC and DC migrations.

cc @yesil @mokimo @npeltier

@Axelcureno
Copy link
Member Author

As confirmed by PdMs, the requested changes by @narcis-radu are not in accord with our requirements, hence adding Ready for Stage label.

For any questions, please reach out to April Burness, Lucy Sogard or Nick Lam.
cc @mokimo @npeltier @yesil @3ch023

@drashti1712
Copy link
Contributor

Hi @Axelcureno
The aem-psi-check is failing for this PR. Could you please take a look at it?

@Axelcureno Axelcureno dismissed narcis-radu’s stale review April 22, 2024 17:03

The requested changes are not in accordance with our business requirements.

@Axelcureno
Copy link
Member Author

Axelcureno commented Apr 22, 2024

Hi @Axelcureno The aem-psi-check is failing for this PR. Could you please take a look at it?

Thank you @drashti1712, I have retriggered and it is now passing all checks :)

@Ruchika4 Ruchika4 merged commit 443d511 into adobecom:stage Apr 22, 2024
10 checks passed
joaquinrivero added a commit to joaquinrivero/milo that referenced this pull request Apr 25, 2024
* stage:
  MWPW-146999: kodiak CVE 25883 (adobecom#2183)
  MWPW-144549 CTA alignment for Text, Icon, and Media Blocks (adobecom#2098)
  MWPW-146494-keep gnav sticky when branch banner is displayed (adobecom#2175)
  MWPW-135821 introduce mep custom action & use it for card collection (adobecom#2152)
  MWPW-146129 [Original: adobecom#2123] App Launcher overlaps the menu in Unav in the devices (adobecom#2184)
  Revert "MWPW-146129 App Launcher overlaps the menu in Unav in the devices" (adobecom#2182)
  MWPW-146129 App Launcher overlaps the menu in Unav in the devices (adobecom#2123)
  MWPW-139842 [Revert] Fill button style (adobecom#2181)
  Mwpw 142003: Mini Compare Chart card fixes (adobecom#2093)
  MWPW-146756] Add support for RTL in aside notifications, horizontal cards"" (adobecom#2178)
  Revert "[MWPW-146756] Add support for RTL in aside notifications, horizontal cards" (adobecom#2177)
  [MWPW-146756] Add support for RTL in aside notifications, horizontal cards (adobecom#2167)
  Revert "MWPW-142590 - [Share] enhancement - ability to edit text above icons" (adobecom#2172)
mokimo pushed a commit to mokimo/milo that referenced this pull request Apr 30, 2024
Fixes multiple Mini Compare Chart card alignment and spacing issues.

Resolves: MWPW-142003

Note: Alignment across cards will show broken in test URL because prices are not resolved due to CORS policy. To properly test alignment, please use this URL: https://main--cc--adobecom.hlx.page/drafts/axel/mini-compare-chart-edgecase?milolibs=MWPW-142003--milo--axelcureno

Test URLs:

Before: https://main--milo--axelcureno.hlx.page/drafts/axel/mini-compare-chart?martech=off
After: https://mwpw-142003--milo--axelcureno.hlx.page/drafts/axel/mini-compare-chart?martech=off

Co-authored-by: ilyas Stéphane Türkben <isturkben@gmail.com>
yesil added a commit to yesil/milo that referenced this pull request May 21, 2024
Fixes multiple Mini Compare Chart card alignment and spacing issues.

Resolves: MWPW-142003

Note: Alignment across cards will show broken in test URL because prices are not resolved due to CORS policy. To properly test alignment, please use this URL: https://main--cc--adobecom.hlx.page/drafts/axel/mini-compare-chart-edgecase?milolibs=MWPW-142003--milo--axelcureno

Test URLs:

Before: https://main--milo--axelcureno.hlx.page/drafts/axel/mini-compare-chart?martech=off
After: https://mwpw-142003--milo--axelcureno.hlx.page/drafts/axel/mini-compare-chart?martech=off

Co-authored-by: ilyas Stéphane Türkben <isturkben@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commerce merch card Ready for Stage run-nala Run Nala Test Automation against PR verified PR has been E2E tested by a reviewer
Projects
None yet
10 participants