Skip to content

build(deploy): make the changelog an entry per notable change, with when each landed - #2406

Merged
fforootd merged 6 commits into
mainfrom
claude/wonderful-williams-86bdbb
Oct 27, 2026
Merged

fforootd merged 6 commits into
mainfrom
claude/wonderful-williams-86bdbb

Conversation

@fforootd

@fforootd fforootd commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

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:

  • Live on preview.zitadel.com, from its date, when it is a cloud change.
  • Released in v0.2.0, once every pull request it names is in a release. Until then it says "Not released yet". The site works this out from the packages' CHANGELOG.md when 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

  1. An entry is a Markdown file, apps/website/changelog/<slug>.md, and its page is /changelog/<slug>. Its front matter holds:

    • title
    • summary: plain text, for the index and the feed
    • date: when it landed, in UTC, as a day or a day and time
    • cloud: whether it is live on preview.zitadel.com from that date
    • pulls: the pull requests that shipped it

    The body is Markdown, rendered only through markdown.tsx. The build fails on an unknown field or an unreadable value.

  2. 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.

  3. 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.

  4. The 0.1.0 backfill:

    • The launch entry is 0.1.0's GitHub notes word for word. Only the last sentence changed: it now points to the GitHub release notes instead of "the changes listed below".
    • Ten entries cover the notable changes: zitadel api, setup for existing SvelteKit, SolidStart, Qwik City and TanStack Start apps, primary-origin deployments, the sign-in security fix, the /users/me reads, the login's account row, English text fallback, login events, attribute errors, and the console's user screen.
    • Cloud entries are dated by their pull request's merge time; the rest by 0.1.0's npm publish at 22:08 UTC on Oct 21.
  5. 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.

  6. Runbook: publish the draft GitHub Release as written, then add entries for the notable changes. The draft's placeholder comment says the same.

  7. 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.

  8. Kept: one rewrite, /changelog/(.*), now covering the entry pages and the feed. Also the root app/not-found.tsx, and the CHANGELOG.md build inputs in moon.yml and turbo.json, read without Turbopack tracing the repository into the server functions.

Validation

  • moon run website:typecheck website:lint website:test website:build passes. 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-graph passes, and vitest run scripts/release-github.test.mjs passes 17 tests.
  • On moon run website:start:
    • /changelog and all 11 entry pages answer 200.
    • /changelog/feed.xml is application/atom+xml and parses with 11 entries.
    • /changelog/v0.1.0 and /changelog/nope answer 404 with the site's page.
    • No repository files are traced into the server functions.
  • Not verified: the rewrite on a Vercel deployment. Check this PR's preview.

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

  • After merge: remove WEBSITE_GITHUB_TOKEN from the Vercel project; nothing reads it any more.
  • 0.2.0 entries can start before the release. Cloud entries show "Not released yet", then "Released in v0.2.0" once its version PR (build: version packages #2226) merges.
  • Possible follow-up: list breaking changes first in the GitHub Release body (scripts/release-github.mjs).

🤖 Generated with Claude Code

…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>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 20:27
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
cloud Ready Ready Preview Oct 27, 2026 10:20pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-27T20:31:19.903104Z 2495dae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ No Changeset found

Latest commit: 8881889

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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), and releases.ts gains fetchRelease/fromFirstRelease; the old filter.ts/changelog-filter.tsx and their tests are deleted.
  • Markdown heading-depth is now parameterized (under), CSS adds h2/h3 + inline .change-line styling, a GitHub releases.atom feed 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

fforootd and others added 2 commits October 27, 2026 13:36
… 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>
@fforootd fforootd changed the title build(deploy): lead the changelog with the release notes and give each release its own page build(deploy): build the changelog from the repo, with a written post per release Oct 27, 2026
…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>
@fforootd fforootd changed the title build(deploy): build the changelog from the repo, with a written post per release build(deploy): make the changelog an entry per notable change, with when each landed Oct 27, 2026
…iams-86bdbb

# Conflicts:
#	apps/website/app/changelog/releases.spec.ts
…ud change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fforootd
fforootd added this pull request to stack #2411 October 27, 2026 22:25
@fforootd
fforootd added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 1f8a644 Oct 27, 2026
17 checks passed
@fforootd
fforootd deleted the claude/wonderful-williams-86bdbb branch October 27, 2026 22:33
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Oct 27, 2026

This branch was successfully deployed

1 active deployment
Preview — 88818898 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants