Skip to content

Polish Settings updates and machines - #1996

Merged
brsbl merged 12 commits into
mainfrom
bb/settings-updates-machines-final-thr_qwah76hjqr
Aug 20, 2026
Merged

brsbl merged 12 commits into
mainfrom
bb/settings-updates-machines-final-thr_qwah76hjqr

Conversation

@brsbl

@brsbl brsbl commented Aug 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • group update inventory by machine and keep provider, bb app, state, badge, action, and changelog behavior coherent
  • align Machines list and detail hierarchy with Updates using existing settings rows, icons, menus, and tooltips
  • add chrome-wrapped, navigable Settings and Updates Ladle coverage, including all update states
  • gate the changelog preview behind the existing experiments system
  • keep the existing full experiments contract; no compatibility shim or new endpoint

Supersedes #1933, #1934, #1935, #1936, and #1947 with one reviewable change based on current main.

Visual evidence

Exact base: 6b7c58f
Exact head: 964709d

Updates — desktop 1440×900

Before:

Updates before at 1440×900

After:

Updates after at 1440×900

Updates — compact desktop 768×900

Before:

Updates before at 768×900

After:

Updates after at 768×900

Machines — desktop 1440×900

Before:

Machines before at 1440×900

After:

Machines after at 1440×900

Machines — compact desktop 768×900

Before:

Machines before at 768×900

After:

Machines after at 768×900

Validation

  • 56 focused app tests passed
  • 36 focused server tests passed
  • domain experiment tests passed
  • 812 mobile tests and mobile typecheck passed
  • plugin-registry generated-artifact test and typecheck passed
  • Turbo typecheck passed for app, server, CLI, domain, server-contract, and desktop
  • exact main/head Settings → Updates and Settings → Machines states checked at 1440×900 and 768×900

BB-Thread-ID: thr_qwah76hjqr

AGENT GENERATED: by GPT-5.6

brsbl added 12 commits August 19, 2026 20:28
…achines-final-thr_qwah76hjqr

# Conflicts:
#	apps/app/src/components/layout/AppLayout.plugin-panel-header.test.tsx
#	apps/app/src/components/layout/AppLayout.root-compose-project.test.tsx
#	apps/app/src/lib/system-config-atoms.ts
#	apps/app/src/views/SettingsView.experiments.test.tsx
#	apps/app/src/views/SettingsView.stories.tsx
#	apps/app/src/views/SettingsView.tsx
#	apps/desktop/test/preload-build.test.ts
#	apps/server/test/system/experiments.test.ts
#	apps/server/test/threads/thread-runtime-config.test.ts
#	packages/db/test/experiments.test.ts
#	packages/domain/src/experiments.ts
#	pnpm-lock.yaml
@brsbl
brsbl merged commit 2cf68c6 into main Aug 20, 2026
13 checks passed
@brsbl
brsbl deleted the bb/settings-updates-machines-final-thr_qwah76hjqr branch August 20, 2026 04:19
ymichael added a commit that referenced this pull request Aug 20, 2026
## What was wrong

The machine list and detail redesign in
[#1996](#1996) compressed status,
project count, permissions, and update state into a dense set of glyphs
and tooltips. That made common metadata slower to scan, turned the add
action into an ambiguous bare plus, and put the detail identity subtitle
inside a card that implied a separate section. Several flex items were
also forced to remain unshrinkable, so long metadata and detail
key/value groups became cramped on phone-width screens. Tracks #2049.

## What changed

- Replaced decorative machine, project, permission, and update glyphs
with visible metadata text while retaining status dots, provider marks,
and action icons.
- Restored the labeled “Add a machine” button.
- Moved connection state, platform, and pairing age directly below the
machine heading instead of wrapping that subtitle in a card.
- Made section actions and detail key/value rows stack on compact
screens, and allowed long update status text to wrap.
- Added focused regression coverage for visible status/metadata, the
labeled action, the subtitle header structure, and compact layout
classes.
- No wire, daemon protocol, CLI, persistence, or documentation contract
changes.

### Machine list

| Original | After #1996 | This PR |
| --- | --- | --- |
| ![Original machine
list](https://github.com/user-attachments/assets/77cb6e87-9225-4dfd-94ee-a689e6820a6e)
| ![Machine list after PR
1996](https://github.com/user-attachments/assets/603e6f8d-22c7-4a34-b2ee-b568c8f862ec)
| ![Text-first machine
list](https://github.com/user-attachments/assets/866a07d8-aaf3-4e8e-bc18-5162e6fb2d7e)
|

### Machine detail

| Original | After #1996 | This PR |
| --- | --- | --- |
| ![Original machine
detail](https://github.com/user-attachments/assets/12a2ba39-3b3c-4bbc-a0d6-05d165c74bf0)
| ![Machine detail after PR
1996](https://github.com/user-attachments/assets/5d41a136-fcdb-4da6-ae26-7bfe7bb5ed43)
| ![Text-first machine
detail](https://github.com/user-attachments/assets/6002a866-5335-4b80-ad88-4103d6b6bf68)
|

### Narrow screens at 320px

| Page | Before | After |
| --- | --- | --- |
| List | ![Narrow machine list
before](https://github.com/user-attachments/assets/9beaabec-ec93-406a-bfd4-5cafc2b54cb4)
| ![Narrow machine list
after](https://github.com/user-attachments/assets/5a307a92-39a3-4825-92a5-beaf86d5fb7f)
|
| Detail | ![Narrow machine detail
before](https://github.com/user-attachments/assets/7128a6a9-ab48-4c3a-9d24-41f7baf86608)
| ![Narrow machine detail
after](https://github.com/user-attachments/assets/7930edd8-a302-4b27-92b9-85013e2afb31)
|

## How you verified

- `pnpm exec turbo run test --filter=@bb/app --
src/components/settings/MachinesSettingsSection.test.tsx
src/views/MachineSettingsView.test.tsx` — 21 tests passed. The new
assertions fail against the previous icon-only and card-based markup.
- `pnpm exec turbo run typecheck --filter=@bb/app` — passed.
- `pnpm exec turbo run lint --filter=@bb/app` — passed.
- Rendered the real Settings story at true 320px, 390px, 768px, and
1440px viewports. Both pages stayed within the viewport at 320px and
390px with no visible horizontal overflow.

Fixes #2049

> AGENT GENERATED: by GPT-5.6 Codex
ymichael added a commit that referenced this pull request Sep 23, 2026
…4224)

## Human comments

## What was wrong

When the selected provider's CLI was missing on the target machine, the
new-thread composer offered no way to install it. The only signs were
"Select model", a "Could not load models" error inside the model picker,
and a disabled send button labelled with that error. The app used to
prompt for missing CLIs, first with provider CLI health toasts, then
with a "Not installed" row in Settings → Updates. #813 removed the
toasts, and #1996 then limited the Updates rows to installed CLIs. The
provider installation protocol (`provider/installation/status` and
`provider/installation/run`) still reports `installed: false` and
returns an install plan, but nothing in the app used it.

## What changed

- `ProviderCliVersionBanner` is renamed to `ProviderCliBanner`
(`apps/app/src/components/promptbox/banner/`) and covers two cases. It
is still built on `ProviderRequirementBanner`.
- **Missing CLI:** "<Provider> not installed" / "Install <Provider>
before starting a thread." with an **Install <Provider>** button that
switches to "Installing…" while the install runs.
- **CLI too old:** the unsupported-version copy and Update action are
unchanged.
- `RootComposeView` now blocks the composer when the selected provider
reports `!installed || versionUnsupported`. Previously it blocked only
on `versionUnsupported`. Sending shows the matching blocked reason, and
the composer does not auto-focus. The action goes through the existing
`useProviderCliInstallRunner`. That runner already refreshes CLI status
and execution options after a successful install and shows a failure
toast with the install log.
- The banner only appears for providers that report installation status:
Codex, Claude Code, Pi and Cursor.
- Ladle: added "provider CLI not installed" and "install running" rows
to *Provider Requirement*, and the *missing Codex CLI* composer story
now shows the banner.
- No wire, protocol, CLI or server changes. Settings → Updates is
intentionally unchanged.

**Known limitation:** host CLI status is fetched once per session
(`SESSION_STATIC_QUERY_POLICY`). If someone installs the CLI outside bb,
the banner stays until the page is reloaded. The unsupported-version
banner already behaves this way.

## How you verified

- `pnpm exec turbo run typecheck lint --filter=@bb/app`: passes, 0 lint
errors.
- `pnpm exec turbo run test --filter=@bb/app`: 558 files passed, 1
skipped. `ProviderCliBanner.test.tsx` adds a missing-CLI case (title, no
version copy, Install action).
- Ladle *Provider Requirement* story checked visually.
- Live `pnpm start:worktree` QA with Claude Code forced to report not
installed (`BB_CLAUDE_CODE_EXECUTABLE` pointed at a nonexistent path).
This confirmed the banner, blocked send, and Install button. Progress
and failure states were exercised by intercepting the install request in
the browser, so no real installer ran on the review host.

Related to #3142 (the picker still offers providers that aren't
installed; this PR makes that state explicit and actionable instead of
hiding it).

> AGENT GENERATED

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

Co-authored-by: Claude Opus 5.5 (1M context) <[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