Skip to content

Fix source update splash identity and mobile update row layout - #4996

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-updates-page-o-thr_vmdwuf2if4
Oct 6, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-updates-page-o-thr_vmdwuf2if4

Conversation

@ymichael

@ymichael ymichael commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The global restart splash still displayed the package version for source updates because the server dropped the launcher's target commit when exposing restart status. A source update to 9f4ee4d consequently appeared as “Updating bb to 0.45.0.” On narrow update rows, progress captions competed with the app identity and commit metadata for horizontal space, producing different wrapping at each stage.

What changed

  • Carry the target commit through restart status and use the existing revision formatter in the splash. Source updates show the short commit; npm updates retain the release version.
  • Use the update row's available width to stack metadata and progress beneath the app identity in narrow layouts. Align the spinner with the heading and allow long captions to wrap. Wider rows retain inline content.
  • Add required nullable targetCommit to the public restarting activity returned by sdk.system.appUpdate() and the system update API. It is null for npm updates. The CLI's JSON output inherits this status field. No host-daemon wire changes or protocol bump are involved.

How you verified

  • Focused app-update tests: 10 passed, including a source restart with no cached available update, npm version display, overdue dismissal, and revision reload behavior.
  • Server app-update tests: 25 passed, including source and npm launcher-to-public-status mapping.
  • Updates settings tests: 45 passed.
  • pnpm exec turbo run test --filter=@bb/app -- src/components/app-update/AppUpdateHost.test.tsx src/components/app-update/app-update-presentation.test.ts
  • pnpm exec turbo run test --filter=@bb/server -- test/system/app-update.test.ts
  • pnpm exec turbo run test --filter=@bb/app -- src/components/settings/UpdatesSettingsSection.test.tsx
  • pnpm exec turbo run typecheck lint --filter=@bb/app --filter=@bb/server passed; app checks also passed after the layout change. Lint reported existing warnings and no errors.
  • Browser previews verified checking, ready-to-restart, and restarting rows at 320px and 390px without horizontal overflow, and inline layout at a 1000px viewport. Matching 390px splash previews verified the version-to-commit label change. These used synthetic fixtures, not a real application update/restart.
  • git diff --check passed.

AGENT GENERATED

@ymichael
ymichael merged commit e710dbd into main Oct 6, 2026
41 checks passed
@ymichael
ymichael deleted the bb/fix-updates-page-o-thr_vmdwuf2if4 branch October 6, 2026 04:02
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