docs: add global Releases page (mirrors curated GitHub Releases) - #2760
Draft
mfal wants to merge 17 commits into
Draft
docs: add global Releases page (mirrors curated GitHub Releases)#2760mfal wants to merge 17 commits into
mfal wants to merge 17 commits into
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The cards column collapsed to min-content because it lacked flex-grow/ min-width:0 next to the fixed-width AnchorNavigation sibling, wrapping the version and title one character per line. Add a .timeline class mirroring the layout's main-column behaviour.
…n new tab, harden fix parsing
The populated page previously started at h2 (release version); add a page h1 "Releases" so the heading hierarchy is well-formed and consistent with the empty state.
Contributor
Coverage Report for ./packages/components/
File CoverageNo changed files found. |
Contributor
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Adds a build-time RELEASES_USE_DUMMY arg (default empty) to the docs image and sets it to 1 for the docs preview only, so PR #2760's review environment shows the populated Releases layout. Production (deploy-main) passes no such arg and stays on live/empty-state data. Revert the build-previews.yml line before merge.
…late Rewrite the dummy body prose to match .claude/templates/release-notes.md: per-feature "## " sections, Deprecations (minor) and Migrations (major) sections, PR links, and grounded code examples — no Fixes section (fixes are surfaced per patch version).
24 tasks
…d entries
- All releases in a single LayoutCard; header and each release are their own
Section, so separators appear automatically (no manual Separator).
- Merge the release title into the heading ("1.1.0 – …"), drop the latest badge.
- English date; npm/GitHub links as one small meta subline, hyphen-separated.
- Flatten fixes into "version – text (#sha)" bullets (no per-date grouping).
- TOC entries show version + date.
…ible to miss The build-args line that feeds dummy Releases data into the docs PR preview must be removed before this PR merges. Wrap it in a loud banner comment and an inline marker so it is not overlooked at merge time. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Member
|
Since the date is now displayed in the small text size, the links to npm and GitHub Releases could also use the small link size. This would create a much cleaner appearance. |
Match the small date text in the release meta subline by rendering the npm and GitHub Release links with size="s" for a cleaner, consistent line. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Member
Author
|
Done in 0c5d6f6 — the npm and GitHub Release links now render with 🤖 Addressed by Claude Code |
The RELEASES_USE_DUMMY=1 preview build-arg intentionally stays while the Releases page is under review, so the layout remains testable before real release data exists. Reword the banner and inline marker so they say it must be removed before the 1.0 release (not before merge). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…MY build-arg build-args uses a literal block scalar (|), so a trailing '# ...' is NOT a YAML comment — it becomes part of the value. The docs build-arg was thus 'RELEASES_USE_DUMMY=1 # 🚨 ...', so process.env.RELEASES_USE_DUMMY !== '1', the page fell back to the live fetch and rendered the empty state in the preview. Drop the inline marker; the banner comment above build-args (real YAML comments) already documents the switch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Aug 6, 2026
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.
Caution
🚨 TEMPORARY — keep for review, remove before the 1.0 release:
.github/workflows/build-previews.ymlpassesRELEASES_USE_DUMMY=1to thedocs preview build so this PR's Releases layout is testable with dummy data.
This intentionally stays while the page is under review. It must be
removed before the 1.0 release (once real release data exists and the page
goes live) — left in permanently, every docs PR preview would render dummy
Releases data. Production (
deploy-main.yml) is unaffected meanwhile. See thebanner comment at that line.
What
Adds the global Releases page to the docs site (
/releases), areverse-chronological timeline of Minor/Major releases — implementing the
approved design in #2720 (variant C: entry list + TOC).
Because real 1.0-era stable releases do not exist yet (all published releases
are
-alpha.*prereleases, which the design filters out), the page is drivenby a build-time-switchable data source so the layout can be reviewed/demoed
now and flipped to live data later.
How
apps/docs/src/app/releases/page.tsx(static export; data fetched at build time) + a minimal
src/content/releases/index.mdxstub for nav/search/metadata.src/lib/releases/):getReleases()reads theRELEASES_USE_DUMMYenv var — set (=1) → dummy fixture that exercisesevery layout branch; unset (default) → live fetch of the public GitHub
Releases API (filters prereleases/
-next.*, groups patch fixes under theirminor line, extracts per-commit URLs). A failed live fetch degrades to an
empty-state placeholder — it never fails the build.
nav via an explicit order in
Groups.tsx(+ the search default sections) —existing
02-foundations/03-patterns/04-componentsfolders and all theirURLs are untouched (no mass content-link rewrite, no broken URLs).
LayoutCard; a page headingplus each release live in their own
Section, so separators appearautomatically. Per release:
1.1.0 Minor – <title>heading → a smallhyphen-separated meta subline (date - npm - GitHub Release) → highlights →
curated markdown body/migration notes → flat "Fixes" bullets in the form
version – text (#commit). On-this-page TOC viaAnchorNavigation(version + date).
Release-note content is English (mirrors the canonical GitHub Release text);
surrounding UI chrome is German, matching the docs site.
Reviewing this PR
Run the docs with the dummy dataset to see the populated layout:
Without the flag the page renders the empty state (0 stable releases today).
Verification
pnpm nx build docs);the exported page is the empty state / full timeline respectively.
tscandprettier --checkclean on all touched files.the search default view all render correctly.
Follow-ups (intentionally out of scope)
changelog (the transform is implemented against the dummy shape and this
repo's changelog format, but no stable release exists yet to confirm end to
end).
Draft until the 1.0 cut produces real release data; the page structure and the
dummy-driven layout are ready for review now.
Closes #2720.
🤖 Generated with Claude Code