Skip to content

Conversation

@sirugh
Copy link

@sirugh sirugh commented Apr 30, 2025

Demonstrates GQL extensibility method of augmenting fragment for the initial query made by drop-in.

To try it out, check the repo/branch out locally, npm i and npm run start. Then open:

http://localhost:3000/products/for-creators-by-creators-hoodie/ADB387 and see if ratings are rendered.

image

configs-dev.json is necessary only because I wanted to force a specific endpoint instead of modifying the eds config for adobe-demo-store repo.

scripts/__dropins__ can be ignored - it is output of npm i.

So only 3 files necessary:

  1. build.mjs - tells the dropin to use new schema props on a fragment
  2. initializers/pdp.js - tells the pdp to allow the new prop through with the transformed data
  3. blocks/product-details/product-details.js - the pdp block that uses the new data when rendering the view

--- Below is just EDS things, you can ignore. ---
Test URLs:

…r third-party query in mesh

Signed-off-by: Stephen Rugh <rugh@adobe.com>
@aem-code-sync
Copy link

aem-code-sync bot commented Apr 30, 2025

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

@aem-code-sync
Copy link

aem-code-sync bot commented Apr 30, 2025

Page Scores Audits Google
📱 /products/adobe-for-all-tee/ADB256 PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /products/adobe-for-all-tee/ADB256 PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

},
{
"key": "commerce-core-endpoint",
"value": "https://edge-graph.adobe.io/api/1ed11f0b-4dc6-4029-8e4d-631fafb4dec4/graphql"
Copy link
Author

Choose a reason for hiding this comment

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

This file is just a way to force the override of adobe-demo-store site to use this commerce endpoint. In partner day, each person will have their own site + config, pointing to their own mesh already.

sirugh added 3 commits April 30, 2025 14:57
Signed-off-by: Stephen Rugh <rugh@adobe.com>
f
Signed-off-by: Stephen Rugh <rugh@adobe.com>
Signed-off-by: Stephen Rugh <rugh@adobe.com>
…onments

Created 'override-configs-dev.json' and 'override-configs.json' to manage environment-specific configurations. Updated 'configs.js' to reference the new override configuration files based on the environment.
…ronment configuration. Updated 'configs.js' to reference the new configuration file.
Comment on lines +36 to +39
const fileName = 'configs-override.json';
// if (env !== 'prod') {
// fileName = `override-configs-${env}.json`;
// }

Choose a reason for hiding this comment

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

@sirugh FYI — if the extension is .json, the Content Bus will be checked first. For some reason, JSON files in the repo were being prioritized only when using localhost:3000. This update ensures that all environments in this branch are forced to use the JSON override, allowing all .page and .live URLs to be previewed during the lab.

@sirugh sirugh closed this May 5, 2025
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.

2 participants