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

DS-529: Pega.com: Add 'Download slides' CTA to PW Replays "Best Of" cards #2312

Merged
merged 12 commits into from
Sep 13, 2021

Conversation

MarcinMr
Copy link
Collaborator

@MarcinMr MarcinMr commented Sep 8, 2021

Jira

https://pegadigitalit.atlassian.net/browse/DS-529

Summary

Download slides CTA was added. All phases from the Best-of-content were removed and only one final version was kept.

Details

Download slides CTA was added to the bolt-teaser component and to the best-of-content pages in relation to the proposed wireframe.

How to test

Pull the branch. Check out the bolt-teaser component and best-of-content pages where the new Download slides CTA was added. Make sure the new CTA is correct in terms of semantics and accessibility.

Release notes

  • Added new CTA to the Listing Teaser actions list on the bolt-teaser component and the best-of-content page.

Visual Changes

Teaser component

  • Action list is now aligned to the left.

@github-actions github-actions bot added the type: feature List this PR in the 'Features' section of the release notes. label Sep 8, 2021
@colbytcook colbytcook temporarily deployed to feature/DS-529-download-slides-CTA-to-PW-Replays--branch-preview September 8, 2021 15:07 Inactive
@colbytcook colbytcook temporarily deployed to feature/DS-529-download-slides-CTA-to-PW-Replays--branch-preview September 9, 2021 10:40 Inactive
@colbytcook colbytcook requested a deployment to feature/DS-601-shorthand-template-prune--da22656e--commit-preview September 9, 2021 11:27 In progress
@colbytcook colbytcook changed the title [DO NOT MERGE] DS-529: Pega.com: Add 'Download slides' CTA to PW Replays "Best Of" cards DS-529: Pega.com: Add 'Download slides' CTA to PW Replays "Best Of" cards Sep 9, 2021
@colbytcook colbytcook self-requested a review September 9, 2021 15:25
@colbytcook
Copy link
Contributor

@MarcinMr we need to make like, share, download row left aligned. See the "New, clickable 'Download slides' CTA added to PW Replays cards added to the right of existing "Like" and "Share" CTAs (now aligned left)" definition of done.

Copy link
Collaborator

@mikemai2awesome mikemai2awesome left a comment

Choose a reason for hiding this comment

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

@MarcinMr @colbytcook I think the Best-of demos under Pages should be updated as well. Additionally, remove all the phases and keep just one final version.

name: 'download',
} only %}
{% endset %}
{% set sr_only %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not needed. The visible text is already descriptive enough. Also, I do not see in the ticket's Definition of Done that says include (PDF, 3 pages, 2.3mb). Is the ticket out of date?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've read that it's a good practice to add a file name, number of pages, and weight of o file for screen readers to announce details of a downloading resource. But if it is not necessary I've already deleted those labels.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If the data exists, they can create a tooltip with the info. I'll leave that for them to decide.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I asked Ross in the ticket. Will wait for his reply. https://pegadigitalit.atlassian.net/browse/WWW-858?focusedCommentId=37360

packages/components/bolt-teaser/teaser.schema.js Outdated Show resolved Hide resolved
packages/components/bolt-teaser/src/teaser.twig Outdated Show resolved Hide resolved
@colbytcook colbytcook temporarily deployed to feature/DS-529-download-slides-CTA-to-PW-Replays--branch-preview September 10, 2021 09:27 Inactive
@MarcinMr
Copy link
Collaborator Author

@MarcinMr we need to make like, share, download row left aligned. See the "New, clickable 'Download slides' CTA added to PW Replays cards added to the right of existing "Like" and "Share" CTAs (now aligned left)" definition of done.

@colbytcook changed to aligned left

@colbytcook colbytcook temporarily deployed to feature/DS-529-download-slides-CTA-to-PW-Replays--branch-preview September 10, 2021 09:57 Inactive
@colbytcook colbytcook requested a deployment to feature/DS-529-download-slides-CTA-to-PW-Replays--7c694c9b--commit-preview September 10, 2021 10:26 In progress
@colbytcook colbytcook had a problem deploying to feature/DS-529-download-slides-CTA-to-PW-Replays--branch-preview September 10, 2021 11:46 Failure
Copy link
Collaborator

@mikemai2awesome mikemai2awesome left a comment

Choose a reason for hiding this comment

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

Excellent job! @MarcinMr

Copy link
Collaborator

@danielamorse danielamorse left a comment

Choose a reason for hiding this comment

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

Looks good from a code standpoint. Nice cleanup of our old demos.

@mikemai2awesome I noticed the Listing Teaser actions can get pretty cramped, and the ones using the Icon Component vs Element wrap differently. Maybe we at least want to convert "Views" to Element for consistent wrapping?

image

@MarcinMr since this includes a visual change to the alignment of the Listing Teaser actions, would you please add that to the PR Release Notes? See this PR for reference on formatting.

Copy link
Collaborator

@mikemai2awesome mikemai2awesome left a comment

Choose a reason for hiding this comment

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

@danielamorse Good catch. We should fix that.

…p to the teaser download to display PDF information
Copy link
Collaborator

@mikemai2awesome mikemai2awesome left a comment

Choose a reason for hiding this comment

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

I pushed a fix for it. The icon alignment was off. @colbytcook

@colbytcook colbytcook temporarily deployed to feature/DS-529-download-slides-CTA-to-PW-Replays--branch-preview September 10, 2021 22:02 Inactive
Copy link
Collaborator

@danielamorse danielamorse left a comment

Choose a reason for hiding this comment

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

Alignment is fixed, code looks good 👍

  1. Updated the Teaser Jest snapshots, waiting for those to pass on Travis.
  2. Updated the Teaser Status and Actions demo to use the Twig version of Tooltip instead of the web component. We use <bolt-tooltip> internally in some templates because it's convenient, but for demo code that devs will reference I think we want Twig.

@colbytcook @mikemai2awesome let me know if I'm missing something regarding the second note. If not, and you approve, ship this thing! :shipit:

@MarcinMr
Copy link
Collaborator Author

@MarcinMr since this includes a visual change to the alignment of the Listing Teaser actions, would you please add that to the PR Release Notes? See this PR for reference on formatting.

@danielamorse Updated PR with release notes and visual changes

@MarcinMr
Copy link
Collaborator Author

@mikemai2awesome I noticed the Listing Teaser actions can get pretty cramped, and the ones using the Icon Component vs Element wrap differently. Maybe we at least want to convert "Views" to Element for consistent wrapping?

@danielamorse @mikemai2awesome

There is also a small issue with the horizontal teaser on a small screen. Newly added CTA overflows the viewport.

overflow

Perhaps we should wrap the list or entire block on the really small screens like on the shots below:

list-wrapwhole-block-wrap

@colbytcook colbytcook merged commit 53d1631 into master Sep 13, 2021
@colbytcook colbytcook deleted the feature/DS-529-download-slides-CTA-to-PW-Replays branch September 13, 2021 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature List this PR in the 'Features' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants