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-158927] Countdown Timer feedbacks incorporated #2955

Merged
merged 23 commits into from
Sep 30, 2024

Conversation

rohitsahu
Copy link
Contributor

@rohitsahu rohitsahu commented Sep 25, 2024

Added CDT to notifications. CDT in Modal already works. To be validated in testing.
For RTL, fixed the flex direction for the "timer-block" and the "timer-fragment".
Fixed the font-sizes based on the design: https://adobe.sharepoint.com/:p:/s/Adobedotcom/Eaw_AFM_SP5HpKZEYktTYdQBkmxRuJ69C0BsakLlSnEXJQ?e=lkcqHv
ENDS IN was not vertically aligned for CTL in notifications. Fixed be setting the ine-height.

Resolves: MWPW-158927

https://main--milo--adobecom.hlx.page/

Test URLs:

Set rtl to see the effect by setting document.dir in console:
document.dir = "rtl"

@rohitsahu rohitsahu requested a review from a team as a code owner September 25, 2024 13:03
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.29%. Comparing base (4bc2230) to head (2b55639).
Report is 7 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2955      +/-   ##
==========================================
- Coverage   96.31%   96.29%   -0.02%     
==========================================
  Files         242      242              
  Lines       54987    54993       +6     
==========================================
- Hits        52959    52957       -2     
- Misses       2028     2036       +8     

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

libs/features/cdt/cdt.css Outdated Show resolved Hide resolved
@rohitsahu rohitsahu changed the title Fix RTL issues with Countdown Timer [MWPW-158927] Countdown Timer feedback incorporated Sep 26, 2024
@rohitsahu rohitsahu changed the title [MWPW-158927] Countdown Timer feedback incorporated [MWPW-158927] Countdown Timer feedbacks incorporated Sep 26, 2024
@@ -49,7 +50,7 @@
padding: 0 9px;
width: 10px;
border-radius: 5px;
font-size: var(--type-body-m-size);
font-size: 18px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you going away from using variables? 🤔

@rahulgupta999 rahulgupta999 added bug Something isn't working run-nala Run Nala Test Automation against PR commerce high priority Why is this a high priority? Blocker? Critical? Dependency? needs-verification PR requires E2E testing by a reviewer labels Sep 27, 2024
Copy link
Contributor

@npeltier npeltier left a comment

Choose a reason for hiding this comment

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

lgtm thanks a lot @rohitsahu !

@afmicka
Copy link
Contributor

afmicka commented Sep 27, 2024

@rohitsahu @rahulgupta999 looking into the CDT design for modal, the placement does not seem right. Shouldn't the CDT be below the text of the modal (in a way connected to it)? Could you please check the exact requirement for this arrangement as well? Also looks too much on the left, outside of the margins

Expected:
Screenshot 2024-09-27 at 17 38 54

Actual (https://mwpw-158927--milo--rohitsahu.hlx.page/drafts/rahulgup/modal-cdt):
Screenshot 2024-09-27 at 17 32 28

@rohitsahu
Copy link
Contributor Author

@rohitsahu @rahulgupta999 looking into the CDT design for modal, the placement does not seem right. Shouldn't the CDT be below the text of the modal (in a way connected to it)? Could you please check the exact requirement for this arrangement as well? Also looks too much on the left, outside of the margins

Expected: Screenshot 2024-09-27 at 17 38 54

Actual (https://mwpw-158927--milo--rohitsahu.hlx.page/drafts/rahulgup/modal-cdt): Screenshot 2024-09-27 at 17 32 28

Agreed. Also discussed, issue is present with CTL in media block as well. Both issues will be fixed in this PR.

@rohitsahu
Copy link
Contributor Author

@rohitsahu @rahulgupta999 looking into the CDT design for modal, the placement does not seem right. Shouldn't the CDT be below the text of the modal (in a way connected to it)? Could you please check the exact requirement for this arrangement as well? Also looks too much on the left, outside of the margins

Expected: Screenshot 2024-09-27 at 17 38 54

Actual (https://mwpw-158927--milo--rohitsahu.hlx.page/drafts/rahulgup/modal-cdt): Screenshot 2024-09-27 at 17 32 28

@afmicka Fixed, please verify

@afmicka
Copy link
Contributor

afmicka commented Sep 30, 2024

@rohitsahu there is a noticeable difference in box size that was not there before. Could you please take a look?
https://mwpw-158927--milo--rohitsahu.hlx.page/ae_ar/drafts/nala/features/promotions/promo-replace-with-countdown?martech=off
main (and design):
Screenshot 2024-09-30 at 11 02 35

actual:
Screenshot 2024-09-30 at 11 02 44

@rohitsahu
Copy link
Contributor Author

@rohitsahu there is a noticeable difference in box size that was not there before. Could you please take a look? https://mwpw-158927--milo--rohitsahu.hlx.page/ae_ar/drafts/nala/features/promotions/promo-replace-with-countdown?martech=off main (and design): Screenshot 2024-09-30 at 11 02 35

actual: Screenshot 2024-09-30 at 11 02 44

@afmicka For Arabic font size is larger (1.25x) for texts, hence I fixed the CDT font sizes as well to keep the sizes consistent with the body texts.
Screenshot 2024-09-30 at 3 04 35 PM
cc: @rahulgupta999

@afmicka afmicka added verified PR has been E2E tested by a reviewer Ready for Stage and removed needs-verification PR requires E2E testing by a reviewer labels Sep 30, 2024
@milo-pr-merge milo-pr-merge bot merged commit 1fc0c79 into adobecom:stage Sep 30, 2024
23 checks passed
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 30, 2024
rohitsahu pushed a commit to rohitsahu/milo that referenced this pull request Oct 1, 2024
* stage:
  MWPW-158886: update the way we send arbitrary fields to caas (adobecom#2977)
  MWPW-159028: MAS more technical documents + refactored aem related code (adobecom#2952)
  MWPW-158776 Fix video CLS  (adobecom#2915)
  MWPW-159197 Invoke onReady of standalone gnav when it is rendered adobecom#2962 (adobecom#2963)
  MWPW-159157: Update modal to account for new image size (adobecom#2975)
  Reverts MWPW-157555: Causing prices and CTAs to fail in Safari (adobecom#2987)
  [MWPW-159287 : NALA] Enhance Nala Run Command to Support Feature Branches with with an owner other than 'adobecom' (adobecom#2978)
  [MWPW-158927] Countdown Timer feedbacks incorporated (adobecom#2955)
  [MWPW-159265] Callout text in RTL not properly aligned (adobecom#2974)
  Add support for Jarvis through Unav and make appID of notifications configurable (adobecom#2969)
  MWPW-159236 Fix duplicate percent in donut chart tooltip (adobecom#2968)
  MWPW-144360 Prototype pollution tag selector (adobecom#2967)
  [MWPW-153616] Update 404 links in region selector (adobecom#2956)
  MWPW-157555: Remove useless logic and putting import commerce.js top. (adobecom#2906)

# Conflicts:
#	libs/deps/mas/mas.js
#	libs/deps/mas/merch-card.js
#	libs/deps/mas/plans-modal.js
#	libs/features/mas/web-components/src/global.css.js
jenssingler pushed a commit to jenssingler/milo that referenced this pull request Oct 7, 2024
* Fix RTL issues with Countdown Timer

* UT fix

* review comment

* review comment

* review comment

* font fixes

* do not reverse

* Revert "UT fix"

This reverts commit c7e4d1d.

* added CDT in notifications standard variant

* ends in vertical positioning fix

* review comments

* UT added for cdt in notification

* lint

* css fixes

* minor fix

* lint

* css

* update timer for instant query param

* narcis review feedback incorporated from PR adobecom#2928

* minor refactoring

* fix CDT alignment in media and modal block

---------

Co-authored-by: Rohit Sahu <rosahu@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working commerce high priority Why is this a high priority? Blocker? Critical? Dependency? Ready for Stage run-nala Run Nala Test Automation against PR verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants