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

Career testimonials: create testimonials carousel block #71

Merged
merged 10 commits into from
Sep 29, 2023
Merged

Conversation

bosschaert
Copy link

@bosschaert bosschaert commented Sep 27, 2023

Fixes #17

Test URLs:

I will add this block as well as the other career testimonial blocks to the block library separately once they are completely done.

Note that unit tests would be beneficial to this code. I will add them in a separate commit.

@aem-code-sync
Copy link

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

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 27, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1391981 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

@sdmcraft
Copy link

The carousel buttons seem to be scrolling more than one item

Screen.Recording.2023-09-27.at.6.33.06.PM.mov

instead of scrolling to start and end
@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1391981 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1389009 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1388977 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

Copy link

@dnbute dnbute Sep 28, 2023

Choose a reason for hiding this comment

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

I think this will also impact the network-item block a bit due to the icon being shorter
Could you give me a heads up after you merge this so I can adjust the style accordingly? Thanks

Not sure about other blocks

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@hlxsites hlxsites deleted a comment from aem-code-sync bot Sep 28, 2023
@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1388977 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1388977 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

Copy link

@dnbute dnbute left a comment

Choose a reason for hiding this comment

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

Screen.Recording.2023-09-28.at.12.47.45.mov

The live carousel seems to wrap around, and is also controllable with the arrow keys as well as by clicking the arrows

Copy link

@dnbute dnbute left a comment

Choose a reason for hiding this comment

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

Screen.Recording.2023-09-28.at.13.14.19.mov

Your carousel can be controlled by swiping left-right on a touchpad
But it seems the "dots" at the bottom don't adjust, but I'm not sure what the desired behaviour is as the live one does not work with a touchpad (I assume it's the same for scrolling on a mouse but I don't use one in the office so I can't check)

@hlxsites hlxsites deleted a comment from aem-code-sync bot Sep 28, 2023
@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@hlxsites hlxsites deleted a comment from aem-code-sync bot Sep 28, 2023
@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3448px, received 1280px by 2705px. 1388977 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3441px, received 1280px by 2705px. 1390641 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 28, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 1 visual difference detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3441px, received 1280px by 2705px. 1390641 pixels (ratio 0.32 of all image pixels) are different.

The diff images are attached in the artifact

}
const la = document.createElement('img');
la.src = '/icons/angle-left-blue.svg';
la.alt = 'Previous person card';

Choose a reason for hiding this comment

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

Nit: Should this be localized?

Copy link
Author

Choose a reason for hiding this comment

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

Yes we need i18n. I will create an issue to track.


const ra = document.createElement('img');
ra.src = '/icons/angle-right-blue.svg';
ra.alt = 'Next person card';

Choose a reason for hiding this comment

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

Nit: Should this be localized?

Copy link
Author

Choose a reason for hiding this comment

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

Yes we need i18n. I will create an issue to track.

@sdmcraft
Copy link

LGTM. Please also add this to block library.

blocks/career-carousel/career-carousel.js Show resolved Hide resolved
const link = document.createElement('button');
link.textContent = 'Read More '; // TODO
const arrow = document.createElement('img');
arrow.src = '/icons/angle-right-blue.svg';

Choose a reason for hiding this comment

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

Why its needed here, can it be in css

Copy link
Author

Choose a reason for hiding this comment

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

I guess it can be but then it has to be changed to a background image, these arrows arent really background images...

blocks/career-carousel/career-carousel.js Show resolved Hide resolved
blocks/career-carousel/career-carousel.js Show resolved Hide resolved
blocks/career-carousel/career-carousel.js Outdated Show resolved Hide resolved
blocks/career-carousel/career-carousel.js Outdated Show resolved Hide resolved
blocks/career-carousel/career-carousel.js Outdated Show resolved Hide resolved
blocks/career-carousel/career-carousel.css Outdated Show resolved Hide resolved
blocks/career-carousel/career-carousel.css Outdated Show resolved Hide resolved
blocks/career-carousel/career-carousel.css Outdated Show resolved Hide resolved
@aem-code-sync
Copy link

aem-code-sync bot commented Sep 29, 2023

Page Scores Audits Google
/_drafts/bosschae/career-carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@github-actions
Copy link

🔸 2 visual differences detected

  • /career/yuya-yoshisue (main vs branch)
    Expected an image 1280px by 3441px, received 1280px by 2705px. 1397724 pixels (ratio 0.32 of all image pixels) are different.
  • /sidekick/blocks/network-item (main vs branch)
    Expected an image 1280px by 1603px, received 1280px by 1749px. 70321 pixels (ratio 0.04 of all image pixels) are different.

The diff images are attached in the artifact

@bosschaert
Copy link
Author

Thanks all for the feedback! I created an issue for the i18n here: #80

@bosschaert bosschaert merged commit ef9becf into main Sep 29, 2023
4 checks passed
@bosschaert bosschaert deleted the issue-17-sq branch September 29, 2023 10:43
@jindaliiita
Copy link

Thanks all for the feedback! I created an issue for the i18n here: #80

Thanks @bosschaert Changes LGTM.

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.

Career testimonials: create testimonials carousel block
4 participants