Skip to content

Open release notes from the Updates page - #6201

Merged
brsbl merged 29 commits into
mainfrom
growth/release-widget
Oct 30, 2026
Merged

brsbl merged 29 commits into
mainfrom
growth/release-widget

Conversation

@brsbl

@brsbl brsbl commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Lets people read what's in a bb release from Settings → Updates, without leaving bb.

  • Changelog, under the row: "Changelog" next to the version on the bb and Desktop update rows opens that release's changelog under the row and closes it again. Its caret points right while closed and down while open, like timeline rows. The changelog sits on a tinted background under the release's headline, with "bb X · date" beneath it, shows the release summary and every section, and scrolls vertically past 12rem, fading at whichever edge has more to read. It ends with a plain, right-aligned "Full changelog" link that opens getbb.app/changelog in the browser. When an update is waiting it's for the target release, otherwise for the installed one. A patch release without its own entry, such as 0.48.1, shows the newest earlier entry in its minor line (0.48.0). Entries come from the published CHANGELOG.md and headlines from the published changelog-metadata.ts, each with the bundled copy as a fallback, so a release newer than the running build still gets its notes and headline. While they load the panel says so, and it says when they couldn't load. Images in the changelog are not shown, and nightly and other non-release versions have no button.
  • Removes the changelogPreview experiment: the experimental card, its Settings → Experiments entry and the key itself are gone. A stored value for the key is ignored, the same way navigationRail was removed.
  • Telemetry: adds release_notes_opened to the allow-list, with a digits-and-dots release_version and view set to inline (opened under the row) or web (opened on getbb.app). Nothing is sent when telemetry is off.

Screenshots

Before: a1bf55b6a0 (the Updates page is unchanged from there to the current base) · After: cf7f2f1ba2 · Captured at 2× from the web app with seeded data; update state is simulated by stubbing the app-update and version responses.

Screen / state Viewport Before After
Updates · update to 0.48.0, changelog closed Desktop · 1440×900 Before Updates After Updates, changelog closed
Updates · update to 0.48.0, changelog closed Mobile · 390×844 Before Updates on mobile After Updates on mobile, changelog closed
Updates · up to date Mobile · 390×844 Before Updates on mobile, up to date After Updates on mobile, up to date
Updates · Changelog clicked Desktop · 1440×900 Before Updates, no changelog After Updates, changelog open
Updates · Changelog clicked Mobile · 390×844 Before Updates on mobile, no changelog After Updates on mobile, changelog open
Updates · Changelog clicked, dark theme Desktop · 1440×900 Before Updates, dark After Updates, dark, changelog open
Updates · two machines, list shown Desktop · 1440×900 Before Updates, machines shown After Updates, machines shown, changelog open
Updates · two machines, list shown Mobile · 390×844 Before Updates on mobile, machines shown After Updates on mobile, machines shown, changelog open

The Desktop update row's button (shown only in the desktop app when the server runs separately) is covered by unit tests, not a screenshot.

BB-Thread-ID: thr_5tfcbbau5i

🤖 Generated with Claude Code

@brsbl brsbl changed the title Show what's in a bb update in the sidebar, with release notes beside Updates Show what's in a bb update in the sidebar Oct 24, 2026
Shorten the card's image to a 7:2 crop anchored at the top, drop the
summary paragraph and tighten spacing so the card sits at about 200px in
the sidebar. Keep the Updates rows' version and release notes link on one
line at every width.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl
brsbl force-pushed the growth/release-widget branch from 0d754d9 to 47350b3 Compare October 24, 2026 02:43
brsbl and others added 2 commits October 27, 2026 21:48
The sidebar card drew too much attention. Settings → Updates now previews
the highlights (and hero image, when the release has one) of the release
you can update to, or the installed release, under the bb row, next to the
existing Release notes link. Removes the sidebar card, its dismissal UI
preference and the release_widget_* events; adds
release_notes_preview_shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl brsbl changed the title Show what's in a bb update in the sidebar Preview what's in a bb release on the Updates page Oct 27, 2026
brsbl and others added 5 commits October 27, 2026 22:05
The preview now shows only the release's highlights. Removes the hero
image extraction, its getbb.app URL allow-list and the release-process
step that asked for one image per release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl brsbl changed the title Preview what's in a bb release on the Updates page Summarize what's in a bb release on the Updates page Oct 27, 2026
brsbl and others added 2 commits October 27, 2026 23:43
…xperiment

"Release notes" on Settings → Updates now toggles the release's notes
open under its row: the lede and every section, scrollable, with a plain
link to the full notes on getbb.app. The one-sentence summary in the row
is gone.

The changelogPreview experiment key is removed; a stored value for it is
ignored. release_notes_preview_shown is dropped and release_notes_opened
now reports view inline or web.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl brsbl changed the title Summarize what's in a bb release on the Updates page Open release notes from the Updates page Oct 28, 2026
brsbl and others added 8 commits October 28, 2026 00:26
Keeps main's applicationLinks experiment, still drops changelogPreview, and
bumps the plugin SDK to 0.6.105 on top of main's 0.6.104.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl and others added 3 commits October 30, 2026 15:54
The panel now leads with the release's headline, with the version and
date under it, and its scroll area no longer scrolls sideways: long
words wrap instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Scrolled text used to stop in a hard edge under the pinned title while
the bottom faded. The top now fades the same way once you scroll.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	docs/api_to_audit.md
#	docs/configuration.md
#	packages/server-contract/src/api/system.ts
@brsbl
brsbl marked this pull request as ready for review October 30, 2026 16:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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
📝 Code Review ✅ Completed 2026-10-30T16:07:23.711270Z 531b82a Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 531b82a17e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +87 to +92
export function ReleaseNotesPanel({ id, version }: ReleaseNotesPanelProps) {
const changelogQuery = useQuery(changelogEntriesQueryOptions());
const entry = findReleaseEntry(
version,
changelogQuery.data,
CHANGELOG_ENTRIES,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Expose release-note lookup through the SDK and CLI

The new version-specific release notes are available only through the React UI: fetching and selecting entries live in app-local modules, with no corresponding SDK operation or bb command. Searching the CLI, SDK, server routes/contracts, and shipped CLI guides for changelog/release-note functionality found only the telemetry event contract. Consequently, CLI users and agents cannot retrieve the installed or pending release's notes through the supported interfaces. Add and document SDK and CLI access alongside the UI, as explicitly required by AGENTS.md.

AGENTS.md reference: AGENTS.md:L26-L26

Useful? React with 👍 / 👎.

…elog

- A patch release without its own changelog entry, such as 0.48.1, shows
  the newest earlier entry in its minor line (0.48.0) and links to it.
- A release newer than the running build gets its headline and date from
  main's changelog metadata, the same way its notes come from main's
  changelog.
- While the notes load, the panel says so instead of claiming the release
  has no changelog, and says when they couldn't load.
- Long version strings in an update row can wrap again instead of running
  into the row's buttons on narrow screens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl
brsbl merged commit baee7be into main Oct 30, 2026
52 checks passed
@brsbl
brsbl deleted the growth/release-widget branch October 30, 2026 17:19
ymichael pushed a commit that referenced this pull request Oct 30, 2026
Fixes main's npm version guard, which has failed since #6201 merged.

`@get-bb/[email protected]` was published shortly before #6201 merged.
#6201 changed the SDK's bundled types: it added the
`release_notes_opened` telemetry event and removed the
`changelogPreview` experiment key. So the package main would publish no
longer matches the published 0.6.105, and a published version is never
republished. This bumps the SDK to 0.6.106 with `node
scripts/bump-plugin-sdk.mjs --patch`, which updates
`packages/plugin-sdk/package.json` and
`packages/domain/src/plugin-sdk-version.ts` together.

No behavior change.

BB-Thread-ID: thr_5tfcbbau5i

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
brsbl added a commit that referenced this pull request Oct 30, 2026
Trims the Settings → Updates changelog code from #6201 without changing
behavior.

- The Desktop row now resolves its changelog version through the same
resolver as the bb row (`resolveReleaseNotesVersion`), instead of
keeping a second copy of the desktop branch.
- Removes `LATEST_CHANGELOG_ENTRY`, which only tests still used. Its two
checks now read `CHANGELOG_ENTRIES` directly: the repo's changelog
parses, and the newest release has a headline and date.
- `recordReleaseNotesOpened` no longer re-checks the version format. Its
callers pass resolved release versions, and the server validates
`release_version`.
- Drops two Desktop-row tests that repeated the resolver's own tests
(latest release when nothing is pending, nightly hides the button).

BB-Thread-ID: thr_5tfcbbau5i

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
ymichael added a commit that referenced this pull request Nov 2, 2026
## Human comments

## What was wrong

On a source checkout, the Updates page's Changelog picked a release
version from `packages/bb-app/package.json`. Between releases the
incoming range (for example `916d684 → 1555ccf`, 41 commits) has the
same version as the running checkout, so `resolveReleaseNotesVersion`
fell back to the installed version and showed release notes the checkout
already has. The commits the update would pull were never shown, even
though the server already sends their subjects in
`SystemAppUpdateAvailable.subjects` (the app stopped rendering them in
#6201).

## What changed

- `release-notes-model.ts`: `resolveSourceUpdateNotes` builds the
incoming range (`from`, `to`, `commitCount`, `subjects`) from an
`available` update on the `main` channel.
- `ReleaseNotesPanel.tsx`: with a source update, the panel shows "N new
commits on main" and the short range, lists the subjects with their
`(#N)` suffix as a pull request link, adds "and N more" when the server
capped the list, and swaps "Full changelog" for "Compare on GitHub"
(`github.com/get-bb/bb/compare/<from>...<to>`).
- `UpdatesSettingsSection.tsx`: a source checkout with nothing incoming
no longer offers Changelog. npm, nightly and desktop rows are unchanged.
- `release-notes.ts`: compare URL and opener, reusing the
`release_notes_opened` web telemetry event.
- Stories: one "Source checkout — changelog" story under
settings/Updates.

No server, contract or protocol changes.

## How you verified

- New tests in `UpdatesSettingsSection.test.tsx` (both fail on main):
incoming commits list with PR link, "and 39 more" and the compare link;
no Changelog when nothing is incoming.
- `pnpm exec turbo run typecheck lint --filter=@bb/app`, and `vitest run
src/components/settings` (290 passed).
- Ladle before/after screenshots of the source-checkout states.
- `pnpm start:worktree` from this branch: the plain server (no launcher,
nothing incoming) shows no Changelog; behind a proxy that fills the
update status with the real `916d684..1555ccf` range, Changelog lists
the 41 commits with working PR and compare links.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant