Skip to content

feat: extend BetaBadge with link and galaxy tracking#42

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
port/beta-badge-galaxy-extend
Open

feat: extend BetaBadge with link and galaxy tracking#42
mintlify[bot] wants to merge 1 commit into
mainfrom
port/beta-badge-galaxy-extend

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 21, 2026

Summary

Ports ClickHouse/clickhouse-docs#6260 — extends BetaBadge to support link, galaxyTrack, and galaxyEvent props so it renders as a tracked anchor (matching the existing PrivatePreviewBadge pattern).

Changes

  • snippets/components/BetaBadge/BetaBadge.jsx — accept { link, galaxyTrack, galaxyEvent }; when link is set, render as <a target="_blank"> with optional galaxyOnClick(galaxyEvent) handler. Default no-prop render unchanged.
  • snippets/components/Badges/BetaBadge.jsx — same change applied to the duplicate component for parity.

Context

Upstream uses the Docusaurus src/lib/galaxy/galaxy helper; the Mintlify port wires through the existing shim at /snippets/lib/galaxy.jsx (galaxyOnClick).

Notes / ambiguity

  • The repo has two BetaBadge.jsx copies (components/BetaBadge/ and components/Badges/). Only the former is referenced by content today; both were updated for consistency. Worth consolidating in a follow-up.
  • Upstream uses a CSS module class (styles.betaBadge); the Mintlify versions use the global betaBadge class — preserved as-is.
  • The linked variant renders just <Icon />Beta (no "feature." text or "Learn more" link), mirroring the upstream behavior.
  • Upstream PR mentions a follow-up to fix the hardcoded galaxy event in PrivatePreviewBadge and update existing instances — not in scope here.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 21, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🟢 Ready View Preview May 21, 2026, 8:24 PM

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.

0 participants