Skip to content

Move Scan a QR instead to a row at the top of Add server - #1085

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/1084-add-server-scan-qr-row
Nov 18, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/1084-add-server-scan-qr-row

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add/Edit server (manual form): "Scan a QR instead" moves from a link above Connect to a card row at the top of the form, above the host field, on iOS and Android. It has a QR icon, a "From opencode pair" hint, and a chevron, and does the same thing as before (opens the scan instructions).
  • The row is shown whether or not the keyboard is up. The old link existed only while the keyboard was hidden (!isKeyboardVisible on iOS, !WindowInsets.isImeVisible on Android), so a one-frame keyboard report added or removed a row and moved the form. On iOS that move cancelled the Paste menu on a long-press in the password field.
  • Both platforms reuse the existing OpenCodeListItem (card style, icon start decorator, disclosure accessory). No new design-system component.
  • Connect keeps its current placement.

Checks

  • Android: ./gradlew :app:assembleDebug :app:testDebugUnitTest --tests '*ConnectionSetup*' passed. ktlintMainSourceSetCheck reports no violations in the touched files (it still fails on existing violations elsewhere).
  • iOS: xcodebuild test for ConnectionSetupViewModelTests and ConnectionSetupKeyboardLayoutTests passed (60 tests). The app builds for the simulator.
  • Manual, iPhone 17e simulator and Pixel 9a emulator: the row sits above the host field with the keyboard hidden and is still in the form with the password field focused and the keyboard up. On iOS, tapping the row opens the scan instructions as before.

Evidence

Screenshots in the evidence comment.

Issue

Fixes #1084

Risks / Follow-ups

  • Not checked on a physical iPhone yet: the long-press Paste after returning from another app. The simulator does not show the Passwords bar, so the original keyboard report may not reproduce there.
  • On iOS, Connect still moves between pinned and inline with the keyboard (Keep iOS Connect above the keyboard when it changes height #1078). This pull request does not change that.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The manual Add/Edit server form showed "Scan a QR instead" only while the
keyboard was hidden, so a single keyboard report added or removed a row and
moved the form. On iOS that move cancelled the Paste menu on a long-press in
the password field. The link is now an OpenCodeListItem card row above the
host field on iOS and Android, shown whether or not the keyboard is up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

iOS (iPhone 17e simulator) and Android (Pixel 9a emulator), debug builds, fresh install, no server: Connect to server → Use a host and password. Placeholder host only.

Step iOS Android
Manual form, keyboard hidden: the row sits above the host field iOS form Android form
Password field focused, keyboard up: the row is still in the form (scrolled above), nothing is added or removed iOS keyboard Android keyboard

@ivanfenenko
ivanfenenko marked this pull request as ready for review November 18, 2026 09:52

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.048 · 1 pass(es) stopped early

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 8e2b4e2 Nov 18, 2026
@ivanfenenko
ivanfenenko deleted the fix/1084-add-server-scan-qr-row branch November 18, 2026 10:18
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.

Add server: Scan a QR row at the top of the form

1 participant