From 5307283ef28fdfda2b544ef3476ebcedcd960fa8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 20 Oct 2026 16:01:51 +0000 Subject: [PATCH 1/2] Let the Screenshots workflow run on other macOS images Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01Qi1a7aFaVMKezKZLgpJHMP --- .github/workflows/screenshots.yml | 10 ++++++++-- scripts/take-screenshots.sh | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index 403ba5e..42e62b5 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -6,6 +6,10 @@ name: Screenshots # artifact, so bot commits never become a pull request's head. on: workflow_dispatch: + inputs: + runner: + description: macOS runner image. Images from anything but macos-15 go in docs/screenshots/. + default: macos-15 push: branches: ['claude/**'] paths-ignore: ['docs/screenshots/**'] @@ -15,7 +19,9 @@ permissions: jobs: screenshots: - runs-on: macos-15 + runs-on: ${{ inputs.runner || 'macos-15' }} + env: + SCREENSHOT_DIR: ${{ (inputs.runner && inputs.runner != 'macos-15') && format('docs/screenshots/{0}', inputs.runner) || 'docs/screenshots' }} steps: - uses: actions/checkout@v4 @@ -28,7 +34,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: screenshots - path: docs/screenshots + path: ${{ env.SCREENSHOT_DIR }} - name: Commit screenshots if: github.event_name == 'workflow_dispatch' diff --git a/scripts/take-screenshots.sh b/scripts/take-screenshots.sh index 20e4a71..2169822 100755 --- a/scripts/take-screenshots.sh +++ b/scripts/take-screenshots.sh @@ -6,7 +6,7 @@ set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" APP_BIN="$ROOT/build/Bucket Browser.app/Contents/MacOS/BucketBrowser" -OUT="$ROOT/docs/screenshots" +OUT="$ROOT/${SCREENSHOT_DIR:-docs/screenshots}" WINDOW_ID="$ROOT/build/window-id" mkdir -p "$OUT" From 1c16c827112e8335a49f32367ef65c6e55ae01e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 20 Oct 2026 16:12:13 +0000 Subject: [PATCH 2/2] Keep toolbar buttons in the toolbar on macOS 26 The toolbar, search field and inspector were attached to the split view, so macOS 26 laid the toolbar out in the collapsed inspector's space and moved every button into the overflow menu. Attach them to the detail column instead. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01Qi1a7aFaVMKezKZLgpJHMP --- .../BucketBrowser/Views/BrowserWindow.swift | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Sources/BucketBrowser/Views/BrowserWindow.swift b/Sources/BucketBrowser/Views/BrowserWindow.swift index 6119841..f8fa9a8 100644 --- a/Sources/BucketBrowser/Views/BrowserWindow.swift +++ b/Sources/BucketBrowser/Views/BrowserWindow.swift @@ -54,7 +54,18 @@ struct BrowserView: View { SidebarView(model: model, accountEditor: $accountEditor) .navigationSplitViewColumnWidth(min: 180, ideal: 220, max: 340) } detail: { + // The toolbar, search field and inspector belong to the detail column. Attached to the + // split view instead, macOS 26 lays the toolbar out in the collapsed inspector's space + // and pushes every button into the overflow menu. DetailView(model: model, accountEditor: $accountEditor) + .toolbar { + BrowserToolbar(model: model, showTransfers: $showTransfers, transfers: transfers) + } + .searchable(text: $model.searchText, placement: .toolbar, prompt: "Search this folder") + .inspector(isPresented: $model.showInspector) { + InspectorView(model: model) + .inspectorColumnWidth(min: 240, ideal: 290, max: 420) + } } // With no accounts the sidebar and toolbar have nothing to show, so the window is just the welcome screen. .toolbar(accounts.accounts.isEmpty ? .hidden : .visible, for: .windowToolbar) @@ -64,14 +75,6 @@ struct BrowserView: View { } .navigationTitle(model.title) .navigationSubtitle(subtitle) - .toolbar { - BrowserToolbar(model: model, showTransfers: $showTransfers, transfers: transfers) - } - .searchable(text: $model.searchText, placement: .toolbar, prompt: "Search this folder") - .inspector(isPresented: $model.showInspector) { - InspectorView(model: model) - .inspectorColumnWidth(min: 240, ideal: 290, max: 420) - } .quickLookPreview($model.quickLookURL) .focusedSceneValue(\.browserModel, model) .sheet(item: $accountEditor) { target in