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

added bundle and thumbnail in RFQ #1269

Merged
merged 17 commits into from
Nov 10, 2023
Merged

added bundle and thumbnail in RFQ #1269

merged 17 commits into from
Nov 10, 2023

Conversation

dev-rajneeshkumar
Copy link
Collaborator

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-run PSI Checks

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 8, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Comment on lines 179 to 185
if (data.bundleThumbnail) {
if (!data.bundleThumbnail.startsWith('https')) {
if (data.bundleThumbnail.startsWith('.')) {
data.bundleThumbnail = data.bundleThumbnail.substring(1);
}
data.bundleThumbnail = `https://www.moleculardevices.com${data.bundleThumbnail}`;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this logic is similar to the product image we should move that to a function instead of duplication.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Function hasThumbnailImage created for the same

if (data.path) {
hubSpotQuery.website = `https://www.moleculardevices.com${data.path}`;
} else {
hubSpotQuery.website = `https://www.moleculardevices.com${data.toLowerCase()}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work? Data is an object white multiple fields. I think we can set the website to the hose only allready when hubSpotQuery is created above and only if data.path exists we append it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, else part removed!

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@@ -130,9 +130,20 @@ function iframeResizehandler(formUrl, id, root) {
});
}

function hasThumbnailImage(thumbImage) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe rename to prepImageUrl

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done @mhaack

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 9, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Contributor

aem-code-sync bot commented Nov 10, 2023

Page Scores Audits Google
/products/gxp-compliance-solutions/softmax-pro-gxp-software PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@dev-rajneeshkumar dev-rajneeshkumar merged commit cdf81ce into main Nov 10, 2023
2 checks passed
@dev-rajneeshkumar dev-rajneeshkumar deleted the bundle-thumb branch November 10, 2023 05:35
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