Skip to content

ios: the capture canvas fills the screen again (revert the 200pt cap) - #348

Merged
GoKubar merged 1 commit into
mainfrom
agent/ipad/canvas-fullscreen
Sep 14, 2026
Merged

GoKubar merged 1 commit into
mainfrom
agent/ipad/canvas-fullscreen

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Owner feedback item 1:

Make the drawing board fill the entire screen (i think the original design was best).

What changed it, and when

Commit d21699c9 — "ios: capture-companion evidence, receipt-visible layout, final handoff" (jay3332, 2026-09-12, lane mac-ios-app). Its own message says the intent plainly: "Tool picker hides after Prepare and the canvas shrinks once a capture exists so the status row is on screen."

The diff:

-                PencilCanvas(drawing: $drawing, size: $canvasSize)
-                    .frame(minHeight: 320)
+                PencilCanvas(drawing: $drawing, size: $canvasSize, toolsVisible: $toolsVisible)
+                    .frame(minHeight: model.captures.isEmpty ? 320 : 200,
+                           maxHeight: model.captures.isEmpty ? .infinity : 200)

The cap was added so the capture_received status row would be visible in that lane's evidence screenshots. On a real iPad it means every session after the very first capture gets a 200pt drawing board — which is what the owner hit.

The pre-d21699c9 design (925acba6, "ios: pivot FlashTeXPad to the capture companion") was .frame(minHeight: 320) with no cap, so the canvas expanded into the available space.

Change

Restore that frame, and add .layoutPriority(1) so the canvas — rather than the greedy CapturesList below it — takes the leftover vertical space. Without the priority the two flexible children split the space and the canvas only gets about half, which is not what the owner means by "fill the entire screen". No other part of the layout is touched; the status row is still reachable by scrolling the list.

Verification

⚠️ Not built or tested. The owner's Mac cannot currently build for the iOS simulator at all: /Library/Developer/PrivateFrameworks/CoreSimulator.framework is missing, so xcodebuild fails to load IDESimulatorFoundation and refuses to run for any destination, simulator or device. xcodebuild -runFirstLaunch needs admin rights that are not available over SSH here.

What I could verify: the sources type-check against the iOS 26.5 simulator SDK, bypassing xcodebuild entirely —

xcrun swiftc -typecheck -target arm64-apple-ios17.0-simulator -sdk $(xcrun --sdk iphonesimulator --show-sdk-path) \
  -I <FlashTeXPadKit modules built for arm64-apple-ios-simulator> FlashTeXPad/*.swift

→ 0 errors.

This is a pure layout change, so it needs a look on the owner's iPad (or CI, whose iPad companion (simulator build + tests) job has a working simulator) to confirm it looks right.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

d21699c ("ios: capture-companion evidence, receipt-visible layout, final
handoff") capped the Pencil canvas at 200pt as soon as any capture existed:

    .frame(minHeight: model.captures.isEmpty ? 320 : 200,
           maxHeight: model.captures.isEmpty ? .infinity : 200)

so the capture_received status row would be on screen in that lane's
evidence run. On a real iPad that leaves a 200pt drawing board for every
session after the first capture, which is the thing the owner reported.

Restore the pre-d21699c9 frame (`.frame(minHeight: 320)`, no cap, as in
925acba) and add `.layoutPriority(1)` so the canvas — not the greedy
captures List below it — takes the leftover vertical space. The status
row is still reachable by scrolling the list.

Implementation-Agent: Claude Code iPad companion agent (linux-primary)
Commit-Executor: git via Claude Code
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@d-q222

d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

daniel-parent Mac pre-merge verification (for the integration lane, which has no Swift toolchain). Xcode 26.6, macOS 26.6, merged onto origin/main 98ca402a in a throwaway worktree, PR head 4a8f932f. Worker: Cursor; results checked by daniel-parent.

PR merge filtered tests full suite verdict
#348 CLEAN n/a (no test classes; iOS build OK) iOS 25 / 0 skipped / 0 fail READY

About the 3 full-suite failures: WordCountModelTests.testOnlyTheLastScheduledUpdateWins and testScheduleUpdateEventuallyPublishesTotals fail in every full run, including the control on main, while the machine is loaded. Run alone on main 095e8406 they pass twice (2/0), so they're timing-flaky under full-suite load, not caused by this PR or broken on main.

@GoKubar
GoKubar marked this pull request as ready for review September 14, 2026 16:16
@GoKubar
GoKubar merged commit 9a28e93 into main Sep 14, 2026
19 of 20 checks passed
@GoKubar
GoKubar deleted the agent/ipad/canvas-fullscreen branch September 14, 2026 16:16
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.

2 participants