Skip to content

chore: temporary banner update for Vite+ Alpha announcement#973

Draft
mdong1909 wants to merge 1 commit intomainfrom
temp-switch-banner-to-vite+-alpha
Draft

chore: temporary banner update for Vite+ Alpha announcement#973
mdong1909 wants to merge 1 commit intomainfrom
temp-switch-banner-to-vite+-alpha

Conversation

@mdong1909
Copy link
Collaborator

Merge after Vite+ Alpha post is published: https://voidzero.dev/posts/announcing-vite-plus-alpha

@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit d8bcb8c
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/69afd46bf1b89100075831e4
😎 Deploy Preview https://deploy-preview-973--oxc-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d8bcb8c513

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

id: latestBlog.link,
text: `Announcing ${latestBlog.text}`,
url: latestBlog.link,
id: "viteplus-alpha",

Choose a reason for hiding this comment

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

P2 Badge Keep banner dismissal key aligned with active banner id

This change hardcodes themeConfig.banner.id to "viteplus-alpha", but the pre-hydration bannerScript still reads from localStorage using latestBlog.link, so the script now checks a different dismissal key than the banner it renders. In the Vite+ announcement window, users who dismiss the new banner can still get the banner shown briefly before hydration because banner-dismissed is not applied from the correct key on initial load.

Useful? React with 👍 / 👎.

@mdong1909 mdong1909 marked this pull request as draft March 10, 2026 09:48
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.

1 participant