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

569-new-section-carousel-first-full-layout #570

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

rgravitvl
Copy link
Collaborator

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):

Fix #

Test URLs:

Copy link
Contributor

aem-code-sync bot commented Dec 11, 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

@rgravitvl rgravitvl requested a review from mhaack December 11, 2023 11:50
Copy link
Contributor

aem-code-sync bot commented Dec 11, 2023

Page Scores Audits Google
/ Lighthouse returned error: FAILED_DOCUMENT_REQUEST. Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Details: net::ERR_CONNECTION_FAILED) PSI

Comment on lines 19 to 20
<hr>
<hr>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check these 2 sections? The homepage is not using any carousel, so it should not be impacted.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As we separated section of first full layout, home page is also got additional


@@ -4,6 +4,7 @@ const createFullLayoutSection = (main, document) => {
const div = e.querySelector('div');
const style = div.getAttribute('class');
if (style) {
if (i === 0 && e.parentNode.previousElementSibling) e.prepend(document.createElement('hr'));
Copy link
Collaborator

Choose a reason for hiding this comment

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

just wondering why we need this in the section? I thought the hr tag can be added to individual blocks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This would needed to separate fulllayout from other above components. I can explain over the call. Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

@duynguyen we (Ravi & I) just discussed we should have the sections controlled by the containers and not the blocks. Adding


before / after a block is risky, might work on one place but can have side effects on other places the same block is used.

@rgravitvl rgravitvl merged commit 42be785 into main Dec 12, 2023
2 of 3 checks passed
@rgravitvl rgravitvl deleted the 569-new-section-carousel-first-full-layout branch December 12, 2023 09:27
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.

[Product Opco Home] New Section for carousel and First full layout - Converter update
3 participants