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-155065 PartnerCards fallback for invalid thumbnail images #46

Closed

Conversation

- checks news card background image on first updated
- replace with a hardcoded default (needs configuration somewhere)
- changes the background color of the card header to prevent FOUC
Copy link

aem-code-sync bot commented Jul 25, 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

aem-code-sync bot commented Jul 25, 2024

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.17%. Comparing base (af52e4d) to head (6c7b20e).

Files Patch % Lines
eds/components/NewsCard.js 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage      #46      +/-   ##
==========================================
+ Coverage   84.09%   84.17%   +0.07%     
==========================================
  Files          10       10              
  Lines        2565     2584      +19     
==========================================
+ Hits         2157     2175      +18     
- Misses        408      409       +1     

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

@@ -4,6 +4,9 @@ import { formatDate, getLibs } from '../scripts/utils.js';
const miloLibs = getLibs();
const { html, LitElement } = await import(`${miloLibs}/deps/lit-all.min.js`);

// @todo - make this configurable somewhere.
const DEFAULT_BACKGROUND_IMAGE_URL = 'https://solutionpartners.stage2.adobe.com/content/dam/solution/en/images/card-collection/sample_default.png';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

open to ideas for where this configuration could live

Copy link
Collaborator

@Ben-Zahler Ben-Zahler Jul 25, 2024

Choose a reason for hiding this comment

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

@richardhand ath looks good, but I think this should be a relative path. stage2.adobe.com will not work for prod
we also have a prod/non-prod switch somewhere, that could be a good choice to make this work also on milo branches

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

let's continue this conversation on adobecom/dme-partners#28

@richardhand-fortedigital
Copy link
Collaborator Author

implemented now in DME, closing here: adobecom/dme-partners#28

@richardhand-fortedigital richardhand-fortedigital deleted the mwpw-155065-invalid-thumbnail-fallback branch July 25, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants