Repository navigation
feat(website): show current octane version in the homepage hero - #1101
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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>
Contributor
Author
|
READY FOR REVIEW |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v0.x.xpill above the hero title on the homepage, linking to the octane page on npm.import { version } from 'octane'— the package's public export, generated from package.json byscripts/generate-version.mjs— so it tracks every changesets release with no runtime fetch and no hand-maintained constant.Why
Changes
website/src/pages/home/sections/Hero.tsrx:versionimport, the pill markup, and a scoped.hero-versionstyle block on existing tokens.website/tests/ssr-smoke.test.ts: asserts the production SSR home markup containsv${version}— pins the badge to the package's real export (guards against a pipeline that drops it, which would rendervundefined).Validation
pnpm format:check(prettier clean on both changed files)pnpm typecheck— websitetsrx-tsc: fails with 9 errors insrc/components/CoreApiDemo.tsrx(applyprop on<style>), identical on cleanorigin/main— pre-existing, unrelated to this changevitest run --project website-integration website/tests/ssr-smoke.test.ts— 11/11 pass against a real vercel-preset buildv0.2.11Risk / follow-ups
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+ theversionexport fromoctane(no manual constant or runtime fetch).Hero imports
version, renders the pill markup, and adds scoped.hero-versionstyles (pill border, monospace label, hover accent). SSR smoke test asserts production home HTML includesv+ that sameversion, so a broken bundle that drops the export would fail instead of showingvundefined.Reviewed by Cursor Bugbot for commit 72a0b19. Bugbot is set up for automated code reviews on this repo. Configure here.