fix(mobile): show structured input option descriptions - #7321
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved 7bc2ba5 This PR makes minor UI styling adjustments and conditionally renders option descriptions that already exist in the data. The changes are self-contained to display logic with no runtime behavior impact. You can customize Macroscope's approvability policy. Learn more. |
## What's Changed * test(web): remove duplicate lookup assertion by @t3-code[bot] in pingdotgg/t3code#7364 * fix(mobile): show structured input option descriptions by @none23 in pingdotgg/t3code#7321 **Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260817.1120...v0.0.34-nightly.20260818.1124 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260818.1124
…otgg#7172 already cherry-picked
What Changed
Mobile structured-input options now show their descriptions below their labels, matching the web and desktop clients.
Options are stacked vertically and use the available width so longer descriptions can wrap inside the existing scrollable panel.
Why
Mobile previously rendered these options as label-only chips, hiding context that can be necessary to choose an answer. The structured-input contract already provides the descriptions, and the web and desktop clients already display them.
Fixes #7304.
UI Changes
Full demo video
11-mixed-ballot-flow.mp4
Checklist
Note
Low Risk
Presentation-only changes in
PendingUserInputCard; no API, selection, or submission logic changes.Overview
Mobile pending user-input now surfaces each option’s description under its label when it differs from the label, aligning with web/desktop structured-input UX.
Options move from horizontal pill chips to full-width stacked rows (
rounded-2xl,min-h-12) so longer descriptions can wrap inside the existing scrollable card. Selection and submit behavior are unchanged.Reviewed by Cursor Bugbot for commit 7bc2ba5. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Show structured input option descriptions in
PendingUserInputCardoption.descriptiondiffers fromoption.label, it is displayed as a second line of text beneath the label.Macroscope summarized 7bc2ba5.