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-158473: CCD Suggested Card [Merch card] #2927

Closed
wants to merge 60 commits into from
Closed

Conversation

Axelcureno
Copy link
Member

@Axelcureno Axelcureno commented Sep 19, 2024

Introduces Creative Cloud Desktop 'Suggested' Card to the list of web components as part of M@S v2 initiative.

LTR:
Screenshot 2024-09-19 at 3 46 30 PM

RTL:
Screenshot 2024-09-24 at 12 04 57 PM

Dark theme (RTL):
Screenshot 2024-10-01 at 1 20 43 PM

Notes:
This card is not part of Milo block library and is part of a CCD integration.
To test this card, run npm run test from web-components folder and select debug, then select the option test/merch-card.ccd-suggested.test.html to see the 3 variations (top to bottom of screenshot): standard, wide strip background and small strip background.

Resolves: MWPW-158473

URL for testing:

@Axelcureno Axelcureno added commerce needs-verification PR requires E2E testing by a reviewer merch card labels Sep 19, 2024
@Axelcureno Axelcureno self-assigned this Sep 19, 2024
@Axelcureno Axelcureno requested a review from a team as a code owner September 19, 2024 22:47
Copy link
Contributor

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

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (6cdc02a) to head (2ddea92).
Report is 10 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2927      +/-   ##
==========================================
- Coverage   96.37%   96.34%   -0.03%     
==========================================
  Files         243      245       +2     
  Lines       55122    55458     +336     
==========================================
+ Hits        53122    53432     +310     
- Misses       2000     2026      +26     

☔ 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.

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.

more or less same comments as i did for the other PR ;)

@3ch023
Copy link
Contributor

3ch023 commented Oct 14, 2024

@Axelcureno I noticed that you use strip-background field, does it mean we need to add it as a separate field in Odin?
maybe we could reuse the 'background-image'?

@Axelcureno
Copy link
Member Author

@Axelcureno I noticed that you use strip-background field, does it mean we need to add it as a separate field in Odin? maybe we could reuse the 'background-image'?

Yes, we talked about this item on a previous tech discussion and agreed to reuse background-image to avoid using multiple models in Odin.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/inline-price.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/literals.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/log.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/mas-commerce-service.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/mas-element.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/price.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/settings.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/utilities.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/src/wcs.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/checkout.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/literals.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/mas-commerce-service.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/price.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/settings.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/utilities.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/utilities.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/commerce/test/wcs.test.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/mas/dist/mas.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/mas/src/mas.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/src/aem-fragment.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/src/constants.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/src/hydrate.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/src/merch-offer.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/src/variants/ccd-slice.css.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/src/variants/ccd-slice.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/aem-fragment.test.html.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/mas.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/merch-card.catalog.test.html.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/merch-card.mini-compare.mobile.test.html.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/merch-card.special-offer.test.html.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/merch-card.test.html.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/merch-twp-d2p.utils.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/merch-whats-included.html.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/mas/web-components/test/utils.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/spectrum-web-components/dist/themes/dark.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/spectrum-web-components/dist/themes/light.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/spectrum-web-components/src/themes/dark.js


⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

https://github.com/adobecom/milo/blob/619f690f0c068e65531372afc78db8bd1d586475/libs/features/spectrum-web-components/src/themes/light.js


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'expect' is defined but never used.

import { expect } from '@esm-bundle/chai';


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '/*' in comment.

/*describe('banner notifications (default)', () => {
it('has a heading-m', () => {
const heading = notifs[0].querySelector('.heading-m');
expect(heading).to.exist;
});
it('has a body-m', () => {
const body = notifs[0].querySelector('.body-m');
expect(body).to.exist;
});
it('has CTAs', () => {
const ctas = notifs[0].querySelector('.action-area > a');
expect(ctas).to.exist;
});
it('has an image', () => {
const img = notifs[0].querySelector('.foreground .image img');
expect(img).to.exist;
});
it('supports a bottom border', () => {
const border = notifs[2].querySelector(':scope > .border');
expect(border).to.exist;
});
it('has a cdt', () => {
expect(notifs[15].querySelectorAll('.timer-label')).to.have.lengthOf(1);
});
});
describe('ribbon notifications', () => {
let ribbons;
beforeEach(() => {
ribbons = [...notifs].filter((e) => e.classList.contains('ribbon'));
});
it('supports multiple icons', () => {
const icons = ribbons[0].querySelectorAll('.icon-area picture');
expect(icons.length).to.be.greaterThan(1);
});
it('has large buttons by default', () => {
const btn = ribbons[0].querySelector('a.con-button');
expect(btn.classList.contains('button-l')).to.be.true;
});
it('can be closed', () => {
const close = ribbons[0].querySelector('button.close');
close.dispatchEvent(new MouseEvent('click'));
expect(close.closest('.notification').style.display).to.equal('none');
});
});
describe('pill notifications', () => {
let pills;
beforeEach(() => {
pills = [...notifs].filter((e) => e.classList.contains('pill'));
});
it('supports variant without a close button', () => {
const close = pills[2].querySelector('button.close');
expect(close).to.not.exist;
});
it('has large buttons by default', () => {
const btn = pills[0].querySelector('a.con-button');
expect(btn.classList.contains('button-l')).to.be.true;
});
it('can be closed', () => {
const close = pills[0].querySelector('button.close');
close.dispatchEvent(new MouseEvent('click'));
expect(close.closest('.notification').style.display).to.equal('none');
});
});*/


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected space or tab before '*/' in comment.

/*describe('banner notifications (default)', () => {
it('has a heading-m', () => {
const heading = notifs[0].querySelector('.heading-m');
expect(heading).to.exist;
});
it('has a body-m', () => {
const body = notifs[0].querySelector('.body-m');
expect(body).to.exist;
});
it('has CTAs', () => {
const ctas = notifs[0].querySelector('.action-area > a');
expect(ctas).to.exist;
});
it('has an image', () => {
const img = notifs[0].querySelector('.foreground .image img');
expect(img).to.exist;
});
it('supports a bottom border', () => {
const border = notifs[2].querySelector(':scope > .border');
expect(border).to.exist;
});
it('has a cdt', () => {
expect(notifs[15].querySelectorAll('.timer-label')).to.have.lengthOf(1);
});
});
describe('ribbon notifications', () => {
let ribbons;
beforeEach(() => {
ribbons = [...notifs].filter((e) => e.classList.contains('ribbon'));
});
it('supports multiple icons', () => {
const icons = ribbons[0].querySelectorAll('.icon-area picture');
expect(icons.length).to.be.greaterThan(1);
});
it('has large buttons by default', () => {
const btn = ribbons[0].querySelector('a.con-button');
expect(btn.classList.contains('button-l')).to.be.true;
});
it('can be closed', () => {
const close = ribbons[0].querySelector('button.close');
close.dispatchEvent(new MouseEvent('click'));
expect(close.closest('.notification').style.display).to.equal('none');
});
});
describe('pill notifications', () => {
let pills;
beforeEach(() => {
pills = [...notifs].filter((e) => e.classList.contains('pill'));
});
it('supports variant without a close button', () => {
const close = pills[2].querySelector('button.close');
expect(close).to.not.exist;
});
it('has large buttons by default', () => {
const btn = pills[0].querySelector('a.con-button');
expect(btn.classList.contains('button-l')).to.be.true;
});
it('can be closed', () => {
const close = pills[0].querySelector('button.close');
close.dispatchEvent(new MouseEvent('click'));
expect(close.closest('.notification').style.display).to.equal('none');
});
});*/

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants