Repository navigation
Open release notes from the Updates page - #6201
Conversation
… events Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…iew card Co-Authored-By: Claude Opus 5.5 <[email protected]>
… notes panel Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
0d754d9 to
47350b3
Compare
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]>
…on narrow widths Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… line on phones Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
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.
💡 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".
| export function ReleaseNotesPanel({ id, version }: ReleaseNotesPanelProps) { | ||
| const changelogQuery = useQuery(changelogEntriesQueryOptions()); | ||
| const entry = findReleaseEntry( | ||
| version, | ||
| changelogQuery.data, | ||
| CHANGELOG_ENTRIES, |
There was a problem hiding this comment.
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]>
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]>
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]>
## 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]>
Lets people read what's in a bb release from Settings → Updates, without leaving bb.
CHANGELOG.mdand headlines from the publishedchangelog-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.changelogPreviewexperiment: the experimental card, its Settings → Experiments entry and the key itself are gone. A stored value for the key is ignored, the same waynavigationRailwas removed.release_notes_openedto the allow-list, with a digits-and-dotsrelease_versionandviewset toinline(opened under the row) orweb(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.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