Repository navigation
build(deploy): make the changelog an entry per notable change, with when each landed - #2406
Conversation
…h release its own page The changelog index now shows each release's maintainer notes first, then its breaking changes in full, and links to the release's own page at /changelog/<tag>, which lists every change grouped by component. The index stays small as releases grow: with 0.2.0's pending changes it comes to some 134 KB instead of roughly four times today's 168 KB. - Drop the Minor/Patch labels and the filters: a bump says nothing about a change, Breaking has its own section, and the groups replace the component filter. - Route /changelog/* to the website, one rewrite for every release page. - Advertise GitHub's releases.atom instead of a feed of our own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
🔵 Needs a closer look
The unverified /changelog/(.*) production rewrite in vercel.json requires a human to confirm the routing and ISR on-demand/404 behavior on a live preview deployment.
No open issues 🎉
What changed in this PR
This PR reworks the hosted cloud website's changelog so the human-written release notes lead, rather than a flat list of every changeset. The single /changelog page was growing roughly linearly with change count (0.1.0 ≈ 28 changes, pending 0.2.0 ≈ 100), so the index is slimmed to notes + breaking changes, and each release gets its own page at /changelog/<tag> that carries every change grouped by component. The client-side bump/component filter is removed in favor of static per-component sections with jump links.
Changes:
- New per-release route
app/changelog/[tag]/(page.tsx+not-found.tsx) plus a/changelog/(.*)Vercel rewrite; the index now shows notes, breaking changes and an "All N changes" link. - Extracted shared logic:
changes.ts(component grouping,isBreaking,firstParagraph),release.tsx(presentation),load.ts(build-vs-regeneration fallback), andreleases.tsgainsfetchRelease/fromFirstRelease; the oldfilter.ts/changelog-filter.tsxand their tests are deleted. - Markdown heading-depth is now parameterized (
under), CSS adds h2/h3 + inline.change-linestyling, a GitHubreleases.atomfeed link is added, and four docs (website AGENTS.md, cloud.md, manual-release.md, cloud/README.md) are updated to describe the new route.
I reviewed all hunks in depth — imports/references for the deleted modules (repo-wide grep is clean), the grouping/ranking and firstParagraph fenced-code handling, the fetchRelease 404 path, the load build fallback, heading-level parity with prior behavior, and routing/doc consistency with vercel.json. I did not find an objective defect to flag. The website is "private": true, so the "no changeset" claim is correct. One operational item (the unverified production /changelog/(.*) rewrite and ISR on-demand/404 behavior) is noted for human verification on the preview.
| File | Description |
|---|---|
vercel.json |
Adds /changelog/(.*) rewrite to the website service so release subpaths resolve. |
docs/runbooks/manual-release.md |
Updates the changelog description to notes-first + per-release pages. |
docs/runbooks/cloud.md |
Adds /changelog/<tag> to the website service's route list. |
apps/cloud/README.md |
Adds /changelog/* to the website route list. |
apps/website/AGENTS.md |
Documents per-release pages, load.ts, changes.ts COMPONENTS, and /changelog/* routing. |
apps/website/app/links.ts |
Adds releasesFeed (GitHub releases.atom). |
apps/website/app/globals.css |
Styles h2/h3 in notes and inline .change-line flow. |
apps/website/app/changelog/releases.ts |
Adds fetchRelease, fromFirstRelease, and shared askGitHub with accepted-status handling. |
apps/website/app/changelog/releases.spec.ts |
Adds fetchRelease tests (by tag, 404, no request for non-version/alpha tags). |
apps/website/app/changelog/changes.ts |
New: component grouping, isBreaking, firstParagraph. |
apps/website/app/changelog/changes.spec.ts |
New tests for grouping, componentOf, isBreaking, firstParagraph. |
apps/website/app/changelog/release.tsx |
New shared presentation (releaseHref, changeCount, BreakingChanges, ChangeList, ChangeMeta). |
apps/website/app/changelog/page.tsx |
Index rewritten to notes + breaking changes + "All N changes" link; filter UI removed. |
apps/website/app/changelog/markdown.tsx |
Parameterizes heading depth via under. |
apps/website/app/changelog/load.ts |
New build-vs-regeneration fetch fallback helper. |
apps/website/app/changelog/load.spec.ts |
New tests for load build/regeneration behavior. |
apps/website/app/changelog/[tag]/page.tsx |
New per-release page with static params, metadata, and notFound handling. |
apps/website/app/changelog/[tag]/not-found.tsx |
New not-found page for unknown/non-version tags. |
apps/website/app/changelog/filter.ts / filter.spec.ts / changelog-filter.tsx |
Removed; superseded by changes.ts and static sections. |
Review effort: Balanced
… per release The GitHub Release keeps the complete, generated notes; the website's changelog now tells each release's story on top of them. A release's post is apps/website/changelog/<version>.md, drafted by an agent after the release with the internal zitadel-changelog-post skill and reviewed in a pull request. The site reads every release's changes from the published packages' CHANGELOG.md when it builds, so it no longer asks GitHub's API at all. - Move 0.1.0's notes from its GitHub Release into changelog/0.1.0.md. - Fail the build on a broken post, or one for a version no CHANGELOG.md has. - List the changelogs as build inputs in moon.yml and turbo.json, and keep Turbopack from tracing the repository into the server functions. - Serve a styled 404 for an unknown /changelog/<tag>. - Drop the GitHub fetch, its token and its fallbacks; update the release runbook and the draft release's placeholder to the new flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hen each landed The website's changelog now tells what people get, an entry per notable change, the way vercel.com/changelog does, while the GitHub Release keeps every change of each version. An entry, apps/website/changelog/<slug>.md, says when it landed: live on preview.zitadel.com from its merge, since the cloud runs main, and in the release that ships its pull requests, which the site finds in the packages' CHANGELOG.md, so an entry written before a release shows it once it ships. - Show the entries on a timeline by day, each with a page of its own, and as an Atom feed at /changelog/feed.xml. - Backfill 0.1.0: its notes as the launch entry, and ten entries for its notable changes. - Replace the per-release posts and pages, their every-change lists and the component groups; rename the skill to zitadel-changelog-entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iams-86bdbb # Conflicts: # apps/website/app/changelog/releases.spec.ts
…ud change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
The website's changelog now works like vercel.com/changelog: one entry for each notable change, instead of one post for each version. Each entry has its own page, and there is an Atom feed. The GitHub Release stays the complete record of each version: it is generated, with each change listed once (#2405), and published as written.
The cloud runs
main, so a server or console change reaches preview.zitadel.com when it merges. The CLI, the SDKs and self-hosted servers only get it with the next release. Each entry therefore shows two things:CHANGELOG.mdwhen it builds, so an entry written before a release needs no edit afterwards.0.1.0 is backfilled with eleven entries: its release notes as the launch entry, and ten entries for its notable changes.
Screenshots at 1280 and 390 px, from
moon run website:start, are in the session that opened this PR.Design decisions for review
An entry is a Markdown file,
apps/website/changelog/<slug>.md, and its page is/changelog/<slug>. Its front matter holds:titlesummary: plain text, for the index and the feeddate: when it landed, in UTC, as a day or a day and timecloud: whether it is live on preview.zitadel.com from that datepulls: the pull requests that shipped itThe body is Markdown, rendered only through
markdown.tsx. The build fails on an unknown field or an unreadable value.The index is a timeline by day. Each entry shows its title (linking to its page), its summary, and where it has landed. A footer links each version's release notes on GitHub. The index never lists every change, so it no longer grows with the size of a release.
There is now a feed of our own, at
/changelog/feed.xml. It carries only titles, plain-text summaries and links, so it needs no second Markdown renderer. Its links point at preview.zitadel.com, because Atom requires absolute URLs.The 0.1.0 backfill:
zitadel api, setup for existing SvelteKit, SolidStart, Qwik City and TanStack Start apps, primary-origin deployments, the sign-in security fix, the/users/mereads, the login's account row, English text fallback, login events, attribute errors, and the console's user screen.The skill is now
zitadel-changelog-entries(internal). It covers picking changes, skipping pull requests an entry already names, the date and cloud rules, and the PR title. It works after a release or as soon as something lands on the cloud.Runbook: publish the draft GitHub Release as written, then add entries for the notable changes. The draft's placeholder comment says the same.
Removed from this PR's earlier versions: per-version posts and pages, the every-change lists, component groups, the breaking-change boxes, the Minor/Patch labels, the filters, and the GitHub API fetch with its token.
Kept: one rewrite,
/changelog/(.*), now covering the entry pages and the feed. Also the rootapp/not-found.tsx, and theCHANGELOG.mdbuild inputs inmoon.ymlandturbo.json, read without Turbopack tracing the repository into the server functions.Validation
moon run website:typecheck website:lint website:test website:buildpasses. Its 19 tests cover entry parsing and rejection, finding an entry's release, "not released yet", the ordering, and reading a temporary repository.moon run workspace:check-moon-graphpasses, andvitest run scripts/release-github.test.mjspasses 17 tests.moon run website:start:/changelogand all 11 entry pages answer 200./changelog/feed.xmlisapplication/atom+xmland parses with 11 entries./changelog/v0.1.0and/changelog/nopeanswer 404 with the site's page.Release notes / changeset
No changeset required: the website is a private app, and the release script change only touches a comment inside the draft body.
Notes
WEBSITE_GITHUB_TOKENfrom the Vercel project; nothing reads it any more.scripts/release-github.mjs).🤖 Generated with Claude Code