Skip to content

feat(website): show current octane version in the homepage hero - #1101

Merged
domgan-oai merged 3 commits into
octanejs:mainfrom
jonkwheeler:feat/home-version-badge
Sep 16, 2026
Merged

domgan-oai merged 3 commits into
octanejs:mainfrom
jonkwheeler:feat/home-version-badge

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a v0.x.x pill above the hero title on the homepage, linking to the octane page on npm.
  • The version comes from import { version } from 'octane' — the package's public export, generated from package.json by scripts/generate-version.mjs — so it tracks every changesets release with no runtime fetch and no hand-maintained constant.

Why

  • The site never surfaces which version is current; a small badge is the standard way to signal release state for an alpha-stage framework.

Changes

  • website/src/pages/home/sections/Hero.tsrx: version import, the pill markup, and a scoped .hero-version style block on existing tokens.
  • website/tests/ssr-smoke.test.ts: asserts the production SSR home markup contains v${version} — pins the badge to the package's real export (guards against a pipeline that drops it, which would render vundefined).

Validation

  • pnpm format:check (prettier clean on both changed files)
  • pnpm typecheck — website tsrx-tsc: fails with 9 errors in src/components/CoreApiDemo.tsrx (apply prop on <style>), identical on clean origin/main — pre-existing, unrelated to this change
  • vitest run --project website-integration website/tests/ssr-smoke.test.ts — 11/11 pass against a real vercel-preset build
  • Manual: dev SSR renders v0.2.11

Risk / follow-ups

  • Version shown is the repo manifest at build time — equals npm latest provided the site redeploys after each release.

Note

Low Risk
Marketing UI on the homepage plus a smoke assertion; no auth, data, or core runtime behavior changes.

Overview
Adds a homepage hero version pill above the title that links to the octane npm package and displays v + the version export from octane (no manual constant or runtime fetch).

Hero imports version, renders the pill markup, and adds scoped .hero-version styles (pill border, monospace label, hover accent). SSR smoke test asserts production home HTML includes v + that same version, so a broken bundle that drops the export would fail instead of showing vundefined.

Reviewed by Cursor Bugbot for commit 72a0b19. Bugbot is set up for automated code reviews on this repo. Configure here.

Adds a v-pill above the hero title linking to the npm package page,
sourced from packages/octane/package.json at build time so it tracks
each changesets release with no runtime fetch.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
octane-website-mcp Skipped Skipped Sep 16, 2026 12:15am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp September 15, 2026 18:46 Inactive
@github-actions github-actions Bot added the feat PR: new feature or capability label Sep 15, 2026
On current main, version.ts is a generated literal (PR octanejs#653), so the
public  works in the SSR pass — the
manifest workaround was only needed against the older runtime JSON
import. Adds an ssr-smoke assertion pinning the pill to the package's
version export, which is what would have caught the 'vundefined'
failure shape.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp September 15, 2026 19:03 Inactive
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler
jonkwheeler requested a review from trueadm September 16, 2026 00:15
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp September 16, 2026 00:15 Inactive
@domgan-oai
domgan-oai merged commit 3c7e958 into octanejs:main Sep 16, 2026
32 checks passed
@jonkwheeler
jonkwheeler deleted the feat/home-version-badge branch October 20, 2026 12:53

This branch was previously deployed

1 inactive deployment
Preview – octane-website-mcp — 72a0b196 Deployed Sep 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat PR: new feature or capability READY FOR REVIEW

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants