Repository navigation
Updater: the window fits its content (#761) - #764
Merged
Merged
Conversation
) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…ontent scrolls (#761) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…he window (#761) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…he next launch (#761) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…ports (#761) Nothing plugged in, panel and LC6000 found, and an update stopped on its writing step. No IOKit, CoreMIDI, serial or handoff anywhere in it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
…he newest text in view (#761) The sections sit in a scroll view whose content size drives the window by WindowFit's rule; a live resize is kept as the hand-set size. In Debug builds, --preview <nothing|found|backup|updating> opens a fixed state on fake ports for screenshots; the backup model's buttons do nothing there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
Skeyelab
enabled auto-merge
November 22, 2026 23:53
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1
Skeyelab
added a commit
that referenced
this pull request
Nov 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #761
The updater window now fits its content. It opens big enough for everything the first look shows, grows when new text appears, stops at the screen's visible frame (then the content scrolls, newest text kept in view), and keeps a size the owner sets by hand, across launches.
What changed
UpdaterScreen/WindowFit.swift(tested red first):WindowFit.size(content:titleBar:visible:handSet:)(content + title bar, at least 560 wide, never below a hand-set size, clamped to the screen's visible frame), andHandSetSize(the hand-set size in UserDefaults).WindowFitting.swift: reads the content's size, sets the window frame by that rule, keeps the top edge, and saves the size after a live resize..windowResizability(.contentSize)and the fixed 480×360 minimum are gone; the sections sit in aScrollView.FirmwareUpdater --preview nothing|found|backup|updating.Updater.preview(_:)(Kit,#if DEBUG) runs on fake ports defined in that file: no IOKit, CoreMIDI or serial object, no DeckBridge handoff (noborrow), fixed firmware line. In the app,Live.updater()is never called in preview; the backup model's buttons do nothing there, so no MIDI message is sent and no chip is read. Tested inPreviewTests(each state's first look, the update held at 42 %).Not testable here
WindowFitTests.Screenshots
These are from the Debug build with
--preview, at the size the app chose. A panel and an LC6000 were on USB during the shots; the preview never touched them. The PNGs are in~/Documents/deckbridge-761-screenshots/on the Mac:nothing.png: 560×384, nothing plugged in.found.png: 560×586, panel and LC6000 found.backup.png: 560×624, after a backup message.updating.png: 560×622, during a panel update at 42 %, with Cancel off.All four fit with no scroll bar and nothing cut off.
Devices
This PR doesn't change what the updater sends to any device. The device code is untouched.
Tests:
swift testinPackages/FirmwareUpdaterKitpasses.scripts/updater.sh build(Debug) builds.🤖 Generated with Claude Code
https://claude.ai/code/session_01VCgWWsrZ4EvHNNNTAe7RC1