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

[blog] Fix missing card #38834

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Sep 6, 2023

See how https://twitter.com/MUI_hq/status/1688919247504957440 doesn't have a card. It's a follow-up on #38258.

Screenshot 2023-09-06 at 16 36 45

I've added an integrity check at the same time, so we can't regress on this. The build will fail if the card is missing.


In addition to missing social cards, there are also cards of wrong dimensions, for example, https://robolly.com/open-graph-preview/?url=https://mui.com/blog/mui-x-v6/ not matching https://www.notion.so/mui-org/Tips-for-high-quality-media-5a1686758f4f4267989b67a1c2c270da?pvs=4#1a714454a2554f1f8673e41284498833.

Screenshot 2023-09-06 at 20 58 15

If we see more instances of this problem, I think we should use https://www.npmjs.com/package/image-size to guarantee the aspect ratio of 2:1.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work blog labels Sep 6, 2023
@mui-bot
Copy link

mui-bot commented Sep 6, 2023

Netlify deploy preview

https://deploy-preview-38834--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 0f2e7ad

packages/markdown/parseMarkdown.js Outdated Show resolved Hide resolved
See how https://twitter.com/MUI_hq/status/1688919247504957440 doesn't have a card.
It's a follow-up on mui#38258.

I think that we should be able to fail the build if the card is missing, but too lazy.
@oliviertassinari oliviertassinari enabled auto-merge (squash) September 6, 2023 18:57
@oliviertassinari oliviertassinari merged commit 6d765df into mui:master Sep 6, 2023
8 checks passed
@oliviertassinari oliviertassinari deleted the blog-card branch September 6, 2023 21:48
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Sep 8, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Sep 8, 2023
xcode-it pushed a commit to xcode-it/material-ui that referenced this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants