Skip to content

Show one line per machine on the Updates page - #5170

Merged
SawyerHood merged 1 commit into
mainfrom
bb/reduce-the-number-of-rows-on-the-updates-page-thr_4xe9gjz2qh
Oct 8, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/reduce-the-number-of-rows-on-the-updates-page-thr_4xe9gjz2qh

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Updates page rendered one section per machine and one row per installed provider CLI inside it, whether or not that CLI had an update. A fleet of four machines took seventeen rows, most with nothing to act on, and the bb app, daemon and provider rows were mixed together under each machine heading.

What changed

All changes are in apps/app (UpdatesSettingsSection.tsx, its tests and stories, and the settings story fixture). No server, daemon, CLI or SDK surface changes.

  • Two cards. The first holds a Server row, plus a Desktop row only while the desktop app has an update, is downloading one, or its release check failed. When the desktop app runs the server itself the single row is labelled Desktop. The bb logo sits beside the label, so the rows no longer say "bb app", "bb server" or "bb desktop".
  • One line per machine. The Provider CLIs card lists only machines that need attention: a provider update, a daemon update in progress or stalled, a daemon newer than the server, or a failed CLI check. Each line shows the machine name and a pile of the provider CLIs that are behind. A CLI bb cannot update gets a dashed avatar and the line says how many are manual.
  • Expandable detail. Expanding a machine lists each installed CLI with its versions and the updater bb will run (named from the command the machine already reports, with the full command in a tooltip), and an Update <machine> button. Failed CLIs keep their own retry and log there.
  • Update all covers every actionable CLI on every machine. While jobs are running or queued it is replaced by a progress count ("Updating 2 of 5").
  • Quiet machines fold away. Machines with nothing to update, including offline ones, collapse into a footer line with a Show all toggle. When no machine needs attention the card shows one summary line.

Behavior that went away: per-CLI update buttons (updates are per machine or all), and the row links to machine and provider settings.

Related to #3166: the expanded row is where a detected package manager would surface, but this PR does not change how updaters are detected.

How you verified

  • pnpm exec vitest run src/components/settings/UpdatesSettingsSection.test.tsx in apps/app: 47 tests pass. The tests for the old per-row layout were rewritten for the new one, and new tests cover the updater name, the footer toggle, and the progress count across a batch.
  • The same run with SidebarUpdatesBadge.test.tsx, src/components/provider-cli and src/views/SettingsView: 91 tests in 8 files pass.
  • pnpm exec turbo run lint typecheck --filter='...[origin/main]': passes.
  • Ran pnpm dev from this branch and opened Settings → Updates. With the real single-machine data it showed the quiet state. To exercise a fleet, the hosts, provider CLI status, version and app-update responses were stubbed in the browser for six machines; collapsed, expanded, Show all, light and dark themes all rendered as intended.

🤖 Generated with Claude Code

AGENT GENERATED

The Updates page listed every provider CLI on every machine as its own
row, so four machines took seventeen rows and most of them had nothing
to act on.

The page is now two cards. The first holds a Server row, plus a Desktop
row while the desktop app has its own update. The second lists only the
machines that need attention, one line each, with a pile of the provider
CLIs that are behind. Expanding a machine shows each installed CLI, its
versions and the updater bb will run, with a button to update that
machine. Update all covers every actionable CLI and gives way to a
progress count while the queue drains. Machines with nothing to update
fold into a footer line that can be expanded.

Co-Authored-By: Claude Code <[email protected]>
@SawyerHood
SawyerHood marked this pull request as ready for review October 8, 2026 02:20
@SawyerHood
SawyerHood merged commit ebf147b into main Oct 8, 2026
35 checks passed
@SawyerHood
SawyerHood deleted the bb/reduce-the-number-of-rows-on-the-updates-page-thr_4xe9gjz2qh branch October 8, 2026 02:25
ymichael pushed a commit that referenced this pull request Nov 18, 2026
…th (#7756)

## Human comments

## What was wrong

Settings → Updates names the tool that will run each provider update.
`providerCliUpdaterName` took the first whitespace-separated word of
`installAction.command`, kept its last path segment, and compared it
with the whole `executableName`. When #5170 added the label, the Claude
Code bridge reported the bare name `claude`. Since #6194,
`claudeExecutable()` returns the resolved absolute path, so the
comparison `claude === "/home/<user>/.local/bin/claude"` always failed,
and the row showed `claude` instead of "Built-in updater". Paths that
`formatCommand` single-quotes (every Windows path, and POSIX paths with
spaces) broke further: the whitespace split cut the quoted path, and the
label became a fragment such as `claude.exe'` or a user-name segment.
Details and a live status capture are in #7755.

## What changed

- `apps/app/src/components/settings/UpdatesSettingsSection.tsx`: the
label code now reads the first shell word of the display command and
undoes `formatCommand`'s quoting (`'…'` segments and the `'\''` escape).
It then compares that word's basename, without `.exe/.cmd/.bat`, with
the basename of `executableName`. Unquoted Windows paths keep their
backslashes as path separators. Commands for package managers (`npm`,
`brew`, `mise`, …) are labeled as before.
- No wire, daemon, or CLI change: the `bb updates` CLI does not print an
updater name.

## How you verified

- New component test `recognizes a provider's own updater when the
machine reports its executable by path`. It covers a Claude row with a
POSIX absolute path and a quoted Windows path that contains a space and
an apostrophe. Before the fix it fails with `expected [ '\'\'s',
'claude' ] to deeply equal [ 'Built-in updater', …(1) ]`; after the fix
it passes.
- `pnpm --filter @bb/app exec vitest run
src/components/settings/UpdatesSettingsSection.test.tsx`: 77/77 passed.
The existing `mise` and `Homebrew` label test is unchanged.
- `pnpm exec turbo run typecheck lint --filter=@bb/app --force`: passed.

Fixes #7755

> 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