Skip to content

Wrap long question options on iOS and Android - #1093

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/question-options-wrap
Nov 22, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/question-options-wrap

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Question options were cut to one line for the label and one for the description, so the part of a sentence that tells options apart could disappear.

  • OpenCodeListItem gets a textFlow variant on both platforms: SingleLine (default) or Wrapped.
  • Question options use Wrapped, so labels and descriptions show in full and the existing question body scrolls.
  • The selection control aligns to the first line on wrapped rows.
  • Every other list stays on one line, and so does the "Type your own answer" row.
  • The List Item gallery has a wrapped example on both platforms.

Replaces #1092. Reported by @khativari, thank you.

Checks

  • iOS and Android both covered
  • Screenshots for UI changes, in the evidence comment
  • Tests run
    • iOS: 3,726 unit tests pass.
    • Android: 3 of 3,481 unit tests failed locally. Two expect . as the decimal separator and fail on a comma locale, on clean main too. The other is in SseRecoveryFaultOracleTest, where a varying test also fails on clean main.
  • Real apps checked against the scenario harness on a v2 server with long, multilingual, unbroken and very long options, including scrolling, selecting and submitting.

Evidence

Screenshots in the evidence comment.

Risks / Follow-ups

  • Not checked on a v1 server, at the largest text sizes, in landscape, or on tablets and iPhone Duo.
  • On a very tall option the radio mark can scroll out of view. The card color and enabled Submit still show the selection.

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

Question options cut the label and description to one line each, hiding the words that tell options apart. Add a Wrapped text flow to the list item and use it for question options; other lists stay on one line.

Replaces #1092. Reported by @khativari.
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

iOS and Android, v2 server, scenario harness data.

Step iOS Android
Long options iOS long options Android long options
Scrolled, unbroken text iOS scrolled Android scrolled
Huge question, top iOS huge top Android huge top
Huge question, middle iOS huge middle Android huge middle
Huge question, bottom iOS huge bottom Android huge bottom
Option selected iOS selected Android selected
Submitted iOS submitted Android submitted

@ivanfenenko
ivanfenenko marked this pull request as ready for review November 21, 2026 17:10

@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.039 · 1 pass(es) stopped early

@blacksmith-sh

blacksmith-sh Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Matches Android question options show long labels and descriptions in full

Both long options now show their full label and description; on the merge-base they cut off at "move t…", hiding which option is which.

Merge-baseThis PR 220e5591
Question composerQuestion composer

Also checked · 3 match · 1 not run

Blocked iOS question options wrap the same way · Blocked
Matches Selection mark sits beside the first line of a wrapped option
Matches Other rows and "Type your own answer" stay single-line
Matches List Item gallery shows a wrapped example

Note

Proof planned 1 claim but was not able to run it:

The SwiftUI change needs macOS and Xcode to build or render; the Linux sandbox cannot run iOS

  • iOS question options wrap the same way

Proof on 220e5591 · not run: OpenCode Mobile iOS app (SwiftUI app needs macOS and Xcode; the sandbox is Linux), opencode server (Paparazzi test QuestionWrapSnapshotEvidence.kt renders the composer from a fixed...) · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 12bd4bb Nov 22, 2026
@ivanfenenko
ivanfenenko deleted the fix/question-options-wrap branch November 22, 2026 08:41
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