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

[docs-infra] Automatically hide Black Friday banner #44630

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Dec 2, 2024

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work regression A bug, but worse scope: docs-infra Specific to the docs-infra product labels Dec 2, 2024
@mui-bot
Copy link

mui-bot commented Dec 2, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 265897d

Copy link
Contributor

@zanivan zanivan left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for tackling this 🙌

@oliviertassinari oliviertassinari enabled auto-merge (squash) December 2, 2024 14:29
@oliviertassinari oliviertassinari merged commit 11cf1ba into mui:master Dec 2, 2024
8 of 11 checks passed
@oliviertassinari oliviertassinari deleted the fix-banner-regression branch December 2, 2024 15:37

function isBlackFriday() {
const today = Date.now();
const start = new Date('2024-11-25').getTime();
Copy link
Member Author

Choose a reason for hiding this comment

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

I merged this too quickly, it will create an hydration error and a CLS after the Black Friday date expires. Better have the layout shift during to draw people's attention.

Copy link
Member Author

Choose a reason for hiding this comment

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

Handling it in #44632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work regression A bug, but worse scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants