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-158053: CCD Slice Card [Merch card] #2878

Merged
merged 26 commits into from
Sep 25, 2024
Merged

MWPW-158053: CCD Slice Card [Merch card] #2878

merged 26 commits into from
Sep 25, 2024

Conversation

Axelcureno
Copy link
Member

@Axelcureno Axelcureno commented Sep 13, 2024

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

LTR:
Screenshot 2024-09-13 at 1 09 54 PM

RTL:
Screenshot 2024-09-16 at 9 23 39 AM

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-slice.test.html to see the 2 options (standard size and wide)

Resolves: MWPW-158053

Test URLs:

npeltier and others added 10 commits August 31, 2024 00:18
- move from merch-card.js code each layout code related to a given variant under variants/<variant> class
- move from global.css.js css related to a given variant under variants/<variant>.css.js
- move from merch-card.css.js wc css related to a given variant under variants/<variant>.variantStyle
- uses variants/variants as an index to get related class from related variant, and wc style too,
- uses variants/VariantLayout, superclass of all variants, to insert css if card is used, and hold common code
to something independent of the layout (not initialized when used at first in collections)
@Axelcureno Axelcureno added commerce needs-verification PR requires E2E testing by a reviewer merch card labels Sep 13, 2024
@Axelcureno Axelcureno self-assigned this Sep 13, 2024
@Axelcureno Axelcureno requested a review from a team as a code owner September 13, 2024 20:10
Copy link
Contributor

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

aem-code-sync bot commented Sep 13, 2024

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

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

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.29%. Comparing base (5ddeb73) to head (c3289a7).
Report is 4 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff            @@
##            stage    #2878    +/-   ##
========================================
  Coverage   96.29%   96.29%            
========================================
  Files         240      242     +2     
  Lines       54739    54850   +111     
========================================
+ Hits        52709    52818   +109     
- Misses       2030     2032     +2     

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

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

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.

@3ch023
Copy link
Contributor

3ch023 commented Sep 17, 2024

Hi @Axelcureno, just a suggestion, but if we wait for #2894 we can add a test page showcasing the CCD cards you've implemented

Copy link
Contributor

@3ch023 3ch023 left a comment

Choose a reason for hiding this comment

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

we might not need the images for unit tests, as discussed before with Milo core team.
rest looks good to me.
p.s. for PSI check - we can create a test page with odin resources, once #2894 is ready

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.

thanks @Axelcureno, looks great :)

@Roycethan
Copy link

@Axelcureno Price element is not wrapped to previous line

@Roycethan
Copy link

@Axelcureno Price element is not wrapped to previous line

Fixed in b174f0d

@Roycethan Roycethan added verified PR has been E2E tested by a reviewer and removed needs-verification PR requires E2E testing by a reviewer labels Sep 24, 2024
@Roycethan
Copy link

renderLayout() {
return html` <div class="content">
<slot name="icons"></slot> ${this.badge}
<slot name="body-s"></slot>
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: this should be body-xs

Copy link
Contributor

Choose a reason for hiding this comment

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

or merch-datasource that should be body-s too :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I have fixed in merch-datasource, thank you.

@npeltier
Copy link
Contributor

please fix my last comment on description typo https://github.com/adobecom/milo/pull/2878/files#r1773166090

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Sep 24, 2024

Skipped 2878: "MWPW-158053: CCD Slice Card [Merch card]" due to file "libs/features/mas/web-components/src/merch-datasource.js" overlap. Merging will be attempted in the next batch

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.

@milo-pr-merge milo-pr-merge bot merged commit e921f64 into stage Sep 25, 2024
14 checks passed
@milo-pr-merge milo-pr-merge bot deleted the MWPW-158053 branch September 25, 2024 08:32
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 25, 2024
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 verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants