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

KeyEvents in LiveLayout #3595

Merged
merged 14 commits into from
Nov 10, 2021
Merged

KeyEvents in LiveLayout #3595

merged 14 commits into from
Nov 10, 2021

Conversation

oliverlloyd
Copy link
Contributor

What does this change?

This PR adds the KeyEvents component to the DCR LiveLayout file so it renders on live and dead blogs.

isolatedModules?

We set this to true in the jest config for DCR because we were getting errors when importing code from common rendering into jest.

See this issue with ts-jest

Screenshot 2021-11-05 at 12 17 09

Screenshot 2021-11-05 at 12 16 49

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

Size Change: +5.04 kB (0%)

Total Size: 3.1 MB

Filename Size Change
dotcom-rendering/dist/elements-InteractiveBlockComponent.js 2.69 kB -13 B (0%)
dotcom-rendering/dist/elements-InteractiveBlockComponent.legacy.js 2.82 kB -14 B (0%)
dotcom-rendering/dist/elements-MapEmbedBlockComponent.js 1.6 kB -18 B (-1%)
dotcom-rendering/dist/elements-MapEmbedBlockComponent.legacy.js 1.66 kB -17 B (-1%)
dotcom-rendering/dist/elements-SpotifyBlockComponent.js 1.52 kB -20 B (-1%)
dotcom-rendering/dist/elements-SpotifyBlockComponent.legacy.js 1.59 kB -14 B (-1%)
dotcom-rendering/dist/elements-VideoFacebookBlockComponent.js 1.61 kB -17 B (-1%)
dotcom-rendering/dist/elements-VideoFacebookBlockComponent.legacy.js 1.66 kB -19 B (-1%)
dotcom-rendering/dist/elements-YoutubeBlockComponent.js 2.15 kB -19 B (-1%)
dotcom-rendering/dist/elements-YoutubeBlockComponent.legacy.js 2.23 kB -18 B (-1%)
dotcom-rendering/dist/frontend.server.js 2.47 MB +5.2 kB (0%)
ℹ️ View Unchanged
Filename Size
dotcom-rendering/dist/101.js 21.1 kB
dotcom-rendering/dist/101.legacy.js 21.1 kB
dotcom-rendering/dist/943.js 3.57 kB
dotcom-rendering/dist/943.legacy.js 3.69 kB
dotcom-rendering/dist/atomIframe.js 1.87 kB
dotcom-rendering/dist/atomIframe.legacy.js 2.13 kB
dotcom-rendering/dist/braze-web-sdk-core.js 36.1 kB
dotcom-rendering/dist/braze-web-sdk-core.legacy.js 36.1 kB
dotcom-rendering/dist/coreVitals.js 4.03 kB
dotcom-rendering/dist/coreVitals.legacy.js 4.31 kB
dotcom-rendering/dist/dynamicImport.js 2.99 kB
dotcom-rendering/dist/dynamicImport.legacy.js 3.27 kB
dotcom-rendering/dist/EditionDropdown.js 693 B
dotcom-rendering/dist/EditionDropdown.legacy.js 701 B
dotcom-rendering/dist/elements-CalloutBlockComponent.js 5.91 kB
dotcom-rendering/dist/elements-CalloutBlockComponent.legacy.js 6.25 kB
dotcom-rendering/dist/elements-DocumentBlockComponent.js 571 B
dotcom-rendering/dist/elements-DocumentBlockComponent.legacy.js 602 B
dotcom-rendering/dist/elements-InstagramBlockComponent.js 434 B
dotcom-rendering/dist/elements-InstagramBlockComponent.legacy.js 452 B
dotcom-rendering/dist/elements-InteractiveContentsBlockElement.js 1.87 kB
dotcom-rendering/dist/elements-InteractiveContentsBlockElement.legacy.js 1.95 kB
dotcom-rendering/dist/elements-RichLinkComponent.js 3.27 kB
dotcom-rendering/dist/elements-RichLinkComponent.legacy.js 3.31 kB
dotcom-rendering/dist/elements-VineBlockComponent.js 579 B
dotcom-rendering/dist/elements-VineBlockComponent.legacy.js 594 B
dotcom-rendering/dist/embedIframe.js 1.88 kB
dotcom-rendering/dist/embedIframe.legacy.js 2.13 kB
dotcom-rendering/dist/ga.js 3.81 kB
dotcom-rendering/dist/ga.legacy.js 4.04 kB
dotcom-rendering/dist/GetMatchStats.js 3.28 kB
dotcom-rendering/dist/GetMatchStats.legacy.js 3.34 kB
dotcom-rendering/dist/guardian-braze-components-banner.js 9.81 kB
dotcom-rendering/dist/guardian-braze-components-banner.legacy.js 9.82 kB
dotcom-rendering/dist/guardian-braze-components-end-of-article.js 6.51 kB
dotcom-rendering/dist/guardian-braze-components-end-of-article.legacy.js 6.52 kB
dotcom-rendering/dist/MostViewedFooterData.js 6.32 kB
dotcom-rendering/dist/MostViewedFooterData.legacy.js 6.41 kB
dotcom-rendering/dist/MostViewedRightWrapper.js 5.61 kB
dotcom-rendering/dist/MostViewedRightWrapper.legacy.js 5.88 kB
dotcom-rendering/dist/newsletterEmbedIframe.js 1.83 kB
dotcom-rendering/dist/newsletterEmbedIframe.legacy.js 2.08 kB
dotcom-rendering/dist/OnwardsLower.js 11.3 kB
dotcom-rendering/dist/OnwardsLower.legacy.js 11.6 kB
dotcom-rendering/dist/OnwardsUpper.js 12.4 kB
dotcom-rendering/dist/OnwardsUpper.legacy.js 12.7 kB
dotcom-rendering/dist/ophan.js 7.17 kB
dotcom-rendering/dist/ophan.legacy.js 7.36 kB
dotcom-rendering/dist/react.js 138 kB
dotcom-rendering/dist/react.legacy.js 143 kB
dotcom-rendering/dist/sentry.js 677 B
dotcom-rendering/dist/sentry.legacy.js 687 B
dotcom-rendering/dist/sentryLoader.js 4.72 kB
dotcom-rendering/dist/sentryLoader.legacy.js 7.67 kB
dotcom-rendering/dist/shimport.js 2.75 kB
dotcom-rendering/dist/shimport.legacy.js 2.76 kB
dotcom-rendering/dist/SignInGateMain.js 1.84 kB
dotcom-rendering/dist/SignInGateMain.legacy.js 1.88 kB

compressed-size-action

oliverlloyd and others added 5 commits November 5, 2021 12:27
Co-authored-by: Olly <olly.namey@theguardian.com>
Co-authored-by: OllysCoding
Co-Authored-By: Olly <9575458+OllysCoding@users.noreply.github.com>
Co-Authored-By: Olly <9575458+OllysCoding@users.noreply.github.com>
@oliverlloyd
Copy link
Contributor Author

KeyEvents in DCR Layout

@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -94,7 +94,7 @@ const buildPayload = async ({
optedOutOfArticleCount,
modulesVersion: MODULES_VERSION,
sectionId,
tagIds: tags.map(tag => tag.id),
tagIds: tags.map((tag) => tag.id),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prettier hangover

Copy link
Contributor

@nitro-marky nitro-marky 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 👍

@oliverlloyd oliverlloyd merged commit 9ab4ca4 into main Nov 10, 2021
@oliverlloyd oliverlloyd deleted the oliver/keyevents-in-layout branch November 10, 2021 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants