Skip to content

Fix hero image issue and marked 16 as preview#9586

Merged
michaelstaib merged 1 commit intomainfrom
mst/website-public
Apr 22, 2026
Merged

Fix hero image issue and marked 16 as preview#9586
michaelstaib merged 1 commit intomainfrom
mst/website-public

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 14:52
@michaelstaib michaelstaib merged commit 2d712d9 into main Apr 22, 2026
8 checks passed
@michaelstaib michaelstaib deleted the mst/website-public branch April 22, 2026 14:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the website docs/blog pipeline to properly surface preview documentation (v16) and fix missing blog hero/author images.

Changes:

  • Mark v16 docs as preview (config + UI warning banner) and adjust stable version pointers to v15 where appropriate.
  • Improve product/version switcher label truncation to handle longer titles.
  • Sync blog assets into public/images/blog and enrich blog list metadata (author image + formatted date).

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/src/docs/docs.json Updates product titles, stable version selection, and adds preview metadata for v16 docs.
website/src/components/articles/doc-article.tsx Adds isPreview detection from version config and displays a preview warning banner.
website/src/components/articles/doc-article-navigation.tsx Adds truncation styling for switcher labels and adjusts button sizing.
website/scripts/sync-doc-assets.ts Extends asset sync to include blog assets into public/images/blog (excluding markdown).
website/lib/docs.ts Extends DocsVersion type to support optional preview.
website/lib/doc-page-view.tsx Adds isPreview detection and preview warning banner in the Next docs view.
website/lib/blog-list-page.tsx Populates author image URL and formats dates for blog list entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 322 to 340
@@ -328,7 +336,7 @@ const ProductSwitcherButton = styled.button<{ readonly fullWidth?: boolean }>`
box-sizing: border-box;
border-radius: var(--button-border-radius);
border: 2px solid ${THEME_COLORS.primaryButtonBorder};
min-width: 62px;
min-width: 0;
height: 38px;
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

The version titles now include longer strings like "v16 (preview)", but only the switcher button label gets ellipsis styling. The version dropdown (ProductVersionDialog) still uses a fixed narrow width, so these titles are likely to wrap/overflow and degrade the UI. Consider widening the dropdown or applying truncation/auto-sizing styles there as well.

Copilot uses AI. Check for mistakes.
Comment on lines +40 to +46
date: post.date
? new Date(post.date).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "2-digit",
})
: "",
Copy link

Copilot AI Apr 22, 2026

Choose a reason for hiding this comment

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

toLocaleDateString is being called during render to format post.date. In Next.js this can cause SSR/client hydration mismatches and off-by-one dates depending on server vs client timezone. Consider formatting dates in the data layer (when building posts) or specify a fixed timeZone (e.g. UTC) when formatting here to keep the output deterministic.

Copilot uses AI. Check for mistakes.
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.

2 participants